locked
Get info about what is enabled: GPRS/UMTS/other, WIFI, roaming RRS feed

  • Question

  • Hi all,

     

    I need to write a C/C++ application for Windows Mobile 6.5 that is checking what is enabled on the smart device: GPRS/UMTS/other, WIFI, roaming.

    What functions could I use to get this information?

     

    Any tips would be appreciated.

    TIA,

    MeCoco

    Wednesday, June 1, 2011 3:22 PM

Answers

  • There are lots of ways.

    The Power Management API will tell you if the WiFi is enabled.

    The Telephony API will tell you if the WWAN (GPRS/UMTS/GSM) radio is enabled.

    The (undocumented) OSSVCS API will tell you the state of either radio

    The State and Notification broker will inform you when the state of any of these changes.

     

    I have an article describing them on codeproject: http://www.codeproject.com/KB/windows/RadioPower.aspx

    -PaulH

    • Proposed as answer by Jesse Jiang Tuesday, June 7, 2011 3:01 AM
    • Marked as answer by Jesse Jiang Friday, June 10, 2011 9:30 AM
    Wednesday, June 1, 2011 5:50 PM