Condividi tramite


Funzione AcxTargetCircuitGetTargetPin (acxtargets.h)

La funzione AcxTargetCircuitGetTargetPin, dato un valore di indice pin valido, restituirà l'oggetto ACXTARGETPIN associato.

Sintassi

ACXTARGETPIN AcxTargetCircuitGetTargetPin(
  ACXTARGETCIRCUIT TargetCircuit,
  ULONG            PinIndex
);

Parametri

TargetCircuit

Handle ACXTARGETCIRCUIT. Per altre informazioni sugli oggetti ACX, vedere Riepilogo degli oggetti ACX.

PinIndex

Valore di indice pin valido.

Valore restituito

Restituisce un oggetto ACXTARGETELEMENT ACX associato al circuito specificato.

Osservazioni

Esempio

    PDSP_CIRCUIT_CONTEXT circuitCtx;
    ACX_REQUEST_PARAMETERS  params;

    circuitCtx = GetDspCircuitContext(Circuit);    

    for (ULONG pinIndex = 0; pinIndex < AcxTargetCircuitGetPinsCount(TargetCircuit); ++pinIndex)
    {
        ACXTARGETPIN targetPin = AcxTargetCircuitGetTargetPin(TargetCircuit, pinIndex);
        ULONG targetPinFlow = 0;
        ACX_REQUEST_PARAMETERS_INIT_PROPERTY(&params,
                                             KSPROPSETID_Pin,
                                             KSPROPERTY_PIN_DATAFLOW,
                                             AcxPropertyVerbGet,
                                             AcxItemTypePin,
                                             AcxTargetPinGetId(targetPin),
                                             nullptr, 0,
                                             &targetPinFlow,
                                             sizeof(targetPinFlow));
...

    }

Requisiti ACX

versione minima di ACX: 1.0

Per altre informazioni sulle versioni di ACX, vedere panoramica della versione ACX.

Fabbisogno

Requisito Valore
intestazione acxtargets.h
IRQL <= DISPATCH_LEVEL

Vedere anche