summaryrefslogtreecommitdiff
path: root/include/win32service.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/win32service.h')
-rw-r--r--include/win32service.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/win32service.h b/include/win32service.h
new file mode 100644
index 000000000..93c9c8e09
--- /dev/null
+++ b/include/win32service.h
@@ -0,0 +1,11 @@
+#ifndef _WIN32SERVICE_H_
+#define _WIN32SERVICE_H_
+
+/* Hook for win32service.cpp to exit properly with the service specific error code */
+#define exit(a) newexit(a)
+void newexit(int status);
+
+/* Marks the service as running, not called until the config is parsed */
+void SetServiceRunning();
+
+#endif \ No newline at end of file