KsFreeObjectBag - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

void KsFreeObjectBag(
  [in] KSOBJECT_BAG ObjectBag
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksfreeobjectbag)

KsFreeObjectBag function

Description

The KsFreeObjectBag function empties and frees an object bag.

Parameters

ObjectBag [in]

The KSOBJECT_BAG (equivalent to type PVOID) to be emptied and then freed.

Remarks

For more information, see Object Bags.

KsFreeObjectBag removes any items present in ObjectBag. In addition, if the reference count for a given object is zero (that is, the object is not present in any other object bag associated with the same device as ObjectBag), then that item is freed.

See also

KsAddItemToObjectBag

KsAllocateObjectBag

KsCopyObjectBagItems

KsDiscard

KsRemoveItemFromObjectBag