kennyg Posted August 13, 2009 Posted August 13, 2009 I'm writing a program, and I dont' know how to get the open or closed status of a CD drive. I know it's possible for sure as in ImgBurn it gives you a nice detailed status but I only need open close. Does anybody know what DLL this function is provided and where the documentation for it would be? I checked out the win32 api but it seems more specific than that. Thank you for any replies
LIGHTNING UK! Posted August 13, 2009 Posted August 13, 2009 I use the 'TEST UNIT READY' command (see the MMC specs) and then simply display the sense area data if the drive comes back saying 'No, I'm not ready'. If it's ready then there must be a disc in the drive.
Recommended Posts