-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.pas
157 lines (102 loc) · 6.51 KB
/
Global.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
unit Global;
interface
type
HCkGlobal = Pointer;
HCkString = Pointer;
function CkGlobal_Create: HCkGlobal; stdcall;
procedure CkGlobal_Dispose(handle: HCkGlobal); stdcall;
function CkGlobal_getAnsiCodePage(objHandle: HCkGlobal): Integer; stdcall;
procedure CkGlobal_putAnsiCodePage(objHandle: HCkGlobal; newPropVal: Integer); stdcall;
procedure CkGlobal_getDebugLogFilePath(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
procedure CkGlobal_putDebugLogFilePath(objHandle: HCkGlobal; newPropVal: PWideChar); stdcall;
function CkGlobal__debugLogFilePath(objHandle: HCkGlobal): PWideChar; stdcall;
function CkGlobal_getDefaultNtlmVersion(objHandle: HCkGlobal): Integer; stdcall;
procedure CkGlobal_putDefaultNtlmVersion(objHandle: HCkGlobal; newPropVal: Integer); stdcall;
function CkGlobal_getDefaultUtf8(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putDefaultUtf8(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
function CkGlobal_getDnsTimeToLive(objHandle: HCkGlobal): Integer; stdcall;
procedure CkGlobal_putDnsTimeToLive(objHandle: HCkGlobal; newPropVal: Integer); stdcall;
function CkGlobal_getEnableDnsCaching(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putEnableDnsCaching(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
procedure CkGlobal_getLastErrorHtml(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
function CkGlobal__lastErrorHtml(objHandle: HCkGlobal): PWideChar; stdcall;
procedure CkGlobal_getLastErrorText(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
function CkGlobal__lastErrorText(objHandle: HCkGlobal): PWideChar; stdcall;
procedure CkGlobal_getLastErrorXml(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
function CkGlobal__lastErrorXml(objHandle: HCkGlobal): PWideChar; stdcall;
function CkGlobal_getLastMethodSuccess(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putLastMethodSuccess(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
function CkGlobal_getMaxThreads(objHandle: HCkGlobal): Integer; stdcall;
procedure CkGlobal_putMaxThreads(objHandle: HCkGlobal; newPropVal: Integer); stdcall;
function CkGlobal_getPreferIpv6(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putPreferIpv6(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
procedure CkGlobal_getThreadPoolLogPath(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
procedure CkGlobal_putThreadPoolLogPath(objHandle: HCkGlobal; newPropVal: PWideChar); stdcall;
function CkGlobal__threadPoolLogPath(objHandle: HCkGlobal): PWideChar; stdcall;
procedure CkGlobal_getUncommonOptions(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
procedure CkGlobal_putUncommonOptions(objHandle: HCkGlobal; newPropVal: PWideChar); stdcall;
function CkGlobal__uncommonOptions(objHandle: HCkGlobal): PWideChar; stdcall;
function CkGlobal_getUnlockStatus(objHandle: HCkGlobal): Integer; stdcall;
function CkGlobal_getUsePkcsConstructedEncoding(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putUsePkcsConstructedEncoding(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
function CkGlobal_getVerboseLogging(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putVerboseLogging(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
function CkGlobal_getVerboseTls(objHandle: HCkGlobal): wordbool; stdcall;
procedure CkGlobal_putVerboseTls(objHandle: HCkGlobal; newPropVal: wordbool); stdcall;
procedure CkGlobal_getVersion(objHandle: HCkGlobal; outPropVal: HCkString); stdcall;
function CkGlobal__version(objHandle: HCkGlobal): PWideChar; stdcall;
function CkGlobal_DnsClearCache(objHandle: HCkGlobal): wordbool; stdcall;
function CkGlobal_FinalizeThreadPool(objHandle: HCkGlobal): wordbool; stdcall;
function CkGlobal_SaveLastError(objHandle: HCkGlobal; path: PWideChar): wordbool; stdcall;
function CkGlobal_ThreadPoolLogLine(objHandle: HCkGlobal; str: PWideChar): wordbool; stdcall;
function CkGlobal_UnlockBundle(objHandle: HCkGlobal; bundleUnlockCode: PWideChar): wordbool; stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkGlobal_Create; external DLLName;
procedure CkGlobal_Dispose; external DLLName;
function CkGlobal_getAnsiCodePage; external DLLName;
procedure CkGlobal_putAnsiCodePage; external DLLName;
procedure CkGlobal_getDebugLogFilePath; external DLLName;
procedure CkGlobal_putDebugLogFilePath; external DLLName;
function CkGlobal__debugLogFilePath; external DLLName;
function CkGlobal_getDefaultNtlmVersion; external DLLName;
procedure CkGlobal_putDefaultNtlmVersion; external DLLName;
function CkGlobal_getDefaultUtf8; external DLLName;
procedure CkGlobal_putDefaultUtf8; external DLLName;
function CkGlobal_getDnsTimeToLive; external DLLName;
procedure CkGlobal_putDnsTimeToLive; external DLLName;
function CkGlobal_getEnableDnsCaching; external DLLName;
procedure CkGlobal_putEnableDnsCaching; external DLLName;
procedure CkGlobal_getLastErrorHtml; external DLLName;
function CkGlobal__lastErrorHtml; external DLLName;
procedure CkGlobal_getLastErrorText; external DLLName;
function CkGlobal__lastErrorText; external DLLName;
procedure CkGlobal_getLastErrorXml; external DLLName;
function CkGlobal__lastErrorXml; external DLLName;
function CkGlobal_getLastMethodSuccess; external DLLName;
procedure CkGlobal_putLastMethodSuccess; external DLLName;
function CkGlobal_getMaxThreads; external DLLName;
procedure CkGlobal_putMaxThreads; external DLLName;
function CkGlobal_getPreferIpv6; external DLLName;
procedure CkGlobal_putPreferIpv6; external DLLName;
procedure CkGlobal_getThreadPoolLogPath; external DLLName;
procedure CkGlobal_putThreadPoolLogPath; external DLLName;
function CkGlobal__threadPoolLogPath; external DLLName;
procedure CkGlobal_getUncommonOptions; external DLLName;
procedure CkGlobal_putUncommonOptions; external DLLName;
function CkGlobal__uncommonOptions; external DLLName;
function CkGlobal_getUnlockStatus; external DLLName;
function CkGlobal_getUsePkcsConstructedEncoding; external DLLName;
procedure CkGlobal_putUsePkcsConstructedEncoding; external DLLName;
function CkGlobal_getVerboseLogging; external DLLName;
procedure CkGlobal_putVerboseLogging; external DLLName;
function CkGlobal_getVerboseTls; external DLLName;
procedure CkGlobal_putVerboseTls; external DLLName;
procedure CkGlobal_getVersion; external DLLName;
function CkGlobal__version; external DLLName;
function CkGlobal_DnsClearCache; external DLLName;
function CkGlobal_FinalizeThreadPool; external DLLName;
function CkGlobal_SaveLastError; external DLLName;
function CkGlobal_ThreadPoolLogLine; external DLLName;
function CkGlobal_UnlockBundle; external DLLName;
end.