This function is called by the Device Manager to de-initialize a device.
BOOL XXX_Deinit( DWORD hDeviceContext );
TRUE indicates success. FALSE indicates failure.
When the user stops using a device, such as when a PC Card is removed from its socket, the Device Manager calls this function. This function is not called by applications. The Device Manager calls a driver’s XXX_Deinit function as a result of a call to the DeregisterDevice function. Your stream interface driver should free any resources it has allocated and terminate.