powrprof: Added PowerDeterminePlatformRole() stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2ecbdb8582
commit
c98ec64a9e
|
@ -315,6 +315,12 @@ DWORD WINAPI PowerReadDCValue(HKEY RootPowerKey, const GUID *Scheme, const GUID
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
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)
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
{
|
{
|
||||||
switch(fdwReason) {
|
switch(fdwReason) {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
@ stdcall IsPwrHibernateAllowed ()
|
@ stdcall IsPwrHibernateAllowed ()
|
||||||
@ stdcall IsPwrShutdownAllowed ()
|
@ stdcall IsPwrShutdownAllowed ()
|
||||||
@ stdcall IsPwrSuspendAllowed ()
|
@ stdcall IsPwrSuspendAllowed ()
|
||||||
|
@ stdcall PowerDeterminePlatformRole ()
|
||||||
@ stdcall PowerGetActiveScheme (ptr ptr)
|
@ stdcall PowerGetActiveScheme (ptr ptr)
|
||||||
@ stdcall PowerSetActiveScheme (ptr ptr)
|
@ stdcall PowerSetActiveScheme (ptr ptr)
|
||||||
@ stdcall PowerReadDCValue (ptr ptr ptr ptr ptr ptr ptr)
|
@ stdcall PowerReadDCValue (ptr ptr ptr ptr ptr ptr ptr)
|
||||||
|
|
|
@ -137,6 +137,9 @@ BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY);
|
||||||
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
|
BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY);
|
||||||
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY);
|
BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY);
|
||||||
|
|
||||||
|
/* Power scheme */
|
||||||
|
POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4947,6 +4947,19 @@ typedef enum _POWER_ACTION {
|
||||||
} POWER_ACTION,
|
} POWER_ACTION,
|
||||||
*PPOWER_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 {
|
typedef enum _SYSTEM_POWER_STATE {
|
||||||
PowerSystemUnspecified = 0,
|
PowerSystemUnspecified = 0,
|
||||||
PowerSystemWorking = 1,
|
PowerSystemWorking = 1,
|
||||||
|
|
Loading…
Reference in New Issue