[Mono-dev] [PATCH] ShellExecuteEx ProcessId support for Windows 2000 and Windows XP RTM
Kornél Pál
kornelpal at gmail.com
Fri Mar 31 07:50:29 EST 2006
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: 2506 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060331/6155d75f/attachment.obj
More information about the Mono-devel-list
mailing list