From 94e65bbecf0d809221e9e511c9559546ce167d0d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 4 Feb 2025 18:43:36 +0100 Subject: [PATCH] Add new syscalls --- src/windows-emulator/syscalls.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index 5a9e1cd8..7dafe4ef 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -1042,7 +1042,7 @@ namespace return STATUS_SUCCESS; } - if (info_class == SystemProcessInformation) + if (info_class == SystemProcessInformation || info_class == SystemModuleInformation) { return STATUS_NOT_SUPPORTED; } @@ -3497,6 +3497,11 @@ namespace return STATUS_NOT_SUPPORTED; } + NTSTATUS handle_NtUserFindWindowEx() + { + return 0; + } + NTSTATUS handle_NtGetNextThread(const syscall_context& c, const handle process_handle, const handle thread_handle, const ACCESS_MASK /*desired_access*/, const ULONG /*handle_attributes*/, const ULONG flags, const emulator_object new_thread_handle) @@ -3728,6 +3733,7 @@ void syscall_dispatcher::add_handlers(std::map& ha add_handler(NtUserReleaseDC); add_handler(NtUserFindExistingCursorIcon); add_handler(NtSetContextThread); + add_handler(NtUserFindWindowEx); #undef add_handler }