From 8abc7a65efdedde2cb2dc7d9c90109b3fb8d8b3e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 24 May 2025 11:06:23 +0200 Subject: [PATCH] Support svcctrl start event --- src/windows-emulator/handles.hpp | 1 + src/windows-emulator/syscalls/event.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/windows-emulator/handles.hpp b/src/windows-emulator/handles.hpp index 1efcce77..10fee2d2 100644 --- a/src/windows-emulator/handles.hpp +++ b/src/windows-emulator/handles.hpp @@ -410,6 +410,7 @@ constexpr auto DBWIN_BUFFER = make_pseudo_handle(0x2, handle_types::section); 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 CONSOLE_HANDLE = make_pseudo_handle(0x1, handle_types::file); constexpr auto STDOUT_HANDLE = make_pseudo_handle(0x2, handle_types::file); diff --git a/src/windows-emulator/syscalls/event.cpp b/src/windows-emulator/syscalls/event.cpp index 2f1f90fd..a9c4d39b 100644 --- a/src/windows-emulator/syscalls/event.cpp +++ b/src/windows-emulator/syscalls/event.cpp @@ -107,6 +107,12 @@ namespace syscalls return STATUS_SUCCESS; } + if (name == u"Global\\SvcctrlStartEvent_A3752DX") + { + event_handle.write(SVCCTRL_START_EVENT.bits); + return STATUS_SUCCESS; + } + if (name == u"DBWIN_DATA_READY") { event_handle.write(DBWIN_DATA_READY.bits);