winapi - Programmatically turn airplane mode on or off Windows -
i writing app need turn airplane mode on or off on windows. have seen this question, answers status, or cannot such thing metro apps. not making modern/metro app, don't need worry application sandboxing.
is there api turn airplane mode on/off, , how should use it?
edit: in use case, i know can control it, , user ok that.
also, found this msdn question following excerpt:
windows 8(build 8250), can turn on / off airplane mode in metro style network setting ui.
how programmatically?
microsoft defined hid usage code wireless radio button (usage: 0xc6).
question: there virtual key code wireless radio button? if so, application can send keycode keybd_event.
wlanapi.dll export api wlanstoreradiostateonenteringairplanemode , there no document api.
question: can provide detail information? used control air plane mode, how call api?
so apparently (to give summery of answer), 1 can check state of airplane mode using mobilebroadbandradiostate
enum.
the hid route may possibility docs. apparently question of whether 1 can send code 0xc6 kbd_event.
edit2: apparently there window called network flyout
, thinking of enumerating children find switch, haven't had success. i'll have use spy++ more find out.
Comments
Post a Comment