WIDM_CLOSE

See also WIDM_OPEN

Sent to a waveform input device driver to deallocate a specified device.

MMSYSERR_NOTENABLED

The driver failed to load or initialize.

WAVERR_STILLPLAYING

There are still buffers in the queue.


DWORD dwParam1

Unused.

DWORD dwParam2

Unused.

If there are input buffers that haven't been returned to the application, the driver should fail the close operation by returning a WAVERR_STILLPLAYING error. If the close operation is successful, the driver should use the DriverCallback function to send the client a WIM_CLOSE message.