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

Kornél Pál kornelpal at gmail.com
Tue Apr 4 06:01:58 EDT 2006


Could someone please review this patch.

Thanks.

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 3:40 PM
Subject: Re: [PATCH] ShellExecuteEx ProcessId support for Windows 2000 and
Windows XP RTM


>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
>>
>




More information about the Mono-devel-list mailing list