Share via


IUIAutomationElement::CurrentProcessId Property

Retrieves the ID of the process that hosts the element.

Syntax

HRESULT IUIAutomationElement::get_CurrentProcessId(int *retVal);

Parameters

  • retVal
    The address of a variable that receives the value of the property.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UIA_ProcessIdPropertyId, IUIAutomationElement, IUIAutomationElement::CachedProcessId