Messages are sent from the protocol stack to the application in the IMGT_MSG_PACKET structure. The IMGT_MSG_PACKET structure contains an IMGT_MESSAGE substructure that contains the message and a data area containing the message header. A pointer to the IMGT_MSG_PACKET structure is included in the CTA_EVENT structure returned by ctaWaitEvent.
For more information about receiving Natural Access events, see the Natural Access Developer's Reference Manual.
IMGT_MSG_PACKET is defined as follows:
typedef struct IMGT_MSG_PACKET
{
WORD data_size; /* Size of the data to follow */
WORD pad;
IMGT_MESSAGE message; /* IMGT message identification */
BYTE databuff[4]; /* Data included in packet >=0 */
} IMGT_MSG_PACKET;