NetAdapterInitFree function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

The NetAdapterInitFree method deallocates a NETADAPTER_INIT structure.

Syntax

void NetAdapterInitFree(
  NETADAPTER_INIT *AdapterInit
);

Parameters

AdapterInit

A pointer to a NETADAPTER_INIT structure.

Return Value

This method does not return a value.

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
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See Also

NetAdapterInitAllocate

NetAdapterCreate

Device initialization