Share via


IUIAutomationPatternHandler::Dispatch Method

Dispatches a method or property getter to a custom control pattern provider.

Syntax

HRESULT Dispatch(      
    IUnknown *pTarget,
    UINT index,
    UIAutomationParameter *pParams,
    UINT cParams
);

Parameters

  • pTarget
    [in] The address of the object that implements the control pattern provider.
  • index
    [in] The index of the method or property getter.
  • pParams
    [in] The address of an array of UIAutomationParameter structures that contain information about the parameters to be passed.
  • cParams
    [in] The count of parameters in pParams.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationPatternHandler