Esempio n. 1
0
		[DllImport("gdi32")] public static extern int GetClipBox(HDC hdc, ref User.Struct.RECT lpRect);
Esempio n. 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));
 }
Esempio n. 3
0
 public static void KeyboardEvent(User.VK vk)
 {
     KeyboardEvent(vk, 0);
 }
Esempio n. 4
0
		[DllImport("gdi32")] public static extern int SetBoundsRect(HDC hdc, ref User.Struct.RECT lprcBounds, int flags);
Esempio n. 5
0
		[DllImport("gdi32")] public static extern int SetWindowExtEx(HDC hdc, int nX, int nY, ref User.Struct.SIZE lpSize);
Esempio n. 6
0
		[DllImport("gdi32")] public static extern int RectInRegion(HANDLE hRgn, ref User.Struct.RECT lpRect);
Esempio n. 7
0
		[DllImport("gdi32")] public static extern int ScaleWindowExtEx(HDC hdc, int nXnum, int nXdenom, int nYnum, int nYdenom, ref User.Struct.SIZE lpSize);
Esempio n. 8
0
		[DllImport("gdi32")] public static extern int GetTextExtentPoint32(HDC hdc, string lpsz, int cbString, ref User.Struct.SIZE lpSize);
Esempio n. 9
0
		[DllImport("gdi32")] public static extern int GetViewportExtEx(HDC hdc, ref User.Struct.SIZE lpSize);
Esempio n. 10
0
		[DllImport("gdi32")] public static extern int GetRgnBox(HANDLE hRgn, ref User.Struct.RECT lpRect);
Esempio n. 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);
Esempio n. 12
0
		[DllImport("gdi32")] public static extern int GetPath(HDC hdc, ref User.Struct.POINT lpPoint, Byte lpTypes, int nSize);
Esempio n. 13
0
		[DllImport("gdi32")] public static extern int GetDCOrgEx(HDC hdc, ref User.Struct.POINT lpPoint);
Esempio n. 14
0
		[DllImport("gdi32")] public static extern int GetCurrentPositionEx(HDC hdc, ref User.Struct.POINT lpPoint);
Esempio n. 15
0
		[DllImport("gdi32")] public static extern int Polygon(HDC hdc, ref User.Struct.POINT lpPoint, int nCount);
Esempio n. 16
0
		[DllImport("gdi32")] public static extern int MoveToEx(HDC hdc, int x, int y, ref User.Struct.POINT lpPoint);
Esempio n. 17
0
		[DllImport("gdi32")] public static extern int PolylineTo(HDC hdc, ref User.Struct.POINT lppt, int cCount);
Esempio n. 18
0
		[DllImport("gdi32")] public static extern int OffsetViewportOrgEx(HDC hdc, int nX, int nY, ref User.Struct.POINT lpPoint);
Esempio n. 19
0
		[DllImport("gdi32")] public static extern int RectVisible(HDC hdc, ref User.Struct.RECT lpRect);
Esempio n. 20
0
		[DllImport("gdi32")] public static extern int PlayEnhMetaFile(HDC hdc, HANDLE hemf, ref User.Struct.RECT lpRect);
Esempio n. 21
0
		[DllImport("gdi32")] public static extern int SetBitmapDimensionEx(HANDLE hbm, int nX, int nY, ref User.Struct.SIZE lpSize);
Esempio n. 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);
Esempio n. 23
0
		[DllImport("gdi32")] public static extern int SetBrushOrgEx(HDC hdc, int nXOrg, int nYOrg, ref User.Struct.POINT lppt);
Esempio n. 24
0
		[DllImport("gdi32")] public static extern int PolyBezier(HDC hdc, ref User.Struct.POINT lppt, int cPoints);
Esempio n. 25
0
		[DllImport("gdi32")] public static extern int SetWindowOrgEx(HDC hdc, int nX, int nY, ref User.Struct.POINT lpPoint);
Esempio n. 26
0
		[DllImport("gdi32")] public static extern int PolyDraw(HDC hdc, ref User.Struct.POINT lppt, Byte lpbTypes, int cCount);
Esempio n. 27
0
 public static void SendInput(User.Struct.INPUT[] inputs)
 {
     User.SendInput((uint)inputs.Length, inputs, Marshal.SizeOf(inputs[0]));
 }
Esempio n. 28
0
		[DllImport("gdi32")] public static extern int PolyPolyline(HDC hdc, ref User.Struct.POINT lppt, ref int lpdwPolyPoints, int cCount);
Esempio n. 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);
        }
Esempio n. 30
0
		[DllImport("gdi32")] public static extern int GetBrushOrgEx(HWND hdc, ref User.Struct.POINT lpPoint);