开发者

How to pinvoke GetExitCodeProcess with negative exit codes?

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 through 4294967295 decimal.

This type is declared in WinDef.h as follows:

typedef unsigned long DWORD;

No bug here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜