Alexandre Julliard : wow64: Add thunks for the power request syscalls.
Alexandre Julliard
julliard at winehq.org
Mon Jul 26 15:30:28 CDT 2021
Module: wine
Branch: master
Commit: 7d418c170a8b4360ef5c5a8fd9bcef279f514d27
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7d418c170a8b4360ef5c5a8fd9bcef279f514d27
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jul 26 12:55:07 2021 +0200
wow64: Add thunks for the power request syscalls.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wow64/sync.c | 37 +++++++++++++++++++++++++++++++++++++
dlls/wow64/syscall.h | 3 +++
2 files changed, 40 insertions(+)
diff --git a/dlls/wow64/sync.c b/dlls/wow64/sync.c
index 29d2bd12c50..ef7176bd199 100644
--- a/dlls/wow64/sync.c
+++ b/dlls/wow64/sync.c
@@ -138,6 +138,18 @@ NTSTATUS WINAPI wow64_NtClearEvent( UINT *args )
}
+/**********************************************************************
+ * wow64_NtClearPowerRequest
+ */
+NTSTATUS WINAPI wow64_NtClearPowerRequest( UINT *args )
+{
+ HANDLE handle = get_handle( &args );
+ POWER_REQUEST_TYPE type = get_ulong( &args );
+
+ return NtClearPowerRequest( handle, type );
+}
+
+
/**********************************************************************
* wow64_NtCompleteConnectPort
*/
@@ -337,6 +349,19 @@ NTSTATUS WINAPI wow64_NtCreatePort( UINT *args )
}
+/**********************************************************************
+ * wow64_NtCreatePowerRequest
+ */
+NTSTATUS WINAPI wow64_NtCreatePowerRequest( UINT *args )
+{
+ ULONG *handle_ptr = get_ptr( &args );
+ COUNTED_REASON_CONTEXT *context = get_ptr( &args );
+
+ FIXME( "%p %p: stub\n", handle_ptr, context );
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+
/**********************************************************************
* wow64_NtCreateSection
*/
@@ -1192,6 +1217,18 @@ NTSTATUS WINAPI wow64_NtSetIoCompletion( UINT *args )
}
+/**********************************************************************
+ * wow64_NtSetPowerRequest
+ */
+NTSTATUS WINAPI wow64_NtSetPowerRequest( UINT *args )
+{
+ HANDLE handle = get_handle( &args );
+ POWER_REQUEST_TYPE type = get_ulong( &args );
+
+ return NtSetPowerRequest( handle, type );
+}
+
+
/**********************************************************************
* wow64_NtSetTimer
*/
diff --git a/dlls/wow64/syscall.h b/dlls/wow64/syscall.h
index ea7c1c229e5..e7b0353a90a 100644
--- a/dlls/wow64/syscall.h
+++ b/dlls/wow64/syscall.h
@@ -28,6 +28,7 @@
SYSCALL_ENTRY( NtAllocateUuids ) \
SYSCALL_ENTRY( NtCancelTimer ) \
SYSCALL_ENTRY( NtClearEvent ) \
+ SYSCALL_ENTRY( NtClearPowerRequest ) \
SYSCALL_ENTRY( NtClose ) \
SYSCALL_ENTRY( NtCompleteConnectPort ) \
SYSCALL_ENTRY( NtConnectPort ) \
@@ -39,6 +40,7 @@
SYSCALL_ENTRY( NtCreateKeyedEvent ) \
SYSCALL_ENTRY( NtCreateMutant ) \
SYSCALL_ENTRY( NtCreatePort ) \
+ SYSCALL_ENTRY( NtCreatePowerRequest ) \
SYSCALL_ENTRY( NtCreateSection ) \
SYSCALL_ENTRY( NtCreateSemaphore ) \
SYSCALL_ENTRY( NtCreateSymbolicLinkObject ) \
@@ -90,6 +92,7 @@
SYSCALL_ENTRY( NtSetInformationDebugObject ) \
SYSCALL_ENTRY( NtSetInformationObject ) \
SYSCALL_ENTRY( NtSetIoCompletion ) \
+ SYSCALL_ENTRY( NtSetPowerRequest ) \
SYSCALL_ENTRY( NtSetTimer ) \
SYSCALL_ENTRY( NtSetTimerResolution ) \
SYSCALL_ENTRY( NtSignalAndWaitForSingleObject ) \
More information about the wine-cvs
mailing list