IVIO_EnumMaintenanceItems::Seek

This method seeks to the entry in the vehicle maintenance items collection that has the specified item identifier.

Syntax

HRESULT IVIO_EnumMaintenanceItems::Seek ( DWORD nItemId);

Parameters

nItemId
[in] Identifier of the vehicle maintenance collection member to seek. It is one of the following values:
VIOMAINT_BRAKE_PAD_CHANGE
VIOMAINT_CHASSIS_ALIGNMENT
VIOMAINT_COOLANT_CHANGE
VIOMAINT_ENGINE_BELT_REPLACE
VIOMAINT_ENGINE_OIL_CHANGE
VIOMAINT_ENGINE_TUNEUP
VIOMAINT_FLUID_LEVEL_CHECK
VIOMAINT_REPLACE_BATTERY
VIOMAINT_REPLACE_TIRES
VIOMAINT_ROTATE_TIRES
VIOMAINT_SPARKPLUG_CHANGE
VIOMAINT_SPARKPLUG_WIRE_CHANGE
VIOMAINT_TRANSMISSION_OIL_CHANGE

Return Values

S_OK indicates that the application retrieved the vehicle maintenance collection item successfully. The enumerator is set to the position of the specified maintenance item. S_FALSE indicates that the application was unable to find the specified maintenance collection item. The enumerator position is unchanged.

Remarks

The information specified by the item value identifiers is exposed by a VT_UNKNOWN (IUnknown*) interface. Query VT_UNKNOWN (IUnknown*) for IID_VIOEnumMaintenanceEntry to get the enumerator interface.