Quantex GmbH
DE RU EN EL
Your region: Europe

PassThru ReadVersion Read information about the DLL and adapter

Description

The function provides information about the dll version, the J2534 standard version, and the program version in the adapter.

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 adapter. Possible reasons: The adapter is turned off, there is no network, or the IP address is not set correctly.
ERR_INVALID_DEVICE_ID Set a non-existent adapter 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
}