469,356 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Getting the guid for a device

115 100+
Hi all,

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

I can use WZCEnumInterfaces 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?
Apr 14 '08 #1
3 3012
RedSon
5,000 Expert 4TB
Hi all,

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

I can use WZCEnumInterfaces 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.
Apr 16 '08 #2
ShadowLocke
115 100+
I see. What I ended up doing was use the registry key
Expand|Select|Wrap|Line Numbers
  1. 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.
Apr 18 '08 #3
RedSon
5,000 Expert 4TB
I see. What I ended up doing was use the registry key
Expand|Select|Wrap|Line Numbers
  1. 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.
Apr 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Louis Frolio | last post: by
4 posts views Thread by Shahar | last post: by
1 post views Thread by Zac Maclean | last post: by
1 post views Thread by Brian Henry | last post: by
5 posts views Thread by jediknight | last post: by
5 posts views Thread by Sin Jeong-hun | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.