// ks.h
void KsPinAttachAndGate(
[in] PKSPIN Pin,
[in, optional] PKSGATE AndGate
);
View the official Windows Driver Kit DDI reference
No description available.
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.
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.
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.