GUITHREADINFO structure
Applies to: desktop apps only
Contains information about a 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
-
Type: DWORD
-
The size of this structure, in bytes. The caller must set this member to
sizeof(GUITHREADINFO). - flags
-
Type: DWORD
-
The thread state. This member can be one or more of the following values.
- hwndActive
-
Type: HWND
-
A handle to the active window within the thread.
- hwndFocus
-
Type: HWND
-
A handle to the window that has the keyboard focus.
- hwndCapture
-
Type: HWND
-
A handle to the window that has captured the mouse.
- hwndMenuOwner
-
Type: HWND
-
A handle to the window that owns any active menus.
- hwndMoveSize
-
Type: HWND
-
A handle to the window in a move or size loop.
- hwndCaret
-
Type: HWND
-
A handle to the window that is displaying the caret.
- rcCaret
-
Type: RECT
-
The caret's bounding rectangle, in client coordinates, relative to the window specified by the hwndCaret member.
Remarks
This structure is used with the GetGUIThreadInfo function to retrieve information about the active window or a specified GUI thread.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Redistributable | Service Pack 3 |
|
Header |
|
See also
- Reference
- GetGUIThreadInfo
- Conceptual
- Windows
Send comments about this topic to Microsoft
Build date: 2/3/2012
<StructLayout(LayoutKind.Sequential)>
Public Structure GUITHREADINFO
Public cbSize As Integer
Public flags As GuiThreadInfoFlags
Public hwndActive As IntPtr
Public hwndFocus As IntPtr
Public hwndCapture As IntPtr
Public hwndMenuOwner As IntPtr
Public hwndMoveSize As IntPtr
Public hwndCaret As IntPtr
Public rcCaret As RECT
End Structure
Public Enum GuiThreadInfoFlags As Integer
GUI_CARETBLINKING = &H1
GUI_INMENUMODE = &H4
GUI_INMOVESIZE = &H2
GUI_POPUPMENUMODE = &H10
GUI_SYSTEMMENUMODE = &H8
End Enum