| 1 |
maya |
2476 |
/* Tera Term |
| 2 |
|
|
Copyright(C) 1994-1998 T. Teranishi |
| 3 |
|
|
All rights reserved. */ |
| 4 |
|
|
|
| 5 |
|
|
/* TERATERM.EXE, file transfer routines */ |
| 6 |
|
|
#ifdef __cplusplus |
| 7 |
|
|
extern "C" { |
| 8 |
|
|
#endif |
| 9 |
|
|
typedef BOOL (FAR PASCAL *PGetSetupFname) |
| 10 |
|
|
(HWND HWin, WORD FuncId, PTTSet ts); |
| 11 |
|
|
typedef BOOL (FAR PASCAL *PGetTransFname) |
| 12 |
|
|
(PFileVar fv, PCHAR CurDir, WORD FuncId, LPLONG Option); |
| 13 |
|
|
typedef BOOL (FAR PASCAL *PGetMultiFname) |
| 14 |
|
|
(PFileVar fv, PCHAR CurDir, WORD FuncId, LPWORD Option); |
| 15 |
|
|
typedef BOOL (FAR PASCAL *PGetGetFname) |
| 16 |
|
|
(HWND HWin, PFileVar fv); |
| 17 |
|
|
typedef void (FAR PASCAL *PSetFileVar) (PFileVar fv); |
| 18 |
|
|
typedef BOOL (FAR PASCAL *PGetXFname) |
| 19 |
|
|
(HWND HWin, BOOL Receive, LPLONG Option, PFileVar fv, PCHAR CurDir); |
| 20 |
|
|
typedef void (FAR PASCAL *PProtoInit) |
| 21 |
|
|
(int Proto, PFileVar fv, PCHAR pv, PComVar cv, PTTSet ts); |
| 22 |
|
|
typedef BOOL (FAR PASCAL *PProtoParse) |
| 23 |
|
|
(int Proto, PFileVar fv, PCHAR pv, PComVar cv); |
| 24 |
|
|
typedef void (FAR PASCAL *PProtoTimeOutProc) |
| 25 |
|
|
(int Proto, PFileVar fv, PCHAR pv, PComVar cv); |
| 26 |
|
|
typedef BOOL (FAR PASCAL *PProtoCancel) |
| 27 |
|
|
(int Proto, PFileVar fv, PCHAR pv, PComVar cv); |
| 28 |
|
|
|
| 29 |
|
|
extern PGetSetupFname GetSetupFname; |
| 30 |
|
|
extern PGetTransFname GetTransFname; |
| 31 |
|
|
extern PGetMultiFname GetMultiFname; |
| 32 |
|
|
extern PGetGetFname GetGetFname; |
| 33 |
|
|
extern PSetFileVar SetFileVar; |
| 34 |
|
|
extern PGetXFname GetXFname; |
| 35 |
|
|
extern PProtoInit ProtoInit; |
| 36 |
|
|
extern PProtoParse ProtoParse; |
| 37 |
|
|
extern PProtoTimeOutProc ProtoTimeOutProc; |
| 38 |
|
|
extern PProtoCancel ProtoCancel; |
| 39 |
|
|
|
| 40 |
|
|
BOOL LoadTTFILE(); |
| 41 |
|
|
BOOL FreeTTFILE(); |
| 42 |
|
|
void ShowFTDlg(WORD OpId); |
| 43 |
|
|
BOOL NewFileVar(PFileVar *FV); |
| 44 |
|
|
void FreeFileVar(PFileVar *FV); |
| 45 |
|
|
|
| 46 |
|
|
void LogStart(); |
| 47 |
|
|
void Log1Byte(BYTE b); |
| 48 |
|
|
void LogToFile(); |
| 49 |
|
|
BOOL CreateLogBuf(); |
| 50 |
|
|
void FreeLogBuf(); |
| 51 |
|
|
BOOL CreateBinBuf(); |
| 52 |
|
|
void FreeBinBuf(); |
| 53 |
|
|
|
| 54 |
|
|
void FileSendStart(); |
| 55 |
|
|
void FileSend(); |
| 56 |
|
|
void FLogChangeButton(BOOL Pause); |
| 57 |
|
|
void FLogRefreshNum(); |
| 58 |
|
|
void FileTransEnd(WORD OpId); |
| 59 |
|
|
int FSOut1(BYTE b); |
| 60 |
|
|
int FSEcho1(BYTE b); |
| 61 |
|
|
|
| 62 |
|
|
void ProtoEnd(); |
| 63 |
|
|
int ProtoDlgParse(); |
| 64 |
|
|
void ProtoDlgTimeOut(); |
| 65 |
|
|
void ProtoDlgCancel(); |
| 66 |
|
|
void KermitStart(int mode); |
| 67 |
|
|
void XMODEMStart(int mode); |
| 68 |
yutakapon |
2511 |
void YMODEMStart(int mode); |
| 69 |
maya |
2476 |
void ZMODEMStart(int mode); |
| 70 |
|
|
void BPStart(int mode); |
| 71 |
|
|
void QVStart(int mode); |
| 72 |
|
|
|
| 73 |
|
|
extern PFileVar LogVar, SendVar, FileVar; |
| 74 |
|
|
extern BOOL FileLog, BinLog, DDELog; |
| 75 |
|
|
|
| 76 |
|
|
void logfile_lock_initialize(void); |
| 77 |
|
|
void CommentLogToFile(char *buf, int size); |
| 78 |
|
|
|
| 79 |
|
|
#ifdef __cplusplus |
| 80 |
|
|
} |
| 81 |
|
|
#endif |
| 82 |
|
|
|