Function Library
59
EOS-1200
windowHandle
Handle to the window in which a Windows message will be
received when the specified INT event occurs; if windoHan-
dle is 0, no Windows messages will be sent
Message
User-defined message issued when the specified INT event
occurs. The message can be of any value. In Windows, the
message can be set to a value including any Windows pre-
defined messages, such as WM_PAINT. To define a custom
message, any value ranging from WM_USER (0x400) to
0x7fff can be used, this range reserved by Windows for
same.
callbackAddr
Address of the user callback function. The PCIS-DASK calls
this function when the specified INT event occurs. If no call-
back function is required, set callbackAddr to 0.
Return Code(s)
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
5.6.3
DIO_INT2_EventMessage
Description
Controls the INT2 interrupt sources for a dual-interrupt sys-
tem and notifies the active application when an interrupt
event occurs. The notification is executed via a user-speci-
fied callback function or the Windows PostMessage API.
Syntax
C/C++
I16 DIO_INT2_EventMessage (U16 CardNumber, I16
Int2Mode, HANDLE windowHandle, U32 message,
void *callbackAddr())