Retreiving drive geometry using Win32 API
Results 1 to 7 of 7

Thread: Retreiving drive geometry using Win32 API

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    3

    Post Retreiving drive geometry using Win32 API

    Hi All,

    I'm trying desperately to find functions to retreive the _physical_ geometry from a disk under Win9x and WinNT/Win2k

    Anyone got any ideas? GetDiskFreeSpaceEx is not an option - that gives information on a _logical_ drive

    Thanks!

  2. #2
    Registered User
    Join Date
    Aug 2000
    Location
    Lake Orion, MI
    Posts
    241

    Post

    What language are you using? And do you want the drives geometry, or what the bios has it set as. These can and often are different.

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    3

    Post

    I'm using MS Visual C++ (6.0sp5) and would like to retreive the information how just like in System Information (msinfo32.exe)

    Thanks!

  4. #4
    Registered User
    Join Date
    Aug 2000
    Location
    Lake Orion, MI
    Posts
    241

    Post

    I'm not a C++ guru, but I'll see if I can find anything tonight.

  5. #5
    Junior Member
    Join Date
    Jun 2001
    Posts
    3

    Unhappy

    thanks alot! I'm not a C guru as well (I have sleepless night because of these pointers to references to strings ... <IMG SRC="smilies/mad.gif" border="0"> )

  6. #6
    Registered User Deity's Avatar
    Join Date
    Mar 2001
    Location
    Elsewhere
    Posts
    1,412

    Post

    LOL! I feel your pain. We've all been at that place in our programming career. I'll see if I can come up with any info for you as well.

  7. #7
    Registered User Deity's Avatar
    Join Date
    Mar 2001
    Location
    Elsewhere
    Posts
    1,412

    Post

    I found this on MSDN. I assume you've seen it too... http://msdn.microsoft.com/library/ps...lesio_4lf7.htm

    I believe that System Information collects its info from several of these functions, not just one. From what I see, GetDiskFreeSpace, GetDiskFreeSpaceEx, and GetDriveType are the functions used.

    This is another list of functions used for System Information... http://msdn.microsoft.com/library/ps...sinfo_8stv.htm

    I'll keep searching though, might be able to come up with more.

Bookmarks

Posting Permissions

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