[Try 2] Add semi-stub for NtPowerInfromation option - SystemExecutionState
Luke Benstead
kazade at gmail.com
Tue Jul 14 07:57:07 CDT 2009
Luke.
-------------- next part --------------
From 8fdcb679f2f8c8c9b509e2f0b0b5bb09c52e6b6b Mon Sep 17 00:00:00 2001
From: Luke Benstead <luke at sidney.(none)>
Date: Tue, 14 Jul 2009 12:31:41 +0100
Subject: Add semi-stub for NtPowerInformation option SystemExecutionState
---
dlls/ntdll/nt.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index c457028..046aff0 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1327,7 +1327,17 @@ NTSTATUS WINAPI NtPowerInformation(
PowerCaps->MinDeviceWakeState = PowerSystemUnspecified;
PowerCaps->DefaultLowLatencyWake = PowerSystemUnspecified;
return STATUS_SUCCESS;
- }
+ } break;
+ case SystemExecutionState: {
+ PULONG ExecutionState = lpOutputBuffer;
+ FIXME("semi-stub: SystemExecutionState\n");
+ if (lpInputBuffer != NULL) {
+ return STATUS_INVALID_PARAMETER;
+ }
+ /* FIXME: The actual state should be the value set by SetThreadExecutionState which is not currently implemented. */
+ *ExecutionState = ES_USER_PRESENT;
+ return STATUS_SUCCESS;
+ } break;
default:
/* FIXME: Needed by .NET Framework */
WARN("Unimplemented NtPowerInformation action: %d\n", InformationLevel);
--
1.6.0.4
More information about the wine-patches
mailing list