- DWORD adiSendAGMessage( CTAHD ctahd,
DWORD channel,
void *hdr,
WORD *parm,
void *bdsc )
- ctahd Context handle returned by adiOpenPort.
- channel Relative AG channel (default = 0).
- hdr Pointer to address of an AG message header, which consists of the following structure:
struct
{
WORD message; /* Message id */
WORD channel; /* adiSendAGMessage will fill this in */
WORD object; /* Overlay or function id code (typically) */
BYTE stream; /* Stream number */
BYTE instance; /* FDB instance number */
DWORD time; /* Timestamp (not used for send) */
WORD reserved; /* Reserved for future use - must be 0 */
BYTE bufcnt; /* Number of buffers */
BYTE parmcnt; /* Number of parameters */
}
- parm Pointer to an array of up to 16 parameters, or NULL.
- bdsc Pointer to an array of up to 4 buffer descriptors, or NULL. Each buffer descriptor consists of the following structure:
struct
{
DWORD size ; /* Size of the buffer (bytes) */
char *addr; /* buffer address */
}