Metodo IProxyProviderWinEventSink::AddAutomationEvent (uiautomationcore.h)

Genera un evento di microsoft Automazione interfaccia utente.

Sintassi

HRESULT AddAutomationEvent(
  [in] IRawElementProviderSimple *pProvider,
  [in] EVENTID                   id
);

Parametri

[in] pProvider

Tipo: IRawElementProviderSimple*

Puntatore al provider per l'elemento che genererà l'evento.

[in] id

Tipo: EVENTID

Identificatore dell'evento che verrà generato. Per un elenco di identificatori di evento, vedere Identificatori di evento

Valore restituito

Tipo: HRESULT

Se questo metodo ha esito positivo, restituisce S_OK. In caso contrario, restituisce un codice di errore HRESULT .

Requisiti

Requisito Valore
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista, Windows XP con SP3 e Platform Update per Windows Vista [app desktop | App UWP]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008, Windows Server 2003 con SP2 e Platform Update per Windows Server 2008 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione uiautomationcore.h (include UIAutomation.h)

Vedi anche

IProxyProviderWinEventSink