Share via


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.

Syntax

BOOL DeactivateDevice(
  HANDLE hDevice
);

Parameters

Return Value

Nonzero indicates success. Zero indicates failure.

Requirements

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

See Also

Reference

ActivateDevice
ActivateDeviceEx

Concepts

Device Interface Notifications