AcxDeviceDetachCircuit 函数 (acxdevice.h)

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

语法

NTSTATUS AcxDeviceDetachCircuit(
  WDFDEVICE  Device,
  ACXCIRCUIT Circuit
);

参数

Device

要从中分离由 Circuit 参数指定的音频线路的 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 版本概述

要求

要求
Header acxdevice.h
IRQL PASSIVE_LEVEL

另请参阅