Beispiel #1
0
		[DllImport("gdi32")] public static extern int GetClipBox(HDC hdc, ref User.Struct.RECT lpRect);
Beispiel #2
0
 public static void SendInput(User.Struct.INPUT input)
 {
     User.Struct.INPUT[] inputs = new User.Struct.INPUT[1];
     inputs[0] = input;
     User.SendInput(1, inputs, Marshal.SizeOf(input));
 }
Beispiel #3
0
 public static void KeyboardEvent(User.VK vk)
 {
     KeyboardEvent(vk, 0);
 }
Beispiel #4
0
		[DllImport("gdi32")] public static extern int SetBoundsRect(HDC hdc, ref User.Struct.RECT lprcBounds, int flags);
Beispiel #5
0
		[DllImport("gdi32")] public static extern int SetWindowExtEx(HDC hdc, int nX, int nY, ref User.Struct.SIZE lpSize);
Beispiel #6
0
		[DllImport("gdi32")] public static extern int RectInRegion(HANDLE hRgn, ref User.Struct.RECT lpRect);
Beispiel #7
0
		[DllImport("gdi32")] public static extern int ScaleWindowExtEx(HDC hdc, int nXnum, int nXdenom, int nYnum, int nYdenom, ref User.Struct.SIZE lpSize);
Beispiel #8
0
		[DllImport("gdi32")] public static extern int GetTextExtentPoint32(HDC hdc, string lpsz, int cbString, ref User.Struct.SIZE lpSize);
Beispiel #9
0
		[DllImport("gdi32")] public static extern int GetViewportExtEx(HDC hdc, ref User.Struct.SIZE lpSize);
Beispiel #10
0
		[DllImport("gdi32")] public static extern int GetRgnBox(HANDLE hRgn, ref User.Struct.RECT lpRect);
Beispiel #11
0
		[DllImport("gdi32")] public static extern int GetTextExtentExPoint(HDC hdc, string lpszStr, int cchString, int nMaxExtent, ref int lpnFit, int alpDx, ref User.Struct.SIZE lpSize);
Beispiel #12
0
		[DllImport("gdi32")] public static extern int GetPath(HDC hdc, ref User.Struct.POINT lpPoint, Byte lpTypes, int nSize);
Beispiel #13
0
		[DllImport("gdi32")] public static extern int GetDCOrgEx(HDC hdc, ref User.Struct.POINT lpPoint);
Beispiel #14
0
		[DllImport("gdi32")] public static extern int GetCurrentPositionEx(HDC hdc, ref User.Struct.POINT lpPoint);
Beispiel #15
0
		[DllImport("gdi32")] public static extern int Polygon(HDC hdc, ref User.Struct.POINT lpPoint, int nCount);
Beispiel #16
0
		[DllImport("gdi32")] public static extern int MoveToEx(HDC hdc, int x, int y, ref User.Struct.POINT lpPoint);
Beispiel #17
0
		[DllImport("gdi32")] public static extern int PolylineTo(HDC hdc, ref User.Struct.POINT lppt, int cCount);
Beispiel #18
0
		[DllImport("gdi32")] public static extern int OffsetViewportOrgEx(HDC hdc, int nX, int nY, ref User.Struct.POINT lpPoint);
Beispiel #19
0
		[DllImport("gdi32")] public static extern int RectVisible(HDC hdc, ref User.Struct.RECT lpRect);
Beispiel #20
0
		[DllImport("gdi32")] public static extern int PlayEnhMetaFile(HDC hdc, HANDLE hemf, ref User.Struct.RECT lpRect);
Beispiel #21
0
		[DllImport("gdi32")] public static extern int SetBitmapDimensionEx(HANDLE hbm, int nX, int nY, ref User.Struct.SIZE lpSize);
Beispiel #22
0
		[DllImport("gdi32")] public static extern int PlgBlt(HWND hdcDest, ref User.Struct.POINT lpPoint, HWND hdcSrc, int nXSrc, int nYSrc, int nWidth, int nHeight, HANDLE hbmMask, int xMask, int yMask);
Beispiel #23
0
		[DllImport("gdi32")] public static extern int SetBrushOrgEx(HDC hdc, int nXOrg, int nYOrg, ref User.Struct.POINT lppt);
Beispiel #24
0
		[DllImport("gdi32")] public static extern int PolyBezier(HDC hdc, ref User.Struct.POINT lppt, int cPoints);
Beispiel #25
0
		[DllImport("gdi32")] public static extern int SetWindowOrgEx(HDC hdc, int nX, int nY, ref User.Struct.POINT lpPoint);
Beispiel #26
0
		[DllImport("gdi32")] public static extern int PolyDraw(HDC hdc, ref User.Struct.POINT lppt, Byte lpbTypes, int cCount);
Beispiel #27
0
 public static void SendInput(User.Struct.INPUT[] inputs)
 {
     User.SendInput((uint)inputs.Length, inputs, Marshal.SizeOf(inputs[0]));
 }
Beispiel #28
0
		[DllImport("gdi32")] public static extern int PolyPolyline(HDC hdc, ref User.Struct.POINT lppt, ref int lpdwPolyPoints, int cCount);
Beispiel #29
0
        public static void KeyboardEvent(User.VK vk, KB kb)
        {
            User.Struct.INPUT input = new User.Struct.INPUT(User.Const.INPUT_KEYBOARD);
            input.ki.dwExtraInfo = User.GetMessageExtraInfo();

            KeyDown(kb);

            // Key down the actual key-code
            input.ki.wVk = (ushort)vk;
            SendInput(input);

            // Key up the actual key-code
            input.ki.dwFlags = User.Const.KEYEVENTF_KEYUP;
            SendInput(input);

            KeyUp(kb);
        }
Beispiel #30
0
		[DllImport("gdi32")] public static extern int GetBrushOrgEx(HWND hdc, ref User.Struct.POINT lpPoint);