DeregisterDevice

This function deregisters a registered device.

At a Glance

Header file: Winbase.h
Versions: 1.0 and later

Syntax

BOOL DeregisterDevice(Handle hDevice);

Parameters

hDevice

Handle to a registered device returned from RegisterDevice.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The DeregisterDevice function can be used if a device is removed from the system or is being shut down. An example would be:

DeregisterDevice(h1);

where h1 was returned from a call to RegisterDevice.

See Also

RegisterDevice