RegEvent

[Definition] 

VARIANT_BOOL RegEvent( [in] LONG dwMachineNumber, [in] LONG EventMask)

[Usage]

Register required real-time events.

[Parameter]

dwMachineNumber:
Device number

EventMask:
Code of an event.


Values are as follows:
1 OnAttTransaction, OnAttTransactionEx
2 (1<<1) OnFinger
4 (1<<2) OnNewUser
8 (1<<3) OnEnrollFinger
16 (1<<4) OnKeyPress
256 (1<<7) OnVerify
512 (1<<8) OnFingerFeature
1024 (1<<9) OnDoor, OnAlarm
2048 (1<<10) OnHIDNum
4096 (1<<11) OnWriteCard
8192 (1<<12) OnEmptyCard
16384 (1<<13) OnDeleteTemplate

To register multiple real-time events, perform the XOR operation between binary codes of related events. For example, to register all real-time events, the value of EventMask is 65535.

[ReturnValue]

True if it is successful, or return False.

[RelatedFunction]

ReadRTLog, GetRTLog

 

Ejemplo

C#

//In fact,when you are using the tcp/ip communication,this parameter will be ignored,that is any integer will all right.Here we use 1. 
iMachineNumber = 1;
//Here you can register the realtime events that you want to be triggered(the parameters 65535 means registering all) 
if (axCZKEM1.RegEvent(iMachineNumber, 65535)) 
{  
this.axCZKEM1.OnDisConnected += new zkemkeeper._IZKEMEvents_OnDisConnectedEventHandler(axCZKEM1_OnDisConnected); 
}    

VB

 //In fact,when you are using the tcp/ip communication,this parameter will be ignored,that is any integer will all right.Here we use 1.
iMachineNumber = 1; 
'Here you can register the realtime events that you want to be triggered(the parameters 65535 means registering all)
If axCZKEM1.RegEvent(iMachineNumber, 65535) = True Then
AddHandler axCZKEM1.OnFinger, AddressOf AxCZKEM1_OnFinger
End If