DRV_CLOSE

The DRV_CLOSE message requests a user-mode multimedia driver to close the specified driver instance.

Parameters

dwDriverID

Driver instance identifier. This is the value returned by the driver in response to the DRV_OPEN message.

hDriver

Driver handle.

uMsg

DRV_CLOSE

lParam1

Contains the lParam1 parameter from the CloseDriver function. Currently not used. Set to zero.

lParam2

Contains the lParam2 parameter from the CloseDriver function. Currently not used. Set to zero.

Return Value

The driver should return a nonzero value if the operation succeeds. Otherwise it should return zero.

Comments

The DRV_CLOSE message is one of the standard driver messages. A client sends the message by calling the driver's DriverProc entry point, passing the specified parameter values.

When a driver receives a DRV_CLOSE message, it should close the specified driver instance. Other driver instances might still be open.