CanEasy COM-Help
CanEasy::IPreCopy Interface Reference

Inherits IDispatch.

Detailed Description

Provides PreCopy events which are called before a received message is processed by CanEasy.

You can activate PreCopy events for a database item or create an object of IPreCopy

interface IPreCopy : IDispatch
{
HRESULT Filter([in] BSTR sFilter, [in] BSTR sId, [in] enum CallbackPosition enPosition, [in] IDatabaseItem* pItem);
HRESULT Active([out, retval] VARIANT_BOOL* pVal);
HRESULT Active([in] VARIANT_BOOL boVal);
};

Definition at line 8170 of file cand_tlb.idl.

Member Function Documentation

◆ Filter()

HRESULT CanEasy::IPreCopy::Filter ( [in] BSTR  sFilter,
[in] BSTR  sId,
[in] enum CallbackPosition  enPosition,
[in] IDatabaseItem pItem 
)

Sets a filter to reduce the events.

See TransmissionEvent to get more details

Parameters
sFilterString filter
sIdUnique identifier name
enPositionDeprecated: Position when event is called
pItemPointer to database item for which the event has to be registered

Property Documentation

◆ Active

VARIANT_BOOL CanEasy::IPreCopy::Active
getset

Activates/Deactivates the events

CanEasy::IPreCopy::Active
VARIANT_BOOL Active
CanEasy::IPreCopy::Filter
HRESULT Filter([in] BSTR sFilter, [in] BSTR sId, [in] enum CallbackPosition enPosition, [in] IDatabaseItem *pItem)
Sets a filter to reduce the events.
CanEasy::CallbackPosition
CallbackPosition
Deprecated: The CallbackPosition enumeration defines the position when a transmission callback has to...
Definition: cand_tlb.idl:289