DeregisterDevice

This function deregisters a registered device.

Syntax

BOOL DeregisterDevice( Handle hDevice );

Parameters

hDevice
Handle to a registered device returned from the RegisterDevice function.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The Device Manager calls this function when a device is removed from the system or if the system is being shut down. This function calls the device driver’s XXX_Deinit function.