Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
25505995
Commit
25505995
authored
Apr 07, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add stub for PowerSetRequest.
parent
966dd507
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
powermgnt.c
dlls/kernel32/powermgnt.c
+11
-0
winbase.h
include/winbase.h
+6
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
25505995
...
...
@@ -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
...
...
dlls/kernel32/powermgnt.c
View file @
25505995
...
...
@@ -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
;
}
include/winbase.h
View file @
25505995
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment