AcxTargetElementGetId - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// acxtargets.h

ULONG AcxTargetElementGetId(
  ACXTARGETELEMENT TargetElement
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-acxtargets-acxtargetelementgetid)

Description

The AcxTargetElementGetId function given an existing ACXTARGETELEMENT object, returns its corresponding ID value.

Parameters

TargetElement

An existing ACXTARGETELEMENT Object. For more information about ACX objects, see Summary of ACX Objects.

Return value

The ID value associated with the element.

Remarks

Example

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

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

See also