NetDeviceInitConfig 函数 (netdevice.h)
当即插即用(PnP)管理器报告设备是否存在时,NetDeviceInitConfig 函数初始化设备初始化作。
语法
NTSTATUS NetDeviceInitConfig(
[_Inout_] PWDFDEVICE_INIT DeviceInit
);
参数
[_Inout_] DeviceInit
指向客户端驱动程序在其 EvtDriverDeviceAdd 例程中接收的WDFDEVICE_INIT对象的指针。
返回值
如果作成功,则返回STATUS_SUCCESS。 否则,此函数可能会返回相应的 NTSTATUS 错误代码。
言论
客户端驱动程序在其 EvtDriverDeviceAdd 回调中调用此函数,然后再调用 WdfDeviceCreate。
当客户端驱动程序 NetDeviceInitConfig调用时,系统提供的 NetAdapterCx.sys 驱动程序代表客户端调用以下函数。 客户端驱动程序不应直接调用这些函数。 这样做可能会导致未定义的行为。
- WdfDeviceInitSetReleaseHardwareOrderOnFailure
- WdfDeviceInitSetDeviceType
- WdfDeviceInitSetCharacteristics
- WdfDeviceInitSetIoType
- WdfDeviceInitSetPowerPageable
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 10 版本 2004 |
目标平台 | 普遍 |
最低 UMDF 版本 | 2.33 |
标头 | netdevice.h (包括 netadaptercx.h) |
库 | netadaptercxstub.lib |
IRQL | PASSIVE_LEVEL |