NetAdapterLightweightInitAllocate - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// netadapter.h

NETADAPTER_INIT * NetAdapterLightweightInitAllocate(
  [_In_] const GUID *NetworkInterfaceGuid
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netadapter-netadapterlightweightinitallocate)

Description

The NetAdapterLightweightInitAllocate function allocates a NETADAPTER_INIT structure that a client driver uses when creating a new NETADAPTER object for a deviceless adapter.

Parameters

NetworkInterfaceGuid [_In_]

The GUID of a valid network interface using the to-be-created deviceless adapter.

Return value

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.

Remarks

See also

Device initialization

NetAdapterCreate

NetAdapterInitFree