[Mono-dev] [PATCH] ShellExecuteEx ProcessId support for Windows
Kornél Pál
kornelpal at gmail.com
Mon Nov 5 06:16:28 EST 2007
Hi,
HAVE_GETPROCESSID depends on WINVER that is not set, so HAVE_GETPROCESSID is
never defined on Windows. This means that GetProcessId never gets called on
Windows and process ID is allways 0.
This patch adds run-time detection for GetProcessId on Windows.
Note that only Windows XP SP1 and above have GetProcessId API while Windows
2000 and above have deprecated NtQueryInformationProcess API that can be
used for the same purpose.
Please review and approve this patch.
Kornél
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_pid.diff
Type: application/octet-stream
Size: 3285 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071105/ba316c3a/attachment.obj
More information about the Mono-devel-list
mailing list