KsPinAttachAndGate - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

void KsPinAttachAndGate(
  [in]           PKSPIN  Pin,
  [in, optional] PKSGATE AndGate
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KsPinAttachAndGate function

Description

The KsPinAttachAndGate function connects Pin as an input to a previously initialized AND gate, and connects AndGate as an input to the relevant filter's AND gate.

Parameters

Pin [in]

A pointer to the KSPIN structure to use an input to the AND gate.

AndGate [in, optional]

A pointer to a KSGATE structure that is the previously initialized AND gate to connect to the relevant filter's AND gate. If this optional parameter is NULL, any KSGATE currently attached to the pin is detached.

Remarks

To insert the gate, first call KsGateInitializeAnd. Then call KsPinAttachAndGate. For more information, see Flow Control Gates in AVStream.

KsPinAttachAndGate must be called at IRQL = PASSIVE_LEVEL before the pin in question leaves KSSTATE_STOP.

See also

KSGATE

KsGateInitializeAnd

KsPinAttachOrGate