Implement a semi-stub for the SystemExecutionState token in NtPowerInformation
Luke Benstead
kazade at gmail.com
Sat May 9 12:18:33 CDT 2009
Information from here:
http://msdn.microsoft.com/en-us/library/aa372675(VS.85).aspx
Luke.
-------------- next part --------------
From 1e4651f4514df9ee0870cbe71c925d998a36343a Mon Sep 17 00:00:00 2001
From: Luke Benstead <kazade at gmail.com>
Date: Sat, 9 May 2009 18:10:29 +0100
Subject: Added a semi-stub for SystemExecutionState in NtPowerInformation
---
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 58320c3..2e9e92f 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1305,7 +1305,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 ERROR_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("Unimplemented NtPowerInformation action: %d\n", InformationLevel);
return STATUS_NOT_IMPLEMENTED;
--
1.6.0.4
More information about the wine-patches
mailing list