CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Location
    Romania
    Posts
    3

    Angry physical hd serialnumber

    Hi,

    How can I get the harddisk physical serial number on all OS's?

  2. #2
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    I doubt that there is a uniform method to do that on ALL operating systems. Standard C++ knows nothing about harddisks and their serial numbers, so an approach from this side is excluded.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  3. #3
    Join Date
    Apr 2003
    Location
    Romania
    Posts
    3
    But only on Win98 or higher and using WINAPI or anything else?

  4. #4
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    Have a look at DeviceIoControl() and the provided examples in MSDN.
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured