Skip to content

Commit

Permalink
Prepare registry
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Sep 22, 2024
1 parent 9cba4cd commit 0f6be7b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/windows_emulator/syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,15 @@ namespace
return STATUS_NOT_SUPPORTED;
}

NTSTATUS handle_NtOpenKey()
NTSTATUS handle_NtOpenKey(const syscall_context& c, const emulator_object<uint64_t> /*key_handle*/,
const ACCESS_MASK /*desired_access*/,
const emulator_object<OBJECT_ATTRIBUTES> 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;
}

Expand Down Expand Up @@ -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<PORT_MESSAGE> /*send_message*/,
Expand Down Expand Up @@ -1879,6 +1891,7 @@ void syscall_dispatcher::add_handlers()
add_handler(NtGetMUIRegistryInfo);
add_handler(NtIsUILanguageComitted);
add_handler(NtQueryInstallUILanguage);
add_handler(NtUpdateWnfStateData);

#undef add_handler

Expand Down

0 comments on commit 0f6be7b

Please sign in to comment.