IAccessible::get_accParent method

The IAccessible::get_accParent method retrieves the IDispatch of the object's parent. All objects support this property.

Syntax

HRESULT get_accParent(
  IDispatch **ppdispParent
);

Parameters

ppdispParent

Type: IDispatch**

Receives the address of the parent object's IDispatch interface. If no parent exists or if the child cannot access its parent, the variable is set to NULL.

Return Value

Type: HRESULT

If successful, returns S_OK.

If not successful, returns one of the values in the table that follows, or another standard COM error code. Servers return these values, but clients must always check output parameters to ensure that they contain valid values. For more information, see Checking IAccessible Return Values.

Error Description
S_FALSE
No parent exists for this object.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header oleacc.h
Library Oleacc.lib
DLL Oleacc.dll
Redistributable Active Accessibility 1.3 RDK on Windows NT 4.0 with SP6 and later and Windows 95

See Also

IAccessible

IAccessible::get_accChild

IDispatch

Object Navigation Properties and Methods