mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Add new pseudo-handles
This commit is contained in:
@@ -408,6 +408,7 @@ constexpr auto NULL_HANDLE = make_handle(0ULL);
|
||||
|
||||
constexpr auto KNOWN_DLLS_DIRECTORY = make_pseudo_handle(0x1, handle_types::directory);
|
||||
constexpr auto BASE_NAMED_OBJECTS_DIRECTORY = make_pseudo_handle(0x2, handle_types::directory);
|
||||
constexpr auto RPC_CONTROL_DIRECTORY = make_pseudo_handle(0x3, handle_types::directory);
|
||||
|
||||
constexpr auto KNOWN_DLLS_SYMLINK = make_pseudo_handle(0x1, handle_types::symlink);
|
||||
constexpr auto SHARED_SECTION = make_pseudo_handle(0x1, handle_types::section);
|
||||
@@ -417,6 +418,7 @@ constexpr auto WER_PORT_READY = make_pseudo_handle(0x1, handle_types::event);
|
||||
constexpr auto DBWIN_DATA_READY = make_pseudo_handle(0x2, handle_types::event);
|
||||
constexpr auto DBWIN_BUFFER_READY = make_pseudo_handle(0x3, handle_types::event);
|
||||
constexpr auto SVCCTRL_START_EVENT = make_pseudo_handle(0x4, handle_types::event);
|
||||
constexpr auto LSA_AUTHENTICATION_INITIALIZED = make_pseudo_handle(0x5, handle_types::event);
|
||||
|
||||
constexpr auto CONSOLE_HANDLE = make_pseudo_handle(0x1, handle_types::file);
|
||||
constexpr auto STDOUT_HANDLE = make_pseudo_handle(0x2, handle_types::file);
|
||||
|
||||
@@ -114,6 +114,12 @@ namespace syscalls
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (name == u"\\SECURITY\\LSA_AUTHENTICATION_INITIALIZED")
|
||||
{
|
||||
event_handle.write(LSA_AUTHENTICATION_INITIALIZED.bits);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (name == u"DBWIN_DATA_READY")
|
||||
{
|
||||
event_handle.write(DBWIN_DATA_READY.bits);
|
||||
|
||||
@@ -1022,6 +1022,12 @@ namespace syscalls
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (object_name == u"\\RPC Control")
|
||||
{
|
||||
directory_handle.write(RPC_CONTROL_DIRECTORY);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user