The GUITHREADINFO structure contains information about a graphical user interface (GUI) thread.
Syntax
typedef struct tagGUITHREADINFO { DWORD cbSize; DWORD flags; HWND hwndActive; HWND hwndFocus; HWND hwndCapture; HWND hwndMenuOwner; HWND hwndMoveSize; HWND hwndCaret; RECT rcCaret; } GUITHREADINFO, *PGUITHREADINFO;
Members
cbSize Specifies the size of this structure, in bytes. The caller must set this to sizeof(GUITHREADINFO). flags Specifies the thread state. This member can be one or more of the following values. GUI_16BITTASKWindows XP: Represents the thread's application type. This bit is set if the thread corresponds to a 16-bit application.GUI_CARETBLINKINGRepresents the caret's blink state. This bit is set if the caret is visible. GUI_INMENUMODERepresents the thread's menu state. This bit is set if the thread is in menu mode. GUI_INMOVESIZERepresents the thread's move state. This bit is set if the thread is in a move or size loop. GUI_POPUPMENUMODERepresents the thread's pop-up menu state. This bit is set if the thread has an active pop-up menu.GUI_SYSTEMMENUMODERepresents the thread's system menu state. This bit is set if the thread is in a system menu mode.hwndActive Handle to the active window within the thread. hwndFocus Handle to the window that has the keyboard focus. hwndCapture Handle to the window that has captured the mouse. hwndMenuOwner Handle to the window that owns any active menus. hwndMoveSize Handle to the window in a move or size loop. hwndCaret Handle to the window that is displaying the caret. rcCaret A RECT structure that describes the caret's bounding rectangle, in client coordinates, relative to the window specified by the hwndCaret member.
GUI_16BITTASK
GUI_CARETBLINKING
GUI_INMENUMODE
GUI_INMOVESIZE
GUI_POPUPMENUMODE
GUI_SYSTEMMENUMODE
Remarks
This structure is used with the GetGUIThreadInfo function to retrieve information about the active window or a specified GUI thread.
Structure Information
HeaderDeclared in Winuser.h, include Windows.hMinimum operating systems Windows 98, Windows NT 4.0 with Service Pack 3
See Also
Windows Overview, GetGUIThreadInfo, RECT