Share via


FindWindowByIndex method

Finds the window with the specified index ID.

Syntax

HRESULT retVal = object.FindWindowByIndex(dwID, ppunk);

Parameters

  • dwID [in]
    Type: DWORD

    A DWORD that specifies the numerical window ID.

  • ppunk [out]
    Type: IUnknown

    A 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.