Share via


UiaGetPatternProvider Function

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

Retrieves a control pattern.

Syntax

HRESULT UiaGetPatternProvider(      
    HUIANODE hnode,
    PATTERNID patternId,
    HPATTERNOBJECT *phobj
);

Parameters

  • hnode
    [in] The element that implements the pattern.
  • patternId
    [in] The identifier of the control pattern being requested. For a list of control pattern IDs, see Control Pattern Identifiers.
  • phobj
    [out] The address of a variable that receives a handle to the control pattern. 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