MXDM_CLOSE

The MXDM_CLOSE message requests a user-mode mixer driver to close the specified device instance that was opened with an MXDM_OPEN message.

Parameters

uDeviceId

Device identifier (0, 1, 2, and so on) for the target device.

uMsg

MXDM_CLOSE

dwUser

Instance identifier of instance to close.

lParam1

Not used.

lParam2

Not used.

Return Value

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.

Comments

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.