Partager via


PUNREGISTER_NOTIFICATION_EVENT fonction de rappel (hdaudio.h)

La routine UnregisterNotificationEvent supprime l’inscription d’un événement précédemment inscrit par un appel à RegisterNotificationEvent.

Le type de pointeur de fonction d’une routine UnregisterNotificationEvent est défini comme suit.

Syntaxe

PUNREGISTER_NOTIFICATION_EVENT PunregisterNotificationEvent;

NTSTATUS PunregisterNotificationEvent(
  [in] PVOID _context,
  [in] HANDLE Handle,
  [in] PKEVENT NotificationEvent
)
{...}

Paramètres

[in] _context

Spécifie la valeur de contexte du membre Context de la structure HDAUDIO_BUS_INTERFACE_V2.

[in] Handle

Handle qui identifie le moteur DMA. Cette valeur de handle a été obtenue à partir d’un appel précédent à AllocateCaptureDmaEngine ou AllocateRenderDmaEngine.

[in] NotificationEvent

Pointeur vers un événement de noyau précédemment inscrit pour la notification de progression DMA avec un appel à RegisterNotificationEvent.

Valeur de retour

UnregisterNotificationEvent retourne STATUS_SUCCESS si l’appel annule correctement l’inscription de l’événement de notification. Sinon, la routine retourne STATUS_INVALID_PARAMETER pour indiquer que la routine de rappel et le contexte spécifiés ne sont pas valides.

Exigences

Exigence Valeur
client minimum pris en charge Disponible dans Windows Vista et versions ultérieures de Windows.
plateforme cible Bureau
d’en-tête hdaudio.h (include Hdaudio.h)
IRQL PASSIVE_LEVEL.

Voir aussi

AllocateCaptureDmaEngine

AllocateRenderDmaEngine

HDAUDIO_BUS_INTERFACE_V2

RegisterNotificationEvent  

hdaudio.h