Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.78 KB

nf-ks-kspinattachorgate.md

File metadata and controls

81 lines (58 loc) · 2.78 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ks.KsPinAttachOrGate
KsPinAttachOrGate function (ks.h)
The KsPinAttachOrGate function connects Pin as an input to a previously initialized OR gate, and connects OrGate as an input to the relevant filter's AND gate.
stream\kspinattachorgate.htm
stream
04/23/2018
KsPinAttachOrGate function
KsPinAttachOrGate, KsPinAttachOrGate function [Streaming Media Devices], avfunc_bcc291d4-ee61-4196-88df-b7aef567a06b.xml, ks/KsPinAttachOrGate, stream.kspinattachorgate
ks.h
Ks.h
Universal
Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Ks.lib
PASSIVE_LEVEL (See Remarks section)
Windows
KsPinAttachOrGate
ks/KsPinAttachOrGate
APIRef
kbSyntax
LibDef
Ks.lib
Ks.dll
KsPinAttachOrGate

KsPinAttachOrGate function

-description

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

-parameters

-param Pin [in]

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

-param OrGate [in, optional]

A pointer to a KSGATE structure that is the previously initialized OR 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 KsGateInitializeOr. Then call KsPinAttachOrGate. For more information, see Flow Control Gates in AVStream.

Do not leave an unattached OR gate at filter creation time. Instead, create the OR gate later, for example when the minidriver instantiates the pin.

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

-see-also

KSGATE

KsGateInitializeOr

KsPinAttachAndGate