Querying a drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony

    #1

    Querying a drive

    How can I tell if a drive is a CD drive or not?
    I have directory information for the drive, but cannot see how to determine
    if it is a cd drive or not.

    Tony


  • Yura2000

    #2
    RE: Querying a drive

    Use PInvoke and GetDriveType function.

    Comment

    • Tony

      #3
      Re: Querying a drive

      Thanks, that got it working so I now know what the drive type is.
      Is there a way to query the drive to see if it contains media, and one step
      further, whether it is writeable.
      This applies for any removeable drive, and CD drives.

      Thanks

      Tony

      "Yura2000" <yurig@clal-ins.co.il> wrote in message
      news:48306D66-C5CF-4C4C-AE55-D87E2B308787@mi crosoft.com...[color=blue]
      > Use PInvoke and GetDriveType function.[/color]


      Comment

      Working...