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(
  [out, retval]  IDispatch **ppdispParent
);

Parameters

ppdispParent [out, retval]

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.

ErrorDescription
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]

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
IAccessible::get_accChild
Object Navigation Properties and Methods
IDispatch

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.