Sends a message to an output file or device.

#define INCL_DOSMISC
#include <os2.h>

HFILE     hfile;  /*  The handle of the output file or device. */
ULONG     cbMsg;  /*  The length, in bytes, of the message to be sent. */
PCHAR     pBuf;   /*  The buffer that contains the message to be sent. */
APIRET    ulrc;   /*  Return Code. */

ulrc = DosPutMessage(hfile, cbMsg, pBuf);


[Back] [Next]