AcxDeviceInitialize, fonction (acxdevice.h)
La fonction AcxDeviceInitialize initialise un appareil ACX (Audio Class Extension).
Syntaxe
NTSTATUS AcxDeviceInitialize(
WDFDEVICE Device,
PACX_DEVICE_CONFIG DeviceConfig
);
Paramètres
Device
Pointeur vers un WDFDEVICE représentant l’appareil à initialiser.
DeviceConfig
Pointeur vers une structure ACX_DEVICE_CONFIG qui a été initialisée en appelant la fonction ACX_DEVICE_CONFIG_INIT.
Valeur de retour
AcxDeviceInitialize retourne STATUS_SUCCESS si l’appel a réussi. Sinon, elle retourne un code d’erreur NTSTATUS.
Remarques
Exemple
NTSTATUS status;
WDFDEVICE device = NULL;
ACX_DEVICE_CONFIG devCfg;
// Code to initialize WDFDEVICE...
ACX_DEVICE_CONFIG_INIT(&devCfg);
status = AcxDeviceInitialize(device, &devCfg);
if (!NT_SUCCESS(status))
{
ASSERT(FALSE);
goto exit;
}
Configuration requise pour ACX
version minimale d’ACX : 1.0
Pour plus d’informations sur les versions ACX, consultez vue d’ensemble de la version ACX.
Exigences
Exigence | Valeur |
---|---|
d’en-tête | acxdevice.h |
IRQL | PASSIVE_LEVEL |
Voir aussi
- ACX_DEVICE_CONFIG
- ACX_DEVICE_CONFIG_INIT
- d’en-tête acxdevice.h