The pinvoke documentation fro GetExitCodeProcess shows exit codes r开发者_StackOverfloweturned as unsigned integers (uint). How do I handle a process with negative exit code values? Is LPDWORD correctly assigned to uint or is that a bug in pinvoke doc?
pinvoke doc: http://www.pinvoke.net/default.aspx/kernel32.getexitcodeprocess
win32 api doc: http://msdn.microsoft.com/en-us/library/ms683189(v=vs.85).aspx
DWORD
in unsigned integer.
A 32-bit unsigned integer. The range is
0
through4294967295
decimal.This type is declared in WinDef.h as follows:
typedef unsigned long DWORD;
No bug here.
精彩评论