The following function should be called before a file
transfer call in order to force the file transfer function to abort if
the carrier detect signal is lost or the other end of the call hangs up.
extern "C" int _stdcall
SetXferParameters(unsigned int cmd,unsigned long value);
#define CDRVXFER_MONITORCD 8
#define CDRV_TRUE
1
#define CDRV_FALSE
0
SetXferParameters(CDRVXFER_MONITORCD,CDRV_TRUE);
|