Bewerken

Delen via


AcxDriverInitialize function (acxdriver.h)

The AcxDriverInitialize function initializes the specified audio driver.

Syntax

NTSTATUS AcxDriverInitialize(
  WDFDRIVER          Driver,
  PACX_DRIVER_CONFIG DriverConfig
);

Parameters

Driver

The WDFDRIVER object representing the audio driver to initialize.

DriverConfig

Pointer to a ACX_DRIVER_CONFIG structure that was previously initialized by calling the ACX_DRIVER_CONFIG_INIT function.

Return value

AcxDriverInitialize returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.

Remarks

Example

ACX_DRIVER_CONFIG acxCfg;
WDFDRIVER         driver;
NTSTATUS          status;

// Code to initialize the WDFDRIVER object...

// Initialize the audio driver configuration
ACX_DRIVER_CONFIG_INIT(&acxCfg);

// Initialize the audio driver
status = AcxDriverInitialize(driver, &acxCfg);

if (!NT_SUCCESS(status))
{
    // Log error...

    goto exit;
}

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

Requirements

Requirement Value
Header acxdriver.h
IRQL PASSIVE_LEVEL

See also