Getting the guid for a device

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShadowLocke
    New Member
    • Jan 2008
    • 116

    Getting the guid for a device

    Hi all,

    I am trying to grab the guid for the WiFi card in Windows Mobile 5 & 6.

    I can use WZCEnumInterfac es and get the guid no problem...as long as the wifi card is turned on. Is there an API function I can use to get the guid when the device is turned off?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Originally posted by ShadowLocke
    Hi all,

    I am trying to grab the guid for the WiFi card in Windows Mobile 5 & 6.

    I can use WZCEnumInterfac es and get the guid no problem...as long as the wifi card is turned on. Is there an API function I can use to get the guid when the device is turned off?
    If there is no power to the peripheral then there is no way to communicate with it to get it's GUID. You could cache it though.

    Comment

    • ShadowLocke
      New Member
      • Jan 2008
      • 116

      #3
      I see. What I ended up doing was use the registry key
      Code:
      HKEY_LOCAL_MACHINE\Software\Microsoft\WZCSVC\Parameters\Interfaces
      I am only programming for two different mobile devices and both had what i was looking for there.

      Thanks for the answer! I would have scratched my head bald trying to figure out what I was doing wrong.

      Unfortunatly the reason I was looking for this guid was to use with SetDevicePower to turn the wifi card back on, but that function can't find the given guid if the device is off also. I am obviously missing something here.

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Originally posted by ShadowLocke
        I see. What I ended up doing was use the registry key
        Code:
        HKEY_LOCAL_MACHINE\Software\Microsoft\WZCSVC\Parameters\Interfaces
        I am only programming for two different mobile devices and both had what i was looking for there.

        Thanks for the answer! I would have scratched my head bald trying to figure out what I was doing wrong.

        Unfortunatly the reason I was looking for this guid was to use with SetDevicePower to turn the wifi card back on, but that function can't find the given guid if the device is off also. I am obviously missing something here.
        If the device is subscribed to power events you should be able to ask the power manager to enumerate each device and send it a power on message. Don't ask me how though, the power manager is not really my cup of tea.

        Comment

        Working...