-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlorawin.h
965 lines (809 loc) · 19.1 KB
/
lorawin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
// LoraBBS Version 2.99 Free Edition
// Copyright (C) 1987-98 Marco Maccaferri
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#include "combase.h"
#include "lora.h"
#if defined(__OS2__) || defined(__NT__)
#include "cpc.h"
#endif
extern USHORT Daemon;
extern class TConfig *Cfg;
extern class TPMLog *Log;
// ----------------------------------------------------------------------------
#define NO_RESPONSE 0
#if !defined(OK)
#define OK 1
#endif
#if defined(__OS2__) || defined(__DOS__) || defined(__LINUX__)
#define ERROR 2
#endif
#define RING 3
#define CONNECT 4
#define NO_CARRIER 5
#define FAX 6
#define FDCS 7
#define FHNG 8
#define FPTS 9
#define FTSI 10
#define FET 11
#define FHS 12
#define FCS 13
#define FPS 14
#define FTI 15
class TModem
{
public:
TModem ();
~TModem ();
CHAR Device[32];
CHAR NodelistPath[64], DialCmd[64];
CHAR Ring[32];
USHORT LockSpeed, Terminal;
ULONG Speed;
CHAR Response[64];
#if defined(__OS2__) || defined(__NT__)
HWND hwndWindow;
#elif defined(__DOS__) || defined(__LINUX__)
CXLWIN window;
#endif
class TLog *Log;
class TSerial *Serial;
USHORT GetResponse ();
USHORT Initialize (ULONG comhandle = 0L);
VOID Poll (PSZ pszNode);
VOID SendCommand (PSZ pszCmd);
private:
USHORT Position;
};
/* A T.30 DIS frame, as sent by the remote fax machine */
struct T30Params {
int vr;
int br; /* BR = Bit Rate : br * 2400BPS */
int wd; /* Page Width : */
int ln; /* Page Length : */
int df; /* Data compression format : */
int ec; /* Error Correction : */
int bf; /* Binary File Transfer */
int st; /* Scan Time (ms) : */
};
struct faxmodem_response
{
char remote_id[50]; /* +FCSI remote id */
int hangup_code; /* +FHNG code */
int post_page_response_code; /* +FPTS code */
int post_page_message_code; /* +FET code */
int fcon; /* Boolean; TRUE if +FCON seen */
int connect; /* Boolean; TRUE if CONNECT msg seen */
int ok; /* Boolean; TRUE if OK seen */
int error; /* Boolean; TRUE if ERROR or NO CARRIER seen */
/* Session params; parsed from +FDCS */
struct T30Params T30;
};
class TFax
{
public:
TFax ();
~TFax ();
USHORT Format;
CHAR DataPath[64];
class TSerial *Com;
class TLog *Log;
int faxreceive ();
private:
int gEnd_of_document, swaptableinit;
int opage;
UCHAR swaptable[256];
ULONG faxsize;
struct faxmodem_response response;
int get_fax_file (int page);
int read_g3_stream (FILE * fp);
void get_faxline (char *p, int nbytes, unsigned int wtime);
void init_swaptable ();
void init_modem_response ();
void get_modem_result_code ();
void fax_status (char *str);
void parse_text_response (char *str);
int faxmodem_receive_page ();
};
// ----------------------------------------------------------------------------
class TPMList
{
public:
#if defined(__OS2__) || defined(__NT__)
TPMList (HWND hwnd);
#elif defined(__LINUX__) || defined(__DOS__)
TPMList ();
#endif
~TPMList ();
VOID Add (PSZ Text);
VOID Clear ();
VOID Update (PSZ Text);
private:
FILE *fp;
USHORT DoWrite;
CHAR Line[128];
#if defined(__OS2__) || defined(__NT__)
HWND hwndList;
#elif defined(__DOS__) || defined(__LINUX__)
USHORT First;
CXLWIN window;
#endif
};
// ----------------------------------------------------------------------------
class TTicProcessor
{
public:
TTicProcessor ();
~TTicProcessor ();
CHAR Inbound[128];
CHAR Area[64], Name[32], Complete[128];
CHAR Password[32], Replace[32];
ULONG Size, Crc;
class TConfig *Cfg;
class TLog *Log;
class TCollection *Description;
class TKludges *SeenBy;
class TCollection *Path;
class TAddress From;
class TAddress Origin;
class TPMList *Output;
USHORT Check ();
USHORT CheckEchoList (PSZ pszFile, PSZ pszEchoTag);
VOID Delete ();
VOID Hatch (class TAddress *Dest);
VOID Hatch (class TAddress &Dest);
VOID Hatch (PSZ address);
VOID Import ();
USHORT ImportTic ();
USHORT Open (PSZ pszFile);
USHORT OpenNext ();
private:
CHAR PktName[32];
CHAR CurrentFile[128];
CHAR Temp[256], Display[128];
class TFileBase *File;
class TFileData *Data;
class TNodes *Nodes;
};
// --------------------------------------------------------------------------
typedef struct {
USHORT Zone;
USHORT Net;
USHORT Node;
USHORT Point;
} KLUDGES;
class TKludges
{
public:
TKludges ();
~TKludges ();
USHORT Sort, KeepPoint;
USHORT Zone, Net, Node, Point;
CHAR Address[32], ShortAddress[32];
USHORT Add ();
USHORT AddString (PSZ pszString);
USHORT Check (PSZ pszName);
VOID Clear ();
VOID Delete ();
USHORT First ();
VOID New ();
USHORT Next ();
private:
class TCollection Data;
};
// ----------------------------------------------------------------------------
class TMailProcessor
{
public:
TMailProcessor ();
~TMailProcessor ();
USHORT Packets;
CHAR Inbound[64], Outbound[64];
ULONG Bad, NetMail, MsgTossed, Duplicate;
ULONG MsgSent;
class TConfig *Cfg;
class TLog *Log;
class TPMList *Output;
class TStatus *Status;
VOID Change ();
USHORT CheckEchoList (PSZ pszFile, PSZ pszEchoTag);
VOID Export ();
VOID ExportNetMail ();
VOID Import ();
VOID ImportBad ();
USHORT IsArcmail ();
VOID News ();
VOID Pack (PSZ pszFile, PSZ pszRoute = NULL);
VOID Mail ();
USHORT DoRescan ();
USHORT UnpackArcmail ();
private:
CHAR PktName[32];
CHAR Display[128];
CHAR LastTag[64];
CHAR Temp[1024];
CHAR ArcMailName[128];
CHAR Line[128], Name[128];
USHORT IsAreasBBS;
USHORT BadArea;
ULONG TossedArea;
ULONG Started, BytesProcessed;
class PACKET *Packet;
class TNodes *Nodes;
class TMsgData *Data;
class TEchoLink *Forward;
class TDupes *Dupes;
class TMsgBase *Msg;
class TEchotoss *Echo;
class TKludges *SeenBy;
class TKludges *Path;
USHORT ExportEchoMail (ULONG Number, PSZ pszEchoTag);
ULONG ImportEchoMail (PSZ EchoTag, class TMsgBase *InBase = NULL);
VOID MakeArcMailName (PSZ pszAddress, CHAR Flag);
USHORT OpenArea (PSZ pszEchoTag);
USHORT OpenNextPacket ();
VOID RouteTo ();
VOID SendTo ();
VOID Poll ();
};
// --------------------------------------------------------------------------
class TAreaManager
{
public:
TAreaManager ();
~TAreaManager ();
class TConfig *Cfg;
class TLog *Log;
class TMsgBase *Msg;
class TStatus *Status;
USHORT AddArea (PSZ address, PSZ area);
VOID DoAreaListings (PSZ Address, USHORT Type, USHORT Level, ULONG AccessFlags, ULONG DenyFlags);
USHORT FilePassive (PSZ address, USHORT flag);
USHORT FileRemoveAll (PSZ address);
VOID ImportAreasBBS ();
VOID ImportDescriptions (PSZ pszFile);
VOID ExportDescriptions (PSZ pszFile);
VOID MsgFooter ();
VOID MsgHeader ();
USHORT Passive (PSZ address, USHORT flag);
VOID ProcessAreafix ();
VOID ProcessRaid ();
USHORT RemoveAll (PSZ address);
USHORT RemoveArea (PSZ address, PSZ area);
VOID Rescan (PSZ pszEchoTag, PSZ pszAddress, USHORT MaxMsgs = 0);
USHORT SetInPacketPwd (PSZ address, PSZ pwd);
USHORT SetOutPacketPwd (PSZ address, PSZ pwd);
USHORT SetPacker (PSZ Cmd);
USHORT SetPacketPwd (PSZ address, PSZ pwd);
USHORT SetPwd (PSZ address, PSZ pwd);
USHORT SetSessionPwd (PSZ address, PSZ pwd);
VOID UpdateAreasBBS ();
private:
class TNodes *Nodes;
class TEchoLink *EchoLink;
class TFilechoLink *FileEchoLink;
class TMsgData *Data;
class TFileData *FileData;
class TCollection Text;
};
// --------------------------------------------------------------------------
VOID CompileNodelist (USHORT force);
// ----------------------------------------------------------------------------
class TPMStatus : public TStatus
{
public:
#if defined(__OS2__) || defined(__NT__)
TPMStatus (HWND hwnd);
#else
TPMStatus ();
#endif
~TPMStatus ();
VOID Clear ();
VOID SetLine (USHORT line, PSZ text, ...);
private:
#if defined(__OS2__) || defined(__NT__)
HWND hwndList;
#endif
};
class TPMLog : public TLog
{
public:
#if defined(__OS2__) || defined(__NT__)
TPMLog (HWND hwnd);
#else
TPMLog ();
#endif
~TPMLog ();
USHORT First;
VOID Write (PSZ pszFormat, ...);
private:
#if defined(__OS2__) || defined(__NT__)
HWND hwndList;
#elif defined(__DOS__) || defined(__LINUX__)
CXLWIN window;
#endif
};
#if defined(__OS2__) || defined(__NT__)
#define WMU_ADDLOGITEM 1
#define WMU_ADDMODEMITEM 2
#define WMU_SETSTATUSLINE 3
#define WMU_SETSTATUSLINE0 4
#define WMU_SETSTATUSLINE1 5
#define WMU_REFRESHOUTBOUND 6
#define WMU_ADDOUTBOUNDLINE 7
#define WMU_CLEAROUTBOUND 8
#define WMU_REPLACEOUTBOUNDLINE 9
#if defined(__OS2__)
extern HAB hab;
extern HWND hwndMainFrame, hwndMainClient;
extern FILEDLG fild;
extern HEV hCfgEvent;
#elif defined(__NT__)
extern HINSTANCE hinst;
extern HWND hwndMainClient, hwndMainList;
extern HWND hwndModemClient, hwndModemList;
extern HWND hwndProgressDlg;
#endif
class CAddressDlg : public CDialog
{
public:
CAddressDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Change ();
VOID Remove ();
VOID SelChanged ();
};
class CAnswerDlg : public CDialog
{
public:
CAnswerDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CAreafixDlg : public CDialog
{
public:
CAreafixDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CBBSGeneralDlg : public CDialog
{
public:
CBBSGeneralDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CCommandsDlg : public CDialog
{
public:
CCommandsDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CDirectoriesDlg : public CDialog
{
public:
CDirectoriesDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CEventsDlg : public CDialog
{
public:
CEventsDlg (HWND p_hWnd);
~CEventsDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
class TEvents *Data;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Delete ();
VOID DisplayData ();
VOID List ();
VOID Next ();
VOID Previous ();
VOID ReadData ();
};
class CExternalDlg : public CDialog
{
public:
CExternalDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CFaxOptDlg : public CDialog
{
public:
CFaxOptDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CFileDlg : public CDialog
{
public:
CFileDlg (HWND p_hWnd);
~CFileDlg ();
VOID OnAdd ();
VOID OnDelete ();
VOID OnHelp ();
USHORT OnInitDialog ();
VOID OnInsert ();
VOID OnNext ();
VOID OnOK ();
VOID OnPrevious ();
VOID Security ();
private:
class TFileData *Data;
DECLARE_MESSAGE_MAP()
VOID DisplayData ();
VOID Links ();
VOID List ();
VOID Move ();
VOID ReadData ();
VOID Search ();
};
class CGeneralDlg : public CDialog
{
public:
CGeneralDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CHardwareDlg : public CDialog
{
public:
CHardwareDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CInternetDlg : public CDialog
{
public:
CInternetDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CLimitsDlg : public CDialog
{
public:
CLimitsDlg (HWND p_hWnd);
virtual ~CLimitsDlg ();
class TLimits *Limits;
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
DECLARE_MESSAGE_MAP ()
VOID DisplayData ();
VOID Delete ();
VOID Next ();
VOID Previous ();
VOID Add ();
};
class CMailprocDlg : public CDialog
{
public:
CMailprocDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CMenuDlg : public CDialog
{
public:
CMenuDlg (HWND p_hWnd);
~CMenuDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
CHAR FullFile[256];
#if defined(__OS2__)
FILEDLG fild;
#elif defined(__NT__)
OPENFILENAME OpenFileName;
#endif
class TMenu *Menu;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Color ();
VOID Command ();
VOID Delete ();
VOID DisplayData ();
VOID HilightColor ();
VOID Insert ();
VOID List ();
VOID Next ();
VOID Previous ();
VOID Prompt ();
VOID ReadData ();
VOID Security ();
};
class CMessageDlg : public CDialog
{
public:
CMessageDlg (HWND p_hWnd);
~CMessageDlg ();
VOID OnAdd ();
VOID OnDelete ();
VOID OnHelp ();
USHORT OnInitDialog ();
VOID OnInsert ();
VOID OnNext ();
VOID OnOK ();
VOID OnPrevious ();
private:
class TMsgData *Data;
DECLARE_MESSAGE_MAP()
VOID DisplayData ();
VOID Links ();
VOID List ();
VOID Move ();
VOID ReadData ();
VOID Search ();
VOID Security ();
};
class CMiscDlg : public CDialog
{
public:
CMiscDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CNewUserDlg : public CDialog
{
public:
CNewUserDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
VOID NewUserSecurity ();
private:
DECLARE_MESSAGE_MAP();
UCHAR GetSelection (USHORT id, USHORT Three);
};
class CNodelistDlg : public CDialog
{
public:
CNodelistDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Edit ();
VOID Remove ();
};
class CNodesDlg : public CDialog
{
public:
CNodesDlg (HWND p_hWnd);
~CNodesDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
class TNodes *Data;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Copy ();
VOID Delete ();
VOID DisplayData ();
VOID List ();
VOID Next ();
VOID Other ();
VOID Previous ();
VOID ReadData ();
VOID Security ();
VOID NodeTic ();
VOID NodeEcho ();
};
class CNodeFlagsDlg : public CDialog
{
public:
CNodeFlagsDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Change ();
VOID Remove ();
};
class COfflineDlg : public CDialog
{
public:
COfflineDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class COkFileDlg : public CDialog
{
public:
COkFileDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Change ();
VOID Remove ();
VOID SelChanged ();
};
class COriginDlg : public CDialog
{
public:
COriginDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
class TCollection Text;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID ItemSelected ();
VOID Remove ();
VOID Replace ();
};
class CPackerDlg : public CDialog
{
public:
CPackerDlg (HWND p_hWnd);
~CPackerDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
class TPacker *Data;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Delete ();
VOID DisplayData ();
VOID List ();
VOID Next ();
VOID Previous ();
VOID ReadData ();
};
class CProtocolDlg : public CDialog
{
public:
CProtocolDlg (HWND p_hWnd);
~CProtocolDlg ();
VOID OnAdd ();
VOID OnDelete ();
VOID OnHelp ();
USHORT OnInitDialog ();
VOID OnNext ();
VOID OnOK ();
VOID OnPrevious ();
private:
class TProtocol *Data;
DECLARE_MESSAGE_MAP()
VOID DisplayData ();
VOID List ();
VOID ReadData ();
};
class CRaidDlg : public CDialog
{
public:
CRaidDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CSiteInfoDlg : public CDialog
{
public:
CSiteInfoDlg (HWND p_hWnd);
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
};
class CTranslationDlg : public CDialog
{
public:
CTranslationDlg (HWND p_hWnd);
~CTranslationDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
void *Data;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Copy ();
VOID Delete ();
VOID DisplayData ();
VOID List ();
VOID Next ();
VOID Previous ();
VOID ReadData ();
};
class CUserDlg : public CDialog
{
public:
CUserDlg (HWND p_hWnd);
~CUserDlg ();
USHORT OnInitDialog ();
VOID OnHelp ();
VOID OnOK ();
private:
class TUser *Data;
DECLARE_MESSAGE_MAP ()
VOID Add ();
VOID Delete ();
VOID DisplayData ();
VOID List ();
VOID Next ();
VOID Other ();
VOID Password ();
VOID Previous ();
VOID ReadData ();
VOID Search ();
VOID Security ();
};
#elif defined(__DOS__) || defined(__LINUX__)
VOID DisplayButton (USHORT y, USHORT x, CHAR *Text, USHORT Shadow = BLACK|_LGREY);
USHORT MessageBox (PSZ Caption, PSZ Text);
USHORT CAddressDlg ();
USHORT CAnswerDlg ();
USHORT CAreafixDlg ();
USHORT CBBSGeneralDlg ();
USHORT CCommandsDlg ();
USHORT CCompressorDlg ();
USHORT CDirectoriesDlg ();
USHORT CEventDlg ();
USHORT CExternalProcDlg ();
USHORT CFaxDlg ();
USHORT CFileDlg ();
USHORT CGeneralOptDlg ();
USHORT CHardwareDlg ();
USHORT CInternetDlg ();
USHORT CMailerMiscDlg ();
USHORT CMailProcessingDlg ();
USHORT CMenuEditorDlg (PSZ pszFile);
USHORT CMessageDlg ();
USHORT CNewUsersDlg ();
USHORT CNodelistDlg ();
VOID CNodeFlagsDlg ();
USHORT CNodesDlg ();
USHORT COfflineDlg ();
USHORT CSiteInfoDlg ();
USHORT CUserDlg ();
#endif