Calling Native DLL Functions : Native Windows Function : Windows C# Examples


C# Examples » Windows » Native Windows Function »

 

Calling Native DLL Functions









    
using  System;
using  System.Runtime.InteropServices;
class  Test
{
        [DllImport("user32.dll")]
        public  static  extern  int  MessageBox(IntPtr  h,  string  m,  string  c,  int  type);
        public  static  void  Main()
        {
                int  retval  =  MessageBox(IntPtr.Zero,  "Hello",  "Caption",  0);
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Native Windows Function