Prepare APC dispatching

This commit is contained in:
momo5502
2025-04-13 11:07:32 +02:00
parent bb4b159850
commit a8926592bc
5 changed files with 14 additions and 3 deletions

View File

@@ -565,7 +565,7 @@ namespace syscalls
}
NTSTATUS handle_NtQueueApcThreadEx2(const syscall_context& c, const handle thread_handle,
const handle /*reserve_handle*/, const ULONG apc_flags,
const handle /*reserve_handle*/, const uint32_t apc_flags,
const uint64_t apc_routine, const uint64_t apc_argument1,
const uint64_t apc_argument2, const uint64_t apc_argument3)
{
@@ -576,6 +576,13 @@ namespace syscalls
return STATUS_INVALID_HANDLE;
}
if (apc_flags)
{
c.win_emu.log.error("Unsupported APC flags: %X\n", apc_flags);
c.emu.stop();
return STATUS_NOT_SUPPORTED;
}
thread->pending_apcs.push_back({
.flags = apc_flags,
.apc_routine = apc_routine,