The DRV_FREE message requests a user-mode multimedia driver to perform pre-unload operations.
The driver should return a nonzero value if the operation succeeds. Otherwise it should return zero.
The DRV_FREE 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.
User-mode drivers receive the DRV_FREE message just prior to being freed (unloaded) from memory. It is the last message a driver receives before being unloaded. The driver should release acquired system resources.
Drivers receive DRV_CLOSE and DRV_DISABLE messages before receiving DRV_FREE.