IUIAutomationPatternInstance::CallMethod-Methode (uiautomationcore.h)

Client wrapper implementiert Methoden, indem diese CallMethod-Funktion aufgerufen und die Parameter als Array von Zeigern angegeben werden.

Syntax

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

Parameter

[in] index

Typ: UINT

Der Index der -Methode.

[in] pParams

Typ: UIAutomationParameter*

Ein Zeiger auf ein Array von Strukturen, das die Parameter beschreibt.

[in] cParams

Typ: UINT

Die Anzahl der Parameter in pParams.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista, Windows XP mit SP3 und Plattformupdate für Windows Vista [Desktop-Apps | UWP-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008, Windows Server 2003 mit SP2 und Plattformupdate für Windows Server 2008 [Desktop-Apps | UWP-Apps]
Zielplattform Windows
Kopfzeile uiautomationcore.h (include UIAutomation.h)

Weitere Informationen

IUIAutomationPatternInstance