Nikolay Sivov : powrprof: Add PowerDeterminePlatformRoleEx() stub.
Alexandre Julliard
julliard at winehq.org
Mon Oct 22 15:38:44 CDT 2018
Module: wine
Branch: master
Commit: 0ba95f333f7cd4ab2d97575115e8507881234e6f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0ba95f333f7cd4ab2d97575115e8507881234e6f
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 22 11:51:20 2018 +0300
powrprof: Add PowerDeterminePlatformRoleEx() stub.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec | 2 +-
dlls/powrprof/powrprof.c | 6 ++++++
dlls/powrprof/powrprof.spec | 1 +
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec b/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
index 6591096..e51426c 100644
--- a/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
+++ b/dlls/api-ms-win-power-base-l1-1-0/api-ms-win-power-base-l1-1-0.spec
@@ -1,5 +1,5 @@
@ stdcall CallNtPowerInformation(long ptr long ptr long) powrprof.CallNtPowerInformation
@ stdcall GetPwrCapabilities(ptr) powrprof.GetPwrCapabilities
-@ stub PowerDeterminePlatformRoleEx
+@ stdcall PowerDeterminePlatformRoleEx(long) powrprof.PowerDeterminePlatformRoleEx
@ stub PowerRegisterSuspendResumeNotification
@ stub PowerUnregisterSuspendResumeNotification
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c
index 1597d96..d870fe2 100644
--- a/dlls/powrprof/powrprof.c
+++ b/dlls/powrprof/powrprof.c
@@ -321,6 +321,12 @@ POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void)
return PlatformRoleDesktop;
}
+POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRoleEx(ULONG version)
+{
+ FIXME("%u stub.\n", version);
+ return PlatformRoleDesktop;
+}
+
DWORD WINAPI PowerEnumerate(HKEY key, const GUID *scheme, const GUID *subgroup, POWER_DATA_ACCESSOR flags,
ULONG index, UCHAR *buffer, DWORD *buffer_size)
{
diff --git a/dlls/powrprof/powrprof.spec b/dlls/powrprof/powrprof.spec
index a9e337a..169219a 100644
--- a/dlls/powrprof/powrprof.spec
+++ b/dlls/powrprof/powrprof.spec
@@ -11,6 +11,7 @@
@ stdcall IsPwrShutdownAllowed ()
@ stdcall IsPwrSuspendAllowed ()
@ stdcall PowerDeterminePlatformRole ()
+@ stdcall PowerDeterminePlatformRoleEx(long)
@ stdcall PowerEnumerate(long ptr ptr long long ptr ptr)
@ stdcall PowerGetActiveScheme (ptr ptr)
@ stdcall PowerSetActiveScheme (ptr ptr)
More information about the wine-cvs
mailing list