get serial hard drive

aallal's Avatar, Join Date: Nov 2008
Newbie Member
Hello,

I found the following code writing in C++ on forum.sysinternals.com/forum_posts.asp?TID=6643&PN=2, it can get the serial number on a hard drive, but I got problem to compile under MS VS 6, I have serveral unknow varaiables like "error C2065: 'VOLUME_DISK_EXTENTS' : undeclared identifier".

I think it missing files ". h" to include in program !

Thanks in advancve for your help .

Amen.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
No. You are probably using the old compiler or linking does not seem to be working. Define them as your own by taking the values and that should be fine for MACROS but if its some function then probably you need to look at other things.
0
aallal's Avatar, Join Date: Nov 2008
Newbie Member
I do not understand you very well, I am a developer Delphi, I do not know well the C ++ and MS VS.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Just Hit F12 on the macro and see what happens. If its defined and then also getting the error then define it yourself from here