AcxDeviceDetachCircuit 函数 (acxdevice.h)

AcxDeviceDetachCircuit 函数在删除之前从 WDFDEVICE 分离音频线路。

语法

NTSTATUS AcxDeviceDetachCircuit(
  WDFDEVICE  Device,
  ACXCIRCUIT Circuit
);

参数

Device

WDFDEVICE,从中分离 线路 参数指定的音频线路。

Circuit

要从 Device 参数指定的 WDFDEVICE 中删除的音频线路。

返回值

AcxDeviceDetachCircuit 如果调用成功,则返回STATUS_SUCCESS。 否则,它将返回 NTSTATUS 错误代码。

此函数只能从此设备的 EVT_WDF_DEVICE_RELEASE_HARDWARE 回调函数调用。

AcxDeviceDetachCircuit 将线路与设备分离。 调用方负责删除 ACXCIRCUIT 对象。

言论

WDFDEVICE                    Device;
NTSTATUS                     status;
PCODEC_RENDER_DEVICE_CONTEXT renderDevCtx = NULL;

// Code to initialize WDFDEVICE...

renderDevCtx = GetRenderDeviceContext(Device);

ASSERT(renderDevCtx->Circuit);
status = AcxDeviceDetachCircuit(Device, renderDevCtx->Circuit);

if (!NT_SUCCESS(status))
{
    ASSERT(FALSE);
    goto exit;
}

ACX 要求

最低 ACX 版本: 1.0

有关 ACX 版本的详细信息,请参阅 ACX 版本概述

要求

要求 价值
标头 acxdevice.h
IRQL PASSIVE_LEVEL

另请参阅