aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2025-08-22 15:51:32 -0700
committerLiam Mitchell <[email protected]>2025-08-22 15:51:32 -0700
commit623f5bbd39e24a8a26203c02bafc3800d74d1db0 (patch)
tree440f47c23b2d2d9c4afb53b06d732bf5228fcfbe /src/zenutil/include
parentMove ReportServiceStatus to zenutil and remove extraneous logging (diff)
downloadzen-623f5bbd39e24a8a26203c02bafc3800d74d1db0.tar.xz
zen-623f5bbd39e24a8a26203c02bafc3800d74d1db0.zip
Move windows service utilities to zenutil and fix clang-format errors
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/windows/service.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/windows/service.h b/src/zenutil/include/zenutil/windows/service.h
new file mode 100644
index 000000000..ca0270a36
--- /dev/null
+++ b/src/zenutil/include/zenutil/windows/service.h
@@ -0,0 +1,24 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#pragma once
+
+#include <zencore/windows.h>
+
+class WindowsService
+{
+public:
+ WindowsService();
+ ~WindowsService();
+
+ virtual int Run() = 0;
+
+ int ServiceMain();
+
+ static void Install();
+ static void Delete();
+
+ int SvcMain();
+ static void __stdcall SvcCtrlHandler(unsigned long);
+};
+
+VOID ReportSvcStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint);