Fonction WaitForNtmsNotification (ntmsapi.h)

[Le Gestionnaire de stockage amovible n’est plus disponible à partir de Windows 7 et Windows Server 2008 R2.]

La fonction WaitForNtmsNotification attend la notification de modification d’objet suivante.

Syntaxe

DWORD WaitForNtmsNotification(
  [in]  HANDLE                         hNotification,
  [out] LPNTMS_NOTIFICATIONINFORMATION lpNotificationInformation,
  [in]  DWORD                          dwTimeout
);

Paramètres

[in] hNotification

Handle de notification retourné par la fonction OpenNtmsNotification .

[out] lpNotificationInformation

Pointeur vers une structure NTMS_NOTIFICATIONINFORMATION qui reçoit les informations de notification.

[in] dwTimeout

Nombre maximal de millisecondes à attendre. Si vous spécifiez la valeur INFINITE, cette fonction n’expirera pas.

Valeur retournée

Cette fonction retourne l’une des valeurs suivantes.

Valeur Signification
ERROR_DATABASE_FAILURE
Échec de la requête ou de la mise à jour de la base de données.
ERROR_INVALID_HANDLE
La valeur spécifiée dans le paramètre hNotification est NULL ou n’est pas valide.
ERROR_NO_DATA
Échec du canal de notification. Tentez de configurer à nouveau la notification.
ERROR_NOT_CONNECTED
Impossible de se connecter au service RSM.
ERROR_TIMEOUT
L’événement de délai d’expiration a expiré.
ERROR_SUCCESS
La fonction a été exécutée avec succès.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows XP [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2003 [applications de bureau uniquement]
Plateforme cible Windows
En-tête ntmsapi.h
Bibliothèque Ntmsapi.lib
DLL Ntmsapi.dll

Voir aussi

CloseNtmsNotification

Fonctions de notification de base de données

NTMS_NOTIFICATIONINFORMATION

OpenNtmsNotification