2 using System
.Runtime
.InteropServices
;
6 [DllImport ("user32", CallingConvention
= CallingConvention
.StdCall
, CharSet
= CharSet
.Auto
)]
7 public static extern int MessageBox (int hWnd
, string pText
, string pCaption
, int uType
);
9 public static int Main ()
11 MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);