Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

HellRaider

Getting the HD serial number [OT]

This topic is 6717 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hiya, I'm not sure if I should be posting this message here, but here we go: How can I extract the serial number of the HD from which my program is running? Some friends of mine have done it using Assembly, but I'd like to do it using C++. Thanks in advance! Edited by - HellRaider on 6/22/00 8:08:23 PM

Share this post


Link to post
Share on other sites
Advertisement
Hi!

Here is the small piece of code to get the HDD s/n

DWORD dwSerial = 0;
GetVolumeInformation("C:\\",NULL,0,&dwSerial,NULL,NULL,NULL,0);

The HDD s/n is stored in dwSerial, of course


I hope it will help you



BugKiller
www.bugkiller.net

Share this post


Link to post
Share on other sites
That works of course, if you want the sissy way out

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

Share this post


Link to post
Share on other sites
Then, by all means, please enlighten all of us at GameDev and show us the "manly" way to retrieve the hard drive serial number.

Share this post


Link to post
Share on other sites
Well, it was a light hearted joke, but the manly way would be to go low level and do all thw work yourself.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Well, are you manly or not?!? Show us all how right now to prove your manhood...

Share this post


Link to post
Share on other sites
Hmm...
I guess he probably doesn''t know how to but if he does, does it make the rest of us sissies?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!