WindowFromAccessibleObject function (Windows)

Switch View :
ScriptFree
WindowFromAccessibleObject function

Applies to: desktop apps only

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

Syntax

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

Parameters

pacc [in]

Type: IAccessible*

Pointer to the IAccessible interface whose corresponding window handle will be retrieved. This parameter must not be NULL.

phwnd [out]

Type: HWND*

Address of a variable that receives a handle to the window containing the object specified in pacc. If this value is NULL after the call, the object is not contained within a window; for example, the mouse pointer is not contained within a window.

Return value

Type: STDAPI

If successful, returns S_OK.

If not successful, returns the following or another standard COM error code.

Return codeDescription
E_INVALIDARG

An argument is not valid.

 

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows Server 2003

Redistributable

Active Accessibility 1.3 RDK on Windows NT 4.0 with SP6 and later and Windows 95

Header

Oleacc.h

Library

Oleacc.lib

DLL

Oleacc.dll

See also

IAccessible
AccessibleObjectFromWindow

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012