Dio_int2_eventmessage – ADLINK MXC-6300 Series User Manual
Page 116

104
Digital Input/Output Function Library
DIO_INT1_EventMessage (ByVal Int1Mode As Integer,
ByVal windowHandle As Long, ByVal message As
Long, ByVal callbackAddr As Long) As Integer
Parameter(s)
Int1Mode
Interrupt mode of INT1.
Valid values include: MXC-6300, INT1_DISABLE,
INT1_EXT_SIGNAL INT1 by COS of Ch0 of Port 0
windowHandle
Handle to the destination window for a Windows message
when the specified INT event occurs. If windowHandle is 0, no
Windows messages will be sent.
message
User-defined message. When the specified INT event occurs,
MXC-6300 matrix_dio remits this message. The message can
be of any value. In Windows, the message can be set to a
value including any Windows predefined messages, such as
WM_PAINT. However, to define a designated message, any
value ranging from WM_USER (0x400) to 0x7fff can be used.
This range is reserved by Windows for user-defined messages.
callbackAddr
Address of the user callback function. The MXC-6300
matrix_dio calls this function when the specified INT event
occurs. If no callback function is desired, set callbackAddr to 0.
Return codes
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
DIO_INT2_EventMessage
Controls INT2 interrupt sources for a dual-interrupt system and
notifies the application when an interrupt event occurs. The