none
How to turn on/off airplane mode on Windows 8 programmatically?

    Question

  • We asked this question in "Developing Windows Desktop Applications with Power Management", but there are no answer.

    How to turn on / off airplane mode on Windows 8 programmatically?

    Sorry to post it here again.

    Windows 8(build 8250),  I can turn on / off airplane mode in Metro Style Network Setting UI.

    How to do this programmatically?

    1.  Microsoft defined HID Usage code for Wireless Radio Button (Usage: 0xC6). 

         Question: Is there some virtual key code for Wireless Radio Button? If so, Application can send this keycode by Keybd_event.

    2.  WLANAPI.dll export the API WlanStoreRadioStateOnEnteringAirPlaneMode , but there are no any document for this API.

         Question: Can you provide detail information? Is it used to control Air Plane Mode, How to call this API?



    Guo

    Saturday, May 05, 2012 8:01 AM

Answers

All replies