long PassThruIoctl(unsigned long ChannelID, unsigned long IoctlID, void *pInput, void *pOutput)
Definition | Code | Description |
---|---|---|
STATUS_NOERROR | 0x00 | Function completed successfully |
ERR_DEVICE_NOT_CONNECTED | 0x08 | 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_CHANNEL_ID | 0x02 | Set a non-existent channel identifier ChannelID |
ERR_FAILED | 0x07 | Defined by the J2534 standard. In the adapter, it is not used for this function. |
#include "j2534_lib.hpp"
unsigned long ChannelID;
long Ret;
Ret = PassThruIoctl(ChannelID);
if (Ret != STATUS_NOERROR)
{
// Error handling
}