[Try 3] Add semi-stub implementation for SystemExecutionState query
Luke Benstead
kazade at gmail.com
Wed Jul 22 04:04:53 CDT 2009
This time without the superfluous "break" statements. Information
taken from here:
http://msdn.microsoft.com/en-us/library/aa372675%28VS.85%29.aspx
-------------- next part --------------
From 83b45b69c63a4c42b17ca4f0eb85f85f67eb2a44 Mon Sep 17 00:00:00 2001
From: Luke Benstead <kazade at gmail.com>
Date: Tue, 14 Jul 2009 17:02:59 +0100
Subject: Add semi-stub for NtPowerInformation option - SystemExecutionState
---
dlls/ntdll/nt.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index c457028..10e14b5 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1328,6 +1328,16 @@ NTSTATUS WINAPI NtPowerInformation(
PowerCaps->DefaultLowLatencyWake = PowerSystemUnspecified;
return STATUS_SUCCESS;
}
+ 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;
+ }
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