More syscalls

This commit is contained in:
momo5502
2024-09-15 12:13:36 +02:00
parent 45970c9000
commit eb87353553
2 changed files with 13 additions and 1 deletions

View File

@@ -229,6 +229,11 @@ namespace
return STATUS_NOT_SUPPORTED;
}
NTSTATUS handle_NtOpenKeyEx()
{
return STATUS_NOT_SUPPORTED;
}
NTSTATUS handle_NtSetInformationThread(const syscall_context& c, const uint64_t /*thread_handle*/,
const THREADINFOCLASS info_class,
const uint64_t /*thread_information*/,
@@ -1367,6 +1372,12 @@ namespace
return STATUS_NOT_SUPPORTED;
}
NTSTATUS handle_NtUserDisplayConfigGetDeviceInfo()
{
puts("NtUserDisplayConfigGetDeviceInfo not supported");
return STATUS_NOT_SUPPORTED;
}
NTSTATUS handle_NtGdiInit2(const syscall_context& c)
{
c.proc.peb.access([&](PEB& peb)
@@ -1725,6 +1736,8 @@ void syscall_dispatcher::add_handlers()
add_handler(NtAlpcSendWaitReceivePort);
add_handler(NtGdiInit2);
add_handler(NtUserGetThreadState);
add_handler(NtOpenKeyEx);
add_handler(NtUserDisplayConfigGetDeviceInfo);
#undef add_handler

View File

@@ -551,7 +551,6 @@ void windows_emulator::setup_hooks()
const auto ip = this->emu().read_instruction_pointer();
const char* name = this->process().module_manager.find_name(ip);
if (type == memory_violation_type::protection)
{
printf("Protection violation: %llX (%zX) - %s at %llX (%s)\n", address, size, permission.c_str(), ip, name);