Share via


UiaHPatternObjectFromVariant Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Gets a control pattern object from a VARIANT type.

Syntax

HRESULT UiaHPatternObjectFromVariant(      
    VARIANT *par,
    HUIAPATTERNOBJECT *phobj
);

Parameters

  • par
    [in] The address of a VARIANT that contains the pattern.
  • phobj
    [out] The address of a variable that receives the control pattern object. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP