Share via


HWPowerOff (Windows CE 5.0)

Send Feedback

This function notifies the platform-dependent driver that the hardware platform is about to enter suspend mode. The model device driver (MDD) calls this function.

BOOL HWPowerOff(PVOIDpContext);

Parameters

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

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function is called when the device is turned off. Because this call is without a standard process and thread context, be careful when writing this function. Do not use any DLLs or system calls, such as Sleep. This function saves its state to local storage, and then returns. As with all power-down handlers, this function cannot call functions in other DLLs, memory allocators, or debugging output functions, nor can it perform actions that could cause a page fault.

This function supports the implementation of the lower layers of serial port drivers.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Serhw.h.

See Also

HWInit

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.