开发者

How to pinvoke GetExitCodeProcess with negative exit codes?

开发者 https://www.devze.com 2023-03-10 16:05 出处:网络
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

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

精彩评论

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