// netadapter.h
void NetAdapterInitSetDatapathCallbacks(
[_Inout_] NETADAPTER_INIT *AdapterInit,
[_In_] NET_ADAPTER_DATAPATH_CALLBACKS *DatapathCallbacks
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetAdapterInitSetDatapathCallbacks function sets a net adapter's callback functions for creating datapath packet queues.
AdapterInit [_Inout_]A pointer to a NETADAPTER_INIT structure that the driver obtained from a previous call to NetAdapterInitAllocate.
DatapathCallbacks [_In_]A pointer to a driver-allocated and initialized NET_ADAPTER_DATAPATH_CALLBACKS structure that contains pointers to the adapter's datapath queue creation callback functions.
This is an optional function. If a client driver does not provide its own packet queue creation handlers, NetAdapterCx provides default handlers on the driver's behalf.
Call this function after calling NetAdapterInitAllocate but before calling NetAdapterCreate.
If the driver encounters an error after the NETADAPTER_INIT allocation succeeds but before NetAdapterCreate succeeds, it must call NetAdapterInitFree to deallocate the NETADAPTER_INIT object.
For a code example of creating a NETADAPTER, see Device initialization.