ADLINK EOS-1200 User Manual
Page 68
56
Function Library
DIO_INT_EventMessage (ByVal CardNumber As
Short, ByVal mode As Short, ByVal evt As Inte-
ger, ByVal windowHandle As Integer, ByVal mes-
sage As Integer, ByVal callbackAddr As
CallbackDelegate) As Short
C#
short DIO_INT_EventMessage (ushort CardNumber,
short mode, long evt, long windowHandle, uint
message, MulticastDelegate callbackAddr)
Parameter(s)
CardNumber
ID of the card for release.
Mode
Operating mode for adding or removing messages, wherein
0: Remove an existing message interrupt event defined
argument evt.
1: Add a new message for an interrupt event defined
evt
Handle of the INT event to handle
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