Quantex GmbH
DE RU EN

PassThru StopMsgFilter Delete message filter

Description

This function removes one of the previously installed filters.

long PassThruStopMsgFilter(unsigned long ChannelID, unsigned long FilterID)

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_INVALID_CHANNEL_ID Set a non-existent channel identifier ChannelID
ERR_INVALID_idfilter FilterID FilterID specified does not exist
ERR_FAILED Defined by the J2534 standard. In the adapter, it is not used for this function.

Example

#include "j2534_lib.hpp"

unsigned long ChannelID;
unsigned long FilterID;
long Ret;

Ret = PassThruStopMsgFilter(ChannelID, FilterID);
if (Ret != STATUS_NOERROR)
{	// Error handling
}