X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Fwin32service.h;h=e4500be131e897448996d6de3f5e492310f537aa;hb=571714e28b26cc59cbc8d27098a5ba981240ee2d;hp=b33a53c28eb90af4a91607da0c00df6cabdd8ad9;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git 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 . */ - -#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();