Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Embedded
Windows Embedded CE
Windows CE 5.0
Device Manager
 DeactivateDevice

  Switch on low bandwidth view
Platform Builder for Microsoft Windows CE 5.0
DeactivateDevice
Send Feedback

This function unloads the driver for the specified device and deletes the active key of the device from the registry.

BOOL DeactivateDevice(
  HANDLE hDevice
);

Parameters

hDevice
[in] Handle to an active device. The ActivateDevice and ActivateDeviceEx functions return this value.

Return Values

Nonzero indicates success. Zero indicates failure.

Requirements

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

See Also

Device Interface Notifications | ActivateDevice | ActivateDeviceEx


Send Feedback on this topic to the authors

Feedback FAQs


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker