-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ftp2.pas
1316 lines (879 loc) · 59.8 KB
/
Ftp2.pas
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
unit Ftp2;
interface
type
HCkSecureString = Pointer;
HCkBinData = Pointer;
HCkDateTime = Pointer;
HCkCert = Pointer;
HCkByteData = Pointer;
HCkString = Pointer;
HCkStream = Pointer;
HCkStringBuilder = Pointer;
HCkFtp2 = Pointer;
HCkTask = Pointer;
// Note: The callback functions use the cdecl calling convention, while all other functions use stdcall.
TFtp2AbortCheck = function(): Integer; cdecl;
TFtp2ProgressInfo = procedure(name: PWideChar; value: PWideChar); cdecl;
TFtp2PercentDone = function(pctDone: Integer): Integer; cdecl;
TFtp2TaskCompleted = procedure(task: HCkTask); cdecl;
function CkFtp2_Create: HCkFtp2; stdcall;
procedure CkFtp2_Dispose(handle: HCkFtp2); stdcall;
procedure CkFtp2_SetAbortCheck(objHandle: HCkFtp2; fn: TFtp2AbortCheck) stdcall;
procedure CkFtp2_SetProgressInfo(objHandle: HCkFtp2; fn: TFtp2ProgressInfo) stdcall;
procedure CkFtp2_SetPercentDone(objHandle: HCkFtp2; fn: TFtp2PercentDone) stdcall;
procedure CkFtp2_SetTaskCompleted(objHandle: HCkFtp2; fn: TFtp2TaskCompleted) stdcall;
function CkFtp2_getAbortCurrent(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAbortCurrent(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getAccount(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putAccount(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__account(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getActivePortRangeEnd(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putActivePortRangeEnd(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getActivePortRangeStart(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putActivePortRangeStart(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getAllocateSize(objHandle: HCkFtp2): LongWord; stdcall;
procedure CkFtp2_putAllocateSize(objHandle: HCkFtp2; newPropVal: LongWord); stdcall;
function CkFtp2_getAllowMlsd(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAllowMlsd(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAsyncBytesReceived(objHandle: HCkFtp2): LongWord; stdcall;
function CkFtp2_getAsyncBytesReceived64(objHandle: HCkFtp2): Int64; stdcall;
procedure CkFtp2_getAsyncBytesReceivedStr(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__asyncBytesReceivedStr(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getAsyncBytesSent(objHandle: HCkFtp2): LongWord; stdcall;
function CkFtp2_getAsyncBytesSent64(objHandle: HCkFtp2): Int64; stdcall;
procedure CkFtp2_getAsyncBytesSentStr(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__asyncBytesSentStr(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getAuthSsl(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAuthSsl(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAuthTls(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAuthTls(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoFeat(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoFeat(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoFix(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoFix(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoGetSizeForProgress(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoGetSizeForProgress(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoOptsUtf8(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoOptsUtf8(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoSetUseEpsv(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoSetUseEpsv(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoSyst(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoSyst(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getAutoXcrc(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putAutoXcrc(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getBandwidthThrottleDown(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putBandwidthThrottleDown(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getBandwidthThrottleUp(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putBandwidthThrottleUp(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getClientIpAddress(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putClientIpAddress(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__clientIpAddress(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getCommandCharset(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putCommandCharset(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__commandCharset(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getConnectFailReason(objHandle: HCkFtp2): Integer; stdcall;
function CkFtp2_getConnectTimeout(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putConnectTimeout(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getConnectVerified(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getCrlfMode(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putCrlfMode(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getDataProtection(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putDataProtection(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__dataProtection(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getDebugLogFilePath(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putDebugLogFilePath(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__debugLogFilePath(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getDirListingCharset(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putDirListingCharset(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__dirListingCharset(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getDownloadTransferRate(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_getForcePortIpAddress(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putForcePortIpAddress(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__forcePortIpAddress(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getGreeting(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__greeting(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getHasModeZ(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getHeartbeatMs(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putHeartbeatMs(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getHostname(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHostname(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__hostname(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getHttpProxyAuthMethod(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHttpProxyAuthMethod(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__httpProxyAuthMethod(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getHttpProxyDomain(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHttpProxyDomain(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__httpProxyDomain(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getHttpProxyHostname(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHttpProxyHostname(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__httpProxyHostname(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getHttpProxyPassword(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHttpProxyPassword(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__httpProxyPassword(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getHttpProxyPort(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putHttpProxyPort(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getHttpProxyUsername(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putHttpProxyUsername(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__httpProxyUsername(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getIdleTimeoutMs(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putIdleTimeoutMs(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getIsConnected(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getKeepSessionLog(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putKeepSessionLog(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getLargeFileMeasures(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putLargeFileMeasures(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getLastErrorHtml(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__lastErrorHtml(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getLastErrorText(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__lastErrorText(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getLastErrorXml(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__lastErrorXml(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getLastMethodSuccess(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putLastMethodSuccess(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getLastReply(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__lastReply(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getListPattern(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putListPattern(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__listPattern(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getLoginVerified(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getNumFilesAndDirs(objHandle: HCkFtp2): Integer; stdcall;
function CkFtp2_getPartialTransfer(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getPassive(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putPassive(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getPassiveUseHostAddr(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putPassiveUseHostAddr(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getPassword(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putPassword(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__password(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getPercentDoneScale(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putPercentDoneScale(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getPort(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putPort(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getPreferIpv6(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putPreferIpv6(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getPreferNlst(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putPreferNlst(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getProgressMonSize(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putProgressMonSize(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getProgressMonSize64(objHandle: HCkFtp2): Int64; stdcall;
procedure CkFtp2_putProgressMonSize64(objHandle: HCkFtp2; newPropVal: Int64); stdcall;
procedure CkFtp2_getProxyHostname(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putProxyHostname(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__proxyHostname(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getProxyMethod(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putProxyMethod(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getProxyPassword(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putProxyPassword(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__proxyPassword(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getProxyPort(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putProxyPort(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getProxyUsername(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putProxyUsername(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__proxyUsername(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getReadTimeout(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putReadTimeout(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getRequireSslCertVerify(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putRequireSslCertVerify(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
function CkFtp2_getRestartNext(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putRestartNext(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getSessionLog(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__sessionLog(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSocksHostname(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSocksHostname(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__socksHostname(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSocksPassword(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSocksPassword(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__socksPassword(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getSocksPort(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putSocksPort(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
procedure CkFtp2_getSocksUsername(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSocksUsername(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__socksUsername(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getSocksVersion(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putSocksVersion(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getSoRcvBuf(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putSoRcvBuf(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getSoSndBuf(objHandle: HCkFtp2): Integer; stdcall;
procedure CkFtp2_putSoSndBuf(objHandle: HCkFtp2; newPropVal: Integer); stdcall;
function CkFtp2_getSsl(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putSsl(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getSslAllowedCiphers(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSslAllowedCiphers(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__sslAllowedCiphers(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSslProtocol(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSslProtocol(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__sslProtocol(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getSslServerCertVerified(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_getSyncCreateAllLocalDirs(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putSyncCreateAllLocalDirs(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getSyncedFiles(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSyncedFiles(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__syncedFiles(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSyncMustMatch(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSyncMustMatch(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__syncMustMatch(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSyncMustMatchDir(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSyncMustMatchDir(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__syncMustMatchDir(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSyncMustNotMatch(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSyncMustNotMatch(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__syncMustNotMatch(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSyncMustNotMatchDir(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putSyncMustNotMatchDir(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__syncMustNotMatchDir(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getSyncPreview(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__syncPreview(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getTlsCipherSuite(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__tlsCipherSuite(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getTlsPinSet(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putTlsPinSet(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__tlsPinSet(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getTlsVersion(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__tlsVersion(objHandle: HCkFtp2): PWideChar; stdcall;
procedure CkFtp2_getUncommonOptions(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putUncommonOptions(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__uncommonOptions(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getUploadTransferRate(objHandle: HCkFtp2): Integer; stdcall;
function CkFtp2_getUseEpsv(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putUseEpsv(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getUsername(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
procedure CkFtp2_putUsername(objHandle: HCkFtp2; newPropVal: PWideChar); stdcall;
function CkFtp2__username(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_getVerboseLogging(objHandle: HCkFtp2): wordbool; stdcall;
procedure CkFtp2_putVerboseLogging(objHandle: HCkFtp2; newPropVal: wordbool); stdcall;
procedure CkFtp2_getVersion(objHandle: HCkFtp2; outPropVal: HCkString); stdcall;
function CkFtp2__version(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_AppendFile(objHandle: HCkFtp2; localFilePath: PWideChar; remoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_AppendFileAsync(objHandle: HCkFtp2; localFilePath: PWideChar; remoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_AppendFileFromBinaryData(objHandle: HCkFtp2; remoteFilename: PWideChar; content: HCkByteData): wordbool; stdcall;
function CkFtp2_AppendFileFromBinaryDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar; content: HCkByteData): HCkTask; stdcall;
function CkFtp2_AppendFileFromTextData(objHandle: HCkFtp2; remoteFilename: PWideChar; textData: PWideChar; charset: PWideChar): wordbool; stdcall;
function CkFtp2_AppendFileFromTextDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar; textData: PWideChar; charset: PWideChar): HCkTask; stdcall;
function CkFtp2_ChangeRemoteDir(objHandle: HCkFtp2; remoteDirPath: PWideChar): wordbool; stdcall;
function CkFtp2_ChangeRemoteDirAsync(objHandle: HCkFtp2; remoteDirPath: PWideChar): HCkTask; stdcall;
function CkFtp2_CheckConnection(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_CheckConnectionAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_ClearControlChannel(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_ClearControlChannelAsync(objHandle: HCkFtp2): HCkTask; stdcall;
procedure CkFtp2_ClearDirCache(objHandle: HCkFtp2); stdcall;
procedure CkFtp2_ClearSessionLog(objHandle: HCkFtp2); stdcall;
function CkFtp2_Connect(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_ConnectAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_ConnectOnly(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_ConnectOnlyAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_ConvertToTls(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_ConvertToTlsAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_CreatePlan(objHandle: HCkFtp2; localDir: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__createPlan(objHandle: HCkFtp2; localDir: PWideChar): PWideChar; stdcall;
function CkFtp2_CreatePlanAsync(objHandle: HCkFtp2; localDir: PWideChar): HCkTask; stdcall;
function CkFtp2_CreateRemoteDir(objHandle: HCkFtp2; remoteDirPath: PWideChar): wordbool; stdcall;
function CkFtp2_CreateRemoteDirAsync(objHandle: HCkFtp2; remoteDirPath: PWideChar): HCkTask; stdcall;
function CkFtp2_DeleteMatching(objHandle: HCkFtp2; remotePattern: PWideChar): Integer; stdcall;
function CkFtp2_DeleteMatchingAsync(objHandle: HCkFtp2; remotePattern: PWideChar): HCkTask; stdcall;
function CkFtp2_DeleteRemoteFile(objHandle: HCkFtp2; remoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_DeleteRemoteFileAsync(objHandle: HCkFtp2; remoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_DeleteTree(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_DeleteTreeAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_DetermineProxyMethod(objHandle: HCkFtp2): Integer; stdcall;
function CkFtp2_DetermineProxyMethodAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_DetermineSettings(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__determineSettings(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_DetermineSettingsAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_DirTreeXml(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__dirTreeXml(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_DirTreeXmlAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_Disconnect(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_DisconnectAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_DownloadTree(objHandle: HCkFtp2; localRoot: PWideChar): wordbool; stdcall;
function CkFtp2_DownloadTreeAsync(objHandle: HCkFtp2; localRoot: PWideChar): HCkTask; stdcall;
function CkFtp2_Feat(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__feat(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_FeatAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_GetCreateDt(objHandle: HCkFtp2; index: Integer): HCkDateTime; stdcall;
function CkFtp2_GetCreateDtAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetCreateDtByName(objHandle: HCkFtp2; filename: PWideChar): HCkDateTime; stdcall;
function CkFtp2_GetCreateDtByNameAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetCreateTimeByNameStr(objHandle: HCkFtp2; filename: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getCreateTimeByNameStr(objHandle: HCkFtp2; filename: PWideChar): PWideChar; stdcall;
function CkFtp2_GetCreateTimeByNameStrAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetCreateTimeStr(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getCreateTimeStr(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetCreateTimeStrAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetCurrentRemoteDir(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getCurrentRemoteDir(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_GetCurrentRemoteDirAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_GetDirCount(objHandle: HCkFtp2): Integer; stdcall;
function CkFtp2_GetDirCountAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_GetFile(objHandle: HCkFtp2; remoteFilePath: PWideChar; localFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_GetFileAsync(objHandle: HCkFtp2; remoteFilePath: PWideChar; localFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_GetFileBd(objHandle: HCkFtp2; remoteFilePath: PWideChar; binData: HCkBinData): wordbool; stdcall;
function CkFtp2_GetFileBdAsync(objHandle: HCkFtp2; remoteFilePath: PWideChar; binData: HCkBinData): HCkTask; stdcall;
function CkFtp2_GetFilename(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getFilename(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetFilenameAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetFileSb(objHandle: HCkFtp2; remoteFilePath: PWideChar; charset: PWideChar; sb: HCkStringBuilder): wordbool; stdcall;
function CkFtp2_GetFileSbAsync(objHandle: HCkFtp2; remoteFilePath: PWideChar; charset: PWideChar; sb: HCkStringBuilder): HCkTask; stdcall;
function CkFtp2_GetFileToStream(objHandle: HCkFtp2; remoteFilePath: PWideChar; toStream: HCkStream): wordbool; stdcall;
function CkFtp2_GetFileToStreamAsync(objHandle: HCkFtp2; remoteFilePath: PWideChar; toStream: HCkStream): HCkTask; stdcall;
function CkFtp2_GetGroup(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getGroup(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetGroupAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetIsDirectory(objHandle: HCkFtp2; index: Integer): wordbool; stdcall;
function CkFtp2_GetIsDirectoryAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetIsSymbolicLink(objHandle: HCkFtp2; index: Integer): wordbool; stdcall;
function CkFtp2_GetIsSymbolicLinkAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetLastModDt(objHandle: HCkFtp2; index: Integer): HCkDateTime; stdcall;
function CkFtp2_GetLastModDtAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetLastModDtByName(objHandle: HCkFtp2; filename: PWideChar): HCkDateTime; stdcall;
function CkFtp2_GetLastModDtByNameAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetLastModifiedTimeByNameStr(objHandle: HCkFtp2; filename: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getLastModifiedTimeByNameStr(objHandle: HCkFtp2; filename: PWideChar): PWideChar; stdcall;
function CkFtp2_GetLastModifiedTimeByNameStrAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetLastModifiedTimeStr(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getLastModifiedTimeStr(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetLastModifiedTimeStrAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetOwner(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getOwner(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetOwnerAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetPermissions(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getPermissions(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetPermissionsAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetPermType(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getPermType(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetPermTypeAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetRemoteFileBinaryData(objHandle: HCkFtp2; remoteFilename: PWideChar; outData: HCkByteData): wordbool; stdcall;
function CkFtp2_GetRemoteFileBinaryDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetRemoteFileTextC(objHandle: HCkFtp2; remoteFilename: PWideChar; charset: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getRemoteFileTextC(objHandle: HCkFtp2; remoteFilename: PWideChar; charset: PWideChar): PWideChar; stdcall;
function CkFtp2_GetRemoteFileTextCAsync(objHandle: HCkFtp2; remoteFilename: PWideChar; charset: PWideChar): HCkTask; stdcall;
function CkFtp2_GetRemoteFileTextData(objHandle: HCkFtp2; remoteFilename: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getRemoteFileTextData(objHandle: HCkFtp2; remoteFilename: PWideChar): PWideChar; stdcall;
function CkFtp2_GetRemoteFileTextDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetSize(objHandle: HCkFtp2; index: Integer): Integer; stdcall;
function CkFtp2_GetSizeAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetSize64(objHandle: HCkFtp2; index: Integer): Int64; stdcall;
function CkFtp2_GetSizeByName(objHandle: HCkFtp2; filename: PWideChar): Integer; stdcall;
function CkFtp2_GetSizeByNameAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetSizeByName64(objHandle: HCkFtp2; filename: PWideChar): Int64; stdcall;
function CkFtp2_GetSizeStr(objHandle: HCkFtp2; index: Integer; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getSizeStr(objHandle: HCkFtp2; index: Integer): PWideChar; stdcall;
function CkFtp2_GetSizeStrAsync(objHandle: HCkFtp2; index: Integer): HCkTask; stdcall;
function CkFtp2_GetSizeStrByName(objHandle: HCkFtp2; filename: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getSizeStrByName(objHandle: HCkFtp2; filename: PWideChar): PWideChar; stdcall;
function CkFtp2_GetSizeStrByNameAsync(objHandle: HCkFtp2; filename: PWideChar): HCkTask; stdcall;
function CkFtp2_GetSslServerCert(objHandle: HCkFtp2): HCkCert; stdcall;
function CkFtp2_GetTextDirListing(objHandle: HCkFtp2; pattern: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getTextDirListing(objHandle: HCkFtp2; pattern: PWideChar): PWideChar; stdcall;
function CkFtp2_GetTextDirListingAsync(objHandle: HCkFtp2; pattern: PWideChar): HCkTask; stdcall;
function CkFtp2_GetXmlDirListing(objHandle: HCkFtp2; pattern: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__getXmlDirListing(objHandle: HCkFtp2; pattern: PWideChar): PWideChar; stdcall;
function CkFtp2_GetXmlDirListingAsync(objHandle: HCkFtp2; pattern: PWideChar): HCkTask; stdcall;
function CkFtp2_IsUnlocked(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_LargeFileUpload(objHandle: HCkFtp2; localPath: PWideChar; remotePath: PWideChar; chunkSize: Integer): wordbool; stdcall;
function CkFtp2_LargeFileUploadAsync(objHandle: HCkFtp2; localPath: PWideChar; remotePath: PWideChar; chunkSize: Integer): HCkTask; stdcall;
function CkFtp2_LoadTaskCaller(objHandle: HCkFtp2; task: HCkTask): wordbool; stdcall;
function CkFtp2_LoginAfterConnectOnly(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_LoginAfterConnectOnlyAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_MGetFiles(objHandle: HCkFtp2; remotePattern: PWideChar; localDir: PWideChar): Integer; stdcall;
function CkFtp2_MGetFilesAsync(objHandle: HCkFtp2; remotePattern: PWideChar; localDir: PWideChar): HCkTask; stdcall;
function CkFtp2_MPutFiles(objHandle: HCkFtp2; pattern: PWideChar): Integer; stdcall;
function CkFtp2_MPutFilesAsync(objHandle: HCkFtp2; pattern: PWideChar): HCkTask; stdcall;
function CkFtp2_NlstXml(objHandle: HCkFtp2; remoteDirPattern: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__nlstXml(objHandle: HCkFtp2; remoteDirPattern: PWideChar): PWideChar; stdcall;
function CkFtp2_NlstXmlAsync(objHandle: HCkFtp2; remoteDirPattern: PWideChar): HCkTask; stdcall;
function CkFtp2_Noop(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_NoopAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_PutFile(objHandle: HCkFtp2; localFilePath: PWideChar; remoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_PutFileAsync(objHandle: HCkFtp2; localFilePath: PWideChar; remoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_PutFileBd(objHandle: HCkFtp2; binData: HCkBinData; remoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_PutFileBdAsync(objHandle: HCkFtp2; binData: HCkBinData; remoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_PutFileFromBinaryData(objHandle: HCkFtp2; remoteFilename: PWideChar; content: HCkByteData): wordbool; stdcall;
function CkFtp2_PutFileFromBinaryDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar; content: HCkByteData): HCkTask; stdcall;
function CkFtp2_PutFileFromTextData(objHandle: HCkFtp2; remoteFilename: PWideChar; textData: PWideChar; charset: PWideChar): wordbool; stdcall;
function CkFtp2_PutFileFromTextDataAsync(objHandle: HCkFtp2; remoteFilename: PWideChar; textData: PWideChar; charset: PWideChar): HCkTask; stdcall;
function CkFtp2_PutFileSb(objHandle: HCkFtp2; sb: HCkStringBuilder; charset: PWideChar; includeBom: wordbool; remoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_PutFileSbAsync(objHandle: HCkFtp2; sb: HCkStringBuilder; charset: PWideChar; includeBom: wordbool; remoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_PutPlan(objHandle: HCkFtp2; plan: PWideChar; alreadyDoneFilename: PWideChar): wordbool; stdcall;
function CkFtp2_PutPlanAsync(objHandle: HCkFtp2; plan: PWideChar; alreadyDoneFilename: PWideChar): HCkTask; stdcall;
function CkFtp2_PutTree(objHandle: HCkFtp2; localDir: PWideChar): wordbool; stdcall;
function CkFtp2_PutTreeAsync(objHandle: HCkFtp2; localDir: PWideChar): HCkTask; stdcall;
function CkFtp2_Quote(objHandle: HCkFtp2; cmd: PWideChar): wordbool; stdcall;
function CkFtp2_QuoteAsync(objHandle: HCkFtp2; cmd: PWideChar): HCkTask; stdcall;
function CkFtp2_RemoveRemoteDir(objHandle: HCkFtp2; remoteDirPath: PWideChar): wordbool; stdcall;
function CkFtp2_RemoveRemoteDirAsync(objHandle: HCkFtp2; remoteDirPath: PWideChar): HCkTask; stdcall;
function CkFtp2_RenameRemoteFile(objHandle: HCkFtp2; existingRemoteFilePath: PWideChar; newRemoteFilePath: PWideChar): wordbool; stdcall;
function CkFtp2_RenameRemoteFileAsync(objHandle: HCkFtp2; existingRemoteFilePath: PWideChar; newRemoteFilePath: PWideChar): HCkTask; stdcall;
function CkFtp2_SaveLastError(objHandle: HCkFtp2; path: PWideChar): wordbool; stdcall;
function CkFtp2_SendCommand(objHandle: HCkFtp2; cmd: PWideChar; outStr: HCkString): wordbool; stdcall;
function CkFtp2__sendCommand(objHandle: HCkFtp2; cmd: PWideChar): PWideChar; stdcall;
function CkFtp2_SendCommandAsync(objHandle: HCkFtp2; cmd: PWideChar): HCkTask; stdcall;
function CkFtp2_SetModeZ(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_SetModeZAsync(objHandle: HCkFtp2): HCkTask; stdcall;
procedure CkFtp2_SetOldestDateStr(objHandle: HCkFtp2; oldestDateTimeStr: PWideChar); stdcall;
function CkFtp2_SetOption(objHandle: HCkFtp2; option: PWideChar): wordbool; stdcall;
function CkFtp2_SetPassword(objHandle: HCkFtp2; password: HCkSecureString): wordbool; stdcall;
function CkFtp2_SetRemoteFileDateTimeStr(objHandle: HCkFtp2; dateTimeStr: PWideChar; remoteFilename: PWideChar): wordbool; stdcall;
function CkFtp2_SetRemoteFileDateTimeStrAsync(objHandle: HCkFtp2; dateTimeStr: PWideChar; remoteFilename: PWideChar): HCkTask; stdcall;
function CkFtp2_SetRemoteFileDt(objHandle: HCkFtp2; dt: HCkDateTime; remoteFilename: PWideChar): wordbool; stdcall;
function CkFtp2_SetRemoteFileDtAsync(objHandle: HCkFtp2; dt: HCkDateTime; remoteFilename: PWideChar): HCkTask; stdcall;
function CkFtp2_SetSecurePassword(objHandle: HCkFtp2; password: HCkSecureString): wordbool; stdcall;
procedure CkFtp2_SetSslCertRequirement(objHandle: HCkFtp2; reqName: PWideChar; reqValue: PWideChar); stdcall;
function CkFtp2_SetSslClientCert(objHandle: HCkFtp2; cert: HCkCert): wordbool; stdcall;
function CkFtp2_SetSslClientCertPem(objHandle: HCkFtp2; pemDataOrFilename: PWideChar; pemPassword: PWideChar): wordbool; stdcall;
function CkFtp2_SetSslClientCertPfx(objHandle: HCkFtp2; pfxFilename: PWideChar; pfxPassword: PWideChar): wordbool; stdcall;
function CkFtp2_SetTypeAscii(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_SetTypeAsciiAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_SetTypeBinary(objHandle: HCkFtp2): wordbool; stdcall;
function CkFtp2_SetTypeBinaryAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_Site(objHandle: HCkFtp2; siteCommand: PWideChar): wordbool; stdcall;
function CkFtp2_SiteAsync(objHandle: HCkFtp2; siteCommand: PWideChar): HCkTask; stdcall;
procedure CkFtp2_SleepMs(objHandle: HCkFtp2; millisec: Integer); stdcall;
function CkFtp2_Stat(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__stat(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_StatAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_SyncDeleteRemote(objHandle: HCkFtp2; localRoot: PWideChar): wordbool; stdcall;
function CkFtp2_SyncDeleteRemoteAsync(objHandle: HCkFtp2; localRoot: PWideChar): HCkTask; stdcall;
function CkFtp2_SyncLocalDir(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): wordbool; stdcall;
function CkFtp2_SyncLocalDirAsync(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): HCkTask; stdcall;
function CkFtp2_SyncLocalTree(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): wordbool; stdcall;
function CkFtp2_SyncLocalTreeAsync(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): HCkTask; stdcall;
function CkFtp2_SyncRemoteTree(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): wordbool; stdcall;
function CkFtp2_SyncRemoteTreeAsync(objHandle: HCkFtp2; localRoot: PWideChar; mode: Integer): HCkTask; stdcall;
function CkFtp2_SyncRemoteTree2(objHandle: HCkFtp2; localDirPath: PWideChar; mode: Integer; bDescend: wordbool; bPreviewOnly: wordbool): wordbool; stdcall;
function CkFtp2_SyncRemoteTree2Async(objHandle: HCkFtp2; localDirPath: PWideChar; mode: Integer; bDescend: wordbool; bPreviewOnly: wordbool): HCkTask; stdcall;
function CkFtp2_Syst(objHandle: HCkFtp2; outStr: HCkString): wordbool; stdcall;
function CkFtp2__syst(objHandle: HCkFtp2): PWideChar; stdcall;
function CkFtp2_SystAsync(objHandle: HCkFtp2): HCkTask; stdcall;
function CkFtp2_UnlockComponent(objHandle: HCkFtp2; unlockCode: PWideChar): wordbool; stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkFtp2_Create; external DLLName;
procedure CkFtp2_Dispose; external DLLName;
procedure CkFtp2_SetAbortCheck; external DLLName;
procedure CkFtp2_SetProgressInfo; external DLLName;
procedure CkFtp2_SetPercentDone; external DLLName;
procedure CkFtp2_SetTaskCompleted; external DLLName;
function CkFtp2_getAbortCurrent; external DLLName;
procedure CkFtp2_putAbortCurrent; external DLLName;
procedure CkFtp2_getAccount; external DLLName;
procedure CkFtp2_putAccount; external DLLName;
function CkFtp2__account; external DLLName;
function CkFtp2_getActivePortRangeEnd; external DLLName;
procedure CkFtp2_putActivePortRangeEnd; external DLLName;
function CkFtp2_getActivePortRangeStart; external DLLName;
procedure CkFtp2_putActivePortRangeStart; external DLLName;
function CkFtp2_getAllocateSize; external DLLName;
procedure CkFtp2_putAllocateSize; external DLLName;
function CkFtp2_getAllowMlsd; external DLLName;
procedure CkFtp2_putAllowMlsd; external DLLName;
function CkFtp2_getAsyncBytesReceived; external DLLName;
function CkFtp2_getAsyncBytesReceived64; external DLLName;
procedure CkFtp2_getAsyncBytesReceivedStr; external DLLName;
function CkFtp2__asyncBytesReceivedStr; external DLLName;
function CkFtp2_getAsyncBytesSent; external DLLName;
function CkFtp2_getAsyncBytesSent64; external DLLName;
procedure CkFtp2_getAsyncBytesSentStr; external DLLName;
function CkFtp2__asyncBytesSentStr; external DLLName;
function CkFtp2_getAuthSsl; external DLLName;
procedure CkFtp2_putAuthSsl; external DLLName;
function CkFtp2_getAuthTls; external DLLName;
procedure CkFtp2_putAuthTls; external DLLName;
function CkFtp2_getAutoFeat; external DLLName;
procedure CkFtp2_putAutoFeat; external DLLName;
function CkFtp2_getAutoFix; external DLLName;
procedure CkFtp2_putAutoFix; external DLLName;
function CkFtp2_getAutoGetSizeForProgress; external DLLName;
procedure CkFtp2_putAutoGetSizeForProgress; external DLLName;
function CkFtp2_getAutoOptsUtf8; external DLLName;
procedure CkFtp2_putAutoOptsUtf8; external DLLName;
function CkFtp2_getAutoSetUseEpsv; external DLLName;
procedure CkFtp2_putAutoSetUseEpsv; external DLLName;
function CkFtp2_getAutoSyst; external DLLName;
procedure CkFtp2_putAutoSyst; external DLLName;
function CkFtp2_getAutoXcrc; external DLLName;
procedure CkFtp2_putAutoXcrc; external DLLName;
function CkFtp2_getBandwidthThrottleDown; external DLLName;
procedure CkFtp2_putBandwidthThrottleDown; external DLLName;
function CkFtp2_getBandwidthThrottleUp; external DLLName;
procedure CkFtp2_putBandwidthThrottleUp; external DLLName;
procedure CkFtp2_getClientIpAddress; external DLLName;
procedure CkFtp2_putClientIpAddress; external DLLName;
function CkFtp2__clientIpAddress; external DLLName;
procedure CkFtp2_getCommandCharset; external DLLName;
procedure CkFtp2_putCommandCharset; external DLLName;
function CkFtp2__commandCharset; external DLLName;
function CkFtp2_getConnectFailReason; external DLLName;
function CkFtp2_getConnectTimeout; external DLLName;
procedure CkFtp2_putConnectTimeout; external DLLName;
function CkFtp2_getConnectVerified; external DLLName;
function CkFtp2_getCrlfMode; external DLLName;
procedure CkFtp2_putCrlfMode; external DLLName;
procedure CkFtp2_getDataProtection; external DLLName;
procedure CkFtp2_putDataProtection; external DLLName;
function CkFtp2__dataProtection; external DLLName;
procedure CkFtp2_getDebugLogFilePath; external DLLName;
procedure CkFtp2_putDebugLogFilePath; external DLLName;
function CkFtp2__debugLogFilePath; external DLLName;
procedure CkFtp2_getDirListingCharset; external DLLName;
procedure CkFtp2_putDirListingCharset; external DLLName;
function CkFtp2__dirListingCharset; external DLLName;
function CkFtp2_getDownloadTransferRate; external DLLName;
procedure CkFtp2_getForcePortIpAddress; external DLLName;
procedure CkFtp2_putForcePortIpAddress; external DLLName;
function CkFtp2__forcePortIpAddress; external DLLName;
procedure CkFtp2_getGreeting; external DLLName;
function CkFtp2__greeting; external DLLName;
function CkFtp2_getHasModeZ; external DLLName;
function CkFtp2_getHeartbeatMs; external DLLName;
procedure CkFtp2_putHeartbeatMs; external DLLName;
procedure CkFtp2_getHostname; external DLLName;
procedure CkFtp2_putHostname; external DLLName;
function CkFtp2__hostname; external DLLName;
procedure CkFtp2_getHttpProxyAuthMethod; external DLLName;
procedure CkFtp2_putHttpProxyAuthMethod; external DLLName;
function CkFtp2__httpProxyAuthMethod; external DLLName;
procedure CkFtp2_getHttpProxyDomain; external DLLName;
procedure CkFtp2_putHttpProxyDomain; external DLLName;
function CkFtp2__httpProxyDomain; external DLLName;
procedure CkFtp2_getHttpProxyHostname; external DLLName;
procedure CkFtp2_putHttpProxyHostname; external DLLName;
function CkFtp2__httpProxyHostname; external DLLName;
procedure CkFtp2_getHttpProxyPassword; external DLLName;
procedure CkFtp2_putHttpProxyPassword; external DLLName;
function CkFtp2__httpProxyPassword; external DLLName;
function CkFtp2_getHttpProxyPort; external DLLName;
procedure CkFtp2_putHttpProxyPort; external DLLName;
procedure CkFtp2_getHttpProxyUsername; external DLLName;
procedure CkFtp2_putHttpProxyUsername; external DLLName;
function CkFtp2__httpProxyUsername; external DLLName;
function CkFtp2_getIdleTimeoutMs; external DLLName;
procedure CkFtp2_putIdleTimeoutMs; external DLLName;
function CkFtp2_getIsConnected; external DLLName;
function CkFtp2_getKeepSessionLog; external DLLName;
procedure CkFtp2_putKeepSessionLog; external DLLName;
function CkFtp2_getLargeFileMeasures; external DLLName;
procedure CkFtp2_putLargeFileMeasures; external DLLName;
procedure CkFtp2_getLastErrorHtml; external DLLName;
function CkFtp2__lastErrorHtml; external DLLName;
procedure CkFtp2_getLastErrorText; external DLLName;
function CkFtp2__lastErrorText; external DLLName;
procedure CkFtp2_getLastErrorXml; external DLLName;
function CkFtp2__lastErrorXml; external DLLName;
function CkFtp2_getLastMethodSuccess; external DLLName;
procedure CkFtp2_putLastMethodSuccess; external DLLName;
procedure CkFtp2_getLastReply; external DLLName;
function CkFtp2__lastReply; external DLLName;
procedure CkFtp2_getListPattern; external DLLName;