AcxTargetElementGetId, fonction (acxtargets.h)

La fonction AcxTargetElementGetId en fonction d’un objet ACXTARGETELEMENT existant retourne sa valeur d’ID correspondante.

Syntaxe

ULONG AcxTargetElementGetId(
  ACXTARGETELEMENT TargetElement
);

Paramètres

TargetElement

Objet ACXTARGETELEMENT existant. Pour plus d’informations sur les objets ACX, consultez Résumé des objets ACX.

Valeur retournée

Valeur d’ID associée à l’élément .

Remarques

Exemple

    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);

Configuration requise pour ACX

Version ACX minimale : 1.0

Pour plus d’informations sur les versions d’ACX, consultez Vue d’ensemble des versions d’ACX.

Configuration requise

Condition requise Valeur
En-tête acxtargets.h
IRQL <= DISPATCH_LEVEL

Voir aussi