NetConfigurationClose 函数 (netconfiguration.h)

释放与适配器配置对象关联的注册表项的句柄,然后删除适配器配置对象。

语法

void NetConfigurationClose(
  [_In_] NETCONFIGURATION Configuration
);

参数

[_In_] Configuration

在之前调用 NetAdapterOpenConfiguration 或NetConfigurationOpenSubConfiguration 时打开的适配器配置对象的句柄。

返回值

备注

NetConfigurationCloseWdfObjectDelete 的别名。 由于配置对象(与所有 NetAdapterCx 对象一样)是 WDF 对象,因此可以互换使用 WdfObjectDelete

要求

要求
目标平台 通用
最低 KMDF 版本 1.21
标头 netconfiguration.h (包括 netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

另请参阅

NetAdapterOpenConfiguration

NetConfigurationOpenSubConfiguration