Quantex GmbH
Η περιοχή σας: Ευρώπη

PassThru ReadVersion Read information about the DLL and VCI

Description

The function provides information about the dll version, the J2534 standard version, and the firmware version in the VCI.

long PassThruReadVersion(unsigned long DeviceID, char* pFirmwareVersion, char* pDllVersion, char* pApiVersion)

Options

Returned error codes

Definition Description
STATUS_NOERROR Function completed successfully
ERR_DEVICE_NOT_CONNECTED No connection to the VCI. Possible reasons: The VCI is turned off, there is no network, or the IP address is not set correctly.
ERR_INVALID_DEVICE_ID Set a non-existent device ID DeviceID
ERR_NULL_PARAMETER One of the pointers is NULL

Example

#include "j2534_lib.hpp"

unsigned long DeviceID;
long Ret;

char[80] pFirmwareVersion;
char[80] pDllVersion;
char[80] pApiVersion;

Ret = PassThruReadVersion(DeviceID, pFirmwareVersion, pDllVersion, pApiVersion);
if (Ret != STATUS_NOERROR)
{	// Error handling
}