Dio_int_event_message – ADLINK MXC-6300 Series User Manual
Page 114

102
Digital Input/Output Function Library
Return codes
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
ErrorInvalidIoChannel
DIO_INT_Event_Message
Controls and notifies user application when a specified inter-
rupt event occurs. Notification is implemented through a user-
specified callback function or the Windows PostMessage API.
When a new event message is added, it remains active until
the function is called by setting the argument mode to 0,
removing the specified interrupt event message. To remove a
specified message, the event handle for the message must be
identified.
Syntax
C/C++ and Borland C++
I16 DIO_INT_EventMessage (I16 mode, HANDLE evt,
HANDLE windowHandle, U32 message, U32
callbackAddr)
Visual Basic
DIO_INT_EventMessage (ByVal mode As Integer,
ByVal evt As Long, ByVal windowHandle As
Long, ByVal message As Long, ByVal
callbackAddr As Long) As Integer
Parameter(s)
mode
Operation mode of adding or removing message, with
0 Removes an existing message interrupt event defined argu-
ment event
1 Adds a new message for an interrupt event defined
evt
Handle of the INT event to be handled.