UiaGetPropertyValue function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation Component Object Model (COM) interfaces instead.
 
Retrieves the value of a UI Automation property.

Syntax

HRESULT UiaGetPropertyValue(
  HUIANODE   hnode,
  PROPERTYID propertyId,
  VARIANT    *pValue
);

Parameters

hnode

Type: HUIANODE

The element that the property is being requested from.

propertyId

Type: PROPERTYID

The property identifier. For a list of property IDs, see Property Identifiers.

pValue

Type: VARIANT*

Receives the value of the specified property, or the value returned by UiaGetReservedNotSupportedValue if the property is not supported. This parameter is passed uninitialized.

Return value

Type: HRESULT

Returns S_OK if successful or an error value otherwise.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header uiautomationcoreapi.h
Library Uiautomationcore.lib
DLL Uiautomationcore.dll