The following table summarizes the messages that correspond to the required command messages an application can send to your device driver. Your device driver must support all of these command messages.
MCI Message | Description |
---|---|
DRV_CLOSE (MCI_CLOSE_DRIVER) | Closes the device. MCI translates the MCI_CLOSE sent by an application into the MCI_CLOSE DRIVER and DRV_CLOSE messages it sends to your device driver. |
DRV_OPEN (MCI_OPEN_DRIVER) | Initializes the device. MCI translates the MCI_OPEN message sent by an application into the DRV_OPEN and MCI_OPEN_DRIVER messages it sends to your device driver. |
MCI_GETDEVCAPS | Obtains information about the capabilities of the device. |
MCI_INFO | Obtains information from a device driver. |
MCI_STATUS | Returns status information from the device driver. |
The following table identifies the flags and structures of the required MCI command messages:
MCI Command | Command Flags | Structure |
---|---|---|
DRV_CLOSE | ||
DRV_OPEN | MCI_OPEN_DRV_PARMS | |
MCI_CLOSE_DRIVER | MCI_NOTIFY
MCI_WAIT MCI_TEST |
MCI_GENERIC_PARMS |
MCI_GETDEVCAPS | MCI_GETDEVCAPS_ITEM
MCI_NOTIFY MCI_WAIT MCI_TEST |
MCI_GETDEVCAPS_PARMS |
MCI_INFO | MCI_INFO_PRODUCT
MCI_WAIT MCI_NOTIFY MCI_TEST |
MCI_INFO_PARMS |
MCI_OPEN_DRIVER | MCI_OPEN_ALIAS
MCI_OPEN_ELEMENT MCI_OPEN_ELEMENT_ID MCI_OPEN_SHAREABLE MCI_OPEN_TYPE MCI_OPEN_TYPE_ID MCI_NOTIFY MCI_WAIT MCI_TEST |
MCI_OPEN_PARMS
MCI_ANIM_OPEN_PARMS MCI_OVLY_OPEN_PARMS MCI_WAVE_OPEN_PARMS |
MCI_STATUS | MCI_STATUS_ITEM
MCI_STATUS_START MCI_NOTIFY MCI_WAIT MCI_TEST |
MCI_STATUS_PARMS |
Your device driver might create extended commands by adding new flags and structure members to those already defined. When you extend a command message, your device driver must still support the required flags and members.