IMFTopology::GetNode method (mfidl.h)

Gets a node in the topology, specified by index.

Syntax

HRESULT GetNode(
  [in]  WORD            wIndex,
  [out] IMFTopologyNode **ppNode
);

Parameters

[in] wIndex

The zero-based index of the node. To get the number of nodes in the topology, call IMFTopology::GetNodeCount.

[out] ppNode

Receives a pointer to the node's IMFTopologyNode interface. The caller must release the pointer.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
The index is less than zero.
MF_E_INVALIDINDEX
No node can be found at the index wIndex.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFTopology

Topologies