// ks.h
KSDDKAPI NTSTATUS KsFilterCreateNode(
[in] PKSFILTER Filter,
[in] const KSNODE_DESCRIPTOR * const NodeDescriptor,
[out] PULONG NodeID
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsFilterCreateNode function creates a new topology node on the specified filter.
Filter [in]A pointer to a KSFILTER structure on which to create a new topology node.
NodeDescriptor [in]A pointer to a KSNODE_DESCRIPTOR structure that describes the new node.
NodeID [out]A pointer to a ULONG where AVStream places the ID of the new node.
KsFilterCreateNode returns the success or failure of creating the node. The call may fail because of invalid parameters, low memory, or other reasons.
Note that the filter control mutex must be held before calling this function. For more information, see Filter Control Mutex in AVStream.