IAccessibleWindowlessSite::GetParentAccessible method (oleacc.h)

Retrieves an IAccessible pointer for the parent of a windowless Microsoft ActiveX control in the accessibility tree.

Syntax

HRESULT GetParentAccessible(
  [out, optional] IAccessible **ppParent
);

Parameters

[out, optional] ppParent

Type: IAccessible**

Receives the IAccessible pointer for the parent of the windowless ActiveX control.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

To return its parent IAccessible object, an object that implements IAccessible must be able to implement the get_accParent method. Implementing get_accParent is difficult for a windowless ActiveX control because the control might be unable to determine its location in the accessible tree of the parent object. The GetParentAccessible method enables a windowless ActiveX control to query its site for the parent object, and then return the parent object to the client that called get_accParent.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header oleacc.h
Library Oleacc.lib
DLL Oleacc.dll

See also

IAccessibleWindowlessSite