// ks.h
KSDDKAPI PVOID KsGetNextSibling(
[in] PVOID Object
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsGetNextSibling function returns the next sibling of a given object.
Object [in]The object for which to find the next sibling.
KsGetNextSibling returns the next sibling object of Object. If no such sibling object exists, it returns NULL.
If Object is a filter factory, KsGetNextSibling returns the next filter factory belonging to the parent device, and so on. Callers must perform appropriate typecasting to and from PVOID.
The object hierarchy is guaranteed stable only while the appropriate mutex is held, in this case the device mutex. For more information, see AVStream Overview and Mutexes in AVStream.
Minidrivers rarely call KsGetNextSibling directly. There are a number of functions that are inline calls to KsGetNextSibling and that perform the typecasting for you: KsFilterFactoryGetNextSiblingFilterFactory, KsFilterGetNextSiblingFilter, and KsPinGetNextSiblingPin.
KsFilterFactoryGetNextSiblingFilterFactory