IUIAutomationElement::GetRuntimeId method (uiautomationclient.h)
Retrieves the unique identifier assigned to the UI element.
HRESULT GetRuntimeId( [out, retval] SAFEARRAY **runtimeId );
[out, retval] runtimeId
Receives a pointer to the runtime ID as an array of integers.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The identifier is only guaranteed to be unique to the UI of the desktop on which it was generated. Identifiers can be reused over time.
The format of run-time identifiers might change in the future. The returned identifier should be treated as an opaque value and used only for comparison; for example, to determine whether a Microsoft UI Automation element is in the cache.
|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 only]|
|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 only]|
|Header||uiautomationclient.h (include UIAutomation.h)|