AcxDeviceInitialize function (acxdevice.h)

The AcxDeviceInitialize function initializes an audio class extension (ACX) device.

Syntax

NTSTATUS AcxDeviceInitialize(
  WDFDEVICE          Device,
  PACX_DEVICE_CONFIG DeviceConfig
);

Parameters

Device

Pointer to a WDFDEVICE representing the device to initialize.

DeviceConfig

Pointer to an ACX_DEVICE_CONFIG structure that has been initialized by calling the ACX_DEVICE_CONFIG_INIT function.

Return value

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

Remarks

Example

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;
}

ACX requirements

Minimum ACX version: 1.0

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

Requirements

Requirement Value
Header acxdevice.h
IRQL PASSIVE_LEVEL

See also