473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3214
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

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

Similar topics

4
by: Louis Frolio | last post by:
Greetings All, I have read many upon many articles here regarding GUID data types and uniqueness. There have been many opinions regarding the effectiveness of GUID's and when they should/should...
4
by: Shahar | last post by:
Hi I need to get a field name 'ID'(that is an auto-number field) right after I add a new row to table, it's work like that: myCommand.ExecuteNonQuery(); myCommand.CommandText = "SELECT...
1
by: Zac Maclean | last post by:
First: Been here: http://msdn.microsoft.com/mobility/understanding/articles/default.aspx?pull=/library/en-us/dnnetcomp/html/retrievedeviceid.asp#retrievedeviceid_topic3 and I downloaded a c#...
1
by: Brian Henry | last post by:
I need to mark assemblies with a unique id (GUID in this case) and retrieve it when the assembly is loaded into my application (a plug-in loader)... the plug-in assembly all have a class in it...
2
by: Troll | last post by:
Windows XP Pro VS 2005 & C# (I'm fairly new to C# but have doing VB.Net going on 2yrs and VB6 for 5yrs.) I'm using C# to build a custom RSS generator. I'm having trouble building the guid...
5
by: jediknight | last post by:
Is it possible to programmatically stop multiple browsers from getting the same session state? The problem I have is that whenever I open a new browse using File- I would like to stop this...
0
by: Shafiq | last post by:
Hi All, Based on the sample kbbar.net applicaation i have created a tool bar for windows explorer. Now i have to enable and disable few buttons based the user slects file in the explorer. For to...
2
by: sawaipurush | last post by:
I am trying to write an application that will detect all the USB devices connected to my computer. For this I have declared GUID and called the following functions to get the information about...
5
by: Sin Jeong-hun | last post by:
Hello. Speical folders, like Desktop, usually have different display names. For example, in Japanese Windows, it's displayed as "$B%G%9%/%H%C%W(B". I want to get the this displayed name of a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.