Another PInvoke question (wasRe: [Mono-list] Using P/Invoke)

Nigel Benns nigel_benns@rogers.com
Fri, 8 Apr 2005 14:26:18 -0400 (EDT)


All you need is:

using System.Runtime.InteropServices;

this is in Mscorlib.dll so you don't need to specify an Assembly;

> Hello,
>
> I'd like to know what library I need to use in the DllImport attribute to
> invoke system();  I need to run a shell script/program from within my Mono
> program and need the equivalent of system();
>
> Thanks
>
> Krishna
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>