// netadapter.h
NETADAPTER_INIT * NetAdapterLightweightInitAllocate(
[_In_] const GUID *NetworkInterfaceGuid
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetAdapterLightweightInitAllocate function allocates a NETADAPTER_INIT structure that a client driver uses when creating a new NETADAPTER object for a deviceless adapter.
NetworkInterfaceGuid [_In_]The GUID of a valid network interface using the to-be-created deviceless adapter.
Returns a pointer to a framework-allocated NETADAPTER_INIT structure if the operation succeeds. Otherwise, this function returns NULL.
[!IMPORTANT] If a client driver receives a NETADAPTER_INIT structure from a successful call to this function, the driver must always call NetAdapterInitFree to deallocate it regardless of the result of NetAdapterCreate.