using System.Runtime.InteropServices; class Hello { [DllImport("user32.dll")] private extern static uint MessageBox(uint hWnd, string lpText, string lpTitle, uint uType); static void Main(string[] args) { MessageBox( 0, "Hello, Win32 API(MSIL) World!", "Hello, World!", 0 ); } }