using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Text;
class Program
{
[DllImport("user32.dll")]
publicstatic extern int MessageBox(IntPtr hwnd, String text, String caption, uint type);
staticvoid Main(string[] args)
{
MessageBox(new IntPtr(0), "Greetings from Platform Invoke", "Platform Invoke", 0);
}
}