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
2813da13
Commit
2813da13
authored
Apr 18, 2005
by
Benjamin Cutler
Committed by
Alexandre Julliard
Apr 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add semi-stub for NtPowerInformation(SystemPowerCapabilities, ...).
parent
ddf9da79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
nt.c
dlls/ntdll/nt.c
+45
-2
No files found.
dlls/ntdll/nt.c
View file @
2813da13
...
...
@@ -886,9 +886,52 @@ NTSTATUS WINAPI NtPowerInformation(
IN
PVOID
lpOutputBuffer
,
IN
ULONG
nOutputBufferSize
)
{
FIXME
(
"(%d,%p,%ld,%p,%ld),stub
\n
"
,
TRACE
(
"(%d,%p,%ld,%p,%ld)
\n
"
,
InformationLevel
,
lpInputBuffer
,
nInputBufferSize
,
lpOutputBuffer
,
nOutputBufferSize
);
return
STATUS_NOT_IMPLEMENTED
;
switch
(
InformationLevel
)
{
case
SystemPowerCapabilities
:
{
PSYSTEM_POWER_CAPABILITIES
PowerCaps
=
(
PSYSTEM_POWER_CAPABILITIES
)
lpOutputBuffer
;
FIXME
(
"semi-stub: SystemPowerCapabilities
\n
"
);
if
(
nOutputBufferSize
<
sizeof
(
SYSTEM_POWER_CAPABILITIES
))
return
STATUS_BUFFER_TOO_SMALL
;
/* FIXME: These values are based off a native XP desktop, should probably use APM/ACPI to get the 'real' values */
PowerCaps
->
PowerButtonPresent
=
TRUE
;
PowerCaps
->
SleepButtonPresent
=
FALSE
;
PowerCaps
->
LidPresent
=
FALSE
;
PowerCaps
->
SystemS1
=
TRUE
;
PowerCaps
->
SystemS2
=
FALSE
;
PowerCaps
->
SystemS3
=
FALSE
;
PowerCaps
->
SystemS4
=
TRUE
;
PowerCaps
->
SystemS5
=
TRUE
;
PowerCaps
->
HiberFilePresent
=
TRUE
;
PowerCaps
->
FullWake
=
TRUE
;
PowerCaps
->
VideoDimPresent
=
FALSE
;
PowerCaps
->
ApmPresent
=
FALSE
;
PowerCaps
->
UpsPresent
=
FALSE
;
PowerCaps
->
ThermalControl
=
FALSE
;
PowerCaps
->
ProcessorThrottle
=
FALSE
;
PowerCaps
->
ProcessorMinThrottle
=
100
;
PowerCaps
->
ProcessorMaxThrottle
=
100
;
PowerCaps
->
DiskSpinDown
=
TRUE
;
PowerCaps
->
SystemBatteriesPresent
=
FALSE
;
PowerCaps
->
BatteriesAreShortTerm
=
FALSE
;
PowerCaps
->
BatteryScale
[
0
].
Granularity
=
0
;
PowerCaps
->
BatteryScale
[
0
].
Capacity
=
0
;
PowerCaps
->
BatteryScale
[
1
].
Granularity
=
0
;
PowerCaps
->
BatteryScale
[
1
].
Capacity
=
0
;
PowerCaps
->
BatteryScale
[
2
].
Granularity
=
0
;
PowerCaps
->
BatteryScale
[
2
].
Capacity
=
0
;
PowerCaps
->
AcOnLineWake
=
PowerSystemUnspecified
;
PowerCaps
->
SoftLidWake
=
PowerSystemUnspecified
;
PowerCaps
->
RtcWake
=
PowerSystemSleeping1
;
PowerCaps
->
MinDeviceWakeState
=
PowerSystemUnspecified
;
PowerCaps
->
DefaultLowLatencyWake
=
PowerSystemUnspecified
;
return
STATUS_SUCCESS
;
}
default:
FIXME
(
"Unimplemented NtPowerInformation action: %d
\n
"
,
InformationLevel
);
return
STATUS_NOT_IMPLEMENTED
;
}
}
/******************************************************************************
...
...
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