Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c98ec64a
Commit
c98ec64a
authored
Aug 07, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powrprof: Added PowerDeterminePlatformRole() stub.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2ecbdb85
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
powrprof.c
dlls/powrprof/powrprof.c
+6
-0
powrprof.spec
dlls/powrprof/powrprof.spec
+1
-0
powrprof.h
include/powrprof.h
+3
-0
winnt.h
include/winnt.h
+13
-0
No files found.
dlls/powrprof/powrprof.c
View file @
c98ec64a
...
...
@@ -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
)
{
...
...
dlls/powrprof/powrprof.spec
View file @
c98ec64a
...
...
@@ -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)
...
...
include/powrprof.h
View file @
c98ec64a
...
...
@@ -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
...
...
include/winnt.h
View file @
c98ec64a
...
...
@@ -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
,
...
...
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