mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 17:04:07 +00:00
kernel32: Add stub for PowerSetRequest.
This commit is contained in:
parent
966dd5074d
commit
25505995af
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue