summaryrefslogtreecommitdiff
path: root/win/win32service.h
diff options
context:
space:
mode:
authorChrisTX <chris@rev-crew.info>2013-03-23 23:52:51 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-25 14:57:05 +0100
commit25aa23067133fa80df009c2245742b3b7749c2e5 (patch)
tree50e9e6603d8a9322f28efb2a5115911d0d3e2b1d /win/win32service.h
parentf2a5fa58edb13ad70764ecd8c5d52041b8b6eed0 (diff)
Win32: Rewrite the service wrapper
Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar) Fixes #404 reported by @crchauffe
Diffstat (limited to 'win/win32service.h')
-rw-r--r--win/win32service.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/win/win32service.h b/win/win32service.h
index b33a53c28..e4500be13 100644
--- a/win/win32service.h
+++ b/win/win32service.h
@@ -15,12 +15,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-#ifndef WIN32SERVICE_H
-#define WIN32SERVICE_H
+#pragma once
+#ifdef _WIN32
/* Hook for win32service.cpp to exit properly with the service specific error code */
-void SetServiceStopped(int status);
+void SetServiceStopped(unsigned long dwStatus);
/* Marks the service as running, not called until the config is parsed */
void SetServiceRunning();