NdisFreeGenericObject function (ndis.h)

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

Syntax

void NdisFreeGenericObject(
  PNDIS_GENERIC_OBJECT NdisObject
);

Parameters

NdisObject

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

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL <= DISPATCH_LEVEL
DDI compliance rules Irql_Miscellaneous_Function(ndis), NdisAllocateGenericObject(ndis)

See also

NDIS_GENERIC_OBJECT

NdisAllocateGenericObject