473,570 Members | 2,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting the guid for a device

115 New Member
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?
Apr 14 '08 #1
3 3218
RedSon
5,000 Recognized Expert Expert
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.
Apr 16 '08 #2
ShadowLocke
115 New Member
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 Recognized Expert Expert
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
15625
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 not be used. However, every article strongly implies, if it does not state it outright, that GUID's are always unique. My question is this, what...
4
10235
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 @@Identity"; // the auto-number fiels int iId = (int)myCommand.ExecuteScalar();
1
5861
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# example, but it doesn't work on the 2002 or 2003 emulator. Ok, so I have 15 PDA units going into rollout, I want to be able to identify
1
5448
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 which implements our plug-in base class (which really is a default implementation of a interface IPlugin we created) The plug-in class looks like...
2
16166
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 element for each item node in my feed. Some items do not have the "link" node because the description element is the content. So using the "link" as the...
5
2565
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 from happening and redirect to the homepage. Thanks in advance!
0
1938
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 sync this i have set-up the connection point as in the following function. I could able to get the events only when the user double cliks a folder...
2
5675
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 devices connected. LPGUID guid; HidD_GetHidGuid(guid); HDEVINFO hDevInfo; hDevInfo = SetupDiGetClassDevs(guid,NULL,NULL,DIGCF_PRESENT | ...
5
7520
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 "デスクトップ". I want to get the this displayed name of a special folder but I can't find a suitable method. Environment.GetFolderPath() is to get the path not the name. There's no way provided the .NET BCL?...
0
7633
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8149
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6323
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5247
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3681
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.