[Mono-dev] [PATCH] ShellExecuteEx ProcessId support for Windows

Robert Jordan robertj at gmx.net
Mon Nov 5 07:03:54 EST 2007


Hi Kornél,

Kornél Pál wrote:
> 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.

it's not acceptable to depend on the DDK headers. I wonder
why do you need them in the first place, since the required
defines are also provided by SDK's winternl.h.

Robert




More information about the Mono-devel-list mailing list