mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-10 16:16:16 +00:00
Stub more syscalls
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user