Announcement

Collapse
No announcement yet.

Disk ID

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disk ID

    Is there standard syntax for recovering a drive ID from Windows?

    Searching Win32API.inc has been unproductive so far.

    Thanks.

  • #2
    Given what, wanting what?

    Given a not-fully-qualified file name, get the drive letter whereon it resides?

    Given a drive letter, get the [computername\\]volume name?

    Given a computer name, find all drive letters available?
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      FWIW, searching win32API.INC will RARELY tell you how to get some piece of information.. it will tell you how to call the WinAPI function designed to do so - assuming you already know the name of that function.

      Searching Google(r) will generally be more productive than searching any of the Windows' header files.

      If you don't have a WinAPI reference, you can use the online version for free. You can start at http://msdn.microsoft.com/library/default.asp
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Hey Bob,

        This may help... Peter Lameijn - Disk info
        Last edited by Pierre Bellisle; 28 Oct 2007, 11:54 AM.

        Comment


        • #5
          In Peter's program, the WINMAIN function will need to have an added BYVAL in tthe parameters here:
          FUNCTION WINMAIN ... BYVAL CmdLine AS ASCIIZ PTR, ...

          Then it should compile and run in the current compilers.
          Rick Angell

          Comment

          Working...
          X