[PATCH] powrprof: Added PowerDeterminePlatformRole() stub
Nikolay Sivov
nsivov at codeweavers.com
Sun Aug 7 12:29:22 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/powrprof/powrprof.c | 6 ++++++
dlls/powrprof/powrprof.spec | 1 +
include/powrprof.h | 3 +++
include/winnt.h | 13 +++++++++++++
4 files changed, 23 insertions(+)
diff --git a/dlls/powrprof/powrprof.c b/dlls/powrprof/powrprof.c
index a1d1092..685b663 100644
--- a/dlls/powrprof/powrprof.c
+++ b/dlls/powrprof/powrprof.c
@@ -315,6 +315,12 @@ DWORD WINAPI PowerReadDCValue(HKEY RootPowerKey, const GUID *Scheme, const GUID
return ERROR_CALL_NOT_IMPLEMENTED;
}
+POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void)
+{
+ FIXME("stub\n");
+ return PlatformRoleDesktop;
+}
+
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch(fdwReason) {
diff --git a/dlls/powrprof/powrprof.spec b/dlls/powrprof/powrprof.spec
index f513f04..c90fafc 100644
--- a/dlls/powrprof/powrprof.spec
+++ b/dlls/powrprof/powrprof.spec
@@ -10,6 +10,7 @@
@ stdcall IsPwrHibernateAllowed ()
@ stdcall IsPwrShutdownAllowed ()
@ stdcall IsPwrSuspendAllowed ()
+@ stdcall PowerDeterminePlatformRole ()
@ stdcall PowerGetActiveScheme (ptr ptr)
@ stdcall PowerSetActiveScheme (ptr ptr)
@ stdcall PowerReadDCValue (ptr ptr ptr ptr ptr ptr ptr)
diff --git a/include/powrprof.h b/include/powrprof.h
index 5fed4ae..239044e 100644
--- a/include/powrprof.h
+++ b/include/powrprof.h
@@ -137,6 +137,9 @@ BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY);
+/* Power scheme */
+POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void);
+
#ifdef __cplusplus
}
#endif
diff --git a/include/winnt.h b/include/winnt.h
index 96722a4..72c399b 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -4947,6 +4947,19 @@ typedef enum _POWER_ACTION {
} POWER_ACTION,
*PPOWER_ACTION;
+typedef enum _POWER_PLATFORM_ROLE {
+ PlatformRoleUnspecified,
+ PlatformRoleDesktop,
+ PlatformRoleMobile,
+ PlatformRoleWorkstation,
+ PlatformRoleEnterpriseServer,
+ PlatformRoleSOHOServer,
+ PlatformRoleAppliancePC,
+ PlatformRolePerformanceServer,
+ PlatformRoleSlate,
+ PlatformRoleMaximum
+} POWER_PLATFORM_ROLE, *PPOWER_PLATFORM_ROLE;
+
typedef enum _SYSTEM_POWER_STATE {
PowerSystemUnspecified = 0,
PowerSystemWorking = 1,
--
2.8.1
More information about the wine-patches
mailing list