Compartilhar via


XXX_Deinit (Device Manager) (Windows CE 5.0)

Send Feedback

This function uninitializes a device.

BOOLXXX_Deinit(DWORD hDeviceContext);

Parameters

  • hDeviceContext
    [in] Handle to the device context. The XXX_Init (Device Manager) function creates and returns this identifier.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

When the user stops using a device, such as when a PC Card is removed from its socket, Device Manager calls this function. Applications do not call this function. Device Manager calls the XXX_Deinit driver function as a result of a call to the DeactivateDevice function. Your stream interface driver should free any resources it has allocated, and then terminate.

Device Manager uses the XXX prefix. When implementing the stream interface, replace XXX with a prefix appropriate for your specific implementation or use undecorated entry point names in conjunction with DEVFLAGS_NAKEDENTRIES.For more information about other valid Flags values, see ActivateDeviceEx.

If you have threads blocked in your driver, resources associated with the handle or device instance might not be able to be released. To avoid this, implement the XXX_PreClose (Device Manager) and XXX_PreDeinit (Device Manager) entry points.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Developer implemented.
Link Library: Developer implemented.

See Also

Device File Names | ActivateDeviceEx | DeactivateDevice | XXX_Init (Device Manager) | XXX_PreDeinit (Device Manager)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.