I am usisng GetExitCodeProcess(processInfo.hProcess, out returnCode) as a p/invoke in C# to get the turn code of a process I started using CreateProcess - everything works fine ...
This is the code:
UInt32 returnCode = 0xFFFFFFFF; // default
GetExitCodeProcess(processInfo.hProcess, out returnCode);
The issue is the return code itself ... the application I am launching returns codes in DWORD, for example it returns 0XB2100000 but returnCode has 2987393024 (which is the correct INT conversion).
Now, I would like to show (log to my trace file) the value in DWORD (that is what we are used to) - anyway I can do this?
Thanks,