Share via


IUIAutomationRegistrar::RegisterProperty Method

Registers a third-party property.

Syntax

HRESULT RegisterProperty(      
    UIAutomationPropertyInfo *Property,
    PropertyID *PropertyId
);

Parameters

  • Property
    [in] The address of a UIAutomationPropertyInfo structure that contains information about the property to register.
  • PropertyId
    [out] The address of a variable that receives the property ID of the newly registered property.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The property ID can be used in various property methods, including IUIAutomationElement::GetCurrentPropertyValue, and IUIAutomation::CreatePropertyCondition. The same value can be used as a WinEvent value for property change events in IAccessibleEx implementations.

See Also

IUIAutomationRegistrar