X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=155586ac084d9d501ccf10d15c8a33c27706004d;hb=7fdd3f6c44421a7c4872ecea56e550c19489c949;hp=170ab4225983276d70bda41a6a823e444db7a91e;hpb=02203cb8aff4be6a094b7a9ded867c3b5d743d77;p=nssm.git diff --git a/service.h b/service.h index 170ab42..155586a 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; @@ -65,6 +66,7 @@ typedef struct { unsigned long rotate_bytes_low; unsigned long rotate_bytes_high; unsigned long default_exit_action; + unsigned long restart_delay; unsigned long throttle_delay; unsigned long stop_method; unsigned long kill_console_delay; @@ -93,6 +95,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);