Share via


Fonction UiaRaiseNotificationEvent (uiautomationcoreapi.h)

Appelé par les fournisseurs pour lancer un événement de notification.

Syntaxe

HRESULT UiaRaiseNotificationEvent(
  [in]           IRawElementProviderSimple *provider,
                 NotificationKind          notificationKind,
                 NotificationProcessing    notificationProcessing,
  [in, optional] BSTR                      displayString,
  [in]           BSTR                      activityId
);

Paramètres

[in] provider

Nœud de fournisseur où l’événement de notification s’est produit.

notificationKind

Type de notification, en tant que valeur d’énumération NotificationKind .

notificationProcessing

Méthode préférée pour traiter une notification, en tant que valeur d’énumération NotificationProcessing .

[in, optional] displayString

Chaîne à afficher dans le message de notification.

[in] activityId

Chaîne unique non localisée permettant d’identifier une action ou un groupe d’actions. Utilisez cette option pour transmettre des informations supplémentaires au gestionnaire d’événements.

Valeur retournée

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

Notes

Si votre fenêtre utilise le WS_POPUP style, elle doit également implémenter le modèle de contrôle de fenêtre et gérer le message WM_GETOBJECT (pour plus d’informations, consultez Comment exposer un fournisseur de Server-Side UI Automation).

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 10, version 1709 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2016 [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête uiautomationcoreapi.h (inclure UIAutomation.h)
Bibliothèque Uiautomationcore.lib
DLL Uiautomationcore.dll