Airplane Mode (Flight Mode) library and sample for Windows
The major code is derived from an answer in a Stack Overflow question
Provided by user3296587
Remember to use the [STAThread] attribute on your C# entry point, because the library relies on COM
1: Airplane Mode is ON
0: Airplane Mode is OFF
1003(ERR_GETSYSTEMRADIOSTATE): Failed to call GetSystemRadioState()
0: Airplane Mode has been set successfully
1004(ERR_SETSYSTEMRADIOSTATE): Failed to call SetSystemRadioState()
1001(ERR_COINITIALIZE):Failed to call CoInitialize()
1002(ERR_COCREATEINSTANCE):Failed to call CoCreateInstance()
- Go to
Developer Command Prompt for VS or Developer PowerShell for VS - run
build_MSVC.bat
- run
build_MinGW.bat
