AcxDeviceInitInitialize function (acxdevice.h)
The client driver must call AcxDeviceInitInitialize in its EVT_WDF_DRIVER_DEVICE_ADD callback, before calling WdfDeviceCreate.
Syntax
NTSTATUS AcxDeviceInitInitialize(
PWDFDEVICE_INIT DeviceInit,
PACX_DEVICEINIT_CONFIG Config
);
Parameters
DeviceInit
Pointer to a WDFDEVICE_INIT structure representing the device to initialize.
Config
Pointer to an ACX_DEVICEINIT_CONFIG structure that has been initialized by calling the ACX_DEVICEINIT_CONFIG_INIT function.
Return value
AcxDeviceInitInitialize returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.
Remarks
Example
WDFDEVICE Parent;
NTSTATUS status;
PWDFDEVICE_INIT devInit = NULL;
ACX_DEVICEINIT_CONFIG devInitCfg;
// Code to initialize WDFDEVICE...
//
// Create a child audio device for this circuit.
//
devInit = WdfPdoInitAllocate(Parent);
if (NULL == devInit)
{
status = STATUS_INSUFFICIENT_RESOURCES;
ASSERT(FALSE);
goto exit;
}
//
// Allow ACX to add any pre-requirement it needs on this device.
//
ACX_DEVICEINIT_CONFIG_INIT(&devInitCfg);
devInitCfg.Flags |= AcxDeviceInitConfigRawDevice;
status = AcxDeviceInitInitialize(devInit, &devInitCfg);
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 |