PowerClearRequest function (winbase.h)
Decrements the count of power requests of the specified type for a power request object.
Syntax
BOOL PowerClearRequest(
[in] HANDLE PowerRequest,
[in] POWER_REQUEST_TYPE RequestType
);
Parameters
[in] PowerRequest
A handle to a power request object.
[in] RequestType
The power request type to be decremented. This parameter can be one of the following values.
Return value
If the function succeeds, it returns a nonzero value.
If the function fails, it returns zero. To get extended error information, call GetLastError.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | winbase.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for