|
|
|
@ -12,8 +12,6 @@
|
|
|
|
# include <winsock2.h>
|
|
|
|
# include <winsock2.h>
|
|
|
|
# include <windows.h>
|
|
|
|
# include <windows.h>
|
|
|
|
# define SC_PRIexitcode "lu"
|
|
|
|
# define SC_PRIexitcode "lu"
|
|
|
|
// <https://stackoverflow.com/a/44383330/1987178>
|
|
|
|
|
|
|
|
# define SC_PRIsizet "Iu"
|
|
|
|
|
|
|
|
# define SC_PROCESS_NONE NULL
|
|
|
|
# define SC_PROCESS_NONE NULL
|
|
|
|
# define SC_EXIT_CODE_NONE -1UL // max value as unsigned long
|
|
|
|
# define SC_EXIT_CODE_NONE -1UL // max value as unsigned long
|
|
|
|
typedef HANDLE sc_pid;
|
|
|
|
typedef HANDLE sc_pid;
|
|
|
|
@ -23,7 +21,6 @@
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
# include <sys/types.h>
|
|
|
|
# include <sys/types.h>
|
|
|
|
# define SC_PRIsizet "zu"
|
|
|
|
|
|
|
|
# define SC_PRIexitcode "d"
|
|
|
|
# define SC_PRIexitcode "d"
|
|
|
|
# define SC_PROCESS_NONE -1
|
|
|
|
# define SC_PROCESS_NONE -1
|
|
|
|
# define SC_EXIT_CODE_NONE -1
|
|
|
|
# define SC_EXIT_CODE_NONE -1
|
|
|
|
|