Condividi tramite


Funzione AcxTargetElementGetId (acxtargets.h)

La funzione AcxTargetElementGetId dato un oggetto ACXTARGETELEMENT esistente restituisce il valore ID corrispondente.

Sintassi

ULONG AcxTargetElementGetId(
  ACXTARGETELEMENT TargetElement
);

Parametri

TargetElement

Oggetto ACXTARGETELEMENT esistente. Per altre informazioni sugli oggetti ACX, vedere Riepilogo degli oggetti ACX.

Valore restituito

Valore ID associato all'elemento .

Osservazioni

Esempio

    ACXTARGETELEMENT targetElement = nullptr;

    targetElement = circuitCtx->TargetVolumeHandler;

    ACX_REQUEST_PARAMETERS_INIT_PROPERTY(&targetParams,
                                         propertySet,
                                         propertyId,
                                         params.Parameters.Property.Verb,
                                         params.Parameters.Property.ItemType,
                                         AcxTargetElementGetId(targetElement),
                                         params.Parameters.Property.Control,
                                         params.Parameters.Property.ControlCb,
                                         params.Parameters.Property.Value,
                                         params.Parameters.Property.ValueCb);

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