There is one MS enumerate cdrom utility in the http://support.microsoft.com/kb/305184/en-us. We can learn something from this utility.
1. Win32 applications can use the SetupDixxx APIs to enumerate all of the devices that are available on a computer.
2. The EnumCD sample provided by means of this article does the following:
2. The EnumCD sample provided by means of this article does the following:
- Demonstrates SetupDixxx by enumerating all the CD drives regardless of their bus type.
- Obtains a handle to the device to send IOCTL commands to get the adapter and device properties.
- Uses SCSI pass-through commands to get the inquiry data and the drive capabilities.
沒有留言:
張貼留言