NdisFreeGenericObject function

Call the NdisFreeGenericObject function to free a generic object that was created with the NdisAllocateGenericObject function.

Syntax


VOID NdisFreeGenericObject(
  _In_  PNDIS_GENERIC_OBJECT NdisGenericObject
);

Parameters

NdisGenericObject [in]

A pointer to the NDIS_GENERIC_OBJECT structure to be freed.

Return value

None

Remarks

An NDIS handle is required to allocate some NDIS resources (for example, buffer pools). Components that do not otherwise have an NDIS handle use a pointer to an NDIS_GENERIC_OBJECT structure as an NDIS handle. All resources that were allocated with this generic object pointer as the handle must be freed before freeing the generic object.

Requirements

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function, NdisAllocateGenericObject

See also

NDIS_GENERIC_OBJECT
NdisAllocateGenericObject

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft