X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Fwin32service.h;h=d8177eabcec3e1c8a19809a7bc4a2ed8412d9fb4;hb=124c17e14134a4999afc1a5e981ab7c75b3694b9;hp=b33a53c28eb90af4a91607da0c00df6cabdd8ad9;hpb=fcacc8e0306382bc3f938073092c3729d77e2b41;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/win32service.h b/win/win32service.h index b33a53c28..d8177eabc 100644 --- a/win/win32service.h +++ b/win/win32service.h @@ -16,11 +16,12 @@ */ -#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();