Call the NdisFreeGenericObject function to free a generic object that was created with the NdisAllocateGenericObject function.
void NdisFreeGenericObject( PNDIS_GENERIC_OBJECT NdisObject );
A pointer to the NDIS_GENERIC_OBJECT structure to be freed.
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.
|Minimum supported client||Supported in NDIS 6.0 and later.|
|Header||ndis.h (include Ndis.h)|
|DDI compliance rules||Irql_Miscellaneous_Function, NdisAllocateGenericObject|