Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Hard Disk serial number

Hard Disk serial number

Scheduled Pinned Locked Moved Hardware & Devices
c++tutorialquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijay_aroli
    wrote on last edited by
    #1

    hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

    R I D H 5 Replies Last reply
    0
    • V vijay_aroli

      hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

      R Offline
      R Offline
      RomTibi
      wrote on last edited by
      #2

      Try this link: http://www.codeguru.com/cpp/w-p/system/hardwareinformation/article.php/c2815/[^] I tested and it works. Good health and good luck.

      1 Reply Last reply
      0
      • V vijay_aroli

        hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

        I Offline
        I Offline
        Irangame
        wrote on last edited by
        #3

        Hi, I have this code but in Visual Basic. You can compile this code to dll and use it to C++. if you want this code send me an email : Irangame@gmail.com Good Luck.

        ---Mojtaba Ebrahimi--- Zehne Ziba Corporation

        1 Reply Last reply
        0
        • V vijay_aroli

          hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

          D Offline
          D Offline
          dannyjoe
          wrote on last edited by
          #4

          take a look at: ftp://ftp.dmares.com/pub/batch\_files/DISKNO.C it is something i have used. however, you have to compile it as a 16 bit DOS command line program. it should run under a Win98 DOS box. currently it only works on IDE chaing 0 and 1. if you have plugin cards like Promise cards, it is not set to those addresses. i got this code from a friend, don't totally understand it at this point. if you modify it to be more generic as to IDE drive number, i would appreciate the cleaned up code. it won't compile or work on W2k or XP. dmares@dmares.com

          1 Reply Last reply
          0
          • V vijay_aroli

            hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

            I Offline
            I Offline
            Irangame
            wrote on last edited by
            #5

            Hi friend, I reply your mail, but it delivery and faild. Please check your mail! I have a code in Visual Basic 6. It's work with Windows XP OS but i don't test it with Windows 98 OS. You can test it :D If it worked you can create a dll file in VB and use it on VC++. If it's worked notice me ;) *For testing exe file in win 98 you must install Visual Basic run times files. I uploaded this code for you. You can download it from below link. http://www.zehneziba.ir/download/Hard Disk Serial.zip Good Luck.

            ---Mojtaba Ebrahimi--- Zehne Ziba Corporation

            1 Reply Last reply
            0
            • V vijay_aroli

              hello!! can anyone tell me how to get the Manufacturer's serial number (and not the volume number) of Hard disk using C++? i am trying to retrive the hard disk serial number while using Windows9X. i have seen a code which does the same thing, but it does not work for windows9X. can anyone give me any information about this?? thanks.. -vijay -vijay

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              It seems you need to WMI

              _**


              **_

              WhiteSky


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups