KsCreateTopologyNode2 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-kscreatetopologynode2)

KsCreateTopologyNode2 function

Description

Creates a handle to a topology node instance.

Supported starting in Windows 8.

Parameters

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.

Return value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

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.

See also

ACCESS_MASK

CoInitialize

KSNODE_CREATE

KsCreateTopologyNode