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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help obtaining system information

Status
Not open for further replies.

qednick

Programmer
Joined
Jul 26, 2002
Messages
516
Location
US
Does anybody know the best way to obtain information regarding the user's PC/Windows set-up. Also, is there any 'unique' identifyer I can access in my code?? When I say unique, I mean something like the Windows installation serial number or something like that.
I'm curious from a piracy-prevention context. Currently, my programs generate a unique license number when first run by a user on a particular PC. However, if the user copies a 'registered' copy of the software to a friend's PC (for example) they are getting 'free' software!
If I could somehow save some machine/OS specific information along with the license number so that the software only runs on that single machine, that would be great.
Does anyone know the best way to do this?

FYI: I've been looking at functions such as:

GetCurrentHWProfile()

and

SystemParametersInfo()
 
MSDN

The GetSystemInfo function returns information about the current system.

VOID GetSystemInfo(
LPSYSTEM_INFO lpSystemInfo // address of system information
// structure
);


Cheers, Ian
 
Ahhhhhh! Thanks for that Ian. Must've missed that function (couldn't see the wood for the trees!).

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top