Results 1 to 2 of 2

Thread: How can I use API to...

  1. #1

    Thread Starter
    Addicted Member killer_cobra's Avatar
    Join Date
    Jun 2001
    Location
    Lost in space
    Posts
    131

    How can I use API to...

    Hi,
    Just wondering how I can use API to find and return the drive letter of the default CD-ROM Drive on a computer?

    Any help is greatly appreciated,

    Scott

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You can use the GetLogicalDrives API to get all drives. Then use the GetDriveType API with one of the following flags
    DRIVE_UNKNOWN The drive type cannot be determined.
    DRIVE_NO_ROOT_DIR The root directory does not exist.
    DRIVE_REMOVABLE The disk can be removed from the drive.
    DRIVE_FIXED The disk cannot be removed from the drive.
    DRIVE_REMOTE The drive is a remote (network) drive.
    DRIVE_CDROM The drive is a CD-ROM drive.
    DRIVE_RAMDISK The drive is a RAM disk.

    to see which drive is a CD_ROM.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

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