The KsCopyObjectBagItems function copies all items from one object bag into another.
NTSTATUS KsCopyObjectBagItems( _In_ KSOBJECT_BAG ObjectBagDestination, _In_ KSOBJECT_BAG ObjectBagSource );
- ObjectBagDestination [in]
The KSOBJECT_BAG (equivalent to type PVOID) into which to copy items.
- ObjectBagSource [in]
The KSOBJECT_BAG from which items are copied to ObjectBagDestination.
Returns STATUS_SUCCESS if the copy is successful. Otherwise, it returns an error code. Most often, this is STATUS_INSUFFICIENT_RESOURCES indicating insufficient system resources to complete the copy operation. If STATUS_INSUFFICIENT_RESOURCES is returned, it is quite possible that some, but not all, of the items have been copied from ObjectBagSource to ObjectBagDestination.
Note that mutexes for both bags should be held. If the object bag in question is associated with a filter or a pin, acquire the filter control mutex. If the object bag belongs to a filter factory or the device, acquire the device mutex. For more information, see Object Bags and Mutexes in AVStream.
|Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.|
Build date: 1/22/2014