XXX_Deinit

This function is called by the Device Manager to de-initialize a device.

Syntax

BOOL XXX_Deinit( DWORD hDeviceContext );

Parameters

hDeviceContext
Handle to the device context. The XXX_Init function creates and returns this identifier.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

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.