DeregisterDevice (Windows CE 5.0)

Send Feedback

This function deregisters a registered device. DeactivateDevice supersedes this function.

BOOL DeregisterDevice(Handle hDevice);

Parameters

  • hDevice
    [in] Handle to a registered device returned from RegisterDevice.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

DeactivateDevice supersedes this function.

The Device Manager calls this function if the user removes a device from the system or if the system is shutting down. This function calls the device driver's XXX_Deinit (Device Manager) function.

You can use the DeregisterDevice function to indicate if the user has removed a device from the system or if the system has shut down.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

DeactivateDevice | RegisterDevice | XXX_Deinit (Device Manager)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.