Method wnd.getwnd.threadWindows
Overload
Gets top-level windows of a thread.
public static wnd[] threadWindows(int threadId, bool onlyVisible = false, bool sortFirstVisible = false)
Parameters
threadId (int)
Unmanaged thread id. See process.thisThreadId, wnd.ThreadId. If 0, throws exception. If other invalid value (ended thread?), returns empty list. Supports lastError. |
onlyVisible (bool)
Need only visible windows. |
sortFirstVisible (bool)
Place all array elements of hidden windows at the end of the array, even if the hidden windows are before some visible windows in the Z order. |
Returns
wnd[]
Array containing zero or more wnd. |
Exceptions
ArgumentException
threadId is 0. |
Remarks
Calls API EnumThreadWindows.