Stub more syscalls

This commit is contained in:
momo5502
2025-11-20 18:43:20 +01:00
parent 2be5f73755
commit 8c75475f0d
3 changed files with 10 additions and 1 deletions

View File

@@ -350,6 +350,7 @@ namespace syscalls
uint64_t token_information, ULONG token_information_length,
emulator_object<ULONG> return_length);
NTSTATUS handle_NtQuerySecurityAttributesToken();
NTSTATUS handle_NtAdjustPrivilegesToken();
NTSTATUS handle_NtQueryPerformanceCounter(const syscall_context& c, const emulator_object<LARGE_INTEGER> performance_counter,
const emulator_object<LARGE_INTEGER> performance_frequency)
@@ -1067,6 +1068,7 @@ void syscall_dispatcher::add_handlers(std::map<std::string, syscall_handler>& ha
add_handler(NtOpenProcessToken);
add_handler(NtOpenProcessTokenEx);
add_handler(NtQuerySecurityAttributesToken);
add_handler(NtAdjustPrivilegesToken);
add_handler(NtQueryLicenseValue);
add_handler(NtTestAlert);
add_handler(NtContinue);

View File

@@ -184,7 +184,8 @@ namespace syscalls
|| info_class == ProcessDefaultHardErrorMode //
|| info_class == ProcessRaiseUMExceptionOnInvalidHandleClose //
|| info_class == ProcessDynamicFunctionTableInformation //
|| info_class == ProcessPriorityBoost)
|| info_class == ProcessPriorityBoost //
|| info_class == ProcessPriorityClassEx)
{
return STATUS_SUCCESS;
}

View File

@@ -366,4 +366,10 @@ namespace syscalls
// puts("NtQuerySecurityAttributesToken not supported");
return STATUS_NOT_SUPPORTED;
}
NTSTATUS handle_NtAdjustPrivilegesToken()
{
// puts("NtQuerySecurityAttributesToken not supported");
return STATUS_NOT_SUPPORTED;
}
}