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 pour 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 retournée

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.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Disponible dans Windows Vista et les versions plus récentes de Windows.
Plateforme cible Desktop (Expérience utilisateur)
En-tête hdaudio.h (inclure Hdaudio.h)
IRQL PASSIVE_LEVEL.

Voir aussi

AllocateCaptureDmaEngine

AllocateRenderDmaEngine

HDAUDIO_BUS_INTERFACE_V2

RegisterNotificationEvent  

hdaudio.h