Fix SC_EXIT_CODE_NONE value
The exit code on windows is stored in a DWORD, an unsigned long: <https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2> Use the max value of this type for SC_EXIT_CODE_NONE.
This commit is contained in:
parent
80bec70852
commit
b8d7f36ba3
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
// <https://stackoverflow.com/a/44383330/1987178>
|
||||
# define SC_PRIsizet "Iu"
|
||||
# define SC_PROCESS_NONE NULL
|
||||
# define SC_EXIT_CODE_NONE -1u // max value as unsigned
|
||||
# define SC_EXIT_CODE_NONE -1UL // max value as unsigned long
|
||||
typedef HANDLE sc_pid;
|
||||
typedef DWORD sc_exit_code;
|
||||
typedef HANDLE sc_pipe;
|
||||
|
|
Loading…
Reference in a new issue