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