IAccessibleEx::GetIAccessiblePair method (uiautomationcore.h)

Retrieves the IAccessible interface and child ID for this item.

Syntax

HRESULT GetIAccessiblePair(
  [out] IAccessible **ppAcc,
  [out] long        *pidChild
);

Parameters

[out] ppAcc

Type: IAccessible**

Receives a pointer to the IAccessible interface for this object, or the parent object if this is a child element.

[out] pidChild

Type: long*

Receives the child ID, or CHILDID_SELF if this is not a child element.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See also

IAccessibleEx