wow64: Add thunks for the power request syscalls.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-07-26 12:55:07 +02:00
parent caf43278c7
commit 7d418c170a
2 changed files with 40 additions and 0 deletions

View File

@ -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
*/

View File

@ -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 ) \