Méthode IBackgroundCopyJob::GetNotifyFlags

Récupère les indicateurs de notification d’événement pour le travail.

Syntaxe

HRESULT GetNotifyFlags(
  [out] ULONG *pNotifyFlags
);

Paramètres

pNotifyFlags [out]

Identifie les événements que votre application reçoit. Le tableau suivant répertorie les valeurs d’indicateur de notification d’événement.

Valeur Signification
BG_NOTIFY_JOB_TRANSFERRED
Tous les fichiers du travail ont été transférés.
BG_NOTIFY_JOB_ERROR
Une erreur s’est produite.
BG_NOTIFY_DISABLE
La notification d’événement est désactivée. Si elle est définie, l’optimisation de la distribution ignore les autres indicateurs.
BG_NOTIFY_JOB_MODIFICATION
Le travail a été modifié.

Valeur retournée

Cette méthode retourne les valeurs HRESULT suivantes, ainsi que d’autres.

Code de retour Description
S_OK
Les indicateurs de notification d’événement ont été récupérés avec succès.

Spécifications

Condition requise Valeur
Client minimal pris en charge
Windows 10, version 1709 [applications de bureau uniquement]
Serveur minimal pris en charge
Windows Server, version 1709 [applications de bureau uniquement]
En-tête
Deliveryoptimization.h
IDL
DeliveryOptimization.idl
Bibliothèque
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyJob est défini comme 37668D37-507E-4160-9316-26306D150B12

Voir aussi

IBackgroundCopyJob

IBackgroundCopyCallback

IBackgroundCopyJob::GetNotifyInterface

IBackgroundCopyJob::SetNotifyFlags