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
9d77624d
Commit
9d77624d
authored
Oct 15, 2021
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powrprof: Add PowerRegisterSuspendResumeNotification stub.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51d606fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
api-ms-win-power-base-l1-1-0.spec
...s-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
+1
-1
powrprof.c
dlls/powrprof/powrprof.c
+6
-0
powrprof.spec
dlls/powrprof/powrprof.spec
+1
-0
powrprof.h
include/powrprof.h
+2
-0
No files found.
dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
View file @
9d77624d
@ stdcall CallNtPowerInformation(long ptr long ptr long) powrprof.CallNtPowerInformation
@ stdcall GetPwrCapabilities(ptr) powrprof.GetPwrCapabilities
@ stdcall PowerDeterminePlatformRoleEx(long) powrprof.PowerDeterminePlatformRoleEx
@ st
ub
PowerRegisterSuspendResumeNotification
@ st
dcall PowerRegisterSuspendResumeNotification(long ptr ptr) powrprof.
PowerRegisterSuspendResumeNotification
@ stub PowerUnregisterSuspendResumeNotification
dlls/powrprof/powrprof.c
View file @
9d77624d
...
...
@@ -330,6 +330,12 @@ DWORD WINAPI PowerEnumerate(HKEY key, const GUID *scheme, const GUID *subgroup,
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
DWORD
WINAPI
PowerRegisterSuspendResumeNotification
(
DWORD
flags
,
HANDLE
recipient
,
PHPOWERNOTIFY
handle
)
{
FIXME
(
"(0x%08x,%p,%p) stub!
\n
"
,
flags
,
recipient
,
handle
);
return
ERROR_SUCCESS
;
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
switch
(
fdwReason
)
{
...
...
dlls/powrprof/powrprof.spec
View file @
9d77624d
...
...
@@ -17,6 +17,7 @@
@ stdcall PowerSetActiveScheme (ptr ptr)
@ stdcall PowerReadDCValue (ptr ptr ptr ptr ptr ptr ptr)
@ stdcall PowerReadFriendlyName (ptr ptr ptr ptr ptr ptr)
@ stdcall PowerRegisterSuspendResumeNotification(long ptr ptr)
@ stdcall ReadGlobalPwrPolicy (ptr)
@ stdcall ReadProcessorPwrScheme (long ptr)
@ stdcall ReadPwrScheme (long ptr)
...
...
include/powrprof.h
View file @
9d77624d
...
...
@@ -145,6 +145,7 @@ extern "C" {
#endif
typedef
BOOLEAN
(
CALLBACK
*
PWRSCHEMESENUMPROC
)(
UINT
,
DWORD
,
LPWSTR
,
DWORD
,
LPWSTR
,
PPOWER_POLICY
,
LPARAM
);
typedef
PVOID
HPOWERNOTIFY
,
*
PHPOWERNOTIFY
;
NTSTATUS
WINAPI
CallNtPowerInformation
(
POWER_INFORMATION_LEVEL
,
PVOID
,
ULONG
,
PVOID
,
ULONG
);
BOOLEAN
WINAPI
CanUserWritePwrScheme
(
VOID
);
...
...
@@ -159,6 +160,7 @@ BOOLEAN WINAPI IsPwrHibernateAllowed(VOID);
BOOLEAN
WINAPI
IsPwrShutdownAllowed
(
VOID
);
BOOLEAN
WINAPI
IsPwrSuspendAllowed
(
VOID
);
DWORD
WINAPI
PowerEnumerate
(
HKEY
,
const
GUID
*
,
const
GUID
*
,
POWER_DATA_ACCESSOR
,
ULONG
,
UCHAR
*
,
DWORD
*
);
DWORD
WINAPI
PowerRegisterSuspendResumeNotification
(
DWORD
,
HANDLE
,
PHPOWERNOTIFY
);
BOOLEAN
WINAPI
ReadGlobalPwrPolicy
(
PGLOBAL_POWER_POLICY
);
BOOLEAN
WINAPI
ReadProcessorPwrScheme
(
UINT
,
PMACHINE_PROCESSOR_POWER_POLICY
);
BOOLEAN
WINAPI
ReadPwrScheme
(
UINT
,
PPOWER_POLICY
);
...
...
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