kernel32: Add stub for PowerSetRequest.

This commit is contained in:
Sebastian Lackner 2015-04-07 03:18:58 +02:00 committed by Alexandre Julliard
parent 966dd5074d
commit 25505995af
3 changed files with 18 additions and 1 deletions

View File

@ -1136,7 +1136,7 @@
@ stdcall PostQueuedCompletionStatus(long long ptr ptr)
# @ stub PowerClearRequest
@ stdcall PowerCreateRequest(ptr)
# @ stub PowerSetRequest
@ stdcall PowerSetRequest(long long)
@ stdcall PrepareTape(ptr long long)
@ stub PrivCopyFileExW
@ stub PrivMoveFileIdentityW

View File

@ -111,3 +111,14 @@ HANDLE WINAPI PowerCreateRequest(REASON_CONTEXT *context)
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return INVALID_HANDLE_VALUE;
}
/***********************************************************************
* PowerSetRequest (KERNEL32.@)
*/
BOOL WINAPI PowerSetRequest(HANDLE request, POWER_REQUEST_TYPE type)
{
FIXME("(%p, %u): stub\n", request, type);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}

View File

@ -865,6 +865,12 @@ typedef struct _SYSTEM_POWER_STATUS
DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
typedef enum _POWER_REQUEST_TYPE
{
PowerRequestDisplayRequired,
PowerRequestSystemRequired,
PowerRequestAwayModeRequired
} POWER_REQUEST_TYPE, *PPOWER_REQUEST_TYPE;
typedef struct _SYSTEM_INFO
{