169 lines
5.9 KiB
C#
169 lines
5.9 KiB
C#
|
|
using System;
|
|||
|
|
using System.Drawing;
|
|||
|
|
using System.Runtime.InteropServices;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
internal class Class1
|
|||
|
|
{
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern bool SetWindowPos(IntPtr intptr_0, IntPtr intptr_1, int int_0, int int_1, int int_2, int int_3, uint uint_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr GetDC(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("Gdi32.dll")]
|
|||
|
|
public static extern IntPtr GetBkColor(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr FindWindowEx(IntPtr intptr_0, IntPtr intptr_1, string string_0, string string_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr FindWindow(string string_0, string string_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr GetLastActivePopup(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr AnyPopup();
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern int GetWindowText(IntPtr intptr_0, StringBuilder stringBuilder_0, int int_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Ansi)]
|
|||
|
|
public static extern int SetWindowText(IntPtr intptr_0, string string_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr ReleaseCapture();
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr SetCapture(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr SetFocus(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern void keybd_event(byte byte_0, byte byte_1, int int_0, int int_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr EnumThreadWindows(IntPtr intptr_0, Class1.Delegate0 delegate0_0, IntPtr intptr_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr EnumWindows(Class1.Delegate0 delegate0_0, IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr EnumChildWindows(IntPtr intptr_0, Class1.Delegate0 delegate0_0, IntPtr intptr_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
|||
|
|
public static extern int GetClassName(IntPtr intptr_0, StringBuilder stringBuilder_0, int int_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr WindowFromPoint(Point point_0);
|
|||
|
|
|
|||
|
|
[DllImport("user32 ")]
|
|||
|
|
public static extern int GetKeyboardState(byte[] byte_0);
|
|||
|
|
|
|||
|
|
[DllImport("user32 ")]
|
|||
|
|
public static extern int ToAscii(int int_0, int int_1, byte[] byte_0, byte[] byte_1, int int_2);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern IntPtr CallWindowProc(IntPtr intptr_0, IntPtr intptr_1, int int_0, IntPtr intptr_2, IntPtr intptr_3);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern bool ClientToScreen(IntPtr intptr_0, ref Point point_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern bool ScreenToClient(IntPtr intptr_0, ref Point point_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern IntPtr SetWindowLong(IntPtr intptr_0, int int_0, IntPtr intptr_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto, EntryPoint = "SetWindowLong")]
|
|||
|
|
public static extern IntPtr SetWindowLong_1(IntPtr intptr_0, int int_0, Class1.Delegate1 delegate1_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr SetWindowLongPtr(IntPtr intptr_0, int int_0, IntPtr intptr_1);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", EntryPoint = "SetWindowLongPtr")]
|
|||
|
|
public static extern IntPtr SetWindowLongPtr_1(IntPtr intptr_0, int int_0, Class1.Delegate1 delegate1_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto, EntryPoint = "CallWindowProc")]
|
|||
|
|
public static extern IntPtr CallWindowProc_1(IntPtr intptr_0, IntPtr intptr_1, IntPtr intptr_2, IntPtr intptr_3, IntPtr intptr_4);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern IntPtr DefWindowProc(IntPtr intptr_0, int int_0, IntPtr intptr_1, IntPtr intptr_2);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern int SendMessageA(IntPtr intptr_0, int int_0, IntPtr intptr_1, StringBuilder stringBuilder_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern int SendMessage(IntPtr intptr_0, int int_0, IntPtr intptr_1, IntPtr intptr_2);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern int GetWindowRect(IntPtr intptr_0, out Class1.Struct1 struct1_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll")]
|
|||
|
|
public static extern int GetClientRect(IntPtr intptr_0, out Class1.Struct1 struct1_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern IntPtr BeginPaint(IntPtr intptr_0, ref Class1.Struct0 struct0_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern bool EndPaint(IntPtr intptr_0, ref Class1.Struct0 struct0_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern IntPtr UpdateWindow(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("user32", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern uint GetWindowLong(IntPtr intptr_0, int int_0);
|
|||
|
|
|
|||
|
|
[DllImport("User32.dll", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern IntPtr SetActiveWindow(IntPtr intptr_0);
|
|||
|
|
|
|||
|
|
[DllImport("user32", CharSet = CharSet.Auto)]
|
|||
|
|
public static extern int SetLayeredWindowAttributes(IntPtr intptr_0, int int_0, int int_1, int int_2);
|
|||
|
|
|
|||
|
|
public delegate bool Delegate0(IntPtr hwnd, IntPtr lParam);
|
|||
|
|
|
|||
|
|
public delegate IntPtr Delegate1(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
|
|||
|
|
|
|||
|
|
public struct Struct0
|
|||
|
|
{
|
|||
|
|
public IntPtr TjopfofnmG;
|
|||
|
|
|
|||
|
|
public int int_0;
|
|||
|
|
|
|||
|
|
public Rectangle rectangle_0;
|
|||
|
|
|
|||
|
|
public int int_1;
|
|||
|
|
|
|||
|
|
public int int_2;
|
|||
|
|
|
|||
|
|
public int int_3;
|
|||
|
|
|
|||
|
|
public int int_4;
|
|||
|
|
|
|||
|
|
public int int_5;
|
|||
|
|
|
|||
|
|
public int int_6;
|
|||
|
|
|
|||
|
|
public int ToBpIcwwy9;
|
|||
|
|
|
|||
|
|
public int int_7;
|
|||
|
|
|
|||
|
|
public int int_8;
|
|||
|
|
|
|||
|
|
public int int_9;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public struct Struct1
|
|||
|
|
{
|
|||
|
|
public int int_0;
|
|||
|
|
|
|||
|
|
public int WuApKkPsaL;
|
|||
|
|
|
|||
|
|
public int int_1;
|
|||
|
|
|
|||
|
|
public int int_2;
|
|||
|
|
}
|
|||
|
|
}
|