This section contains information on the following new structures used with Active Accessibility.
typedef struct tagGUITHREADINFO { DWORD cbSize; DWORD flags; HWND hwndActive; HWND hwndFocus; HWND hwndCapture; HWND hwndMenuOwner; HWND hwndMoveSize; HWND hwndCaret; RECT rcCaret; } GUITHREADINFO, FAR * LPGUITHREADINFO;
Carries information about a GUI thread.
GUI_CARETBLINKING | Represents the caret's blink state. This bit is set if the caret is visible. |
GUI_INMENU | Represents the thread's menu state. This bit is set if the thread is in menu mode. |
GUI_INMOVESIZE | Represents the thread's move state. This bit is set if the thread is in a move or size loop. |
GUI_POPUPMENUMODE | Represents the thread's pop-up menu state. This bit is set if the thread has an active pop-up menu. |
GUI_SYSTEMMENUMODE | Represents the thread's system menu state. This bit is set if the thread is in a system menu mode. |
This structure is used with the GetGUIThreadInfo function to retrieve information about the active window or a specified GUI thread.
typedef struct tagHARDWAREINPUT { DWORD uMsg; WORD ParamL; WORD ParamH; DWORD dwExtraInfo; } HARDWAREINPUT, FAR* LPHARDWAREINPUT;
Contains information about a simulated message generated by an input device.
This structure is contained by the INPUT structure and used with the SendInput function.
See also Simulating Input
typedef struct tagINPUT { DWORD type; union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; }; } INPUT, FAR* LPINPUT;
Carries information describing simulated mouse, keyboard, or other user input.
INPUT_HARDWARE | The hi union member is valid. |
INPUT_KEYBOARD | The ki union member is valid. |
INPUT_MOUSE | The mi union member is valid. |
This structure is used with the SendInput sample application.
This structure contains information identical to that used in the parameter list for a call to the keybd_event, mouse_event, or hardware_event functions.
See also Simulating Input
typedef struct tagKEYBDINPUT { WORD wVk; WORD wScan; DWORD dwFlags; DWORD time; DWORD dwExtraInfo; } KEYBDINPUT, *PKEYBDINPUT, FAR* LPKEYBDINPUT;
Contains information about a simulated keyboard event.
KEYEVENTF_EXTENDEDKEY | If specified, the scan code was preceded by a prefix byte that has the value 0xE0 (224). |
KEYEVENTF_KEYUP | If specified, the key is being released. If not specified, the key is being pressed. |
This structure is contained by the INPUT structure and used with the SendInput function.
See also Simulating Input
typedef struct tagMOUSEINPUT { LONG dx; LONG dy; DWORD mouseData; DWORD dwFlags; DWORD dwExtraInfo; } MOUSEINPUT, FAR* LPMOUSEINPUT;
Carries information about a simulated mouse event.
Depending on the flags specified in the dwFlags member of the associated SendInput function call, these members indicate either an absolute position or an amount of movement since the last mouse event occurred. If the MOUSEEVENTF_ABSOLUTE bit is set in the dwFlags member, then these are absolute positions; otherwise they are relative movement values.
If the dwFlags member does not contain MOUSEEVENTF_WHEEL, then you must set mouseData to zero.
MOUSEEVENTF_ABSOLUTE | Specifies that the dx and dy members contain normalized absolute coordinates. If the flag is not set, the dx and dy members contain relative data: the change in position since the last reported position. This flag can be set, or not set, regardless of what kind of mouse or other pointing device, if any, is connected to the system. |
MOUSEEVENTF_LEFTDOWN | Specifies that the left button was pressed. |
MOUSEEVENTF_LEFTUP | Specifies that the left button was released. |
MOUSEEVENTF_MIDDLEDOWN | Specifies that the middle button was pressed. |
MOUSEEVENTF_MIDDLEUP | Specifies that the middle button was released. |
MOUSEEVENTF_MOVE | Specifies that movement occurred. |
MOUSEEVENTF_RIGHTDOWN | Specifies that the right button was pressed. |
MOUSEEVENTF_RIGHTUP | Specifies that the right button was released. |
MOUSEEVENTF_WHEEL | Windows NT only: Specifies that the wheel was moved, if the mouse has a wheel. The amount of movement is specified in mouseData. |
This structure is contained by the INPUT structure and used with the SendInput function.
See also Simulating Input
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.