AcxFactoryCircuitInitFree 函数 (acxcircuit.h)

AcxFactoryCircuitInitFree 函数删除工厂线路初始化对象。

语法

void AcxFactoryCircuitInitFree(
  PACXFACTORYCIRCUIT_INIT FactoryInit
);

参数

FactoryInit

用于线路工厂初始化的ACXFACTORYCIRCUIT_INIT结构。 这是一种不透明结构,用于存储 ACX 线路工厂初始化信息并将工厂与 WDF 设备相关联。

使用 AcxFactoryCircuitInitAllocate 函数 初始化 ACXFACTORYCIRCUIT_INIT 结构。

返回值

备注

此函数不返回值。

如果未调用 AcxFactoryCircuitCreate 或返回错误,驱动程序负责使用此 DDI 删除 ACXFACTORYCIRCUIT_INIT 对象。

示例

示例用法如下所示。

// Get a FactoryCircuitInit structure

  ctrlInit = AcxFactoryCircuitInitAllocate(Device);

...

// Example exit routine that shows freeing an example init structure

exit:
    if (!NT_SUCCESS(status))
    {
        if (ctrlInit)
        {
            AcxFactoryCircuitInitFree(ctrlInit);
            ctrlInit = nullptr;
        }
    }

ACX 要求

最低 ACX 版本: 1.0

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

要求

要求
Header acxcircuit.h
IRQL <= DISPATCH_LEVEL

另请参阅