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.
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.
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