netDeviceInitConfig 函数 (netdevice.h)

当即插即用 (PnP) 管理器报告存在设备时,NetDeviceInitConfig 函数初始化设备初始化操作。

语法

NTSTATUS NetDeviceInitConfig(
  [_Inout_] PWDFDEVICE_INIT DeviceInit
);

参数

[_Inout_] DeviceInit

指向客户端驱动程序在其 EvtDriverDeviceAdd 例程中收到的 WDFDEVICE_INIT 对象的指针。

返回值

如果操作成功,则返回STATUS_SUCCESS。 否则,此函数可能会返回相应的 NTSTATUS 错误代码。

注解

客户端驱动程序在其 EvtDriverDeviceAdd 回调中调用此函数,然后再调用 WdfDeviceCreate

当客户端驱动程序调用 NetDeviceInitConfig 时,系统提供的 NetAdapterCx.sys 驱动程序代表客户端调用以下函数。 客户端驱动程序不应直接调用这些函数。 这样做可能会导致未定义的行为。

要求

要求
最低受支持的客户端 Windows 10 版本 2004
目标平台 通用
标头 netdevice.h (包括 netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

另请参阅

EvtDriverDeviceAdd

WdfDeviceCreate