setmmsgfh - set the message file handle

SYNOPSIS

#include "windows.h"
#include "stdio.h"
#include "api3.h"
#include "mmsg.h"

int FAR setmmsgfh(newfhandle)
int newfhandle;


DESCRIPTION
Setmmsgfh() 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).


EXAMPLE

int 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 */


Copyright © Thunderstone Software     Last updated: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.