// ks.h
void KsDiscard(
[in] Object,
[in] Pointer
);
View the official Windows Driver Kit DDI reference
No description available.
The KsDiscard macro removes a given item from an object bag.
Object
[in]The item pointed to by Pointer is removed from the object bag associated with this object. Can be of type KSDEVICE, KSFILTERFACTORY, KSFILTER, or KSPIN.
Pointer
[in]A pointer to the item to be removed from the requested object's bag.
This macro wraps and assumes the return value of KsRemoveItemFromObjectBag, which is ULONG.
This function is implemented as a C-style preprocessing macro in the Ks.h header.
KsDiscard calls KsRemoveItemFromObjectBag, passing the object bag associated with Object (Object->Bag), the item specified by Pointer, and TRUE for the Free parameter.