Partager via


HWPowerOn (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

BOOL HWPowerOn(
  PVOID pContext 
);

Parameters

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

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function is called when the device enters a power-up state. 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 restores its state from local storage, and then returns.

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

Requirements

Header serhw.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Serial Port Driver PDD Functions
HWInit