FindWindowByIndex method
Finds the window with the specified index ID.
Syntax
HRESULT retVal = object.FindWindowByIndex(dwID, ppunk);
Parameters
dwID [in]
Type: DWORDA DWORD that specifies the numerical window ID.
ppunk [out]
Type: IUnknownA pointer variable of type IUnknown that receives the window object, if found. The caller is responsible for calling Release on the object.
Remarks
FindWindowByIndex was introduced in Windows Internet Explorer 7.
This method recursively searches the frames collection for the window with the given ID. If there are no frames contained in the current window, this method checks only the ID of the current window.