XXX_Deinit (Device Manager) (Windows CE 5.0)
This function uninitializes a device.
BOOL XXX_Deinit( DWORD hDeviceContext );
- [in] Handle to the device context. The XXX_Init (Device Manager) function creates and returns this identifier.
TRUE indicates success. FALSE indicates failure.
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.
OS Versions: Windows CE 1.0 and later.
Header: Developer implemented.
Link Library: Developer implemented.
Send Feedback on this topic to the authors