IVIO_EnumDiagnosticEntry::Seek

This method seeks the entry in the diagnostic entry enumeration list with the identifier that matches the value of nItem.

Syntax

HRESULT IVIO_EnumDiagnosticEntry::Seek ( DWORD nItem );

Parameters

nItemId
[in] Identifier of the vehicle diagnostic entry collection member to seek. It is one of the following values:
VIODIAGENTRY_LAMP_FLAG
VIODIAGENTRY_SAE_CODE
VIODIAGENTRY_SUBSYSTEM
VIODIAGENTRY_SYSTEM

Return Values

S_OK indicates that the application retrieved the diagnostic entry successfully. Enumerator is set to position of given diagnostic entry. S_FALSE indicates that the enumerator position is unchanged.

Remarks

The information specified in the item value identifiers is contained in a VT_UI4 data type, which is an unsigned long integer. The long integer contains information associated with one of the following item value identifiers:

VIODIAGENTRY_SYSTEM
Specifies the vehicle system returning the diagnostic information. It is one of the following values:
VIOTC_SYS_BODY
VIOTC_SYS_CHASSIS
VIOTC_SYS_NETWORK
VIOTC_SYS_POWERTRAIN
VIOTC_SYS_UNKNOWN

VIODIAGENTRY_SUBSYSTEM
Specifies the generic vehicle subsystem value. It can be one of the following values:

For power train subsystems:
VIOTC_AUX_EMISSION_CONTROL
VIOTC_FUEL_AIR_METERING
VIOTC_IGNITION_SYSTEM_OR_MISFIRE
VIOTC_TRANSMISSION
VIOTC_VEHSPEED_IDLE_AUXINPUTS

For chassis subsystems:
VIOTC_ANTILOCK_BRAKES
VIOTC_STEERING
VIOTC_SUSPENSION
VIOTC_TRACTION_CONTROL

For body subsystems:
VIOTC_ANTI_THEFT
VIOTC_CLIMATE_CONTROL
VIOTC_INSTRUMENT_PANEL
VIOTC_LIGHTING_CONTROL
VIOTC_MEMORY_SEATS_MIRROR
VIOTC_SUPPLEMENTAL_RESTRAINTS
VIOTC_TRIP_COMPUTER

For an unknown subsystem, use VIOTC_SUBSYSTEM_OTHER.

VIODIAGENTRY_SAE_CODE
Specifies the standard diagnostic trouble code value defined by the Society of Automotive Engineers (SAE).
VIODIAGENTRY_LAMP_FLAG
Specifies the flag to show if this diagnostic code activated a malfunction indicator lamp on the instrument panel.