[Applies to UMDF 1.x only]
The OnDeinitialize method performs any operations that are necessary before a system unloads a driver.
- pWdfDriver [in]
A pointer to the IWDFDriver interface for the driver object that represents the driver that the system unloads.
The framework creates a new driver object for each driver that is loaded in the driver host process. When a driver is about to be unloaded from the host process, the framework calls OnDeinitialize to notify the driver of the departure and passes the IWDFDriver interface in the call. The system unloads the driver after OnDeinitialize returns.