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
pid.diff
Description: Binary data
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list