The MCI_CLOSE_DRIVER message requests an MCI driver to close a driver instance that was previously opened with an MCI_OPEN_DRIVER message.
Parameters
dwDriverID
Driver instance identifier. This is the value returned by the driver in response to the DRV_OPEN message.
hDriver
Driver handle.
uMsg
MCI_CLOSE_DRIVER
lParam1
Contains the flags specified by the application, with the MCI_CLOSE command.
lParam2
Specifies a pointer to an MCI_GENERIC_PARMS structure, or to a customized structure.
Return Value
If the close operation succeeds, the driver returns zero. Otherwise, the driver returns one of tbe MCIERR error codes defined in mmsystem.h.
Comments
A client sends the message by calling the driver's DriverProc entry point, passing the specified parameters. When an application sends an MCI_CLOSE message, winmm.dll intercepts it and sends MCI_CLOSE_DRIVER to the driver.
See Also