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 版本概觀

規格需求

需求
標頭 acxcircuit.h
IRQL <= DISPATCH_LEVEL

另請參閱