Question: about hard drive serial numbers?

Discussion in 'Windows Vista Drivers' started by Beth Phillips, Nov 16, 2003.

  1. hello,

    Does anybody know if there API or COM objects available to access the serial
    number of hard drives? The volume management functions appear to be specific
    just for the label :-(

    thank you in advance.
    beth
     
    Beth Phillips, Nov 16, 2003
    #1
    1. Advertisements

  2. GetVolumeInformation() is just fine :)!!!
     
    Beth Phillips, Nov 16, 2003
    #2
    1. Advertisements

  3. It gives volume serial number, not hard drive serial number.
     
    Alexander Grigoriev, Nov 16, 2003
    #3
  4. Beth Phillips

    Marc Reinig Guest

    Use WMI and

    Win32_PhysicalMedia / SerialNumber.

    Marc Reinig
    System Solutions
     
    Marc Reinig, Nov 16, 2003
    #4
  5. Beth Phillips

    CheckAbdoul Guest

    CheckAbdoul, Nov 17, 2003
    #5
  6. |
    | On Sun, 16 Nov 2003 09:00:52 -0800, "Marc Reinig" <>
    | wrote:
    |
    | >Use WMI and
    | >
    | > Win32_PhysicalMedia / SerialNumber.
    | >
    |
    | So do you suppose this returns the page 80 or page 83 serial number,
    | and does it deal with the endless incompatibilities in drive vendor's
    | implementation of these pages?
    |
    | I'd use scsi pass through to fetch 80/83 directly, and then figure out
    | which to use based on dice rolling/coin flipping/heuristics/a-priori
    | knowledge/WAG etc.
    |

    How about using IOCTL_STORAGE_QUERY_PROPERTY instead?

    The StorageDeviceProperty will return the contents of page 80 and StorageDeviceIdProperty will get you the contents of page 83

    Thanks!
     
    Karan Mehra [MSFT], Nov 24, 2003
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.