NetAdapterInitFree function (netadapter.h)

The NetAdapterInitFree function deallocates a NETADAPTER_INIT structure.

Syntax

void NetAdapterInitFree(
  [_In_] NETADAPTER_INIT *AdapterInit
);

Parameters

[_In_] AdapterInit

A pointer to a NETADAPTER_INIT structure.

Return value

None

Remarks

If a client driver receives a NETADAPTER_INIT structure from a call to NetAdapterInitAllocate, the driver must always call NetAdapterInitFree to deallocate it regardless of the result of NetAdapterCreate.

For more information and a code example about calling NetAdapterCreate, see Device initialization.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.27
Header netadapter.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See also

NetAdapterInitAllocate

NetAdapterCreate

Device initialization