ReleasePowerRequirement

This function requests that the Power Manager release a power requirement previously set with SetPowerRequirement. Applications and drivers should always explicitly release their power requirements as soon as they cease to be necessary.

DWORD ReleasePowerRequirement(
  HANDLE hPowerReq
);

Parameters

  • hPowerReq
    [in] Specifies a handle returned by a previous successful call to SetPowerRequirement.

Return Values

  • ERROR_SUCCESS
    Success.
  • ERROR_INVALID_HANDLE
    Invalid handle.
  • Win32 error code
    All other errors.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pm.h.
Link Library: Coredll.lib.

See Also

SetPowerRequirement

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.