

HRESULT (STDMETHODCALLTYPE *QueryInterface)(IRadioManager *This, GUID const *riid, LPVOID *ppvObj) Typedef struct IRadioManagerVtbl IRadioManagerVtbl Typedef IUnknown IUIRadioInstanceCollection /* Didn't bother rev-engineering this one.

Static GUID const CLSID_RadioManagementAPI = That service is exporting a factory and interface which contains functions to get/set flight mode: #include The internal API used internally by windows to get/set Airplane mode makes use of COM calls to "RMsvc" service (which is located in "RMApi.dll"). I'll have to use Spy++ some more to find out.Īll of the following I discovered myself via reverse engineering. Apparently it is a question of whether one can send the code 0xc6 to kbd_event.ĮDIT2: Apparently there is a window called Network Flyout and I was thinking of enumerating the children to find the switch, but I haven't had much success. So apparently (to give a summery of the answer), one can check the state of Airplane mode using the MobileBroadbandRadioState enum.

Question: Can you provide detail information? Is it used to control Air Plane Mode, How to call this API? WLANAPI.dll export the API WlanStoreRadioStateOnEnteringAirPlaneMode, but there are no any document for this API. Question: Is there some virtual key code for Wireless Radio Button? If so, Application can send this keycode by Keybd_event. Microsoft defined HID Usage code for Wireless Radio Button (Usage: 0xC6). Windows 8(build 8250), I can turn on / off airplane mode in Metro Style Network Setting UI. Is there an api to turn Airplane mode on/off, and how should I use it?ĮDIT: In my use case, I know I can control it, and the user is ok with that.Īlso, I found this msdn question with the following excerpt: I am not making a modern/metro app, so I don't need to worry about application sandboxing. I have seen this question, but the answers only get the status, or say you cannot do such a thing for Metro apps. I am writing an app where I need to turn airplane mode on or off on windows.
