From 0f6be7b55ff131fc37db1fd2671c42013e320c33 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 22 Sep 2024 19:03:07 +0200 Subject: [PATCH] Prepare registry --- src/windows_emulator/syscalls.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/windows_emulator/syscalls.cpp b/src/windows_emulator/syscalls.cpp index 4a1b82e..3f4b223 100644 --- a/src/windows_emulator/syscalls.cpp +++ b/src/windows_emulator/syscalls.cpp @@ -223,8 +223,15 @@ namespace return STATUS_NOT_SUPPORTED; } - NTSTATUS handle_NtOpenKey() + NTSTATUS handle_NtOpenKey(const syscall_context& c, const emulator_object /*key_handle*/, + const ACCESS_MASK /*desired_access*/, + const emulator_object object_attributes) { + const auto attributes = object_attributes.read(); + const auto key = read_unicode_string(c.emu, attributes.ObjectName); + + c.win_emu.logger.print(color::pink, "Registry key: %S\n", key.c_str()); + return STATUS_NOT_SUPPORTED; } @@ -1537,6 +1544,11 @@ namespace return STATUS_NOT_SUPPORTED; } + NTSTATUS handle_NtUpdateWnfStateData() + { + return STATUS_NOT_SUPPORTED; + } + NTSTATUS handle_NtAlpcSendWaitReceivePort(const syscall_context& c, const uint64_t port_handle, const ULONG /*flags*/, const emulator_object /*send_message*/, @@ -1879,6 +1891,7 @@ void syscall_dispatcher::add_handlers() add_handler(NtGetMUIRegistryInfo); add_handler(NtIsUILanguageComitted); add_handler(NtQueryInstallUILanguage); + add_handler(NtUpdateWnfStateData); #undef add_handler