IAPI::FindWindow

property FindWindow.

Finds a handle of window.

 

HRESULT FindWindow(
  BSTR wndClassName,
  BSTR wndTitle,
  long *pVal
);

Parameters

wndClassName

[in] .    Window classname. For example:  "#32770" for dialog box

wndTitle

[in] .    Optional title. If omitted, the first found window handle will be returned.

pVal

[out, retval] The returned value is handle of the searching window.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI