473,396 Members | 1,987 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,396 software developers and data experts.

Which device in PC has Unique ID in the World?

Mat
-Network Card--> MAC address

Next?
Nov 20 '05 #1
3 1498
hard drive serial numbers always work well ...

you can also get the unique id of the processor for later chips.

"Mat" <re**********@fuckSpam.COM> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
-Network Card--> MAC address

Next?

Nov 20 '05 #2
Hi,

Here are some ideas. Add a reference to system.management.dll

Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher
Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_MotherboardDevice")

moReturn = moSearch.Get
For Each mo In moReturn
Dim strOut As String = String.Format(" {0} - {1} ",
mo("Name"), mo("PNPDeviceID"))
Debug.WriteLine(strout)
Next
moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_LogicalDisk")

moReturn = moSearch.Get
For Each mo In moReturn
Dim VolumeName As String = mo("Name")
Dim SerialNumber As String = mo("Volumeserialnumber")
Dim strOut As String = String.Format("{0} - {1}",
VolumeName, SerialNumber)
Debug.WriteLine(strOut)
Next

moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_Processor")

moReturn = moSearch.Get
For Each mo In moReturn
Dim strout As String = String.Format("{0} - {1}",
mo("Name"), mo("ProcessorID"))
Debug.WriteLine(strout)
Next

Ken
-------------------

"Mat" <re**********@fuckSpam.COM> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl:
-Network Card--> MAC address

Next?


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004
Nov 20 '05 #3
Mat
Thank you !
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OA****************@TK2MSFTNGP11.phx.gbl...
Hi,

Here are some ideas. Add a reference to system.management.dll

Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher
Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_MotherboardDevice")

moReturn = moSearch.Get
For Each mo In moReturn
Dim strOut As String = String.Format(" {0} - {1} ",
mo("Name"), mo("PNPDeviceID"))
Debug.WriteLine(strout)
Next
moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_LogicalDisk")

moReturn = moSearch.Get
For Each mo In moReturn
Dim VolumeName As String = mo("Name")
Dim SerialNumber As String = mo("Volumeserialnumber")
Dim strOut As String = String.Format("{0} - {1}",
VolumeName, SerialNumber)
Debug.WriteLine(strOut)
Next

moSearch = New Management.ManagementObjectSearcher("Select *
from Win32_Processor")

moReturn = moSearch.Get
For Each mo In moReturn
Dim strout As String = String.Format("{0} - {1}",
mo("Name"), mo("ProcessorID"))
Debug.WriteLine(strout)
Next

Ken
-------------------

"Mat" <re**********@fuckSpam.COM> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl:
-Network Card--> MAC address

Next?


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave | last post by:
Can you create a unique constraint on multiple columns, or does it have to be implemented as a unique index? If possible can someone please post some sample code? Thanks,
22
by: Jan Richter | last post by:
Hi there, the Code below shows DJBs own implementation of strlen (str_len): unsigned int str_len(char *s) { register char *t; t = s; for (;;) { if (!*t) return t - s; ++t;
2
by: Rosalind Chen | last post by:
Hi, This is the first time that I use Visual Studio .NET. And I stucked in this first problem. - I created a SDK from Platform builder 4.2 that includes .Net Compact Framework. - installed...
4
by: nondisclosure007 | last post by:
Hello all! I have something rather unique. I'm creating a cookie for customization for a webpage. But I want to tie the user to a machine (not friendly, I know, but for what I'm doing, it's...
1
by: Brad Eck | last post by:
In Access, newID returns a unique for the table. In SQL Server, newid() returns a GUID - unique in the world. I do not need or desire that complexity. Is there a way to get a simple unique int on...
2
by: smachin1000 | last post by:
Hi All, In the sample schema & document below, I'd like the attribute "name" to be unique for all function elements under function_list. The tools I'm using (XML Spy and xmllint) all validate...
1
by: SammyBar | last post by:
Hi all, I'm having troubles with a Symbol 9000 device (Compact Framework v 1.1) when activating the barcode scanner from a window. The problem is related to the Activated event of the form which...
6
by: Paul Bromley | last post by:
Ok - I have given up on trying to find the active IP address for a given PC. For licensing purposes I need to retrive a unique identifier from the PC that the program is installed on. The Hard disk...
2
by: jsr.ajay | last post by:
Hello, sir I my self ajay choudhary .I am a C# .Net programmer . I am developing an asp.net application that is using in Scanner device . but how can write the code i don't know. Explanation...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.