IUIAutomation::CompareRuntimeIds Method

Compares two integer arrays containing run-time identifiers (IDs) to determine whether their content is the same and they belong to the same UI element.

Syntax

HRESULT CompareRuntimeIds(      
    SAFEARRAY runtimeId1[int],
    SAFEARRAY runtimeId2[int],
    BOOL *areSame
);

Parameters

  • runtimeId1
    [in] A SAFEARRAY specifying the first ID to compare.
  • runtimeId2
    [in] A SAFEARRAY specifying the second ID to compare
  • areSame
    [out, retval] The address of a variable that receives TRUE if the IDs are the same, or FALSE otherwise.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomation::CompareElements, IUIAutomationElement::GetRuntimeId, Working with Safe Arrays