detecting cd or dvd in disk drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manontheedge
    New Member
    • Oct 2006
    • 175

    detecting cd or dvd in disk drive

    I'm trying to come up with some code to detect whether a disk drive is either empty, has a CD, or has a DVD in it. I have had no luck finding anything from searching the Internet. I have found things like "GetLogicalDriv es()" which will tell you what kind of drives are hooked up to the computer, along with other functions to get information about a drive, but nothing that will tell you about the disk ( or if there's not a disk ) in the drive. Anyone have any ideas?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Start your research here:

    Windows Driver Kit (WDK) 10 is integrated with Microsoft Visual Studio and Debugging Tools for Windows. This integrated environment gives you the tools you need to develop, build, package, deploy, test, and debug Windows drivers. WDK includes templates for several technologies and driver models, including Windows Driver Frameworks (WDF), Universal Serial Bus (USB), print, networking, and file system filters.


    You should be able to test for an I/O control code to detect this.

    Comment

    Working...