DeregisterDevice

The DeregisterDevice function deregisters a registered device.

Syntax

BOOL DeregisterDevice(Handle hDevice);

At a Glance

Header file: Winbase.h
Platforms: H/PC
Versions: 1.0 and later

Parameters

hDevice
Handle to a registered device returned from RegisterDevice.

Return Values

TRUE if successful; otherwise, FALSE.

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