[Mono-dev] [WIN32] NtQueryInformationProcess patch help needed

Kornél Pál kornelpal at gmail.com
Sat Apr 15 07:09:05 EDT 2006


The cucrrent code in SVN uses GetProcessId that requires Windows XP SP1 or 
Windows Server 2003 or later. Mono supports Windows 2000 or later.

In addition checking for GetProcessId (HAVE_GETPROCESSID) is useless because 
Windows header files contain the latest API and availability of GetProcessId 
depends on _WIN32_WINNT not the actual operating system.

Furthermore we have a single Windows binary so we should use a single source 
code for Windows.

The attached patch uses NtQueryInformationProcess that solves all the above 

My only problem is that some libc functions were linked from ntdll that 
caused mono to crash sometimes. Then I tried to link to msvcrt before ntdll 
but the crashes remained. For some unknown reason no mono-1.dll is crated 
and libmono is linked statically to mono.exe when applying this patch.

Please help me solving the problem.

-------------- 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/20060415/a654f255/attachment.obj 

More information about the Mono-devel-list mailing list