[Mono-dev] Re: [PATCH] ShellExecuteEx ProcessId support for Windows 2000 and Windows XP RTM

Kornél Pál kornelpal at gmail.com
Fri Mar 31 08:40:51 EST 2006


I experienced some problems and I realized that some libc functions were
imported from ntdll.dll rather than msvcrt.dll that caused the problems.

Explicitly referencing msvcrt before ntdll solved the problem but I'm not 
sure whether
this is the best solution.

Kornél

----- Original Message ----- 
From: "Kornél Pál" <kornelpal at gmail.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Friday, March 31, 2006 2:50 PM
Subject: [PATCH] ShellExecuteEx ProcessId support for Windows 2000 and
Windows XP RTM


> Hi,
>
> GetProcessId is supported only by Windows XP SP1 and Windows Server 2003
> or
> later. Unlike stated in the comment ProcessId can be obtained without
> GetProcessId as well.
>
> On NT this is quite easy as NtQueryInformationProcess will return it. On
> Win9x it needs some more hack but as we only support Windows 2000+ there
> is
> no need to do that.
>
> NtQueryInformationProcess is documented but is said to be internal. I'm
> sure
> that it won't be changed as it is widely used.
>
> The only possible problem is that cygwin has different include file names
> than Platform SDK.
>
> Please review the patch.
>
> Kornél
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pid.diff
Type: application/octet-stream
Size: 2588 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060331/d85ad36a/attachment.obj 


More information about the Mono-devel-list mailing list