This function is called by the MDD layer to de-initialize the hardware when a device driver is unloaded.

BOOL HWDeinit(
PVOID pContext );


  • pContext
    Pointer to a context structure returned by the HWInit function that contains implementation-specific data describing the hardware device.

Return Values

TRUE indicates success. FALSE indicates failure.


This function is called when the device is no longer needed. It is not normally called for built-in devices. Rather, it is called for PC Card devices when the card is removed.

This function supports the implementation of the PDDs of serial port drivers.


Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Serhw.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also


 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.