Méthode IUIAutomationPatternInstance ::CallMethod (uiautomationcore.h)

Le wrapper client implémente des méthodes en appelant cette fonction CallMethod, en spécifiant les paramètres sous la forme d’un tableau de pointeurs.

Syntaxe

HRESULT CallMethod(
  [in] UINT                        index,
  [in] const UIAutomationParameter *pParams,
  [in] UINT                        cParams
);

Paramètres

[in] index

Type : UINT

Index de la méthode.

[in] pParams

Type : UIAutomationParameter*

Pointeur vers un tableau de structures décrivant les paramètres.

[in] cParams

Type : UINT

Nombre de paramètres dans pParams.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Spécifications

Condition requise Valeur
Client minimal pris en charge Windows 7, Windows Vista avec SP2 et Mise à jour de plateforme pour Windows Vista, Windows XP avec SP3 et Mise à jour de plateforme pour Windows Vista [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2, Windows Server 2008 avec SP2 et Platform Update pour Windows Server 2008, Windows Server 2003 avec SP2 et Platform Update pour Windows Server 2008 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête uiautomationcore.h (incluez UIAutomation.h)

Voir aussi

IUIAutomationPatternInstance