int MessageBox(Hwnd hwnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType);
namespace APIExample { using System; // Must refernce this library to use PI nvoke types using System.Runtime.InteropServices; public class PinvokeClient { [DllImport("user32")] public static extern int MessageBox(int hWnd, String pText , String pCaption , int uType); public static int Main(string[] args) { String pText = "HELLO INDIA!!"; String pCaption = "Example by Arungg"; MessageBox(0,pText,pCaption,0); return 0; } } }
Build Your Own ASP.NET Website Using C# & VB.NET