Share via


DeregisterDevice

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/28/2008

This function has been deprecated. Usage is discouraged; use DeactivateDevice instead.

Note

This function is obsolete as of Windows Embedded CE 6.0.

Syntax

BOOL DeregisterDevice(
  Handle hDevice
);

Parameters

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

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Aa929262.collapse(en-US,WinEmbedded.60).gifFor All Platforms

The Device Manager calls this function if the user removes a device from the system or if the system is shutting down.

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.

Aa929262.collapse(en-US,WinEmbedded.60).gifFor Windows Embedded CE

This function calls the device driver's XXX_Deinit (Device Manager) function.**

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

DeactivateDevice
RegisterDevice
XXX_Deinit (Device Manager)