The MXDM_CLOSE message requests a user-mode mixer driver to close the specified device instance that was opened with an MXDM_OPEN message.
The driver should return MMSYSERR_NOERROR if the operation succeeds. Otherwise it should return one of the MMSYSERR or MIXERR error codes defined in mmsystem.h. See mixerClose return values in the Win32 SDK.
A client sends the MXDM_CLOSE message by calling the user-mode driver’s mxdMessage entry point, passing the specified parameters.
Often, closing a driver instance simply involves removing a client-specific data structure.