Enumerates a windows that belong to the specified process
#include <WinAPIProc.au3>
_WinAPI_EnumProcessWindows ( [$iPID = 0 [, $bVisible = True]] )
$iPID | [optional] The PID of the process. Default (0) is the current process. |
$bVisible | [optional] Specifies whether enumerates the invisible window, valid values: True - Enumerate only visible windows (Default). False - Enumerate all windows. |
Success: | The 2D array of the handles to the window and class for the specified process. [0][0] - Number of rows in array (n) [0][1] - Unused [n][0] - Window handle [n][1] - Window class name |
Failure: | Sets the @error flag to non-zero. |
#include <Array.au3>
#include <WinAPIProc.au3>
Local $aData = _WinAPI_EnumProcessWindows(0, 0)
_ArrayDisplay($aData, '_WinAPI_EnumProcessWindows')