IRawElementProviderSimple::GetPatternProvider method

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

Syntax

HRESULT GetPatternProvider(
  PATTERNID patternId,
  IUnknown  **pRetVal
);

Parameters

patternId

Type: PATTERNID

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

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

   
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