📦WinAPI.cs - Window

Код класса:

WinAPI.cs
public static class Window
{
  public enum WindowStyles : uint {...}
    
  public enum WindowStylesEx : uint {...}
    
  public enum ShowWindowCommands : int {...}
    
  public static IntPtr Create(WindowStylesEx windowStyleEx, WindowStyles windowStyle, string className, string windowName, int x, int y, int width, int height) {...}
  
  public static bool Show(IntPtr hWindow, ShowWindowCommands command) {...}
    
  public static IntPtr Find(string className, string windowName) {...}
    
  public static bool Destroy(IntPtr hWnd) {...}
    
  public static bool Move(IntPtr hWindow, int x, int y, int width, int height) {...}
    
  public static bool Update(IntPtr hWindow) {...}
    
  public static bool SetText(IntPtr hWindow, string text) {...}
    
  public static string GetText(IntPtr hWnd, int maxLength = 1024) {...}
}

Last updated

Was this helpful?