[Mono-list] Re: Windows processes

Marek Sieradzki marek.sieradzki at gmail.com
Sat Jun 17 03:24:23 EDT 2006

On Sat, 2006-06-17 at 03:28 +0300, Alex Nedelcu wrote:
> Err ... replying to myself.
> I had a revelation ... what if I look at how Mono has implemented it.
> So I happily navigate to the System.Diagnostics.Process implementation
> <http://svn.myrealbox.com/viewcvs/trunk/mcs/class/System/System.Diagnostics/Process.cs?rev=60744&view=markup>
> and what do I get ?
>     [MethodImplAttribute(MethodImplOptions.InternalCall)]
>     *private* *extern* *static* *int* GetPid_internal();
>     [MethodImplAttribute(MethodImplOptions.InternalCall)]
>     *private* *extern* *static* *int*[] GetProcesses_internal();
> Damn, I thought I had it easy.
> What the hell does MethodImplOptions.InternalCall mean ?
> Does it mean that the CLR takes care of it ?
> So, can you please help me ?
> I am not a good C++ programmer to search for code snippets that other 
> people wrote.
Yes, it means that Mono runtime takes care of it (it's implemented in
the runtime). This call works almost the same as normal P/Invoke.

Only multi-platform API for running processes that I know is
Marek Sieradzki <marek.sieradzki at gmail.com>

More information about the Mono-list mailing list