KsGetNodeIdFromIrp function (ks.h)

The KsGetNodeIdFromIrp function returns the node ID of the node to which Irp was submitted.

Syntax

KSDDKAPI ULONG KsGetNodeIdFromIrp(
  [in] PIRP Irp
);

Parameters

[in] Irp

A pointer to the IRP structure for which to determine the associated node ID. This IRP must have been sent to a file object corresponding to a filter, pin, or node.

Return value

KsGetNodeIdFromIrp returns the ID of the node to which Irp was submitted. If Irp was instead submitted directly to the filter, it returns KSFILTER_NODE.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL Any level

See also

IRP

KsAddIrpToCancelableQueue

KsDispatchIrp

KsForwardIrp