IAPI::GetWindowText

property GetWindowText.

Retrieves a text string from a window if it is available.

 

HRESULT GetWindowText(
  long hWnd,
  BSTR *pVal
);

Parameters

hWnd

[in] .   Handle of the target window.

pVal

[out, retval]

The returned value is NULL (vbNullString) or a text string.

If not NULL, the string must be freed by FreeBSTR.

 

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