// ks.h
KSDDKAPI NTSTATUS KsFilterCreatePinFactory(
[in] PKSFILTER Filter,
[in] const KSPIN_DESCRIPTOR_EX * const PinDescriptor,
[out] PULONG PinID
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsFilterCreatePinFactory function creates a new pin factory on the specified filter.
Filter [in]A pointer to a KSFILTER structure for which to create a new pin factory.
PinDescriptor [in]A pointer to a KSPIN_DESCRIPTOR_EX structure that describes the pins this factory will create.
PinID [out]A pointer to the location containing the ID of the new factory.
KsFilterCreatePinFactory returns the success or failure of the attempt to create the pin factory. Failure may occur due to invalid parameters or low memory.
Note that the filter control mutex must be held before calling this function. For more information, see Mutexes in AVStream.