SYNOPSIS#include "windows.h"
#include "stdio.h"
#include "api3.h"
#include "mmsg.h"
int FAR setmmsgfh(newfhandle)
int newfhandle;
DESCRIPTIONSetmmsgfh()
will change the file handle that putmsg
writes
messages to. It returns its argument. The default is to write
messages to file handle 2 (stderr)
.
EXAMPLEint fh;
OFSTRUCT mmsginfo;
APICP *acp;
...
/* open file msg.001 in "wb" mode */
fh=OpenFile("msg.001",&mmsginfo,
(OF_CANCEL|OF_CREATE|OF_WRITE|OF_SHARE_DENY_NONE));
if(fh!=(-1)) setmmsgfh(fh); /* set message file handle if ok */
...
acp=openapicp(); /* open mm api control parameters */