// ks.h
KSDDKAPI HRESULT KsCreateTopologyNode2(
[in] HANDLE ParentHandle,
[in] PKSNODE_CREATE NodeCreate,
[in] ACCESS_MASK DesiredAccess,
[out] PHANDLE NodeHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
Creates a handle to a topology node instance.
Supported starting in Windows 8.
ParentHandle [in]Specifies the handle to the parent on which the node is created.
NodeCreate [in]A KSNODE_CREATE structure that describes the set of information that is used to create the topology node handle.
DesiredAccess [in]Specifies an ACCESS_MASK indicating the desired access to the object. This is typically GENERIC_READ and/or GENERIC_WRITE.
NodeHandle [out]Location for the topology node handle.
Returns NOERROR if successful; otherwise, returns an error code.
This is a new version of the KsCreateTopologyNode function and uses the device broker to create the handle to the kernel streaming object. In addition, the Component Object Model (COM) CoInitialize function must be called before this function is called.