get serial hard drive

Discussion in 'C' started by aallal, Nov 18, 2008.

  1. aallal

    aallal New Member

    Joined:
    Nov 18, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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.
     
  3. aallal

    aallal New Member

    Joined:
    Nov 18, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I do not understand you very well, I am a developer Delphi, I do not know well the C ++ and MS VS.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice