Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get system unique id using vc++ code?

I'm new to vc++ language so I want to get system unique id using vc++ language. so please can anybody help me in coding how to get system unique id?


2 Answers

You want to look at CoCreateGuid (http://msdn.microsoft.com/en-us/library/ms688568(VS.85).aspx).

like image 178
Blindy Avatar answered Feb 03 '26 02:02

Blindy


Why not use the MAC address from the network card. This should be unique but will change if your change the network card.

See the api GetAdaptersInfo. reference http://msdn.microsoft.com/en-us/library/aa365917(VS.85).aspx

like image 41
Rich Avatar answered Feb 03 '26 01:02

Rich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!