Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-50.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84636e887ffd637bededd24bf3ba6e06cd629012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Runtime.InteropServices;

public class Blah {

	[DllImport ("user32", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Auto)]
	public static extern int MessageBox (int hWnd, string pText, string pCaption, int uType);

	public static int Main ()
	{
		MessageBox (0, "Hello from Mono !", "PInvoke Test", 0);

		return 0;
	}
}