📦WinAPI.cs - WinAPI

Код класса:

WinAPI.cs
public static class WinAPI
{
  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) {...}
  }
  
  public static class ConsoleWindow
  {
    public enum WindowStyle : int {...}
    
    public enum SCWindowStyle : uint {...}
    
    public static IntPtr GetWindow() {...}
    
    public static Size GetFontSize() {...}
    
    public static void InjectPicture(IntPtr hWnd, string pathToImage, int size_x, int size_y, int pos_x, int pos_y, bool useMetricFont = true) {...}
    
    public static void ModifyStyleControl(IntPtr hWnd, WindowStyle windowStyle) {...}
    
    public static void ModifyStyleControlSC(IntPtr hWnd, SCWindowStyle SCwindowStyle) {...}
    
    public static void CursorVisibility(bool visible) {...}
    
    public static void ScrollVisibleFalse() {...}
    
    public static void ScrollVisibleTrue() {...}
  }
}
triangle-exclamation

Last updated

Was this helpful?