Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

DeactivateDevice

Other versions of this page are also available for the following:
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

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


BOOL DeactivateDevice(
  HANDLE hDevice
);

hDevice

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

Nonzero indicates success. Zero indicates failure.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft