Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique Machine ID

Status
Not open for further replies.

ahoodin

Programmer
Jul 25, 2001
48
US
I want to create a file pref with 8 characters using a combination of mmdd and a unique code that identifies the pc. How do I do this? I was thinking about using a long file name with the Windows serial number and the date. Are there Any API calls I can use to grab the windows serial number or another unique machine specific ID? The Windows Serial number really cant be the best solution.

I am using Windows 2000 and 98 with Microsoft Visual C Version 6.0. I am writing C++ code.

Asher
 
You can use the APIs:
1. GetVolumeInformation to get the volume serial number
2. NetBios function to get the Ethernet address ot the network card, if you want to unique identify rhe computer over network.

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darkness...
 
Also, if it's a windows program, or such, you can use hardware identifiers in the regestry.
Regards,
AnthLOLny
----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top