-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDfAbout.pkg
More file actions
1678 lines (1454 loc) · 75.6 KB
/
Copy pathDfAbout.pkg
File metadata and controls
1678 lines (1454 loc) · 75.6 KB
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
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// If you get a compile error about a resource. "..\APPSRC\COMPILEHEADER.H",
// you need to compile the program "WriteDateTimeHeaderFile.src" first!
//
// If you get a compile error: "Can't include resource ..\HELP\ABOUT.RTF",
// you need to create a "About.rtf" file in the Help folder.
// Note that it can be empty, but it needs to exist for the About dialog.
//
Use Windows.pkg
Use Dfclient.pkg
Use DFbitmap.pkg
Use GlobalFunctionsProcedures.pkg
Use cRichEdit.pkg
Use cTextEdit.pkg
Use cRichEdit.pkg
Use gFormatNumbers.pkg
Use cli.pkg
Use DFBTRDRV.PKG
Use MSSqldrv.pkg
Use db2_drv.pkg
Use odbc_drv.pkg
Use RDCCompileDateTime.pkg
#IF (!@ > 210)
Use WsGlobalFunctions.pkg
#ELSE
Use GlobalFunctionsProcedures.pkg
Use seq_chnl.pkg
// A variant of the ShellExecute Win API, but it waits until the process that is started
// (the passed program), has finished
// The DOS box does also _not_ flash briefly.
Procedure RunProgramWait Global String sProgram String sParameter
// Handle hProcess
// Integer iVoid
// AboutSHELLEXECUTEINFO sInfo
//
// Move (SizeOfType(AboutSHELLEXECUTEINFO)) to sInfo.cbSize
//
// Move SEE_MASK_NOCLOSEPROCESS to sInfo.fMask
// Move SW_SHOW to sInfo.nShow
//
// Move (AddressOf(sProgram)) to sInfo.lpFile
// Move (AddressOf(sParameter)) to sInfo.lpParameters
// // This will "hide" the DOS box from showing (no flasing box):
// Move 0 to sInfo.nShow
//
// Move (AboutShellExecuteEx(AddressOf(sInfo))) to iVoid
// Move sInfo.hProcess to hProcess
// If (hProcess) Begin
// Move (AboutWaitForSingleObject(hProcess, -1)) to iVoid
// Move (AboutCloseHandle(hProcess)) to iVoid
// End
End_Procedure
Function OpenOutput Global String sFileName Returns Integer
Integer iCh
Get Seq_New_Channel to iCh
If (iCh = DF_SEQ_CHANNEL_NOT_AVAILABLE) Begin
Error DFERR_PROGRAM "DF_SEQ_CHANNEL_NOT_AVAILABLE"
Function_Return DF_SEQ_CHANNEL_NOT_AVAILABLE
End
Direct_Output channel iCh sFileName
Function_Return iCh
End_Function
Procedure CloseOutput Global Integer iCh
Close_Output channel iCh
Send Seq_Release_Channel iCh
End_Procedure
Function OpenInput Global String sFileName Returns Integer
Integer iCh
Get Seq_New_Channel to iCh
If (iCh = DF_SEQ_CHANNEL_NOT_AVAILABLE) Begin
Error DFERR_PROGRAM "DF_SEQ_CHANNEL_NOT_AVAILABLE"
Function_Return DF_SEQ_CHANNEL_NOT_AVAILABLE
End
Direct_Input channel iCh sFileName
Function_Return iCh
End_Function
Procedure CloseInput Global Integer iCh
Close_Input channel iCh
Send Seq_Release_Channel iCh
End_Procedure
Function OpenAppendOutput Global String sFileName Returns Integer
Integer iCh
Get Seq_New_Channel to iCh
If (iCh = DF_SEQ_CHANNEL_NOT_AVAILABLE) Begin
Error DFERR_PROGRAM "DF_SEQ_CHANNEL_NOT_AVAILABLE"
Function_Return DF_SEQ_CHANNEL_NOT_AVAILABLE
End
Append_Output channel iCh sFileName
Function_Return iCh
End_Function
Procedure CloseAppendOutput Global Integer iCh
Close_Input channel iCh
Send Seq_Release_Channel iCh
End_Procedure
#ENDIF
Use LanguageText.pkg
Register_Function phoWorkspace Returns Handle
Register_Function Help_filename Returns String
Register_Function GetHelpFile Returns String
Register_Function pbEnterKeyAsTabKey Returns Boolean
#IFNDEF CS_CRLF
Define CS_CRLF for (Character(13) + Character(10))
#ENDIF
#IFNDEF ORAFLEX
Define ORAFLEX for "ORA_DRV"
#ENDIF
#IFNDEF SQLFLEX
Define SQLFLEX for "SQL_DRV"
#ENDIF
#IFNDEF MDSPgSQL
Define MDSPgSQL for "MDSPGSQL"
#ENDIF
#IFNDEF MDSMySQL
Define MDSMySQL for "MDSMYSQL"
#ENDIF
// *** Constant Declarations: ***
//
#IFDEF DF_DRIVER_SQLSERVER_CLIENT_VERSION
#ELSE
#Replace DF_DRIVER_SQLSERVER_CLIENT_VERSION |CI1160
#ENDIF
#IFSame Language$Current = Language$English
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSAME Language$Current Language$Nederlands
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Svenska
#Replace C_$Computer_Name |CS"Datornamn: %1"
#Replace C_$Current_User_Count |CS"Aktuellt antal användare: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max antal licensierade användare: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max antal dbDriver licensierade användare: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"Databasdrivrutinens version skall som lägst vara:"
#Replace C_$SQL_Client_Version_Min_Text |CS"samt SQL Server klientversionen skall som lägst vara:"
#Replace C_$SQL_Versions_Are_Text |CS"Men nuvarande versioner är:"
#Replace C_$PleaseAdjustTxt |CS"V├ñnligen justera och f├Ârs├Âk igen."
#Replace C_$ProgramWillExit_Text |CS"Programmet kommer nu att avslutas."
#Replace C_$DF_Studio_License_Text |CS"Programmet k├Ârs under DataFlex Studio licens. Max antal anv├ñndare f├Âr databas drivrutin kan ej best├ñmmas."
#Replace C_$Compile_Date |CS"Kompilerad:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Inneh├Ñll kopierat till Windows klippbord. Tryck p├Ñ Ctrl+V f├Âr att klistra in inneh├Ñllet i t ex ett e-mejl."
#ENDIF
#ENDIF
#IFSAME Language$Current Language$Deutsch
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSAME Language$Current Language$Dansk
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
// 2016-12-12, Samuel: Added section for Portuguese
#IFSame Language$Current = Language$Portugues
#Replace C_$Computer_Name |CS"Nome do Computador: %1"
#Replace C_$Current_User_Count |CS"Quantidade atua de Usuários: %1"
#Replace C_$Max_Licensed_User_Count |CS"Quantidade máxima de usuários licenciados: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Quantidade máxima de usuarios licenciados para o dbDriver: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"VersÔûîo do motor Local do Pervasive: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"VersÔûîo do Motor do Servidor Pervasive: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"Cliente Nativo do SQL Server 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"Cliente Nativo do SQL Server 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"Cliente Nativo SQL (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Programa rodando sob Licensa do DataFlex Studios. Numero maximo de usuarios para o dbDriver nÔûîo pode ser recuperado."
#Replace C_$Compile_Date |CS"Data de Compila├ºÔûîo:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Conte├║do copiado da Ôûîrea de Transfer├¬ncia do Windows. Pressione Ctrl+V para colar o conte├║do em p. ex. um e-mail."
#ENDIF
#ENDIF
#IFSAME Language$Current Language$Francais
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSAME Language$Current Language$Italiano
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Espanol
#Replace C_$Computer_Name |CS"Nome do Computador: %1"
#Replace C_$Current_User_Count |CS"Quantidade atua de Usuários: %1"
#Replace C_$Max_Licensed_User_Count |CS"Quantidade máxima de usuários licenciados: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Quantidade máxima de usuarios licenciados para o dbDriver: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"VersÔûîo do motor Local do Pervasive: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"VersÔûîo do Motor do Servidor Pervasive: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"Cliente Nativo do SQL Server 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"Cliente Nativo do SQL Server 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"Cliente Nativo SQL (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Programa rodando sob Licensa do DataFlex Studios. Numero maximo de usuarios para o dbDriver nÔûîo pode ser recuperado."
#Replace C_$Compile_Date |CS"Data de Compila├ºÔûîo:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Conte├║do copiado da Ôûîrea de Transfer├¬ncia do Windows. Pressione Ctrl+V para colar o conte├║do em p. ex. um e-mail."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Norsk
#Replace C_$Computer_Name |CS"Datamaskinnavn: %1"
#Replace C_$Current_User_Count |CS"Antall brukere: %1"
#Replace C_$Max_Licensed_User_Count |CS"Maks. antall lisensierte brukere: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Maks. antall lisensierte brukere for databasedriver: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Programmet kj¢res under DataFlex Studio lisens. Maks. antal brukere for databasedriverrutine kan ikke fastsettes."
#Replace C_$Compile_Date |CS"Kompilert:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Innehold kopiert til Windows utklippstavle. Trykk Ctrl+V for å lime inn i for eksempel en e-post."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Russian
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Polish
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFSame Language$Current = Language$Hungarian
#Replace C_$Computer_Name |CS"Computer Name: %1"
#Replace C_$Current_User_Count |CS"Current User Count: %1"
#Replace C_$Max_Licensed_User_Count |CS"Max Licensed User Count: %1"
#Replace C_$Max_DbDriver_Licensed_User_Count |CS"Max dbDriver Licensed User Count: %1"
#Replace C_$Pervasive_Local_Engine_Version |CS"Pervasive Local Engine Version: %1"
#Replace C_$Pervasive_Server_Engine_Version |CS"Pervasive Server Engine Version: %1"
#Replace C_$SQLSERVER2016DRVRSTR |CS"MS-SQL Server 2016 Client ODBC Driver 13 for SQL Server"
#Replace C_$SQLSERVER2014DRVRSTR |CS"MS-SQL Server 2014 Client ODBC Driver 11 for SQL Server"
#Replace C_$SQL_Server_Native_Client_11_0 |CS"SQL Server Native Client 11.0 (SQL Server 2012)"
#Replace C_$SQL_Server_Native_Client_10_0 |CS"SQL Server Native Client 10.0 (SQL Server 2008)"
#Replace C_$SQL_Native_Client |CS"SQL Native Client (SQL Server 2005)"
#Replace C_$SQL_Server_SQL_Server_2000_client |CS"SQL Server (SQL Server 2000 client (MDAC))"
#Replace C_$SQLServerText |CS"Server/DSN:"
#Replace C_$SQL_Client_Text |CS"Client Version:"
#Replace C_$SQL_Driver_Version_Min_Text |CS"The database driver version should at least be version:"
#Replace C_$SQL_Client_Version_Min_Text |CS"and the SQL client version should at least be:"
#Replace C_$SQL_Versions_Are_Text |CS"But the current versions are:"
#Replace C_$PleaseAdjustTxt |CS"Please adjust and try again."
#Replace C_$ProgramWillExit_Text |CS"The program will now exit."
#Replace C_$DF_Studio_License_Text |CS"Program run under Studio license. The Max number of users for database drivers could not be retrieved."
#Replace C_$Compile_Date |CS"Compiled:"
#IFNDEF C_$CopyToClipboard_Text
#Replace C_$CopyToClipboard_Text |CS"Content copied to Windows clipboard. Press Ctrl+V to paste the content in e.g. an e-mail."
#ENDIF
#ENDIF
#IFNDEF DATAFLEX_ID
Define DATAFLEX_ID for "DATAFLEX"
#ENDIF
// System icon menu constants. If the upper left hand
// icon in dialogs is clicked, shadow all menu items except Move & Close.
#IFNDEF SC_RESTORE
Define SC_RESTORE for |CI$F120
#ENDIF
#IFNDEF SC_MOVE
Define SC_MOVE for |CI$F010
#ENDIF
#IFNDEF SC_SIZE
Define SC_SIZE for |CI$F000
#ENDIF
#IFNDEF SC_MINIMIZE
Define SC_MINIMIZE for |CI$F020
#ENDIF
#IFNDEF SC_MAXIMIZE
Define SC_MAXIMIZE for |CI$F030
#ENDIF
#IFNDEF SC_CLOSE
Define SC_CLOSE for |CI$F060
#ENDIF
#IFNDEF SC_KEYMENU
Define SC_KEYMENU for |CI$F100
#ENDIF
#IFNDEF SC_NEXTWINDOW
Define SC_NEXTWINDOW for |CI$F040
#ENDIF
#IFNDEF SC_PREVWINDOW
Define SC_PREVWINDOW for |CI$F050
#ENDIF
Define CS_SignProgram for "signtool.exe"
Define CS_TempCertBatchFile for "certinfo.bat"
Define CS_VerifyCredentials for "verify"
Define CS_VerifyFileParam for "/a"
Define CS_DefAuthVerPolicy for "/pa"
// *** External Function calls: ***
//
#IFNDEF get_GetSystemMenu
External_Function GetSystemMenu "GetSystemMenu" User32.dll Handle hWnd Boolean bRevert Returns Handle
#ENDIF
#IFNDEF get_RemoveMenu
External_Function GetRemoveMenu "RemoveMenu" user32.dll Handle hWnd UInteger uPosition UInteger uFlags Returns Handle
#ENDIF
// Do not call directly, use the wrapper function instead
External_Function WNetGetUserW "WNetGetUserW" MPR.DLL ;
Pointer lpName ;
Pointer lpUser_Name ;
Pointer lpLength ;
Returns DWord
// Wrapper Function WNetGetUser
Function WNetGetUser Global ;
Pointer lpName ;
Pointer lpUser_Name ;
Pointer lpLength ;
Returns DWord
DWord dwResult
UWide uwName uwUserName
Send StringToWide lpName (&uwName)
Send WideSetBuffer lpUser_Name lpLength (&uwUserName)
Move (WNetGetUserW (uwName.lpUText, uwUserName.lpUText, lpLength)) to dwResult
Send WideToString (&uwUserName) lpUser_Name
Function_Return dwResult
End_Function
#IFNDEF get_WNetGetUser
External_Function WNetGetUser "WNetGetUserA" MPR.DLL Pointer lpName Pointer lpUser_Name Pointer lpLength Returns DWord
#ENDIF
#IFNDEF get_GlobalMemoryStatus
External_Function GlobalMemoryStatus "GlobalMemoryStatus" Kernel32.Dll Pointer lpsMemoryStatus Returns Integer
#ENDIF
#IFNDEF get_GlobalMemoryStatusEx
External_Function GlobalMemoryStatusEx "GlobalMemoryStatusEx" Kernel32.Dll Pointer lpMemoryStatus Returns Integer
#ENDIF
Function ComputerName Desktop Returns String
String sName
Get_Environment "COMPUTERNAME" to sName
Function_Return sName
End_Function
Function Network_User_Name Desktop Returns String
WString wName
Integer iRetval iLength
Move 0 to iLength
Move (WNetGetUserW (0, 0, AddressOf (iLength))) to iRetval
Move (ZeroString(iLength)) to wName
Move (WNetGetUserW (0, AddressOf (wName), AddressOf (iLength))) to iRetval
If (iRetval = NO_ERROR) Begin
Function_Return (CString (wName))
End
Function_Return "User Unknown"
End_Function
Function SQLClientVersion Desktop String sDriverID Integer iClient Returns String
String sClient sDriver sClientDriver
Integer iNumberOfDrivers iDriver iCount iClientVersion
Handle hoMsqlDrv
Move 0 to iDriver
Move "" to sClient
Get_Attribute DF_NUMBER_DRIVERS to iNumberOfDrivers
For iCount from 1 to iNumberOfDrivers
Get_Attribute DF_DRIVER_NAME of iCount to sDriver
If (Uppercase(sDriver) = Uppercase(sDriverID)) Begin
Move iCount to iDriver
Move iNumberOfDrivers to iCount // We're done.
End
Loop
// This info is (at current) only available for the MS SQL driver:
If (sDriverID = MSSQLDRV_ID) Begin
Get_Attribute DF_DRIVER_SQLSERVER_CLIENT_VERSION of iDriver to iClientVersion
Get Create (RefClass(cMSSQLHandler)) to hoMsqlDrv
Get SqlServerClientVersionName of hoMsqlDrv iClientVersion to sClientDriver
Send Destroy of hoMsqlDrv
Move (SFormat("MSSQLDRV Client Version: %1", sClientDriver)) to sClient
End
Function_Return sClient
End_Function
// *** Class Declarations: ***
//
Class cBitmapContainerDFLink is a BitmapContainer
Procedure Mouse_Click Integer iWindowNumber Integer iPosition
Send Mouse_Up iWindowNumber iPosition
End_Procedure
Procedure Mouse_Up Integer iWindowNumber Integer iPosition
Forward Send Mouse_Up iWindowNumber iPosition
Send Show_HomePage "http://www.dataaccess.com/"
End_Procedure
End_Class
Class cCopyEditorContentButton is a Button
Procedure Construct_Object
Forward Send Construct_Object
Property Handle phoEditorHandle
Set psToolTip to C_$DescCopy
End_Procedure
Procedure CopyToWindowsClipboard
Handle hoEditor
Boolean bCanCopy
Address aEditorAddress
Get phoEditorHandle to hoEditor
Send Select_All of hoEditor
Get CanCopy of hoEditor to bCanCopy
If (bCanCopy = True) Begin
Get paValue of hoEditor to aEditorAddress
Send Copy of hoEditor
// Remove the selection after text is copied to the clipboard.
Send Beginning_of_Data of hoEditor
Send Info_Box C_$CopyToClipboard_Text
End
End_Procedure
End_Class
{ Visibility=Private }
Class SysinfoDisplay is a cTextEdit
Procedure Construct_Object
Forward Send Construct_Object
Set Size to 100 245
Set Location to 6 6
Set Border_Style to Border_None
Set Read_Only_State to True
Set pbWrap to True
Set peAnchors to anAll
End_Procedure
// Augmented class message to adjust certain text strings that are wrong...
Procedure AppendTextLn String sText
String sWorkspaceWSFile
// Only works for English:
If (ghoApplication > 0) Begin
If (sText contains "Workspace Name") Begin
Move "Workspace Config Filename:" to sText
Get psWorkspaceWSFile of (phoWorkspace(ghoApplication)) to sWorkspaceWSFile
Move (sText * sWorkspaceWSFile) to sText
End
End
Send AppendText sText
Send AppendText (character(10))
End_Procedure
// This method will show the name Of the current directory in the system
// information box
{ Visibility=Private }
Procedure Show_Current_Directory
String sDir
Get_Current_Directory To sDir
Send AppendTextLn (SFormat (C_$CurrentDirectory, sDir))
End_Procedure
{ Visibility=Private }
Procedure Show_Windows_Directory
String sWindir
Get_Windows_Directory To sWindir
Send AppendTextLn (SFormat (C_$WindowsDirectory, sWindir))
End_Procedure
{ Visibility=Private }
Procedure Show_Current_User
Send AppendTextLn (SFormat (C_$Computer_Name, ComputerName (Self)))
Send AppendTextLn (SFormat (C_$NetworkUserName, Network_User_Name (Self)))
End_Procedure
{ Visibility=Private }
Procedure Show_Number_Format
Integer iFormat
String sFormatText
Get_Attribute DF_THOUSANDS_SEPARATOR to iFormat
Move (Character (iFormat)) To sFormatText
Send AppendTextLn (SFormat (C_$ThousandsSeparator, sFormatText, iFormat))
Get_Attribute DF_DECIMAL_SEPARATOR to iFormat
Move (Character (iFormat)) to sFormatText
Send AppendTextLn (SFormat (C_$DecimalSeparator, sFormatText))
End_Procedure
{ Visibility=Private }
Procedure Show_Filelist_Name
String sFilename
Get_Attribute DF_FILELIST_NAME to sFilename
Send AppendTextLn (SFormat (C_$CurrentFilelist, sFilename))
End_Procedure
{ Visibility=Private }
Procedure Show_Lock_Delay
Integer iLockdelay
Get_Attribute DF_LOCK_DELAY to iLockdelay
Send AppendTextLn (SFormat (C_$DatabaseLockingDelay, iLockDelay))
End_Procedure
{ Visibility=Private }
Procedure Show_Lock_Timeout
Integer iLockTimeout
Get_Attribute DF_LOCK_TIMEOUT to iLockTimeout
Send AppendTextLn (SFormat (C_$DatabaseLockingTimeout, iLockTimeOut))
End_Procedure
{ Visibility=Private }
Procedure Show_Screen_Size
Integer iYscreensize iXscreensize
Move (GetSystemMetrics (SM_CXSCREEN)) To iXscreensize
Move (GetSystemMetrics (SM_CYSCREEN)) To iYscreensize
Send AppendTextLn (SFormat (C_$VideoResolution, iXscreensize, iYscreensize))
End_Procedure
{ Visibility=Private }
Procedure Show_Page_Size
Send AppendTextLn (SFormat (C_$PageEndFormFeed, Pageend, Pagefeed))
End_procedure
{ Visibility=Private }
Procedure Show_Date
Date dToday
Move (CurrentDateTime()) to dToday
Send AppendTextLn (SFormat (C_$CurrentSystemDate, String (dToday)))
End_procedure
{ Visibility=Private }
Procedure Show_Date_Format
Integer iDateFormat
String sDateFormat
Get_Attribute DF_DATE_FORMAT to iDateFormat
Case Begin
Case (iDateFormat = DF_DATE_USA)
Move C_$USA To sDateFormat
Case Break
Case (iDateFormat = DF_DATE_EUROPEAN)
Move C_$European To sDateFormat
Case Break
Case (iDateFormat = DF_DATE_MILITARY)
Move C_$Military To sDateFormat
Case Break
Case Else
Move C_$UnknownDateType To sDateFormat
Case Break
Case End
Send AppendTextLn (SFormat (C_$DateFormat, sDateformat))
End_Procedure
{ Visibility=Private }
// 2013-08-14 NGS
// Unformatted numeric values shown doesn't look good. These looks much better.
Procedure Show_Systemresources
tWinMemoryStatusEx MemoryStatusInfo
Integer iRetval
Number nValue
String sValue
Move (SizeOfType (tWinMemoryStatusEx)) to MemoryStatusInfo.dwLength
Move (GlobalMemoryStatusEx (AddressOf (MemoryStatusInfo))) to iRetval
If (iRetval = 0) Begin
Move (ShowLastError ()) to iRetval
Procedure_Return
End
Send AppendTextLn ""
Move MemoryStatusInfo.ullTotalPhys to nValue
// Show memory in Gigabytes:
Move (nValue/1024/1024/1024) to nValue
Move (Round(nValue)) to nValue
Get FormatNumber nValue 2 to sValue
Send AppendTextLn (SFormat (C_$AvailableMemory, (sValue * "GB")))
Send AppendTextLn (SFormat (C_$MemoryUtilization, String(MemoryStatusInfo.dwMemoryLoad) * "%"))
// Send AppendTextLn (SFormat (C_$AvailablePhysicalMemory, Real (MemoryStatusInfo.ullAvailPhys) / Real (MemoryStatusInfo.ullTotalPhys) * 100.0))
Move (Real(MemoryStatusInfo.ullAvailPhys) / Real(MemoryStatusInfo.ullTotalPhys) * 100.0) to nValue
Move (Round(nValue)) to nValue
Get FormatNumber nValue 0 to sValue
Send AppendTextLn (SFormat (C_$AvailablePhysicalMemory, (sValue * "%")))
// Send AppendTextLn (SFormat (C_$AvailablePagefileSpace, Real (MemoryStatusInfo.ullAvailPageFile) / Real (MemoryStatusInfo.ullTotalPageFile) * 100.0))
Move (Real(MemoryStatusInfo.ullAvailPageFile) / Real(MemoryStatusInfo.ullTotalPageFile) * 100.0) to nValue
Move (Round(nValue)) to nValue
Get FormatNumber nValue 0 to sValue
Send AppendTextLn (SFormat (C_$AvailablePagefileSpace, (sValue * "%")))
// Send AppendTextLn (SFormat (C_$AvailableVirtualMemory, Real (MemoryStatusInfo.ullAvailVirtual) / Real (MemoryStatusInfo.ullTotalVirtual) * 100.0))
Move (Real(MemoryStatusInfo.ullAvailVirtual) / Real(MemoryStatusInfo.ullTotalVirtual) * 100.0) to nValue
Move (Round(nValue)) to nValue
Get FormatNumber nValue 0 to sValue
Send AppendTextLn (SFormat (C_$AvailableVirtualMemory, (sValue * "%")))
// Add an empty row after the memory information:
Send AppendTextLn ""
End_Procedure
{ Visibility=Private }
Procedure Show_Registration
String sRegName
Integer iSN iUsersMax iUserCount
Registration sRegName iSN
Get_Licensed_Max_Users to iUsersMax
Get_Current_User_Count to iUserCount
Send AppendTextLn (SFormat (C_$Serial, iSN))
Send AppendTextLn (SFormat (C_$RegName, sRegName))
Send AppendTextLn (SFormat (C_$Current_User_Count, iUserCount))
Send AppendTextLn (SFormat (C_$Max_Licensed_User_Count, iUsersMax))
End_Procedure
//****************************************************************************
// If workspaces are used, we will send the message EnumerateWorkspaceData
// To the workspace object passing the an object and message To send back
// To this object. It is expected that the workspace object will send this
// message for every line Of information it wants displayed (passing the
// information To be displayed
//****************************************************************************
Register_Procedure EnumerateWorkspaceData Integer hObjId Integer hmMessId
{ Visibility=Private }
Procedure Show_ServicePack
String sKey sVersion sDataFlex
Handle hoRegistry
Boolean bExists bOpened
Move "DataFlex" to sDataFlex
Get Create (RefClass(cRegistry)) to hoRegistry
Set phRootKey of hoRegistry to HKEY_LOCAL_MACHINE
Set pfAccessRights of hoRegistry to KEY_READ
Get KeyExists of hoRegistry "SOFTWARE\Wow6432Node" to bExists
If (bExists) Begin
Move ("SOFTWARE\Wow6432Node\Data Access Worldwide\" + sDataFlex + "\" + SysConf (SYSCONF_DATAFLEX_REV)) to sKey
End
Else Begin
Move ("SOFTWARE\Data Access Worldwide\" + sDataFlex + "\" + SysConf (SYSCONF_DATAFLEX_REV)) to sKey
End
Get KeyExists of hoRegistry sKey to bExists
If (bExists) Begin
Get OpenKey of hoRegistry sKey to bOpened
If (bOpened) Begin
Get ValueExists of hoRegistry "CurrentVersionDescription" to bExists
If (bExists) Begin
Get ReadString of hoRegistry "CurrentVersionDescription" to sVersion
End
Send CloseKey of hoRegistry
End
End
Send Destroy of hoRegistry
If (sVersion <> "") Begin
Send AppendTextLn sVersion
Send AppendTextLn ""
End
End_Procedure
{ Visibility=Private }
Procedure Show_WorkspaceInformation
Integer hoWorkspace
If (ghoApplication <> 0) Begin
Get phoWorkspace of ghoApplication to hoWorkspace
If (hoWorkspace <> 0) Begin
Send EnumerateWorkspaceData of hoWorkspace Self msg_AppendTextLn
End
End
End_Procedure
//****************************************************************************
// If connection ids are used, we will send the message EnumerateConnections
// to the connection manager object passing the an object and message to send
// back to this object. It is expected that the connection manager object will
// send this message for every line Of information it wants displayed (passing
// the information To be displayed
//****************************************************************************
Register_Procedure EnumerateConnections Integer hObjId Integer hmMessId
{ Visibility=Private }
Procedure Show_ConnectionIdInformation
If (ghoConnection > 0) Begin
Send EnumerateConnections of ghoConnection Self (RefProc(AppendTextLn))
Send AppendTextLn ""
End
End_Procedure
{ Visibility=Private }
Function VersionStr Integer iVer Integer iRev Integer iBld Returns String
Function_Return (String (iVer) - "." - String (iRev) - "." - String (iBld))
End_Function
{ Visibility=Private }
Procedure Show_Versions
Integer iVersion iRevision iBuild
Version_information iVersion iRevision iBuild
Send AppendTextLn (SFormat (C_$RuntimeVersion, VersionStr(self,iVersion,iRevision,iBuild) ))
Send AppendTextLn (SFormat (C_$PackageVersion, VersionStr(self,PKG_VERSION, PKG_REVISION, PKG_BUILD) ))
Send AppendTextLn (SFormat (C_$FMACVersion, VersionStr(self,FMAC_VERSION, FMAC_REVISION, FMAC_BUILD) ))
#IFDEF IS$WIN64
Send AppendTextLn "This is a 64-bit exe file"
#ELSE
Send AppendTextLn "This is a 32-bit exe file"
#ENDIF
End_Procedure
Function IsDAWSQLDriver String sDriverID Returns Boolean
Boolean bOK
Move (sDriverID = MSSQLDRV_ID or sDriverID = DB2_DRV_ID or sDriverID = ODBC_DRV_ID) to bOK
Function_Return bOK
End_Function
Function IsMertechDriver String sDriverID Returns Boolean
Boolean bOK
Function_Return bOK
End_Function
//***
//*** BW
//*** Procedure: Show_Drivers
//*** Purpose : Show loaded database drivers
//***
{ Visibility=Private }
Procedure Show_Drivers
String sDriverID sVersion sClient sValue
Integer iNumberOfDrivers iDriver iClient iUsersMax iSerialNo iNumServers iCount
Handle hoCLIHandler hoBtrvHandler
Boolean bStudioLicense bIsDAWDriver bIsMertechDriver
Move False to bStudioLicense
Get Create (RefClass(cCLIHandler)) to hoCLIHandler