KsDiscard - NtDoc

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

void KsDiscard(
  [in] Object,
  [in] Pointer
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

The KsDiscard macro removes a given item from an object bag.

Parameters

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.

Remarks

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.

See also

KSDEVICE

KSFILTER

KSFILTERFACTORY

KSPIN

KsRemoveItemFromObjectBag