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


Page view tracker