// netdevice.h
NTSTATUS NetDeviceInitConfig(
[_Inout_] PWDFDEVICE_INIT DeviceInit
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetDeviceInitConfig function initializes device initialization operations when the Plug and Play (PnP) manager reports the existence of a device.
DeviceInit [_Inout_]A pointer to a WDFDEVICE_INIT object that the client driver received in its EvtDriverDeviceAdd routine.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
A client driver calls this function in its EvtDriverDeviceAdd callback before it calls WdfDeviceCreate.
When a client driver calls NetDeviceInitConfig, the system-supplied NetAdapterCx.sys driver calls the following functions on behalf of the client. The client driver should not call these functions directly. Doing so may result in undefined behavior.