The DeregisterDevice function deregisters a registered device.
BOOL DeregisterDevice(Handle hDevice);
Header file: | Winbase.h |
Platforms: | H/PC |
Versions: | 1.0 and later |
TRUE if successful; otherwise, FALSE.
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.