IVIO_EnumMaintenanceItems::Add

This method adds a new entry in the vehicle maintenance items collection. The new item identifier matches the value of nItemId.

Syntax

HRESULT IVIO_EnumMaintenanceItems::Add ( DWORD nItemId);

Parameters

nItemId
[in] Identifier of the vehicle maintenance collection member to add. 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 added the vehicle maintenance item successfully. The enumerator is set to the position of the new item. S_FALSE indicates that the item is already in the enumeration list. The enumeration 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.

If a new collection entry is desired, calling the IVIO_EnumMaintenanceItems::Next method after making the call to IVIO_EnumMaintenanceItems::Add creates an IVIO_EnumMaintenanceEntry interface for the new maintenance item identifier.