X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=0e5da202ad20c0f1d91835e049a065a703c7d314;hb=53371f115d94fbbc7e5cb60853b9e4a5d356d4b0;hp=170ab4225983276d70bda41a6a823e444db7a91e;hpb=b47ff49386cd993521c6722a5fe0aa41736aa31b;p=nssm.git diff --git a/service.h b/service.h index 170ab42..0e5da20 100644 --- a/service.h +++ b/service.h @@ -44,6 +44,7 @@ typedef struct { TCHAR flags[VALUE_LENGTH]; TCHAR dir[MAX_PATH]; TCHAR *env; + __int64 affinity; unsigned long envlen; TCHAR *env_extra; unsigned long env_extralen; @@ -93,6 +94,8 @@ TCHAR *service_control_text(unsigned long); void log_service_control(TCHAR *, unsigned long, bool); unsigned long WINAPI service_control_handler(unsigned long, unsigned long, void *, void *); +int affinity_mask_to_string(__int64, TCHAR **); +int affinity_string_to_mask(TCHAR *, __int64 *); unsigned long priority_mask(); int priority_constant_to_index(unsigned long); unsigned long priority_index_to_constant(int);