WindowFromAccessibleObject

[This is preliminary documentation and subject to change.]

Retrieves the window handle that corresponds to a given instance of an IAccessible interface.

STDAPI WindowFromAccessibleObject(
  IAccessible* pacc,
  HWND* phwnd
);
 

Parameters

pacc
Address of an IAccessible interface.
phwnd
Address of a variable that will contain a handle to the window that contains the specified object, if any. If this value is NULL after the call, the object was not contained within a window (like the mouse pointer).

Return Values

Returns S_OK if successful or a standard COM error code otherwise. This function returns E_INVALIDARG if the pacc parameter is NULL.

See Also

AccessibleObjectFromWindow