IRawElementProviderSimple::GetPatternProvider method (uiautomationcore.h)

Retrieves a pointer to an object that provides support for a control pattern on a Microsoft UI Automation element.

Syntax

HRESULT GetPatternProvider(
  [in]          PATTERNID patternId,
  [out, retval] IUnknown  **pRetVal
);

Parameters

[in] patternId

Type: PATTERNID

The identifier of the control pattern. For a list of control pattern IDs, see Control Pattern Identifiers.

[out, retval] pRetVal

Type: IUnknown**

Receives a pointer to the object that supports the control pattern, or NULL if the control pattern is not supported. This parameter is passed uninitialized.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)

See also

IRawElementProviderSimple