What is this, for detailed in interpretation

class Class1
  {
  [DllImport( "User32.dll ")]
  public static extern System. IntPtr FindWindowEx(System. IntPtr parent, System. IntPtr childe, string strclass, string strname);
  ///
  /// The main entrance point for the application.
  ///
  [STAThread]
  static void Main(string[] args)
  {
  //
  //Add TODO: code here to start the application
  //
  IntPtr p=FindWindowEx(System.IntPtr.Zero,System.IntPtr.Zero,null,"The window title");
  }
  }

Started by Matthew at November 12, 2016 - 7:33 PM

class Class1 //Declaration of the class
  { 
  [DllImport( "User32.dll ")]  //Add the import function, the parent- parent window, childe- to start the search from behind what a child window, the strclass- window class name, window title under the same strname-!
  public static extern System. IntPtr FindWindowEx(System. IntPtr parent, System. IntPtr childe, string strclass, string strname);//Function for the public 
  ///  
  /// The main entrance point for the application.  
  ///  
  [STAThread] 
  static void Main(string[] args) 
  { 
  // 
  //Add TODO: code here to start the application 
  //   Calling windows API   
  IntPtr p=FindWindowEx(System.IntPtr.Zero,System.IntPtr.Zero,null,"The window title"); 
  } 
  } 


As a simple example, call a WINDOWS API package.

Posted by Jessie at November 19, 2016 - 8:14 PM