// ks.h
KSDDKAPI PKSPIN KsFilterGetFirstChildPin(
[in] PKSFILTER Filter,
[in] ULONG PinId
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsFilterGetFirstChildPin function returns the first instantiated pin of type PinID on the filter specified by Filter.
Filter [in]A pointer to the KSFILTER structure to query for instantiated pins.
PinId [in]The numeric ID of the pin type for which to find the first instantiated member.
KsFilterGetFirstChildPin returns a pointer to the first instantiated KSPIN structure of type PinID on the specified filter.
Note that the object hierarchy is guaranteed stable only while the appropriate mutex is held, in this case the filter control mutex. For more information, see Mutexes in AVStream.