~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to packages/extra/winunits/jwaadstlb.pas

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: jwaadstlb.pas,v 1.1 2005/04/04 07:56:10 marco Exp $
2
 
 
3
 
unit JwaAdsTLB;
4
 
 
5
 
// ************************************************************************ //
6
 
// WARNING
7
 
// -------
8
 
// The types declared in this file were generated from data read from a
9
 
// Type Library. If this type library is explicitly or indirectly (via
10
 
// another type library referring to this type library) re-imported, or the
11
 
// 'Refresh' command of the Type Library Editor activated while editing the
12
 
// Type Library, the contents of this file will be regenerated and all
13
 
// manual modifications will be lost.
14
 
// ************************************************************************ //
15
 
 
16
 
// (rom) deactivated CVS string
17
 
// PASTLWTR : Revision:   1.88.1.0.1.0
18
 
// File generated on 9/25/2000 11:37:09 AM from Type Library described below.
19
 
 
20
 
// *************************************************************************//
21
 
// NOTE:
22
 
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
23
 
// which return objects that may need to be explicitly created via a function
24
 
// call prior to any access via the property. These items have been disabled
25
 
// in order to prevent accidental use from within the object inspector. You
26
 
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
27
 
// removing them from the $IFDEF blocks. However, such items must still be
28
 
// programmatically created via a method of the appropriate CoClass before
29
 
// they can be used.
30
 
// ************************************************************************ //
31
 
// Type Lib: C:\WINNT\system32\activeds.tlb (1)
32
 
// IID\LCID: {97D25DB0-0363-11CF-ABC4-02608C9E7553}\0
33
 
// Helpfile:
34
 
// DepndLst:
35
 
//   (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
36
 
//   (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
37
 
// Errors:
38
 
//   Hint: Member 'String' of '_ADS_CASEIGNORE_LIST' changed to 'String_'
39
 
//   Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0005' changed to 'Type_'
40
 
//   Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0014' changed to 'Type_'
41
 
//   Hint: Member 'Class' of 'IADs' changed to 'Class_'
42
 
//   Hint: Member 'Set' of 'IADsNameTranslate' changed to 'Set_'
43
 
//   Hint: Member 'Type' of 'IADsEmail' changed to 'Type_'
44
 
//   Hint: Member 'Type' of 'IADsPath' changed to 'Type_'
45
 
//   Hint: Member 'Set' of 'IADsPathname' changed to 'Set_'
46
 
//   Error creating palette bitmap of (TPropertyEntry) : Server activeds.dll contains no icons
47
 
//   Error creating palette bitmap of (TPropertyValue) : Server activeds.dll contains no icons
48
 
//   Error creating palette bitmap of (TAccessControlEntry) : Server activeds.dll contains no icons
49
 
//   Error creating palette bitmap of (TAccessControlList) : Server activeds.dll contains no icons
50
 
//   Error creating palette bitmap of (TSecurityDescriptor) : Server activeds.dll contains no icons
51
 
//   Error creating palette bitmap of (TLargeInteger) : Server activeds.dll contains no icons
52
 
//   Error creating palette bitmap of (TNameTranslate) : Server activeds.dll contains no icons
53
 
//   Error creating palette bitmap of (TCaseIgnoreList) : Server activeds.dll contains no icons
54
 
//   Error creating palette bitmap of (TFaxNumber) : Server activeds.dll contains no icons
55
 
//   Error creating palette bitmap of (TNetAddress) : Server activeds.dll contains no icons
56
 
//   Error creating palette bitmap of (TOctetList) : Server activeds.dll contains no icons
57
 
//   Error creating palette bitmap of (TEmail) : Server activeds.dll contains no icons
58
 
//   Error creating palette bitmap of (TPath) : Server activeds.dll contains no icons
59
 
//   Error creating palette bitmap of (TReplicaPointer) : Server activeds.dll contains no icons
60
 
//   Error creating palette bitmap of (TAcl) : Server activeds.dll contains no icons
61
 
//   Error creating palette bitmap of (TTimestamp) : Server activeds.dll contains no icons
62
 
//   Error creating palette bitmap of (TPostalAddress) : Server activeds.dll contains no icons
63
 
//   Error creating palette bitmap of (TBackLink) : Server activeds.dll contains no icons
64
 
//   Error creating palette bitmap of (TTypedName) : Server activeds.dll contains no icons
65
 
//   Error creating palette bitmap of (THold) : Server activeds.dll contains no icons
66
 
//   Error creating palette bitmap of (TPathname) : Server activeds.dll contains no icons
67
 
//   Error creating palette bitmap of (TADSystemInfo) : Server activeds.dll contains no icons
68
 
//   Error creating palette bitmap of (TWinNTSystemInfo) : Server activeds.dll contains no icons
69
 
//   Error creating palette bitmap of (TDNWithBinary) : Server activeds.dll contains no icons
70
 
//   Error creating palette bitmap of (TDNWithString) : Server activeds.dll contains no icons
71
 
// ************************************************************************ //
72
 
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
73
 
 
74
 
interface
75
 
{$i jediapilib.inc}
76
 
uses
77
 
  Windows, ActiveX, Classes {$IFNDEF NOVCL} ,Graphics, OleServer, OleCtrls, StdVCL {$ENDIF} ;
78
 
 
79
 
{$IFDEF FPC}
80
 
Type
81
 
// Temporary dummies to get FPC working.
82
 
           TServerData= Record
83
 
                            ClassID:   TGUID;
84
 
                            IntfIID:   TGUID;
85
 
                            EventIID:  String;   // probably TGUID too
86
 
                            LicenseKey: pointer;
87
 
                            Version: integer
88
 
                            end;
89
 
 
90
 
 
91
 
 
92
 
               TOleServer = Class(TComponent)  // for registercomponents to work
93
 
                           private
94
 
                            ServerData : ^TServerData;
95
 
                           public
96
 
                 function  GetServer:IUnknown;
97
 
                 procedure InitServerData; virtual;
98
 
                 constructor Create(AOwner: TComponent); virtual;
99
 
                 Procedure Connect; virtual;
100
 
                 procedure Disconnect; virtual;
101
 
                 end;
102
 
 
103
 
 
104
 
  SysUINT    = Windows.UINT;
105
 
  SysINT     = Windows.WINT;
106
 
{$endif}
107
 
 
108
 
// *********************************************************************//
109
 
// GUIDS declared in the TypeLibrary. Following prefixes are used:
110
 
//   Type Libraries     : LIBID_xxxx
111
 
//   CoClasses          : CLASS_xxxx
112
 
//   DISPInterfaces     : DIID_xxxx
113
 
//   Non-DISP interfaces: IID_xxxx
114
 
// *********************************************************************//
115
 
 
116
 
const
117
 
  // TypeLibrary Major and minor versions
118
 
  ActiveDsMajorVersion = 1;
119
 
  ActiveDsMinorVersion = 0;
120
 
 
121
 
  LIBID_ActiveDs: TGUID = '{97D25DB0-0363-11CF-ABC4-02608C9E7553}';
122
 
 
123
 
  IID_IADs: TGUID = '{FD8256D0-FD15-11CE-ABC4-02608C9E7553}';
124
 
  IID_IADsContainer: TGUID = '{001677D0-FD16-11CE-ABC4-02608C9E7553}';
125
 
  IID_IADsCollection: TGUID = '{72B945E0-253B-11CF-A988-00AA006BC149}';
126
 
  IID_IADsMembers: TGUID = '{451A0030-72EC-11CF-B03B-00AA006E0975}';
127
 
  IID_IADsPropertyList: TGUID = '{C6F602B6-8F69-11D0-8528-00C04FD8D503}';
128
 
  IID_IADsPropertyEntry: TGUID = '{05792C8E-941F-11D0-8529-00C04FD8D503}';
129
 
  CLASS_PropertyEntry: TGUID = '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
130
 
  IID_IADsPropertyValue: TGUID = '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
131
 
  IID_IADsPropertyValue2: TGUID = '{306E831C-5BC7-11D1-A3B8-00C04FB950DC}';
132
 
  CLASS_PropertyValue: TGUID = '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
133
 
  IID_IPrivateDispatch: TGUID = '{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}';
134
 
  IID_ITypeInfo: TGUID = '{00020401-0000-0000-C000-000000000046}';
135
 
  IID_ITypeComp: TGUID = '{00020403-0000-0000-C000-000000000046}';
136
 
  IID_ITypeLib: TGUID = '{00020402-0000-0000-C000-000000000046}';
137
 
  IID_IPrivateUnknown: TGUID = '{89126BAB-6EAD-11D1-8C18-00C04FD8D503}';
138
 
  IID_IADsExtension: TGUID = '{3D35553C-D2B0-11D1-B17B-0000F87593A0}';
139
 
  IID_IADsDeleteOps: TGUID = '{B2BD0902-8878-11D1-8C21-00C04FD8D503}';
140
 
  IID_IADsNamespaces: TGUID = '{28B96BA0-B330-11CF-A9AD-00AA006BC149}';
141
 
  IID_IADsClass: TGUID = '{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}';
142
 
  IID_IADsProperty: TGUID = '{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}';
143
 
  IID_IADsSyntax: TGUID = '{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}';
144
 
  IID_IADsLocality: TGUID = '{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}';
145
 
  IID_IADsO: TGUID = '{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}';
146
 
  IID_IADsOU: TGUID = '{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}';
147
 
  IID_IADsDomain: TGUID = '{00E4C220-FD16-11CE-ABC4-02608C9E7553}';
148
 
  IID_IADsComputer: TGUID = '{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}';
149
 
  IID_IADsComputerOperations: TGUID = '{EF497680-1D9F-11CF-B1F3-02608C9E7553}';
150
 
  IID_IADsGroup: TGUID = '{27636B00-410F-11CF-B1FF-02608C9E7553}';
151
 
  IID_IADsUser: TGUID = '{3E37E320-17E2-11CF-ABC4-02608C9E7553}';
152
 
  IID_IADsPrintQueue: TGUID = '{B15160D0-1226-11CF-A985-00AA006BC149}';
153
 
  IID_IADsPrintQueueOperations: TGUID = '{124BE5C0-156E-11CF-A986-00AA006BC149}';
154
 
  IID_IADsPrintJob: TGUID = '{32FB6780-1ED0-11CF-A988-00AA006BC149}';
155
 
  IID_IADsPrintJobOperations: TGUID = '{9A52DB30-1ECF-11CF-A988-00AA006BC149}';
156
 
  IID_IADsService: TGUID = '{68AF66E0-31CA-11CF-A98A-00AA006BC149}';
157
 
  IID_IADsServiceOperations: TGUID = '{5D7B33F0-31CA-11CF-A98A-00AA006BC149}';
158
 
  IID_IADsFileService: TGUID = '{A89D1900-31CA-11CF-A98A-00AA006BC149}';
159
 
  IID_IADsFileServiceOperations: TGUID = '{A02DED10-31CA-11CF-A98A-00AA006BC149}';
160
 
  IID_IADsFileShare: TGUID = '{EB6DCAF0-4B83-11CF-A995-00AA006BC149}';
161
 
  IID_IADsSession: TGUID = '{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}';
162
 
  IID_IADsResource: TGUID = '{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}';
163
 
  IID_IADsOpenDSObject: TGUID = '{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}';
164
 
  IID_IDirectoryObject: TGUID = '{E798DE2C-22E4-11D0-84FE-00C04FD8D503}';
165
 
  IID_IDirectorySearch: TGUID = '{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}';
166
 
  IID_IDirectorySchemaMgmt: TGUID = '{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}';
167
 
  IID_IADsAggregatee: TGUID = '{1346CE8C-9039-11D0-8528-00C04FD8D503}';
168
 
  IID_IADsAggregator: TGUID = '{52DB5FB0-941F-11D0-8529-00C04FD8D503}';
169
 
  IID_IADsAccessControlEntry: TGUID = '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
170
 
  CLASS_AccessControlEntry: TGUID = '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
171
 
  IID_IADsAccessControlList: TGUID = '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
172
 
  CLASS_AccessControlList: TGUID = '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
173
 
  IID_IADsSecurityDescriptor: TGUID = '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
174
 
  CLASS_SecurityDescriptor: TGUID = '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
175
 
  IID_IADsLargeInteger: TGUID = '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
176
 
  CLASS_LargeInteger: TGUID = '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
177
 
  IID_IADsNameTranslate: TGUID = '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
178
 
  CLASS_NameTranslate: TGUID = '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
179
 
  IID_IADsCaseIgnoreList: TGUID = '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
180
 
  CLASS_CaseIgnoreList: TGUID = '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
181
 
  IID_IADsFaxNumber: TGUID = '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
182
 
  CLASS_FaxNumber: TGUID = '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
183
 
  IID_IADsNetAddress: TGUID = '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
184
 
  CLASS_NetAddress: TGUID = '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
185
 
  IID_IADsOctetList: TGUID = '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
186
 
  CLASS_OctetList: TGUID = '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
187
 
  IID_IADsEmail: TGUID = '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
188
 
  CLASS_Email: TGUID = '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
189
 
  IID_IADsPath: TGUID = '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
190
 
  CLASS_Path: TGUID = '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
191
 
  IID_IADsReplicaPointer: TGUID = '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
192
 
  CLASS_ReplicaPointer: TGUID = '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
193
 
  IID_IADsAcl: TGUID = '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
194
 
  CLASS_Acl: TGUID = '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
195
 
  IID_IADsTimestamp: TGUID = '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
196
 
  CLASS_Timestamp: TGUID = '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
197
 
  IID_IADsPostalAddress: TGUID = '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
198
 
  CLASS_PostalAddress: TGUID = '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
199
 
  IID_IADsBackLink: TGUID = '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
200
 
  CLASS_BackLink: TGUID = '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
201
 
  IID_IADsTypedName: TGUID = '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
202
 
  CLASS_TypedName: TGUID = '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
203
 
  IID_IADsHold: TGUID = '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
204
 
  CLASS_Hold: TGUID = '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
205
 
  IID_IADsObjectOptions: TGUID = '{46F14FDA-232B-11D1-A808-00C04FD8D5A8}';
206
 
  IID_IADsPathname: TGUID = '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
207
 
  CLASS_Pathname: TGUID = '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
208
 
  IID_IADsADSystemInfo: TGUID = '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
209
 
  CLASS_ADSystemInfo: TGUID = '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
210
 
  IID_IADsWinNTSystemInfo: TGUID = '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
211
 
  CLASS_WinNTSystemInfo: TGUID = '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
212
 
  IID_IADsDNWithBinary: TGUID = '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
213
 
  CLASS_DNWithBinary: TGUID = '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
214
 
  IID_IADsDNWithString: TGUID = '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
215
 
  CLASS_DNWithString: TGUID = '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
216
 
 
217
 
// *********************************************************************//
218
 
// Declaration of Enumerations defined in Type Library
219
 
// *********************************************************************//
220
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0001
221
 
type
222
 
  __MIDL___MIDL_itf_ads_0000_0001 = TOleEnum;
223
 
const
224
 
  ADSTYPE_INVALID = $00000000;
225
 
  ADSTYPE_DN_STRING = $00000001;
226
 
  ADSTYPE_CASE_EXACT_STRING = $00000002;
227
 
  ADSTYPE_CASE_IGNORE_STRING = $00000003;
228
 
  ADSTYPE_PRINTABLE_STRING = $00000004;
229
 
  ADSTYPE_NUMERIC_STRING = $00000005;
230
 
  ADSTYPE_BOOLEAN = $00000006;
231
 
  ADSTYPE_INTEGER = $00000007;
232
 
  ADSTYPE_OCTET_STRING = $00000008;
233
 
  ADSTYPE_UTC_TIME = $00000009;
234
 
  ADSTYPE_LARGE_INTEGER = $0000000A;
235
 
  ADSTYPE_PROV_SPECIFIC = $0000000B;
236
 
  ADSTYPE_OBJECT_CLASS = $0000000C;
237
 
  ADSTYPE_CASEIGNORE_LIST = $0000000D;
238
 
  ADSTYPE_OCTET_LIST = $0000000E;
239
 
  ADSTYPE_PATH = $0000000F;
240
 
  ADSTYPE_POSTALADDRESS = $00000010;
241
 
  ADSTYPE_TIMESTAMP = $00000011;
242
 
  ADSTYPE_BACKLINK = $00000012;
243
 
  ADSTYPE_TYPEDNAME = $00000013;
244
 
  ADSTYPE_HOLD = $00000014;
245
 
  ADSTYPE_NETADDRESS = $00000015;
246
 
  ADSTYPE_REPLICAPOINTER = $00000016;
247
 
  ADSTYPE_FAXNUMBER = $00000017;
248
 
  ADSTYPE_EMAIL = $00000018;
249
 
  ADSTYPE_NT_SECURITY_DESCRIPTOR = $00000019;
250
 
  ADSTYPE_UNKNOWN = $0000001A;
251
 
  ADSTYPE_DN_WITH_BINARY = $0000001B;
252
 
  ADSTYPE_DN_WITH_STRING = $0000001C;
253
 
 
254
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0018
255
 
type
256
 
  __MIDL___MIDL_itf_ads_0000_0018 = TOleEnum;
257
 
const
258
 
  ADS_SECURE_AUTHENTICATION = $00000001;
259
 
  ADS_USE_ENCRYPTION = $00000002;
260
 
  ADS_USE_SSL = $00000002;
261
 
  ADS_READONLY_SERVER = $00000004;
262
 
  ADS_PROMPT_CREDENTIALS = $00000008;
263
 
  ADS_NO_AUTHENTICATION = $00000010;
264
 
  ADS_FAST_BIND = $00000020;
265
 
  ADS_USE_SIGNING = $00000040;
266
 
  ADS_USE_SEALING = $00000080;
267
 
  ADS_USE_DELEGATION = $00000100;
268
 
  ADS_AUTH_RESERVED = $80000000;
269
 
 
270
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0019
271
 
type
272
 
  __MIDL___MIDL_itf_ads_0000_0019 = TOleEnum;
273
 
const
274
 
  ADS_STATUS_S_OK = $00000000;
275
 
  ADS_STATUS_INVALID_SEARCHPREF = $00000001;
276
 
  ADS_STATUS_INVALID_SEARCHPREFVALUE = $00000002;
277
 
 
278
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0020
279
 
type
280
 
  __MIDL___MIDL_itf_ads_0000_0020 = TOleEnum;
281
 
const
282
 
  ADS_DEREF_NEVER = $00000000;
283
 
  ADS_DEREF_SEARCHING = $00000001;
284
 
  ADS_DEREF_FINDING = $00000002;
285
 
  ADS_DEREF_ALWAYS = $00000003;
286
 
 
287
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0021
288
 
type
289
 
  __MIDL___MIDL_itf_ads_0000_0021 = TOleEnum;
290
 
const
291
 
  ADS_SCOPE_BASE = $00000000;
292
 
  ADS_SCOPE_ONELEVEL = $00000001;
293
 
  ADS_SCOPE_SUBTREE = $00000002;
294
 
 
295
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0022
296
 
type
297
 
  __MIDL___MIDL_itf_ads_0000_0022 = TOleEnum;
298
 
const
299
 
  ADSIPROP_ASYNCHRONOUS = $00000000;
300
 
  ADSIPROP_DEREF_ALIASES = $00000001;
301
 
  ADSIPROP_SIZE_LIMIT = $00000002;
302
 
  ADSIPROP_TIME_LIMIT = $00000003;
303
 
  ADSIPROP_ATTRIBTYPES_ONLY = $00000004;
304
 
  ADSIPROP_SEARCH_SCOPE = $00000005;
305
 
  ADSIPROP_TIMEOUT = $00000006;
306
 
  ADSIPROP_PAGESIZE = $00000007;
307
 
  ADSIPROP_PAGED_TIME_LIMIT = $00000008;
308
 
  ADSIPROP_CHASE_REFERRALS = $00000009;
309
 
  ADSIPROP_SORT_ON = $0000000A;
310
 
  ADSIPROP_CACHE_RESULTS = $0000000B;
311
 
  ADSIPROP_ADSIFLAG = $0000000C;
312
 
 
313
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0023
314
 
type
315
 
  __MIDL___MIDL_itf_ads_0000_0023 = TOleEnum;
316
 
const
317
 
  ADSI_DIALECT_LDAP = $00000000;
318
 
  ADSI_DIALECT_SQL = $00000001;
319
 
 
320
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0024
321
 
type
322
 
  __MIDL___MIDL_itf_ads_0000_0024 = TOleEnum;
323
 
const
324
 
  ADS_CHASE_REFERRALS_NEVER = $00000000;
325
 
  ADS_CHASE_REFERRALS_SUBORDINATE = $00000020;
326
 
  ADS_CHASE_REFERRALS_EXTERNAL = $00000040;
327
 
  ADS_CHASE_REFERRALS_ALWAYS = $00000060;
328
 
 
329
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0025
330
 
type
331
 
  __MIDL___MIDL_itf_ads_0000_0025 = TOleEnum;
332
 
const
333
 
  ADS_SEARCHPREF_ASYNCHRONOUS = $00000000;
334
 
  ADS_SEARCHPREF_DEREF_ALIASES = $00000001;
335
 
  ADS_SEARCHPREF_SIZE_LIMIT = $00000002;
336
 
  ADS_SEARCHPREF_TIME_LIMIT = $00000003;
337
 
  ADS_SEARCHPREF_ATTRIBTYPES_ONLY = $00000004;
338
 
  ADS_SEARCHPREF_SEARCH_SCOPE = $00000005;
339
 
  ADS_SEARCHPREF_TIMEOUT = $00000006;
340
 
  ADS_SEARCHPREF_PAGESIZE = $00000007;
341
 
  ADS_SEARCHPREF_PAGED_TIME_LIMIT = $00000008;
342
 
  ADS_SEARCHPREF_CHASE_REFERRALS = $00000009;
343
 
  ADS_SEARCHPREF_SORT_ON = $0000000A;
344
 
  ADS_SEARCHPREF_CACHE_RESULTS = $0000000B;
345
 
  ADS_SEARCHPREF_DIRSYNC = $0000000C;
346
 
  ADS_SEARCHPREF_TOMBSTONE = $0000000D;
347
 
 
348
 
// Constants for enum __MIDL___MIDL_itf_ads_0000_0026
349
 
type
350
 
  __MIDL___MIDL_itf_ads_0000_0026 = TOleEnum;
351
 
const
352
 
  ADS_PROPERTY_CLEAR = $00000001;
353
 
  ADS_PROPERTY_UPDATE = $00000002;
354
 
  ADS_PROPERTY_APPEND = $00000003;
355
 
  ADS_PROPERTY_DELETE = $00000004;
356
 
 
357
 
// Constants for enum tagTYPEKIND
358
 
type
359
 
  tagTYPEKIND = TOleEnum;
360
 
const
361
 
  TKIND_ENUM = $00000000;
362
 
  TKIND_RECORD = $00000001;
363
 
  TKIND_MODULE = $00000002;
364
 
  TKIND_INTERFACE = $00000003;
365
 
  TKIND_DISPATCH = $00000004;
366
 
  TKIND_COCLASS = $00000005;
367
 
  TKIND_ALIAS = $00000006;
368
 
  TKIND_UNION = $00000007;
369
 
  TKIND_MAX = $00000008;
370
 
 
371
 
// Constants for enum tagDESCKIND
372
 
type
373
 
  tagDESCKIND = TOleEnum;
374
 
const
375
 
  DESCKIND_NONE = $00000000;
376
 
  DESCKIND_FUNCDESC = $00000001;
377
 
  DESCKIND_VARDESC = $00000002;
378
 
  DESCKIND_TYPECOMP = $00000003;
379
 
  DESCKIND_IMPLICITAPPOBJ = $00000004;
380
 
  DESCKIND_MAX = $00000005;
381
 
 
382
 
// Constants for enum tagFUNCKIND
383
 
type
384
 
  tagFUNCKIND = TOleEnum;
385
 
const
386
 
  FUNC_VIRTUAL = $00000000;
387
 
  FUNC_PUREVIRTUAL = $00000001;
388
 
  FUNC_NONVIRTUAL = $00000002;
389
 
  FUNC_STATIC = $00000003;
390
 
  FUNC_DISPATCH = $00000004;
391
 
 
392
 
// Constants for enum tagINVOKEKIND
393
 
type
394
 
  tagINVOKEKIND = TOleEnum;
395
 
const
396
 
  INVOKE_FUNC = $00000001;
397
 
  INVOKE_PROPERTYGET = $00000002;
398
 
  INVOKE_PROPERTYPUT = $00000004;
399
 
  INVOKE_PROPERTYPUTREF = $00000008;
400
 
 
401
 
// Constants for enum tagCALLCONV
402
 
type
403
 
  tagCALLCONV = TOleEnum;
404
 
const
405
 
  CC_FASTCALL = $00000000;
406
 
  CC_CDECL = $00000001;
407
 
  CC_MSCPASCAL = $00000002;
408
 
  CC_PASCAL = $00000002;
409
 
  CC_MACPASCAL = $00000003;
410
 
  CC_STDCALL = $00000004;
411
 
  CC_FPFASTCALL = $00000005;
412
 
  CC_SYSCALL = $00000006;
413
 
  CC_MPWCDECL = $00000007;
414
 
  CC_MPWPASCAL = $00000008;
415
 
  CC_MAX = $00000009;
416
 
 
417
 
// Constants for enum tagVARKIND
418
 
type
419
 
  tagVARKIND = TOleEnum;
420
 
const
421
 
  VAR_PERINSTANCE = $00000000;
422
 
  VAR_STATIC = $00000001;
423
 
  VAR_CONST = $00000002;
424
 
  VAR_DISPATCH = $00000003;
425
 
 
426
 
// Constants for enum tagSYSKIND
427
 
type
428
 
  tagSYSKIND = TOleEnum;
429
 
const
430
 
  SYS_WIN16 = $00000000;
431
 
  SYS_WIN32 = $00000001;
432
 
  SYS_MAC = $00000002;
433
 
  SYS_WIN64 = $00000001;
434
 
 
435
 
// Constants for enum __MIDL___MIDL_itf_ads_0120_0001
436
 
type
437
 
  __MIDL___MIDL_itf_ads_0120_0001 = TOleEnum;
438
 
const
439
 
  ADS_SYSTEMFLAG_DISALLOW_DELETE = $80000000;
440
 
  ADS_SYSTEMFLAG_CONFIG_ALLOW_RENAME = $40000000;
441
 
  ADS_SYSTEMFLAG_CONFIG_ALLOW_MOVE = $20000000;
442
 
  ADS_SYSTEMFLAG_CONFIG_ALLOW_LIMITED_MOVE = $10000000;
443
 
  ADS_SYSTEMFLAG_DOMAIN_DISALLOW_RENAME = $08000000;
444
 
  ADS_SYSTEMFLAG_DOMAIN_DISALLOW_MOVE = $04000000;
445
 
  ADS_SYSTEMFLAG_CR_NTDS_NC = $00000001;
446
 
  ADS_SYSTEMFLAG_CR_NTDS_DOMAIN = $00000002;
447
 
  ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED = $00000001;
448
 
  ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = $00000004;
449
 
 
450
 
// Constants for enum __MIDL___MIDL_itf_ads_0126_0001
451
 
type
452
 
  __MIDL___MIDL_itf_ads_0126_0001 = TOleEnum;
453
 
const
454
 
  ADS_GROUP_TYPE_GLOBAL_GROUP = $00000002;
455
 
  ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = $00000004;
456
 
  ADS_GROUP_TYPE_LOCAL_GROUP = $00000004;
457
 
  ADS_GROUP_TYPE_UNIVERSAL_GROUP = $00000008;
458
 
  ADS_GROUP_TYPE_SECURITY_ENABLED = $80000000;
459
 
 
460
 
// Constants for enum ADS_USER_FLAG
461
 
type
462
 
  ADS_USER_FLAG = TOleEnum;
463
 
const
464
 
  ADS_UF_SCRIPT = $00000001;
465
 
  ADS_UF_ACCOUNTDISABLE = $00000002;
466
 
  ADS_UF_HOMEDIR_REQUIRED = $00000008;
467
 
  ADS_UF_LOCKOUT = $00000010;
468
 
  ADS_UF_PASSWD_NOTREQD = $00000020;
469
 
  ADS_UF_PASSWD_CANT_CHANGE = $00000040;
470
 
  ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = $00000080;
471
 
  ADS_UF_TEMP_DUPLICATE_ACCOUNT = $00000100;
472
 
  ADS_UF_NORMAL_ACCOUNT = $00000200;
473
 
  ADS_UF_INTERDOMAIN_TRUST_ACCOUNT = $00000800;
474
 
  ADS_UF_WORKSTATION_TRUST_ACCOUNT = $00001000;
475
 
  ADS_UF_SERVER_TRUST_ACCOUNT = $00002000;
476
 
  ADS_UF_DONT_EXPIRE_PASSWD = $00010000;
477
 
  ADS_UF_MNS_LOGON_ACCOUNT = $00020000;
478
 
  ADS_UF_SMARTCARD_REQUIRED = $00040000;
479
 
  ADS_UF_TRUSTED_FOR_DELEGATION = $00080000;
480
 
  ADS_UF_NOT_DELEGATED = $00100000;
481
 
 
482
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0001
483
 
type
484
 
  __MIDL___MIDL_itf_ads_0148_0001 = TOleEnum;
485
 
const
486
 
  ADS_RIGHT_DELETE = $00010000;
487
 
  ADS_RIGHT_READ_CONTROL = $00020000;
488
 
  ADS_RIGHT_WRITE_DAC = $00040000;
489
 
  ADS_RIGHT_WRITE_OWNER = $00080000;
490
 
  ADS_RIGHT_SYNCHRONIZE = $00100000;
491
 
  ADS_RIGHT_ACCESS_SYSTEM_SECURITY = $01000000;
492
 
  ADS_RIGHT_GENERIC_READ = $80000000;
493
 
  ADS_RIGHT_GENERIC_WRITE = $40000000;
494
 
  ADS_RIGHT_GENERIC_EXECUTE = $20000000;
495
 
  ADS_RIGHT_GENERIC_ALL = $10000000;
496
 
  ADS_RIGHT_DS_CREATE_CHILD = $00000001;
497
 
  ADS_RIGHT_DS_DELETE_CHILD = $00000002;
498
 
  ADS_RIGHT_ACTRL_DS_LIST = $00000004;
499
 
  ADS_RIGHT_DS_SELF = $00000008;
500
 
  ADS_RIGHT_DS_READ_PROP = $00000010;
501
 
  ADS_RIGHT_DS_WRITE_PROP = $00000020;
502
 
  ADS_RIGHT_DS_DELETE_TREE = $00000040;
503
 
  ADS_RIGHT_DS_LIST_OBJECT = $00000080;
504
 
  ADS_RIGHT_DS_CONTROL_ACCESS = $00000100;
505
 
 
506
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0002
507
 
type
508
 
  __MIDL___MIDL_itf_ads_0148_0002 = TOleEnum;
509
 
const
510
 
  ADS_ACETYPE_ACCESS_ALLOWED = $00000000;
511
 
  ADS_ACETYPE_ACCESS_DENIED = $00000001;
512
 
  ADS_ACETYPE_SYSTEM_AUDIT = $00000002;
513
 
  ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = $00000005;
514
 
  ADS_ACETYPE_ACCESS_DENIED_OBJECT = $00000006;
515
 
  ADS_ACETYPE_SYSTEM_AUDIT_OBJECT = $00000007;
516
 
 
517
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0003
518
 
type
519
 
  __MIDL___MIDL_itf_ads_0148_0003 = TOleEnum;
520
 
const
521
 
  ADS_ACEFLAG_INHERIT_ACE = $00000002;
522
 
  ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE = $00000004;
523
 
  ADS_ACEFLAG_INHERIT_ONLY_ACE = $00000008;
524
 
  ADS_ACEFLAG_INHERITED_ACE = $00000010;
525
 
  ADS_ACEFLAG_VALID_INHERIT_FLAGS = $0000001F;
526
 
  ADS_ACEFLAG_SUCCESSFUL_ACCESS = $00000040;
527
 
  ADS_ACEFLAG_FAILED_ACCESS = $00000080;
528
 
 
529
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0004
530
 
type
531
 
  __MIDL___MIDL_itf_ads_0148_0004 = TOleEnum;
532
 
const
533
 
  ADS_FLAG_OBJECT_TYPE_PRESENT = $00000001;
534
 
  ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = $00000002;
535
 
 
536
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0005
537
 
type
538
 
  __MIDL___MIDL_itf_ads_0148_0005 = TOleEnum;
539
 
const
540
 
  ADS_SD_CONTROL_SE_OWNER_DEFAULTED = $00000001;
541
 
  ADS_SD_CONTROL_SE_GROUP_DEFAULTED = $00000002;
542
 
  ADS_SD_CONTROL_SE_DACL_PRESENT = $00000004;
543
 
  ADS_SD_CONTROL_SE_DACL_DEFAULTED = $00000008;
544
 
  ADS_SD_CONTROL_SE_SACL_PRESENT = $00000010;
545
 
  ADS_SD_CONTROL_SE_SACL_DEFAULTED = $00000020;
546
 
  ADS_SD_CONTROL_SE_DACL_AUTO_INHERIT_REQ = $00000100;
547
 
  ADS_SD_CONTROL_SE_SACL_AUTO_INHERIT_REQ = $00000200;
548
 
  ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED = $00000400;
549
 
  ADS_SD_CONTROL_SE_SACL_AUTO_INHERITED = $00000800;
550
 
  ADS_SD_CONTROL_SE_DACL_PROTECTED = $00001000;
551
 
  ADS_SD_CONTROL_SE_SACL_PROTECTED = $00002000;
552
 
  ADS_SD_CONTROL_SE_SELF_RELATIVE = $00008000;
553
 
 
554
 
// Constants for enum __MIDL___MIDL_itf_ads_0148_0006
555
 
type
556
 
  __MIDL___MIDL_itf_ads_0148_0006 = TOleEnum;
557
 
const
558
 
  ADS_SD_REVISION_DS = $00000004;
559
 
 
560
 
// Constants for enum __MIDL___MIDL_itf_ads_0149_0001
561
 
type
562
 
  __MIDL___MIDL_itf_ads_0149_0001 = TOleEnum;
563
 
const
564
 
  ADS_NAME_TYPE_1779 = $00000001;
565
 
  ADS_NAME_TYPE_CANONICAL = $00000002;
566
 
  ADS_NAME_TYPE_NT4 = $00000003;
567
 
  ADS_NAME_TYPE_DISPLAY = $00000004;
568
 
  ADS_NAME_TYPE_DOMAIN_SIMPLE = $00000005;
569
 
  ADS_NAME_TYPE_ENTERPRISE_SIMPLE = $00000006;
570
 
  ADS_NAME_TYPE_GUID = $00000007;
571
 
  ADS_NAME_TYPE_UNKNOWN = $00000008;
572
 
  ADS_NAME_TYPE_USER_PRINCIPAL_NAME = $00000009;
573
 
  ADS_NAME_TYPE_CANONICAL_EX = $0000000A;
574
 
  ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME = $0000000B;
575
 
  ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = $0000000C;
576
 
 
577
 
// Constants for enum __MIDL___MIDL_itf_ads_0149_0002
578
 
type
579
 
  __MIDL___MIDL_itf_ads_0149_0002 = TOleEnum;
580
 
const
581
 
  ADS_NAME_INITTYPE_DOMAIN = $00000001;
582
 
  ADS_NAME_INITTYPE_SERVER = $00000002;
583
 
  ADS_NAME_INITTYPE_GC = $00000003;
584
 
 
585
 
// Constants for enum __MIDL___MIDL_itf_ads_0163_0001
586
 
type
587
 
  __MIDL___MIDL_itf_ads_0163_0001 = TOleEnum;
588
 
const
589
 
  ADS_OPTION_SERVERNAME = $00000000;
590
 
  ADS_OPTION_REFERRALS = $00000001;
591
 
  ADS_OPTION_PAGE_SIZE = $00000002;
592
 
  ADS_OPTION_SECURITY_MASK = $00000003;
593
 
  ADS_OPTION_MUTUAL_AUTH_STATUS = $00000004;
594
 
 
595
 
// Constants for enum __MIDL___MIDL_itf_ads_0163_0002
596
 
type
597
 
  __MIDL___MIDL_itf_ads_0163_0002 = TOleEnum;
598
 
const
599
 
  ADS_SECURITY_INFO_OWNER = $00000001;
600
 
  ADS_SECURITY_INFO_GROUP = $00000002;
601
 
  ADS_SECURITY_INFO_DACL = $00000004;
602
 
  ADS_SECURITY_INFO_SACL = $00000008;
603
 
 
604
 
// Constants for enum __MIDL___MIDL_itf_ads_0164_0001
605
 
type
606
 
  __MIDL___MIDL_itf_ads_0164_0001 = TOleEnum;
607
 
const
608
 
  ADS_SETTYPE_FULL = $00000001;
609
 
  ADS_SETTYPE_PROVIDER = $00000002;
610
 
  ADS_SETTYPE_SERVER = $00000003;
611
 
  ADS_SETTYPE_DN = $00000004;
612
 
 
613
 
// Constants for enum __MIDL___MIDL_itf_ads_0164_0002
614
 
type
615
 
  __MIDL___MIDL_itf_ads_0164_0002 = TOleEnum;
616
 
const
617
 
  ADS_FORMAT_WINDOWS = $00000001;
618
 
  ADS_FORMAT_WINDOWS_NO_SERVER = $00000002;
619
 
  ADS_FORMAT_WINDOWS_DN = $00000003;
620
 
  ADS_FORMAT_WINDOWS_PARENT = $00000004;
621
 
  ADS_FORMAT_X500 = $00000005;
622
 
  ADS_FORMAT_X500_NO_SERVER = $00000006;
623
 
  ADS_FORMAT_X500_DN = $00000007;
624
 
  ADS_FORMAT_X500_PARENT = $00000008;
625
 
  ADS_FORMAT_SERVER = $00000009;
626
 
  ADS_FORMAT_PROVIDER = $0000000A;
627
 
  ADS_FORMAT_LEAF = $0000000B;
628
 
 
629
 
// Constants for enum __MIDL___MIDL_itf_ads_0164_0003
630
 
type
631
 
  __MIDL___MIDL_itf_ads_0164_0003 = TOleEnum;
632
 
const
633
 
  ADS_DISPLAY_FULL = $00000001;
634
 
  ADS_DISPLAY_VALUE_ONLY = $00000002;
635
 
 
636
 
// Constants for enum __MIDL___MIDL_itf_ads_0164_0004
637
 
type
638
 
  __MIDL___MIDL_itf_ads_0164_0004 = TOleEnum;
639
 
const
640
 
  ADS_ESCAPEDMODE_DEFAULT = $00000001;
641
 
  ADS_ESCAPEDMODE_ON = $00000002;
642
 
  ADS_ESCAPEDMODE_OFF = $00000003;
643
 
  ADS_ESCAPEDMODE_OFF_EX = $00000004;
644
 
 
645
 
type
646
 
 
647
 
// *********************************************************************//
648
 
// Forward declaration of types defined in TypeLibrary
649
 
// *********************************************************************//
650
 
  IADs = interface;
651
 
  {$ifdef SUPPORTS_DISPINTERFACE}
652
 
  IADsDisp = dispinterface;
653
 
  {$endif}
654
 
  IADsContainer = interface;
655
 
  {$ifdef SUPPORTS_DISPINTERFACE}
656
 
  IADsContainerDisp = dispinterface;
657
 
  {$endif}
658
 
  IADsCollection = interface;
659
 
  {$ifdef SUPPORTS_DISPINTERFACE}
660
 
  IADsCollectionDisp = dispinterface;
661
 
  {$endif}
662
 
  IADsMembers = interface;
663
 
  {$ifdef SUPPORTS_DISPINTERFACE}
664
 
  IADsMembersDisp = dispinterface;
665
 
  {$endif}
666
 
  IADsPropertyList = interface;
667
 
  {$ifdef SUPPORTS_DISPINTERFACE}
668
 
  IADsPropertyListDisp = dispinterface;
669
 
  {$endif}
670
 
  IADsPropertyEntry = interface;
671
 
  {$ifdef SUPPORTS_DISPINTERFACE}
672
 
  IADsPropertyEntryDisp = dispinterface;
673
 
  {$endif}
674
 
  IADsPropertyValue = interface;
675
 
  {$ifdef SUPPORTS_DISPINTERFACE}
676
 
  IADsPropertyValueDisp = dispinterface;
677
 
  {$endif}
678
 
  IADsPropertyValue2 = interface;
679
 
  {$ifdef SUPPORTS_DISPINTERFACE}
680
 
  IADsPropertyValue2Disp = dispinterface;
681
 
  {$endif}
682
 
  IPrivateDispatch = interface;
683
 
  ITypeInfo = interface;
684
 
  ITypeComp = interface;
685
 
  ITypeLib = interface;
686
 
  IPrivateUnknown = interface;
687
 
  IADsExtension = interface;
688
 
  IADsDeleteOps = interface;
689
 
  {$ifdef SUPPORTS_DISPINTERFACE}
690
 
  IADsDeleteOpsDisp = dispinterface;
691
 
  {$endif}
692
 
  IADsNamespaces = interface;
693
 
  {$ifdef SUPPORTS_DISPINTERFACE}
694
 
  IADsNamespacesDisp = dispinterface;
695
 
  {$endif}
696
 
  IADsClass = interface;
697
 
  {$ifdef SUPPORTS_DISPINTERFACE}
698
 
  IADsClassDisp = dispinterface;
699
 
  {$endif}
700
 
  IADsProperty = interface;
701
 
  {$ifdef SUPPORTS_DISPINTERFACE}
702
 
  IADsPropertyDisp = dispinterface;
703
 
  {$endif}
704
 
  IADsSyntax = interface;
705
 
  {$ifdef SUPPORTS_DISPINTERFACE}
706
 
  IADsSyntaxDisp = dispinterface;
707
 
  {$endif}
708
 
  IADsLocality = interface;
709
 
  {$ifdef SUPPORTS_DISPINTERFACE}
710
 
  IADsLocalityDisp = dispinterface;
711
 
  {$endif}
712
 
  IADsO = interface;
713
 
  {$ifdef SUPPORTS_DISPINTERFACE}
714
 
  IADsODisp = dispinterface;
715
 
  {$endif}
716
 
  IADsOU = interface;
717
 
  {$ifdef SUPPORTS_DISPINTERFACE}
718
 
  IADsOUDisp = dispinterface;
719
 
  {$endif}
720
 
  IADsDomain = interface;
721
 
  {$ifdef SUPPORTS_DISPINTERFACE}
722
 
  IADsDomainDisp = dispinterface;
723
 
  {$endif}
724
 
  IADsComputer = interface;
725
 
  {$ifdef SUPPORTS_DISPINTERFACE}
726
 
  IADsComputerDisp = dispinterface;
727
 
  {$endif}
728
 
  IADsComputerOperations = interface;
729
 
  {$ifdef SUPPORTS_DISPINTERFACE}
730
 
  IADsComputerOperationsDisp = dispinterface;
731
 
  {$endif}
732
 
  IADsGroup = interface;
733
 
  {$ifdef SUPPORTS_DISPINTERFACE}
734
 
  IADsGroupDisp = dispinterface;
735
 
  {$endif}
736
 
  IADsUser = interface;
737
 
  {$ifdef SUPPORTS_DISPINTERFACE}
738
 
  IADsUserDisp = dispinterface;
739
 
  {$endif}
740
 
  IADsPrintQueue = interface;
741
 
  {$ifdef SUPPORTS_DISPINTERFACE}
742
 
  IADsPrintQueueDisp = dispinterface;
743
 
  {$endif}
744
 
  IADsPrintQueueOperations = interface;
745
 
  {$ifdef SUPPORTS_DISPINTERFACE}
746
 
  IADsPrintQueueOperationsDisp = dispinterface;
747
 
  {$endif}
748
 
  IADsPrintJob = interface;
749
 
  {$ifdef SUPPORTS_DISPINTERFACE}
750
 
  IADsPrintJobDisp = dispinterface;
751
 
  {$endif}
752
 
  IADsPrintJobOperations = interface;
753
 
  {$ifdef SUPPORTS_DISPINTERFACE}
754
 
  IADsPrintJobOperationsDisp = dispinterface;
755
 
  {$endif}
756
 
  IADsService = interface;
757
 
  {$ifdef SUPPORTS_DISPINTERFACE}
758
 
  IADsServiceDisp = dispinterface;
759
 
  {$endif}
760
 
  IADsServiceOperations = interface;
761
 
  {$ifdef SUPPORTS_DISPINTERFACE}
762
 
  IADsServiceOperationsDisp = dispinterface;
763
 
  {$endif}
764
 
  IADsFileService = interface;
765
 
  {$ifdef SUPPORTS_DISPINTERFACE}
766
 
  IADsFileServiceDisp = dispinterface;
767
 
  {$endif}
768
 
  IADsFileServiceOperations = interface;
769
 
  {$ifdef SUPPORTS_DISPINTERFACE}
770
 
  IADsFileServiceOperationsDisp = dispinterface;
771
 
  {$endif}
772
 
  IADsFileShare = interface;
773
 
  {$ifdef SUPPORTS_DISPINTERFACE}
774
 
  IADsFileShareDisp = dispinterface;
775
 
  {$endif}
776
 
  IADsSession = interface;
777
 
  {$ifdef SUPPORTS_DISPINTERFACE}
778
 
  IADsSessionDisp = dispinterface;
779
 
  {$endif}
780
 
  IADsResource = interface;
781
 
  {$ifdef SUPPORTS_DISPINTERFACE}
782
 
  IADsResourceDisp = dispinterface;
783
 
  {$endif}
784
 
  IADsOpenDSObject = interface;
785
 
  {$ifdef SUPPORTS_DISPINTERFACE}
786
 
  IADsOpenDSObjectDisp = dispinterface;
787
 
  {$endif}
788
 
  IDirectoryObject = interface;
789
 
  IDirectorySearch = interface;
790
 
  IDirectorySchemaMgmt = interface;
791
 
  IADsAggregatee = interface;
792
 
  IADsAggregator = interface;
793
 
  IADsAccessControlEntry = interface;
794
 
  {$ifdef SUPPORTS_DISPINTERFACE}
795
 
  IADsAccessControlEntryDisp = dispinterface;
796
 
  {$endif}
797
 
  IADsAccessControlList = interface;
798
 
  {$ifdef SUPPORTS_DISPINTERFACE}
799
 
  IADsAccessControlListDisp = dispinterface;
800
 
  {$endif}
801
 
  IADsSecurityDescriptor = interface;
802
 
  {$ifdef SUPPORTS_DISPINTERFACE}
803
 
  IADsSecurityDescriptorDisp = dispinterface;
804
 
  {$endif}
805
 
  IADsLargeInteger = interface;
806
 
  {$ifdef SUPPORTS_DISPINTERFACE}
807
 
  IADsLargeIntegerDisp = dispinterface;
808
 
  {$endif}
809
 
  IADsNameTranslate = interface;
810
 
  {$ifdef SUPPORTS_DISPINTERFACE}
811
 
  IADsNameTranslateDisp = dispinterface;
812
 
  {$endif}
813
 
  IADsCaseIgnoreList = interface;
814
 
  {$ifdef SUPPORTS_DISPINTERFACE}
815
 
  IADsCaseIgnoreListDisp = dispinterface;
816
 
  {$endif}
817
 
  IADsFaxNumber = interface;
818
 
  {$ifdef SUPPORTS_DISPINTERFACE}
819
 
  IADsFaxNumberDisp = dispinterface;
820
 
  {$endif}
821
 
  IADsNetAddress = interface;
822
 
  {$ifdef SUPPORTS_DISPINTERFACE}
823
 
  IADsNetAddressDisp = dispinterface;
824
 
  {$endif}
825
 
  IADsOctetList = interface;
826
 
  {$ifdef SUPPORTS_DISPINTERFACE}
827
 
  IADsOctetListDisp = dispinterface;
828
 
  {$endif}
829
 
  IADsEmail = interface;
830
 
  {$ifdef SUPPORTS_DISPINTERFACE}
831
 
  IADsEmailDisp = dispinterface;
832
 
  {$endif}
833
 
  IADsPath = interface;
834
 
  {$ifdef SUPPORTS_DISPINTERFACE}
835
 
  IADsPathDisp = dispinterface;
836
 
  {$endif}
837
 
  IADsReplicaPointer = interface;
838
 
  {$ifdef SUPPORTS_DISPINTERFACE}
839
 
  IADsReplicaPointerDisp = dispinterface;
840
 
  {$endif}
841
 
  IADsAcl = interface;
842
 
  {$ifdef SUPPORTS_DISPINTERFACE}
843
 
  IADsAclDisp = dispinterface;
844
 
  {$endif}
845
 
  IADsTimestamp = interface;
846
 
  {$ifdef SUPPORTS_DISPINTERFACE}
847
 
  IADsTimestampDisp = dispinterface;
848
 
  {$endif}
849
 
  IADsPostalAddress = interface;
850
 
  {$ifdef SUPPORTS_DISPINTERFACE}
851
 
  IADsPostalAddressDisp = dispinterface;
852
 
  {$endif}
853
 
  IADsBackLink = interface;
854
 
  {$ifdef SUPPORTS_DISPINTERFACE}
855
 
  IADsBackLinkDisp = dispinterface;
856
 
  {$endif}
857
 
  IADsTypedName = interface;
858
 
  {$ifdef SUPPORTS_DISPINTERFACE}
859
 
  IADsTypedNameDisp = dispinterface;
860
 
  {$endif}
861
 
  IADsHold = interface;
862
 
  {$ifdef SUPPORTS_DISPINTERFACE}
863
 
  IADsHoldDisp = dispinterface;
864
 
  {$endif}
865
 
  IADsObjectOptions = interface;
866
 
  {$ifdef SUPPORTS_DISPINTERFACE}
867
 
  IADsObjectOptionsDisp = dispinterface;
868
 
  {$endif}
869
 
  IADsPathname = interface;
870
 
  {$ifdef SUPPORTS_DISPINTERFACE}
871
 
  IADsPathnameDisp = dispinterface;
872
 
  {$endif}
873
 
  IADsADSystemInfo = interface;
874
 
  {$ifdef SUPPORTS_DISPINTERFACE}
875
 
  IADsADSystemInfoDisp = dispinterface;
876
 
  {$endif}
877
 
  IADsWinNTSystemInfo = interface;
878
 
  {$ifdef SUPPORTS_DISPINTERFACE}
879
 
  IADsWinNTSystemInfoDisp = dispinterface;
880
 
  {$endif}
881
 
  IADsDNWithBinary = interface;
882
 
  {$ifdef SUPPORTS_DISPINTERFACE}
883
 
  IADsDNWithBinaryDisp = dispinterface;
884
 
  {$endif}
885
 
  IADsDNWithString = interface;
886
 
  {$ifdef SUPPORTS_DISPINTERFACE}
887
 
  IADsDNWithStringDisp = dispinterface;
888
 
  {$endif}
889
 
 
890
 
// *********************************************************************//
891
 
// Declaration of CoClasses defined in Type Library
892
 
// (NOTE: Here we map each CoClass to its Default Interface)
893
 
// *********************************************************************//
894
 
  PropertyEntry = IADsPropertyEntry;
895
 
  PropertyValue = IADsPropertyValue;
896
 
  AccessControlEntry = IADsAccessControlEntry;
897
 
  AccessControlList = IADsAccessControlList;
898
 
  SecurityDescriptor = IADsSecurityDescriptor;
899
 
  LargeInteger = IADsLargeInteger;
900
 
  NameTranslate = IADsNameTranslate;
901
 
  CaseIgnoreList = IADsCaseIgnoreList;
902
 
  FaxNumber = IADsFaxNumber;
903
 
  NetAddress = IADsNetAddress;
904
 
  OctetList = IADsOctetList;
905
 
  Email = IADsEmail;
906
 
  Path = IADsPath;
907
 
  ReplicaPointer = IADsReplicaPointer;
908
 
  Acl = IADsAcl;
909
 
  Timestamp = IADsTimestamp;
910
 
  PostalAddress = IADsPostalAddress;
911
 
  BackLink = IADsBackLink;
912
 
  TypedName = IADsTypedName;
913
 
  Hold = IADsHold;
914
 
  Pathname = IADsPathname;
915
 
  ADSystemInfo = IADsADSystemInfo;
916
 
  WinNTSystemInfo = IADsWinNTSystemInfo;
917
 
  DNWithBinary = IADsDNWithBinary;
918
 
  DNWithString = IADsDNWithString;
919
 
 
920
 
// *********************************************************************//
921
 
// Declaration of structures, unions and aliases.
922
 
// *********************************************************************//
923
 
  PUserType1 = ^_ADS_CASEIGNORE_LIST; {*}
924
 
  PUserType2 = ^_ADS_OCTET_LIST; {*}
925
 
  PPWideChar1 = ^PWideChar; {*}
926
 
  PUserType8 = ^tagTYPEDESC; {*}
927
 
  PUserType9 = ^tagARRAYDESC; {*}
928
 
  PUserType3 = ^TGUID; {*}
929
 
  PWord1 = ^Word; {*}
930
 
  PPWord1 = ^PWord1; {*}
931
 
  PUserType4 = ^TGUID; {*}
932
 
  PUserType5 = ^tagTYPEATTR; {*}
933
 
  PUserType6 = ^tagFUNCDESC; {*}
934
 
  PUserType7 = ^tagVARDESC; {*}
935
 
  PUserType10 = ^tagTLIBATTR; {*}
936
 
  PUserType11 = ^_ads_object_info; {*}
937
 
  PUserType12 = ^_ads_attr_info; {*}
938
 
  PUserType13 = ^ads_searchpref_info; {*}
939
 
  PUserType14 = ^ads_search_column; {*}
940
 
  PUserType15 = ^_ads_attr_def; {*}
941
 
  PPUserType1 = ^PUserType15; {*}
942
 
  PUINT1 = ^LongWord; {*}
943
 
  PUserType16 = ^_ads_class_def; {*}
944
 
  PPUserType2 = ^PUserType16; {*}
945
 
 
946
 
  ADSTYPEENUM = __MIDL___MIDL_itf_ads_0000_0001;
947
 
 
948
 
  __MIDL___MIDL_itf_ads_0000_0002 = packed record
949
 
    dwLength: LongWord;
950
 
    lpValue: ^Byte;
951
 
  end;
952
 
 
953
 
  ADS_OCTET_STRING = __MIDL___MIDL_itf_ads_0000_0002;
954
 
 
955
 
  __MIDL___MIDL_itf_ads_0000_0003 = packed record
956
 
    dwLength: LongWord;
957
 
    lpValue: ^Byte;
958
 
  end;
959
 
 
960
 
  ADS_NT_SECURITY_DESCRIPTOR = __MIDL___MIDL_itf_ads_0000_0003;
961
 
 
962
 
  _SYSTEMTIME = packed record
963
 
    wYear: Word;
964
 
    wMonth: Word;
965
 
    wDayOfWeek: Word;
966
 
    wDay: Word;
967
 
    wHour: Word;
968
 
    wMinute: Word;
969
 
    wSecond: Word;
970
 
    wMilliseconds: Word;
971
 
  end;
972
 
 
973
 
  _LARGE_INTEGER = packed record
974
 
    QuadPart: Int64;
975
 
  end;
976
 
 
977
 
  __MIDL___MIDL_itf_ads_0000_0004 = packed record
978
 
    dwLength: LongWord;
979
 
    lpValue: ^Byte;
980
 
  end;
981
 
 
982
 
  ADS_PROV_SPECIFIC = __MIDL___MIDL_itf_ads_0000_0004;
983
 
 
984
 
  __MIDL___MIDL_itf_ads_0000_0005 = packed record
985
 
    Type_: LongWord;
986
 
    VolumeName: PWideChar;
987
 
    Path: PWideChar;
988
 
  end;
989
 
 
990
 
  ADS_PATH = __MIDL___MIDL_itf_ads_0000_0005;
991
 
 
992
 
  __MIDL___MIDL_itf_ads_0000_0006 = packed record
993
 
    PostalAddress: array[0..5] of PWideChar;
994
 
  end;
995
 
 
996
 
  ADS_POSTALADDRESS = __MIDL___MIDL_itf_ads_0000_0006;
997
 
 
998
 
  __MIDL___MIDL_itf_ads_0000_0007 = packed record
999
 
    WholeSeconds: LongWord;
1000
 
    EventID: LongWord;
1001
 
  end;
1002
 
 
1003
 
  ADS_TIMESTAMP = __MIDL___MIDL_itf_ads_0000_0007;
1004
 
 
1005
 
  __MIDL___MIDL_itf_ads_0000_0008 = packed record
1006
 
    RemoteID: LongWord;
1007
 
    ObjectName: PWideChar;
1008
 
  end;
1009
 
 
1010
 
  ADS_BACKLINK = __MIDL___MIDL_itf_ads_0000_0008;
1011
 
 
1012
 
  __MIDL___MIDL_itf_ads_0000_0009 = packed record
1013
 
    ObjectName: PWideChar;
1014
 
    Level: LongWord;
1015
 
    Interval: LongWord;
1016
 
  end;
1017
 
 
1018
 
  ADS_TYPEDNAME = __MIDL___MIDL_itf_ads_0000_0009;
1019
 
 
1020
 
  __MIDL___MIDL_itf_ads_0000_0010 = packed record
1021
 
    ObjectName: PWideChar;
1022
 
    Amount: LongWord;
1023
 
  end;
1024
 
 
1025
 
  ADS_HOLD = __MIDL___MIDL_itf_ads_0000_0010;
1026
 
 
1027
 
  __MIDL___MIDL_itf_ads_0000_0011 = packed record
1028
 
    AddressType: LongWord;
1029
 
    AddressLength: LongWord;
1030
 
    Address: ^Byte;
1031
 
  end;
1032
 
 
1033
 
  ADS_NETADDRESS = __MIDL___MIDL_itf_ads_0000_0011;
1034
 
 
1035
 
  __MIDL___MIDL_itf_ads_0000_0012 = packed record
1036
 
    ServerName: PWideChar;
1037
 
    ReplicaType: LongWord;
1038
 
    ReplicaNumber: LongWord;
1039
 
    Count: LongWord;
1040
 
    ReplicaAddressHints: ^__MIDL___MIDL_itf_ads_0000_0011;
1041
 
  end;
1042
 
 
1043
 
  ADS_REPLICAPOINTER = __MIDL___MIDL_itf_ads_0000_0012;
1044
 
 
1045
 
  __MIDL___MIDL_itf_ads_0000_0013 = packed record
1046
 
    TelephoneNumber: PWideChar;
1047
 
    NumberOfBits: LongWord;
1048
 
    Parameters: ^Byte;
1049
 
  end;
1050
 
 
1051
 
  ADS_FAXNUMBER = __MIDL___MIDL_itf_ads_0000_0013;
1052
 
 
1053
 
  __MIDL___MIDL_itf_ads_0000_0014 = packed record
1054
 
    Address: PWideChar;
1055
 
    Type_: LongWord;
1056
 
  end;
1057
 
 
1058
 
  ADS_EMAIL = __MIDL___MIDL_itf_ads_0000_0014;
1059
 
 
1060
 
  __MIDL___MIDL_itf_ads_0000_0015 = packed record
1061
 
    dwLength: LongWord;
1062
 
    lpBinaryValue: ^Byte;
1063
 
    pszDNString: PWideChar;
1064
 
  end;
1065
 
 
1066
 
  ADS_DN_WITH_BINARY = __MIDL___MIDL_itf_ads_0000_0015;
1067
 
 
1068
 
  __MIDL___MIDL_itf_ads_0000_0016 = packed record
1069
 
    pszStringValue: PWideChar;
1070
 
    pszDNString: PWideChar;
1071
 
  end;
1072
 
 
1073
 
  ADS_DN_WITH_STRING = __MIDL___MIDL_itf_ads_0000_0016;
1074
 
 
1075
 
  _ADS_CASEIGNORE_LIST = packed record
1076
 
    Next: PUserType1;
1077
 
    String_: PWideChar;
1078
 
  end;
1079
 
 
1080
 
  _ADS_OCTET_LIST = packed record
1081
 
    Next: PUserType2;
1082
 
    Length: LongWord;
1083
 
    Data: ^Byte;
1084
 
  end;
1085
 
 
1086
 
  __MIDL___MIDL_itf_ads_0000_0017 = record
1087
 
    case Integer of
1088
 
      0: (DNString: PWideChar);
1089
 
      1: (CaseExactString: PWideChar);
1090
 
      2: (CaseIgnoreString: PWideChar);
1091
 
      3: (PrintableString: PWideChar);
1092
 
      4: (NumericString: PWideChar);
1093
 
      5: (Boolean: LongWord);
1094
 
      6: (Integer: LongWord);
1095
 
      7: (OctetString: ADS_OCTET_STRING);
1096
 
      8: (UTCTime: _SYSTEMTIME);
1097
 
      9: (LargeInteger: _LARGE_INTEGER);
1098
 
      10: (ClassName: PWideChar);
1099
 
      11: (ProviderSpecific: ADS_PROV_SPECIFIC);
1100
 
      12: (pCaseIgnoreList: ^_ADS_CASEIGNORE_LIST);
1101
 
      13: (pOctetList: ^_ADS_OCTET_LIST);
1102
 
      14: (pPath: ^__MIDL___MIDL_itf_ads_0000_0005);
1103
 
      15: (pPostalAddress: ^__MIDL___MIDL_itf_ads_0000_0006);
1104
 
      16: (Timestamp: ADS_TIMESTAMP);
1105
 
      17: (BackLink: ADS_BACKLINK);
1106
 
      18: (pTypedName: ^__MIDL___MIDL_itf_ads_0000_0009);
1107
 
      19: (Hold: ADS_HOLD);
1108
 
      20: (pNetAddress: ^__MIDL___MIDL_itf_ads_0000_0011);
1109
 
      21: (pReplicaPointer: ^__MIDL___MIDL_itf_ads_0000_0012);
1110
 
      22: (pFaxNumber: ^__MIDL___MIDL_itf_ads_0000_0013);
1111
 
      23: (Email: ADS_EMAIL);
1112
 
      24: (SecurityDescriptor: ADS_NT_SECURITY_DESCRIPTOR);
1113
 
      25: (pDNWithBinary: ^__MIDL___MIDL_itf_ads_0000_0015);
1114
 
      26: (pDNWithString: ^__MIDL___MIDL_itf_ads_0000_0016);
1115
 
  end;
1116
 
 
1117
 
  ADS_AUTHENTICATION_ENUM = __MIDL___MIDL_itf_ads_0000_0018;
1118
 
 
1119
 
  _ads_object_info = packed record
1120
 
    pszRDN: PWideChar;
1121
 
    pszObjectDN: PWideChar;
1122
 
    pszParentDN: PWideChar;
1123
 
    pszSchemaDN: PWideChar;
1124
 
    pszClassName: PWideChar;
1125
 
  end;
1126
 
 
1127
 
  ADS_STATUSENUM = __MIDL___MIDL_itf_ads_0000_0019;
1128
 
  ADS_DEREFENUM = __MIDL___MIDL_itf_ads_0000_0020;
1129
 
  ADS_SCOPEENUM = __MIDL___MIDL_itf_ads_0000_0021;
1130
 
  ADS_PREFERENCES_ENUM = __MIDL___MIDL_itf_ads_0000_0022;
1131
 
  ADSI_DIALECT_ENUM = __MIDL___MIDL_itf_ads_0000_0023;
1132
 
  ADS_CHASE_REFERRALS_ENUM = __MIDL___MIDL_itf_ads_0000_0024;
1133
 
  ADS_SEARCHPREF_ENUM = __MIDL___MIDL_itf_ads_0000_0025;
1134
 
 
1135
 
  _adsvalue = packed record
1136
 
    dwType: ADSTYPEENUM;
1137
 
    __MIDL_0010: __MIDL___MIDL_itf_ads_0000_0017;
1138
 
  end;
1139
 
 
1140
 
  ads_search_column = packed record
1141
 
    pszAttrName: PWideChar;
1142
 
    dwADsType: ADSTYPEENUM;
1143
 
    pADsValues: ^_adsvalue;
1144
 
    dwNumValues: LongWord;
1145
 
    hReserved: Pointer;
1146
 
  end;
1147
 
 
1148
 
  _ads_attr_def = packed record
1149
 
    pszAttrName: PWideChar;
1150
 
    dwADsType: ADSTYPEENUM;
1151
 
    dwMinRange: LongWord;
1152
 
    dwMaxRange: LongWord;
1153
 
    fMultiValued: Integer;
1154
 
  end;
1155
 
 
1156
 
  _ads_sortkey = packed record
1157
 
    pszAttrType: PWideChar;
1158
 
    pszReserved: PWideChar;
1159
 
    fReverseorder: Shortint;
1160
 
  end;
1161
 
 
1162
 
  ADS_PROPERTY_OPERATION_ENUM = __MIDL___MIDL_itf_ads_0000_0026;
1163
 
 
1164
 
  __MIDL_IOleAutomationTypes_0005 = record
1165
 
    case Integer of
1166
 
      0: (lptdesc: PUserType8);
1167
 
      1: (lpadesc: PUserType9);
1168
 
      2: (hreftype: LongWord);
1169
 
  end;
1170
 
 
1171
 
  tagTYPEDESC = packed record
1172
 
    __MIDL_0008: __MIDL_IOleAutomationTypes_0005;
1173
 
    vt: Word;
1174
 
  end;
1175
 
 
1176
 
  tagSAFEARRAYBOUND = packed record
1177
 
    cElements: LongWord;
1178
 
    lLbound: Integer;
1179
 
  end;
1180
 
 
1181
 
  ULONG_PTR = LongWord;
1182
 
 
1183
 
  tagIDLDESC = packed record
1184
 
    dwReserved: ULONG_PTR;
1185
 
    wIDLFlags: Word;
1186
 
  end;
1187
 
 
1188
 
  DWORD = LongWord;
1189
 
 
1190
 
  tagPARAMDESCEX = packed record
1191
 
    cBytes: LongWord;
1192
 
    varDefaultValue: OleVariant;
1193
 
  end;
1194
 
 
1195
 
  tagPARAMDESC = packed record
1196
 
    pparamdescex: ^tagPARAMDESCEX;
1197
 
    wParamFlags: Word;
1198
 
  end;
1199
 
 
1200
 
  tagELEMDESC = packed record
1201
 
    tdesc: tagTYPEDESC;
1202
 
    paramdesc: tagPARAMDESC;
1203
 
  end;
1204
 
 
1205
 
  tagFUNCDESC = packed record
1206
 
    memid: Integer;
1207
 
    lprgscode: ^SCODE;
1208
 
    lprgelemdescParam: ^tagELEMDESC;
1209
 
    funckind: tagFUNCKIND;
1210
 
    invkind: tagINVOKEKIND;
1211
 
    callconv: tagCALLCONV;
1212
 
    cParams: Smallint;
1213
 
    cParamsOpt: Smallint;
1214
 
    oVft: Smallint;
1215
 
    cScodes: Smallint;
1216
 
    elemdescFunc: tagELEMDESC;
1217
 
    wFuncFlags: Word;
1218
 
  end;
1219
 
 
1220
 
  __MIDL_IOleAutomationTypes_0006 = record
1221
 
    case Integer of
1222
 
      0: (oInst: LongWord);
1223
 
      1: (lpvarValue: ^OleVariant);
1224
 
  end;
1225
 
 
1226
 
  tagVARDESC = packed record
1227
 
    memid: Integer;
1228
 
    lpstrSchema: PWideChar;
1229
 
    __MIDL_0009: __MIDL_IOleAutomationTypes_0006;
1230
 
    elemdescVar: tagELEMDESC;
1231
 
    wVarFlags: Word;
1232
 
    varkind: tagVARKIND;
1233
 
  end;
1234
 
 
1235
 
  tagTLIBATTR = packed record
1236
 
    GUID: TGUID;
1237
 
    lcid: LongWord;
1238
 
    syskind: tagSYSKIND;
1239
 
    wMajorVerNum: Word;
1240
 
    wMinorVerNum: Word;
1241
 
    wLibFlags: Word;
1242
 
  end;
1243
 
 
1244
 
  ADS_SYSTEMFLAG_ENUM = __MIDL___MIDL_itf_ads_0120_0001;
1245
 
  ADS_GROUP_TYPE_ENUM = __MIDL___MIDL_itf_ads_0126_0001;
1246
 
  ADS_RIGHTS_ENUM = __MIDL___MIDL_itf_ads_0148_0001;
1247
 
  ADS_ACETYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0002;
1248
 
  ADS_ACEFLAG_ENUM = __MIDL___MIDL_itf_ads_0148_0003;
1249
 
  ADS_FLAGTYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0004;
1250
 
  ADS_SD_CONTROL_ENUM = __MIDL___MIDL_itf_ads_0148_0005;
1251
 
  ADS_SD_REVISION_ENUM = __MIDL___MIDL_itf_ads_0148_0006;
1252
 
  ADS_NAME_TYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0001;
1253
 
  ADS_NAME_INITTYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0002;
1254
 
  ADS_OPTION_ENUM = __MIDL___MIDL_itf_ads_0163_0001;
1255
 
  ADS_SECURITY_INFO_ENUM = __MIDL___MIDL_itf_ads_0163_0002;
1256
 
  ADS_SETTYPE_ENUM = __MIDL___MIDL_itf_ads_0164_0001;
1257
 
  ADS_FORMAT_ENUM = __MIDL___MIDL_itf_ads_0164_0002;
1258
 
  ADS_DISPLAY_ENUM = __MIDL___MIDL_itf_ads_0164_0003;
1259
 
  ADS_ESCAPE_MODE_ENUM = __MIDL___MIDL_itf_ads_0164_0004;
1260
 
 
1261
 
  _ads_attr_info = packed record
1262
 
    pszAttrName: PWideChar;
1263
 
    dwControlCode: LongWord;
1264
 
    dwADsType: ADSTYPEENUM;
1265
 
    pADsValues: ^_adsvalue;
1266
 
    dwNumValues: LongWord;
1267
 
  end;
1268
 
 
1269
 
  ads_searchpref_info = packed record
1270
 
    dwSearchPref: ADS_SEARCHPREF_ENUM;
1271
 
    vValue: _adsvalue;
1272
 
    dwStatus: ADS_STATUSENUM;
1273
 
  end;
1274
 
 
1275
 
  _ads_class_def = packed record
1276
 
    pszClassName: PWideChar;
1277
 
    dwMandatoryAttrs: LongWord;
1278
 
    ppszMandatoryAttrs: ^PWideChar;
1279
 
    optionalAttrs: LongWord;
1280
 
    ppszOptionalAttrs: ^PPWideChar1;
1281
 
    dwNamingAttrs: LongWord;
1282
 
    ppszNamingAttrs: ^PPWideChar1;
1283
 
    dwSuperClasses: LongWord;
1284
 
    ppszSuperClasses: ^PPWideChar1;
1285
 
    fIsContainer: Integer;
1286
 
  end;
1287
 
 
1288
 
  tagTYPEATTR = packed record
1289
 
    GUID: TGUID;
1290
 
    lcid: LongWord;
1291
 
    dwReserved: LongWord;
1292
 
    memidConstructor: Integer;
1293
 
    memidDestructor: Integer;
1294
 
    lpstrSchema: PWideChar;
1295
 
    cbSizeInstance: LongWord;
1296
 
    typekind: tagTYPEKIND;
1297
 
    cFuncs: Word;
1298
 
    cVars: Word;
1299
 
    cImplTypes: Word;
1300
 
    cbSizeVft: Word;
1301
 
    cbAlignment: Word;
1302
 
    wTypeFlags: Word;
1303
 
    wMajorVerNum: Word;
1304
 
    wMinorVerNum: Word;
1305
 
    tdescAlias: tagTYPEDESC;
1306
 
    idldescType: tagIDLDESC;
1307
 
  end;
1308
 
 
1309
 
  tagARRAYDESC = packed record
1310
 
    tdescElem: tagTYPEDESC;
1311
 
    cDims: Word;
1312
 
    rgbounds: ^tagSAFEARRAYBOUND;
1313
 
  end;
1314
 
 
1315
 
// *********************************************************************//
1316
 
// Interface: IADs
1317
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1318
 
// GUID:      {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
1319
 
// *********************************************************************//
1320
 
  IADs = interface(IDispatch)
1321
 
    ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
1322
 
    function  Get_Name: WideString; safecall;
1323
 
    function  Get_Class_: WideString; safecall;
1324
 
    function  Get_GUID: WideString; safecall;
1325
 
    function  Get_ADsPath: WideString; safecall;
1326
 
    function  Get_Parent: WideString; safecall;
1327
 
    function  Get_Schema: WideString; safecall;
1328
 
    procedure GetInfo; safecall;
1329
 
    procedure SetInfo; safecall;
1330
 
    function  Get(const bstrName: WideString): OleVariant; safecall;
1331
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); safecall;
1332
 
    function  GetEx(const bstrName: WideString): OleVariant; safecall;
1333
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); safecall;
1334
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); safecall;
1335
 
    property Name: WideString read Get_Name;
1336
 
    property Class_: WideString read Get_Class_;
1337
 
    property GUID: WideString read Get_GUID;
1338
 
    property ADsPath: WideString read Get_ADsPath;
1339
 
    property Parent: WideString read Get_Parent;
1340
 
    property Schema: WideString read Get_Schema;
1341
 
  end;
1342
 
 
1343
 
// *********************************************************************//
1344
 
// DispIntf:  IADsDisp
1345
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1346
 
// GUID:      {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
1347
 
// *********************************************************************//
1348
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1349
 
  IADsDisp = dispinterface
1350
 
    ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
1351
 
    property Name: WideString readonly dispid 2;
1352
 
    property Class_: WideString readonly dispid 3;
1353
 
    property GUID: WideString readonly dispid 4;
1354
 
    property ADsPath: WideString readonly dispid 5;
1355
 
    property Parent: WideString readonly dispid 6;
1356
 
    property Schema: WideString readonly dispid 7;
1357
 
    procedure GetInfo; dispid 8;
1358
 
    procedure SetInfo; dispid 9;
1359
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
1360
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
1361
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
1362
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
1363
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
1364
 
  end;
1365
 
  {$endif}
1366
 
// *********************************************************************//
1367
 
// Interface: IADsContainer
1368
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1369
 
// GUID:      {001677D0-FD16-11CE-ABC4-02608C9E7553}
1370
 
// *********************************************************************//
1371
 
  IADsContainer = interface(IDispatch)
1372
 
    ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
1373
 
    function  Get_Count: Integer; safecall;
1374
 
    function  Get__NewEnum: IUnknown; safecall;
1375
 
    function  Get_Filter: OleVariant; safecall;
1376
 
    procedure Set_Filter(pVar: OleVariant); safecall;
1377
 
    function  Get_Hints: OleVariant; safecall;
1378
 
    procedure Set_Hints(pvFilter: OleVariant); safecall;
1379
 
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
1380
 
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
1381
 
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); safecall;
1382
 
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
1383
 
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
1384
 
    property Count: Integer read Get_Count;
1385
 
    property _NewEnum: IUnknown read Get__NewEnum;
1386
 
    property Filter: OleVariant read Get_Filter write Set_Filter;
1387
 
    property Hints: OleVariant read Get_Hints write Set_Hints;
1388
 
  end;
1389
 
 
1390
 
// *********************************************************************//
1391
 
// DispIntf:  IADsContainerDisp
1392
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1393
 
// GUID:      {001677D0-FD16-11CE-ABC4-02608C9E7553}
1394
 
// *********************************************************************//
1395
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1396
 
  IADsContainerDisp = dispinterface
1397
 
    ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
1398
 
    property Count: Integer readonly dispid 2;
1399
 
    property _NewEnum: IUnknown readonly dispid -4;
1400
 
    property Filter: OleVariant dispid 3;
1401
 
    property Hints: OleVariant dispid 4;
1402
 
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 5;
1403
 
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 6;
1404
 
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); dispid 7;
1405
 
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 8;
1406
 
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 9;
1407
 
  end;
1408
 
  {$endif}
1409
 
// *********************************************************************//
1410
 
// Interface: IADsCollection
1411
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1412
 
// GUID:      {72B945E0-253B-11CF-A988-00AA006BC149}
1413
 
// *********************************************************************//
1414
 
  IADsCollection = interface(IDispatch)
1415
 
    ['{72B945E0-253B-11CF-A988-00AA006BC149}']
1416
 
    function  Get__NewEnum: IUnknown; safecall;
1417
 
    procedure Add(const bstrName: WideString; vItem: OleVariant); safecall;
1418
 
    procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
1419
 
    function  GetObject(const bstrName: WideString): OleVariant; safecall;
1420
 
    property _NewEnum: IUnknown read Get__NewEnum;
1421
 
  end;
1422
 
 
1423
 
// *********************************************************************//
1424
 
// DispIntf:  IADsCollectionDisp
1425
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1426
 
// GUID:      {72B945E0-253B-11CF-A988-00AA006BC149}
1427
 
// *********************************************************************//
1428
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1429
 
  IADsCollectionDisp = dispinterface
1430
 
    ['{72B945E0-253B-11CF-A988-00AA006BC149}']
1431
 
    property _NewEnum: IUnknown readonly dispid -4;
1432
 
    procedure Add(const bstrName: WideString; vItem: OleVariant); dispid 4;
1433
 
    procedure Remove(const bstrItemToBeRemoved: WideString); dispid 5;
1434
 
    function  GetObject(const bstrName: WideString): OleVariant; dispid 6;
1435
 
  end;
1436
 
  {$endif}
1437
 
// *********************************************************************//
1438
 
// Interface: IADsMembers
1439
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1440
 
// GUID:      {451A0030-72EC-11CF-B03B-00AA006E0975}
1441
 
// *********************************************************************//
1442
 
  IADsMembers = interface(IDispatch)
1443
 
    ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
1444
 
    function  Get_Count: Integer; safecall;
1445
 
    function  Get__NewEnum: IUnknown; safecall;
1446
 
    function  Get_Filter: OleVariant; safecall;
1447
 
    procedure Set_Filter(pvFilter: OleVariant); safecall;
1448
 
    property Count: Integer read Get_Count;
1449
 
    property _NewEnum: IUnknown read Get__NewEnum;
1450
 
    property Filter: OleVariant read Get_Filter write Set_Filter;
1451
 
  end;
1452
 
 
1453
 
// *********************************************************************//
1454
 
// DispIntf:  IADsMembersDisp
1455
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1456
 
// GUID:      {451A0030-72EC-11CF-B03B-00AA006E0975}
1457
 
// *********************************************************************//
1458
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1459
 
  IADsMembersDisp = dispinterface
1460
 
    ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
1461
 
    property Count: Integer readonly dispid 2;
1462
 
    property _NewEnum: IUnknown readonly dispid -4;
1463
 
    property Filter: OleVariant dispid 3;
1464
 
  end;
1465
 
  {$endif}
1466
 
// *********************************************************************//
1467
 
// Interface: IADsPropertyList
1468
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1469
 
// GUID:      {C6F602B6-8F69-11D0-8528-00C04FD8D503}
1470
 
// *********************************************************************//
1471
 
  IADsPropertyList = interface(IDispatch)
1472
 
    ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
1473
 
    function  Get_PropertyCount: Integer; safecall;
1474
 
    function  Next: OleVariant; safecall;
1475
 
    procedure Skip(cElements: Integer); safecall;
1476
 
    procedure Reset; safecall;
1477
 
    function  Item(varIndex: OleVariant): OleVariant; safecall;
1478
 
    function  GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; safecall;
1479
 
    procedure PutPropertyItem(varData: OleVariant); safecall;
1480
 
    procedure ResetPropertyItem(varEntry: OleVariant); safecall;
1481
 
    procedure PurgePropertyList; safecall;
1482
 
    property PropertyCount: Integer read Get_PropertyCount;
1483
 
  end;
1484
 
 
1485
 
// *********************************************************************//
1486
 
// DispIntf:  IADsPropertyListDisp
1487
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1488
 
// GUID:      {C6F602B6-8F69-11D0-8528-00C04FD8D503}
1489
 
// *********************************************************************//
1490
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1491
 
  IADsPropertyListDisp = dispinterface
1492
 
    ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
1493
 
    property PropertyCount: Integer readonly dispid 2;
1494
 
    function  Next: OleVariant; dispid 3;
1495
 
    procedure Skip(cElements: Integer); dispid 4;
1496
 
    procedure Reset; dispid 5;
1497
 
    function  Item(varIndex: OleVariant): OleVariant; dispid 0;
1498
 
    function  GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; dispid 6;
1499
 
    procedure PutPropertyItem(varData: OleVariant); dispid 7;
1500
 
    procedure ResetPropertyItem(varEntry: OleVariant); dispid 8;
1501
 
    procedure PurgePropertyList; dispid 9;
1502
 
  end;
1503
 
  {$endif}
1504
 
// *********************************************************************//
1505
 
// Interface: IADsPropertyEntry
1506
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1507
 
// GUID:      {05792C8E-941F-11D0-8529-00C04FD8D503}
1508
 
// *********************************************************************//
1509
 
  IADsPropertyEntry = interface(IDispatch)
1510
 
    ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
1511
 
    procedure Clear; safecall;
1512
 
    function  Get_Name: WideString; safecall;
1513
 
    procedure Set_Name(const retval: WideString); safecall;
1514
 
    function  Get_ADsType: Integer; safecall;
1515
 
    procedure Set_ADsType(retval: Integer); safecall;
1516
 
    function  Get_ControlCode: Integer; safecall;
1517
 
    procedure Set_ControlCode(retval: Integer); safecall;
1518
 
    function  Get_Values: OleVariant; safecall;
1519
 
    procedure Set_Values(retval: OleVariant); safecall;
1520
 
    property Name: WideString read Get_Name write Set_Name;
1521
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
1522
 
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
1523
 
    property Values: OleVariant read Get_Values write Set_Values;
1524
 
  end;
1525
 
 
1526
 
// *********************************************************************//
1527
 
// DispIntf:  IADsPropertyEntryDisp
1528
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1529
 
// GUID:      {05792C8E-941F-11D0-8529-00C04FD8D503}
1530
 
// *********************************************************************//
1531
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1532
 
  IADsPropertyEntryDisp = dispinterface
1533
 
    ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
1534
 
    procedure Clear; dispid 1;
1535
 
    property Name: WideString dispid 2;
1536
 
    property ADsType: Integer dispid 3;
1537
 
    property ControlCode: Integer dispid 4;
1538
 
    property Values: OleVariant dispid 5;
1539
 
  end;
1540
 
  {$endif}
1541
 
// *********************************************************************//
1542
 
// Interface: IADsPropertyValue
1543
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1544
 
// GUID:      {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
1545
 
// *********************************************************************//
1546
 
  IADsPropertyValue = interface(IDispatch)
1547
 
    ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
1548
 
    procedure Clear; safecall;
1549
 
    function  Get_ADsType: Integer; safecall;
1550
 
    procedure Set_ADsType(retval: Integer); safecall;
1551
 
    function  Get_DNString: WideString; safecall;
1552
 
    procedure Set_DNString(const retval: WideString); safecall;
1553
 
    function  Get_CaseExactString: WideString; safecall;
1554
 
    procedure Set_CaseExactString(const retval: WideString); safecall;
1555
 
    function  Get_CaseIgnoreString: WideString; safecall;
1556
 
    procedure Set_CaseIgnoreString(const retval: WideString); safecall;
1557
 
    function  Get_PrintableString: WideString; safecall;
1558
 
    procedure Set_PrintableString(const retval: WideString); safecall;
1559
 
    function  Get_NumericString: WideString; safecall;
1560
 
    procedure Set_NumericString(const retval: WideString); safecall;
1561
 
    function  Get_Boolean: Integer; safecall;
1562
 
    procedure Set_Boolean(retval: Integer); safecall;
1563
 
    function  Get_Integer: Integer; safecall;
1564
 
    procedure Set_Integer(retval: Integer); safecall;
1565
 
    function  Get_OctetString: OleVariant; safecall;
1566
 
    procedure Set_OctetString(retval: OleVariant); safecall;
1567
 
    function  Get_SecurityDescriptor: IDispatch; safecall;
1568
 
    procedure Set_SecurityDescriptor(const retval: IDispatch); safecall;
1569
 
    function  Get_LargeInteger: IDispatch; safecall;
1570
 
    procedure Set_LargeInteger(const retval: IDispatch); safecall;
1571
 
    function  Get_UTCTime: TDateTime; safecall;
1572
 
    procedure Set_UTCTime(retval: TDateTime); safecall;
1573
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
1574
 
    property DNString: WideString read Get_DNString write Set_DNString;
1575
 
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
1576
 
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
1577
 
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
1578
 
    property NumericString: WideString read Get_NumericString write Set_NumericString;
1579
 
    property Boolean: Integer read Get_Boolean write Set_Boolean;
1580
 
    property Integer: Integer read Get_Integer write Set_Integer;
1581
 
    property OctetString: OleVariant read Get_OctetString write Set_OctetString;
1582
 
    property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
1583
 
    property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
1584
 
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
1585
 
  end;
1586
 
 
1587
 
// *********************************************************************//
1588
 
// DispIntf:  IADsPropertyValueDisp
1589
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1590
 
// GUID:      {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
1591
 
// *********************************************************************//
1592
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1593
 
  IADsPropertyValueDisp = dispinterface
1594
 
    ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
1595
 
    procedure Clear; dispid 1;
1596
 
    property ADsType: Integer dispid 2;
1597
 
    property DNString: WideString dispid 3;
1598
 
    property CaseExactString: WideString dispid 4;
1599
 
    property CaseIgnoreString: WideString dispid 5;
1600
 
    property PrintableString: WideString dispid 6;
1601
 
    property NumericString: WideString dispid 7;
1602
 
    property Boolean: Integer dispid 8;
1603
 
    property Integer: Integer dispid 9;
1604
 
    property OctetString: OleVariant dispid 10;
1605
 
    property SecurityDescriptor: IDispatch dispid 11;
1606
 
    property LargeInteger: IDispatch dispid 12;
1607
 
    property UTCTime: TDateTime dispid 13;
1608
 
  end;
1609
 
  {$endif}
1610
 
// *********************************************************************//
1611
 
// Interface: IADsPropertyValue2
1612
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1613
 
// GUID:      {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
1614
 
// *********************************************************************//
1615
 
  IADsPropertyValue2 = interface(IDispatch)
1616
 
    ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
1617
 
    function  GetObjectProperty(var lnADsType: Integer): OleVariant; safecall;
1618
 
    procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); safecall;
1619
 
  end;
1620
 
 
1621
 
// *********************************************************************//
1622
 
// DispIntf:  IADsPropertyValue2Disp
1623
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1624
 
// GUID:      {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
1625
 
// *********************************************************************//
1626
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1627
 
  IADsPropertyValue2Disp = dispinterface
1628
 
    ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
1629
 
    function  GetObjectProperty(var lnADsType: Integer): OleVariant; dispid 1;
1630
 
    procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); dispid 2;
1631
 
  end;
1632
 
  {$endif}
1633
 
 
1634
 
// *********************************************************************//
1635
 
// Interface: IPrivateDispatch
1636
 
// Flags:     (0)
1637
 
// GUID:      {86AB4BBE-65F6-11D1-8C13-00C04FD8D503}
1638
 
// *********************************************************************//
1639
 
  IPrivateDispatch = interface(IUnknown)
1640
 
    ['{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}']
1641
 
    function  ADSIInitializeDispatchManager(dwExtensionId: Integer): HResult; stdcall;
1642
 
    function  ADSIGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
1643
 
    function  ADSIGetTypeInfo(itinfo: SYSUINT; lcid: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
1644
 
    function  ADSIGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
1645
 
                                lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
1646
 
    function  ADSIInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
1647
 
                         var pdispparams: TGUID; out pvarResult: OleVariant; out pexcepinfo: TGUID;
1648
 
                         out puArgErr: SYSUINT): HResult; stdcall;
1649
 
  end;
1650
 
 
1651
 
// *********************************************************************//
1652
 
// Interface: ITypeInfo
1653
 
// Flags:     (0)
1654
 
// GUID:      {00020401-0000-0000-C000-000000000046}
1655
 
// *********************************************************************//
1656
 
  ITypeInfo = interface(IUnknown)
1657
 
    ['{00020401-0000-0000-C000-000000000046}']
1658
 
    function  RemoteGetTypeAttr(out ppTypeAttr: PUserType5; out pDummy: DWORD): HResult; stdcall;
1659
 
    function  GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
1660
 
    function  RemoteGetFuncDesc(index: SYSUINT; out ppFuncDesc: PUserType6; out pDummy: DWORD): HResult; stdcall;
1661
 
    function  RemoteGetVarDesc(index: SYSUINT; out ppVarDesc: PUserType7; out pDummy: DWORD): HResult; stdcall;
1662
 
    function  RemoteGetNames(memid: Integer; out rgBstrNames: WideString; cMaxNames: SYSUINT;
1663
 
                             out pcNames: SYSUINT): HResult; stdcall;
1664
 
    function  GetRefTypeOfImplType(index: SYSUINT; out pRefType: LongWord): HResult; stdcall;
1665
 
    function  GetImplTypeFlags(index: SYSUINT; out pImplTypeFlags: SYSINT): HResult; stdcall;
1666
 
    function  LocalGetIDsOfNames: HResult; stdcall;
1667
 
    function  LocalInvoke: HResult; stdcall;
1668
 
    function  RemoteGetDocumentation(memid: Integer; refPtrFlags: LongWord;
1669
 
                                     out pBstrName: WideString; out pBstrDocString: WideString;
1670
 
                                     out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
1671
 
    function  RemoteGetDllEntry(memid: Integer; invkind: tagINVOKEKIND; refPtrFlags: LongWord;
1672
 
                                out pBstrDllName: WideString; out pBstrName: WideString;
1673
 
                                out pwOrdinal: Word): HResult; stdcall;
1674
 
    function  GetRefTypeInfo(hreftype: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
1675
 
    function  LocalAddressOfMember: HResult; stdcall;
1676
 
    function  RemoteCreateInstance(var riid: TGUID; out ppvObj: IUnknown): HResult; stdcall;
1677
 
    function  GetMops(memid: Integer; out pBstrMops: WideString): HResult; stdcall;
1678
 
    function  RemoteGetContainingTypeLib(out ppTLib: ITypeLib; out pIndex: SYSUINT): HResult; stdcall;
1679
 
    function  LocalReleaseTypeAttr: HResult; stdcall;
1680
 
    function  LocalReleaseFuncDesc: HResult; stdcall;
1681
 
    function  LocalReleaseVarDesc: HResult; stdcall;
1682
 
  end;
1683
 
 
1684
 
// *********************************************************************//
1685
 
// Interface: ITypeComp
1686
 
// Flags:     (0)
1687
 
// GUID:      {00020403-0000-0000-C000-000000000046}
1688
 
// *********************************************************************//
1689
 
  ITypeComp = interface(IUnknown)
1690
 
    ['{00020403-0000-0000-C000-000000000046}']
1691
 
    function  RemoteBind(szName: PWideChar; lHashVal: LongWord; wFlags: Word;
1692
 
                         out ppTInfo: ITypeInfo; out pDescKind: tagDESCKIND;
1693
 
                         out ppFuncDesc: PUserType6; out ppVarDesc: PUserType7;
1694
 
                         out ppTypeComp: ITypeComp; out pDummy: DWORD): HResult; stdcall;
1695
 
    function  RemoteBindType(szName: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
1696
 
  end;
1697
 
 
1698
 
// *********************************************************************//
1699
 
// Interface: ITypeLib
1700
 
// Flags:     (0)
1701
 
// GUID:      {00020402-0000-0000-C000-000000000046}
1702
 
// *********************************************************************//
1703
 
  ITypeLib = interface(IUnknown)
1704
 
    ['{00020402-0000-0000-C000-000000000046}']
1705
 
    function  RemoteGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
1706
 
    function  GetTypeInfo(index: SYSUINT; out ppTInfo: ITypeInfo): HResult; stdcall;
1707
 
    function  GetTypeInfoType(index: SYSUINT; out pTKind: tagTYPEKIND): HResult; stdcall;
1708
 
    function  GetTypeInfoOfGuid(var GUID: TGUID; out ppTInfo: ITypeInfo): HResult; stdcall;
1709
 
    function  RemoteGetLibAttr(out ppTLibAttr: PUserType10; out pDummy: DWORD): HResult; stdcall;
1710
 
    function  GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
1711
 
    function  RemoteGetDocumentation(index: SYSINT; refPtrFlags: LongWord;
1712
 
                                     out pBstrName: WideString; out pBstrDocString: WideString;
1713
 
                                     out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
1714
 
    function  RemoteIsName(szNameBuf: PWideChar; lHashVal: LongWord; out pfName: Integer;
1715
 
                           out pBstrLibName: WideString): HResult; stdcall;
1716
 
    function  RemoteFindName(szNameBuf: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo;
1717
 
                             out rgMemId: Integer; var pcFound: Word; out pBstrLibName: WideString): HResult; stdcall;
1718
 
    function  LocalReleaseTLibAttr: HResult; stdcall;
1719
 
  end;
1720
 
 
1721
 
// *********************************************************************//
1722
 
// Interface: IPrivateUnknown
1723
 
// Flags:     (0)
1724
 
// GUID:      {89126BAB-6EAD-11D1-8C18-00C04FD8D503}
1725
 
// *********************************************************************//
1726
 
  IPrivateUnknown = interface(IUnknown)
1727
 
    ['{89126BAB-6EAD-11D1-8C18-00C04FD8D503}']
1728
 
    function  ADSIInitializeObject(const lpszUserName: WideString; const lpszPassword: WideString;
1729
 
                                   lnReserved: Integer): HResult; stdcall;
1730
 
    function  ADSIReleaseObject: HResult; stdcall;
1731
 
  end;
1732
 
 
1733
 
// *********************************************************************//
1734
 
// Interface: IADsExtension
1735
 
// Flags:     (0)
1736
 
// GUID:      {3D35553C-D2B0-11D1-B17B-0000F87593A0}
1737
 
// *********************************************************************//
1738
 
  IADsExtension = interface(IUnknown)
1739
 
    ['{3D35553C-D2B0-11D1-B17B-0000F87593A0}']
1740
 
    function  Operate(dwCode: LongWord; varData1: OleVariant; varData2: OleVariant;
1741
 
                      varData3: OleVariant): HResult; stdcall;
1742
 
    function  PrivateGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
1743
 
                                   lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
1744
 
    function  PrivateInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
1745
 
                            var pdispparams: TGUID; out pvarResult: OleVariant;
1746
 
                            out pexcepinfo: TGUID; out puArgErr: SYSUINT): HResult; stdcall;
1747
 
  end;
1748
 
 
1749
 
// *********************************************************************//
1750
 
// Interface: IADsDeleteOps
1751
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1752
 
// GUID:      {B2BD0902-8878-11D1-8C21-00C04FD8D503}
1753
 
// *********************************************************************//
1754
 
  IADsDeleteOps = interface(IDispatch)
1755
 
    ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
1756
 
    procedure DeleteObject(lnFlags: Integer); safecall;
1757
 
  end;
1758
 
 
1759
 
// *********************************************************************//
1760
 
// DispIntf:  IADsDeleteOpsDisp
1761
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1762
 
// GUID:      {B2BD0902-8878-11D1-8C21-00C04FD8D503}
1763
 
// *********************************************************************//
1764
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1765
 
  IADsDeleteOpsDisp = dispinterface
1766
 
    ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
1767
 
    procedure DeleteObject(lnFlags: Integer); dispid 2;
1768
 
  end;
1769
 
  {$endif}
1770
 
// *********************************************************************//
1771
 
// Interface: IADsNamespaces
1772
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1773
 
// GUID:      {28B96BA0-B330-11CF-A9AD-00AA006BC149}
1774
 
// *********************************************************************//
1775
 
  IADsNamespaces = interface(IADs)
1776
 
    ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
1777
 
    function  Get_DefaultContainer: WideString; safecall;
1778
 
    procedure Set_DefaultContainer(const retval: WideString); safecall;
1779
 
    property DefaultContainer: WideString read Get_DefaultContainer write Set_DefaultContainer;
1780
 
  end;
1781
 
 
1782
 
// *********************************************************************//
1783
 
// DispIntf:  IADsNamespacesDisp
1784
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1785
 
// GUID:      {28B96BA0-B330-11CF-A9AD-00AA006BC149}
1786
 
// *********************************************************************//
1787
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1788
 
  IADsNamespacesDisp = dispinterface
1789
 
    ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
1790
 
    property DefaultContainer: WideString dispid 1;
1791
 
    property Name: WideString readonly dispid 2;
1792
 
    property Class_: WideString readonly dispid 3;
1793
 
    property GUID: WideString readonly dispid 4;
1794
 
    property ADsPath: WideString readonly dispid 5;
1795
 
    property Parent: WideString readonly dispid 6;
1796
 
    property Schema: WideString readonly dispid 7;
1797
 
    procedure GetInfo; dispid 8;
1798
 
    procedure SetInfo; dispid 9;
1799
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
1800
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
1801
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
1802
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
1803
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
1804
 
  end;
1805
 
  {$endif}
1806
 
 
1807
 
// *********************************************************************//
1808
 
// Interface: IADsClass
1809
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1810
 
// GUID:      {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
1811
 
// *********************************************************************//
1812
 
  IADsClass = interface(IADs)
1813
 
    ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
1814
 
    function  Get_PrimaryInterface: WideString; safecall;
1815
 
    function  Get_CLSID: WideString; safecall;
1816
 
    procedure Set_CLSID(const retval: WideString); safecall;
1817
 
    function  Get_OID: WideString; safecall;
1818
 
    procedure Set_OID(const retval: WideString); safecall;
1819
 
    function  Get_Abstract: WordBool; safecall;
1820
 
    procedure Set_Abstract(retval: WordBool); safecall;
1821
 
    function  Get_Auxiliary: WordBool; safecall;
1822
 
    procedure Set_Auxiliary(retval: WordBool); safecall;
1823
 
    function  Get_MandatoryProperties: OleVariant; safecall;
1824
 
    procedure Set_MandatoryProperties(retval: OleVariant); safecall;
1825
 
    function  Get_OptionalProperties: OleVariant; safecall;
1826
 
    procedure Set_OptionalProperties(retval: OleVariant); safecall;
1827
 
    function  Get_NamingProperties: OleVariant; safecall;
1828
 
    procedure Set_NamingProperties(retval: OleVariant); safecall;
1829
 
    function  Get_DerivedFrom: OleVariant; safecall;
1830
 
    procedure Set_DerivedFrom(retval: OleVariant); safecall;
1831
 
    function  Get_AuxDerivedFrom: OleVariant; safecall;
1832
 
    procedure Set_AuxDerivedFrom(retval: OleVariant); safecall;
1833
 
    function  Get_PossibleSuperiors: OleVariant; safecall;
1834
 
    procedure Set_PossibleSuperiors(retval: OleVariant); safecall;
1835
 
    function  Get_Containment: OleVariant; safecall;
1836
 
    procedure Set_Containment(retval: OleVariant); safecall;
1837
 
    function  Get_Container: WordBool; safecall;
1838
 
    procedure Set_Container(retval: WordBool); safecall;
1839
 
    function  Get_HelpFileName: WideString; safecall;
1840
 
    procedure Set_HelpFileName(const retval: WideString); safecall;
1841
 
    function  Get_HelpFileContext: Integer; safecall;
1842
 
    procedure Set_HelpFileContext(retval: Integer); safecall;
1843
 
    function  Qualifiers: IADsCollection; safecall;
1844
 
    property PrimaryInterface: WideString read Get_PrimaryInterface;
1845
 
    property CLSID: WideString read Get_CLSID write Set_CLSID;
1846
 
    property OID: WideString read Get_OID write Set_OID;
1847
 
    property Abstract: WordBool read Get_Abstract write Set_Abstract;
1848
 
    property Auxiliary: WordBool read Get_Auxiliary write Set_Auxiliary;
1849
 
    property MandatoryProperties: OleVariant read Get_MandatoryProperties write Set_MandatoryProperties;
1850
 
    property OptionalProperties: OleVariant read Get_OptionalProperties write Set_OptionalProperties;
1851
 
    property NamingProperties: OleVariant read Get_NamingProperties write Set_NamingProperties;
1852
 
    property DerivedFrom: OleVariant read Get_DerivedFrom write Set_DerivedFrom;
1853
 
    property AuxDerivedFrom: OleVariant read Get_AuxDerivedFrom write Set_AuxDerivedFrom;
1854
 
    property PossibleSuperiors: OleVariant read Get_PossibleSuperiors write Set_PossibleSuperiors;
1855
 
    property Containment: OleVariant read Get_Containment write Set_Containment;
1856
 
    property Container: WordBool read Get_Container write Set_Container;
1857
 
    property HelpFileName: WideString read Get_HelpFileName write Set_HelpFileName;
1858
 
    property HelpFileContext: Integer read Get_HelpFileContext write Set_HelpFileContext;
1859
 
  end;
1860
 
 
1861
 
// *********************************************************************//
1862
 
// DispIntf:  IADsClassDisp
1863
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1864
 
// GUID:      {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
1865
 
// *********************************************************************//
1866
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1867
 
  IADsClassDisp = dispinterface
1868
 
    ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
1869
 
    property PrimaryInterface: WideString readonly dispid 15;
1870
 
    property CLSID: WideString dispid 16;
1871
 
    property OID: WideString dispid 17;
1872
 
    property Abstract: WordBool dispid 18;
1873
 
    property Auxiliary: WordBool dispid 26;
1874
 
    property MandatoryProperties: OleVariant dispid 19;
1875
 
    property OptionalProperties: OleVariant dispid 29;
1876
 
    property NamingProperties: OleVariant dispid 30;
1877
 
    property DerivedFrom: OleVariant dispid 20;
1878
 
    property AuxDerivedFrom: OleVariant dispid 27;
1879
 
    property PossibleSuperiors: OleVariant dispid 28;
1880
 
    property Containment: OleVariant dispid 21;
1881
 
    property Container: WordBool dispid 22;
1882
 
    property HelpFileName: WideString dispid 23;
1883
 
    property HelpFileContext: Integer dispid 24;
1884
 
    function  Qualifiers: IADsCollection; dispid 25;
1885
 
    property Name: WideString readonly dispid 2;
1886
 
    property Class_: WideString readonly dispid 3;
1887
 
    property GUID: WideString readonly dispid 4;
1888
 
    property ADsPath: WideString readonly dispid 5;
1889
 
    property Parent: WideString readonly dispid 6;
1890
 
    property Schema: WideString readonly dispid 7;
1891
 
    procedure GetInfo; dispid 8;
1892
 
    procedure SetInfo; dispid 9;
1893
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
1894
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
1895
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
1896
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
1897
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
1898
 
  end;
1899
 
  {$endif}
1900
 
// *********************************************************************//
1901
 
// Interface: IADsProperty
1902
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1903
 
// GUID:      {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
1904
 
// *********************************************************************//
1905
 
  IADsProperty = interface(IADs)
1906
 
    ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
1907
 
    function  Get_OID: WideString; safecall;
1908
 
    procedure Set_OID(const retval: WideString); safecall;
1909
 
    function  Get_Syntax: WideString; safecall;
1910
 
    procedure Set_Syntax(const retval: WideString); safecall;
1911
 
    function  Get_MaxRange: Integer; safecall;
1912
 
    procedure Set_MaxRange(retval: Integer); safecall;
1913
 
    function  Get_MinRange: Integer; safecall;
1914
 
    procedure Set_MinRange(retval: Integer); safecall;
1915
 
    function  Get_MultiValued: WordBool; safecall;
1916
 
    procedure Set_MultiValued(retval: WordBool); safecall;
1917
 
    function  Qualifiers: IADsCollection; safecall;
1918
 
    property OID: WideString read Get_OID write Set_OID;
1919
 
    property Syntax: WideString read Get_Syntax write Set_Syntax;
1920
 
    property MaxRange: Integer read Get_MaxRange write Set_MaxRange;
1921
 
    property MinRange: Integer read Get_MinRange write Set_MinRange;
1922
 
    property MultiValued: WordBool read Get_MultiValued write Set_MultiValued;
1923
 
  end;
1924
 
 
1925
 
// *********************************************************************//
1926
 
// DispIntf:  IADsPropertyDisp
1927
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1928
 
// GUID:      {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
1929
 
// *********************************************************************//
1930
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1931
 
  IADsPropertyDisp = dispinterface
1932
 
    ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
1933
 
    property OID: WideString dispid 17;
1934
 
    property Syntax: WideString dispid 18;
1935
 
    property MaxRange: Integer dispid 19;
1936
 
    property MinRange: Integer dispid 20;
1937
 
    property MultiValued: WordBool dispid 21;
1938
 
    function  Qualifiers: IADsCollection; dispid 22;
1939
 
    property Name: WideString readonly dispid 2;
1940
 
    property Class_: WideString readonly dispid 3;
1941
 
    property GUID: WideString readonly dispid 4;
1942
 
    property ADsPath: WideString readonly dispid 5;
1943
 
    property Parent: WideString readonly dispid 6;
1944
 
    property Schema: WideString readonly dispid 7;
1945
 
    procedure GetInfo; dispid 8;
1946
 
    procedure SetInfo; dispid 9;
1947
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
1948
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
1949
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
1950
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
1951
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
1952
 
  end;
1953
 
  {$endif}
1954
 
 
1955
 
// *********************************************************************//
1956
 
// Interface: IADsSyntax
1957
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1958
 
// GUID:      {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
1959
 
// *********************************************************************//
1960
 
  IADsSyntax = interface(IADs)
1961
 
    ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
1962
 
    function  Get_OleAutoDataType: Integer; safecall;
1963
 
    procedure Set_OleAutoDataType(retval: Integer); safecall;
1964
 
    property OleAutoDataType: Integer read Get_OleAutoDataType write Set_OleAutoDataType;
1965
 
  end;
1966
 
 
1967
 
// *********************************************************************//
1968
 
// DispIntf:  IADsSyntaxDisp
1969
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1970
 
// GUID:      {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
1971
 
// *********************************************************************//
1972
 
  {$ifdef SUPPORTS_DISPINTERFACE}
1973
 
  IADsSyntaxDisp = dispinterface
1974
 
    ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
1975
 
    property OleAutoDataType: Integer dispid 15;
1976
 
    property Name: WideString readonly dispid 2;
1977
 
    property Class_: WideString readonly dispid 3;
1978
 
    property GUID: WideString readonly dispid 4;
1979
 
    property ADsPath: WideString readonly dispid 5;
1980
 
    property Parent: WideString readonly dispid 6;
1981
 
    property Schema: WideString readonly dispid 7;
1982
 
    procedure GetInfo; dispid 8;
1983
 
    procedure SetInfo; dispid 9;
1984
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
1985
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
1986
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
1987
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
1988
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
1989
 
  end;
1990
 
  {$endif}
1991
 
 
1992
 
// *********************************************************************//
1993
 
// Interface: IADsLocality
1994
 
// Flags:     (4416) Dual OleAutomation Dispatchable
1995
 
// GUID:      {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
1996
 
// *********************************************************************//
1997
 
  IADsLocality = interface(IADs)
1998
 
    ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
1999
 
    function  Get_Description: WideString; safecall;
2000
 
    procedure Set_Description(const retval: WideString); safecall;
2001
 
    function  Get_LocalityName: WideString; safecall;
2002
 
    procedure Set_LocalityName(const retval: WideString); safecall;
2003
 
    function  Get_PostalAddress: WideString; safecall;
2004
 
    procedure Set_PostalAddress(const retval: WideString); safecall;
2005
 
    function  Get_SeeAlso: OleVariant; safecall;
2006
 
    procedure Set_SeeAlso(retval: OleVariant); safecall;
2007
 
    property Description: WideString read Get_Description write Set_Description;
2008
 
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
2009
 
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
2010
 
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
2011
 
  end;
2012
 
 
2013
 
// *********************************************************************//
2014
 
// DispIntf:  IADsLocalityDisp
2015
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2016
 
// GUID:      {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
2017
 
// *********************************************************************//
2018
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2019
 
  IADsLocalityDisp = dispinterface
2020
 
    ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
2021
 
    property Description: WideString dispid 15;
2022
 
    property LocalityName: WideString dispid 16;
2023
 
    property PostalAddress: WideString dispid 17;
2024
 
    property SeeAlso: OleVariant dispid 18;
2025
 
    property Name: WideString readonly dispid 2;
2026
 
    property Class_: WideString readonly dispid 3;
2027
 
    property GUID: WideString readonly dispid 4;
2028
 
    property ADsPath: WideString readonly dispid 5;
2029
 
    property Parent: WideString readonly dispid 6;
2030
 
    property Schema: WideString readonly dispid 7;
2031
 
    procedure GetInfo; dispid 8;
2032
 
    procedure SetInfo; dispid 9;
2033
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2034
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2035
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2036
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2037
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2038
 
  end;
2039
 
  {$endif}
2040
 
 
2041
 
// *********************************************************************//
2042
 
// Interface: IADsO
2043
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2044
 
// GUID:      {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
2045
 
// *********************************************************************//
2046
 
  IADsO = interface(IADs)
2047
 
    ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
2048
 
    function  Get_Description: WideString; safecall;
2049
 
    procedure Set_Description(const retval: WideString); safecall;
2050
 
    function  Get_LocalityName: WideString; safecall;
2051
 
    procedure Set_LocalityName(const retval: WideString); safecall;
2052
 
    function  Get_PostalAddress: WideString; safecall;
2053
 
    procedure Set_PostalAddress(const retval: WideString); safecall;
2054
 
    function  Get_TelephoneNumber: WideString; safecall;
2055
 
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
2056
 
    function  Get_FaxNumber: WideString; safecall;
2057
 
    procedure Set_FaxNumber(const retval: WideString); safecall;
2058
 
    function  Get_SeeAlso: OleVariant; safecall;
2059
 
    procedure Set_SeeAlso(retval: OleVariant); safecall;
2060
 
    property Description: WideString read Get_Description write Set_Description;
2061
 
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
2062
 
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
2063
 
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
2064
 
    property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
2065
 
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
2066
 
  end;
2067
 
 
2068
 
// *********************************************************************//
2069
 
// DispIntf:  IADsODisp
2070
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2071
 
// GUID:      {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
2072
 
// *********************************************************************//
2073
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2074
 
  IADsODisp = dispinterface
2075
 
    ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
2076
 
    property Description: WideString dispid 15;
2077
 
    property LocalityName: WideString dispid 16;
2078
 
    property PostalAddress: WideString dispid 17;
2079
 
    property TelephoneNumber: WideString dispid 18;
2080
 
    property FaxNumber: WideString dispid 19;
2081
 
    property SeeAlso: OleVariant dispid 20;
2082
 
    property Name: WideString readonly dispid 2;
2083
 
    property Class_: WideString readonly dispid 3;
2084
 
    property GUID: WideString readonly dispid 4;
2085
 
    property ADsPath: WideString readonly dispid 5;
2086
 
    property Parent: WideString readonly dispid 6;
2087
 
    property Schema: WideString readonly dispid 7;
2088
 
    procedure GetInfo; dispid 8;
2089
 
    procedure SetInfo; dispid 9;
2090
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2091
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2092
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2093
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2094
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2095
 
  end;
2096
 
  {$endif}
2097
 
 
2098
 
// *********************************************************************//
2099
 
// Interface: IADsOU
2100
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2101
 
// GUID:      {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
2102
 
// *********************************************************************//
2103
 
  IADsOU = interface(IADs)
2104
 
    ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
2105
 
    function  Get_Description: WideString; safecall;
2106
 
    procedure Set_Description(const retval: WideString); safecall;
2107
 
    function  Get_LocalityName: WideString; safecall;
2108
 
    procedure Set_LocalityName(const retval: WideString); safecall;
2109
 
    function  Get_PostalAddress: WideString; safecall;
2110
 
    procedure Set_PostalAddress(const retval: WideString); safecall;
2111
 
    function  Get_TelephoneNumber: WideString; safecall;
2112
 
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
2113
 
    function  Get_FaxNumber: WideString; safecall;
2114
 
    procedure Set_FaxNumber(const retval: WideString); safecall;
2115
 
    function  Get_SeeAlso: OleVariant; safecall;
2116
 
    procedure Set_SeeAlso(retval: OleVariant); safecall;
2117
 
    function  Get_BusinessCategory: WideString; safecall;
2118
 
    procedure Set_BusinessCategory(const retval: WideString); safecall;
2119
 
    property Description: WideString read Get_Description write Set_Description;
2120
 
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
2121
 
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
2122
 
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
2123
 
    property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
2124
 
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
2125
 
    property BusinessCategory: WideString read Get_BusinessCategory write Set_BusinessCategory;
2126
 
  end;
2127
 
 
2128
 
// *********************************************************************//
2129
 
// DispIntf:  IADsOUDisp
2130
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2131
 
// GUID:      {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
2132
 
// *********************************************************************//
2133
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2134
 
  IADsOUDisp = dispinterface
2135
 
    ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
2136
 
    property Description: WideString dispid 15;
2137
 
    property LocalityName: WideString dispid 16;
2138
 
    property PostalAddress: WideString dispid 17;
2139
 
    property TelephoneNumber: WideString dispid 18;
2140
 
    property FaxNumber: WideString dispid 19;
2141
 
    property SeeAlso: OleVariant dispid 20;
2142
 
    property BusinessCategory: WideString dispid 21;
2143
 
    property Name: WideString readonly dispid 2;
2144
 
    property Class_: WideString readonly dispid 3;
2145
 
    property GUID: WideString readonly dispid 4;
2146
 
    property ADsPath: WideString readonly dispid 5;
2147
 
    property Parent: WideString readonly dispid 6;
2148
 
    property Schema: WideString readonly dispid 7;
2149
 
    procedure GetInfo; dispid 8;
2150
 
    procedure SetInfo; dispid 9;
2151
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2152
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2153
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2154
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2155
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2156
 
  end;
2157
 
  {$endif}
2158
 
 
2159
 
// *********************************************************************//
2160
 
// Interface: IADsDomain
2161
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2162
 
// GUID:      {00E4C220-FD16-11CE-ABC4-02608C9E7553}
2163
 
// *********************************************************************//
2164
 
  IADsDomain = interface(IADs)
2165
 
    ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
2166
 
    function  Get_IsWorkgroup: WordBool; safecall;
2167
 
    function  Get_MinPasswordLength: Integer; safecall;
2168
 
    procedure Set_MinPasswordLength(retval: Integer); safecall;
2169
 
    function  Get_MinPasswordAge: Integer; safecall;
2170
 
    procedure Set_MinPasswordAge(retval: Integer); safecall;
2171
 
    function  Get_MaxPasswordAge: Integer; safecall;
2172
 
    procedure Set_MaxPasswordAge(retval: Integer); safecall;
2173
 
    function  Get_MaxBadPasswordsAllowed: Integer; safecall;
2174
 
    procedure Set_MaxBadPasswordsAllowed(retval: Integer); safecall;
2175
 
    function  Get_PasswordHistoryLength: Integer; safecall;
2176
 
    procedure Set_PasswordHistoryLength(retval: Integer); safecall;
2177
 
    function  Get_PasswordAttributes: Integer; safecall;
2178
 
    procedure Set_PasswordAttributes(retval: Integer); safecall;
2179
 
    function  Get_AutoUnlockInterval: Integer; safecall;
2180
 
    procedure Set_AutoUnlockInterval(retval: Integer); safecall;
2181
 
    function  Get_LockoutObservationInterval: Integer; safecall;
2182
 
    procedure Set_LockoutObservationInterval(retval: Integer); safecall;
2183
 
    property IsWorkgroup: WordBool read Get_IsWorkgroup;
2184
 
    property MinPasswordLength: Integer read Get_MinPasswordLength write Set_MinPasswordLength;
2185
 
    property MinPasswordAge: Integer read Get_MinPasswordAge write Set_MinPasswordAge;
2186
 
    property MaxPasswordAge: Integer read Get_MaxPasswordAge write Set_MaxPasswordAge;
2187
 
    property MaxBadPasswordsAllowed: Integer read Get_MaxBadPasswordsAllowed write Set_MaxBadPasswordsAllowed;
2188
 
    property PasswordHistoryLength: Integer read Get_PasswordHistoryLength write Set_PasswordHistoryLength;
2189
 
    property PasswordAttributes: Integer read Get_PasswordAttributes write Set_PasswordAttributes;
2190
 
    property AutoUnlockInterval: Integer read Get_AutoUnlockInterval write Set_AutoUnlockInterval;
2191
 
    property LockoutObservationInterval: Integer read Get_LockoutObservationInterval write Set_LockoutObservationInterval;
2192
 
  end;
2193
 
 
2194
 
// *********************************************************************//
2195
 
// DispIntf:  IADsDomainDisp
2196
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2197
 
// GUID:      {00E4C220-FD16-11CE-ABC4-02608C9E7553}
2198
 
// *********************************************************************//
2199
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2200
 
  IADsDomainDisp = dispinterface
2201
 
    ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
2202
 
    property IsWorkgroup: WordBool readonly dispid 15;
2203
 
    property MinPasswordLength: Integer dispid 16;
2204
 
    property MinPasswordAge: Integer dispid 17;
2205
 
    property MaxPasswordAge: Integer dispid 18;
2206
 
    property MaxBadPasswordsAllowed: Integer dispid 19;
2207
 
    property PasswordHistoryLength: Integer dispid 20;
2208
 
    property PasswordAttributes: Integer dispid 21;
2209
 
    property AutoUnlockInterval: Integer dispid 22;
2210
 
    property LockoutObservationInterval: Integer dispid 23;
2211
 
    property Name: WideString readonly dispid 2;
2212
 
    property Class_: WideString readonly dispid 3;
2213
 
    property GUID: WideString readonly dispid 4;
2214
 
    property ADsPath: WideString readonly dispid 5;
2215
 
    property Parent: WideString readonly dispid 6;
2216
 
    property Schema: WideString readonly dispid 7;
2217
 
    procedure GetInfo; dispid 8;
2218
 
    procedure SetInfo; dispid 9;
2219
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2220
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2221
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2222
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2223
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2224
 
  end;
2225
 
   {$endif}
2226
 
// *********************************************************************//
2227
 
// Interface: IADsComputer
2228
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2229
 
// GUID:      {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
2230
 
// *********************************************************************//
2231
 
  IADsComputer = interface(IADs)
2232
 
    ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
2233
 
    function  Get_ComputerID: WideString; safecall;
2234
 
    function  Get_Site: WideString; safecall;
2235
 
    function  Get_Description: WideString; safecall;
2236
 
    procedure Set_Description(const retval: WideString); safecall;
2237
 
    function  Get_Location: WideString; safecall;
2238
 
    procedure Set_Location(const retval: WideString); safecall;
2239
 
    function  Get_PrimaryUser: WideString; safecall;
2240
 
    procedure Set_PrimaryUser(const retval: WideString); safecall;
2241
 
    function  Get_Owner: WideString; safecall;
2242
 
    procedure Set_Owner(const retval: WideString); safecall;
2243
 
    function  Get_Division: WideString; safecall;
2244
 
    procedure Set_Division(const retval: WideString); safecall;
2245
 
    function  Get_Department: WideString; safecall;
2246
 
    procedure Set_Department(const retval: WideString); safecall;
2247
 
    function  Get_Role: WideString; safecall;
2248
 
    procedure Set_Role(const retval: WideString); safecall;
2249
 
    function  Get_OperatingSystem: WideString; safecall;
2250
 
    procedure Set_OperatingSystem(const retval: WideString); safecall;
2251
 
    function  Get_OperatingSystemVersion: WideString; safecall;
2252
 
    procedure Set_OperatingSystemVersion(const retval: WideString); safecall;
2253
 
    function  Get_Model: WideString; safecall;
2254
 
    procedure Set_Model(const retval: WideString); safecall;
2255
 
    function  Get_Processor: WideString; safecall;
2256
 
    procedure Set_Processor(const retval: WideString); safecall;
2257
 
    function  Get_ProcessorCount: WideString; safecall;
2258
 
    procedure Set_ProcessorCount(const retval: WideString); safecall;
2259
 
    function  Get_MemorySize: WideString; safecall;
2260
 
    procedure Set_MemorySize(const retval: WideString); safecall;
2261
 
    function  Get_StorageCapacity: WideString; safecall;
2262
 
    procedure Set_StorageCapacity(const retval: WideString); safecall;
2263
 
    function  Get_NetAddresses: OleVariant; safecall;
2264
 
    procedure Set_NetAddresses(retval: OleVariant); safecall;
2265
 
    property ComputerID: WideString read Get_ComputerID;
2266
 
    property Site: WideString read Get_Site;
2267
 
    property Description: WideString read Get_Description write Set_Description;
2268
 
    property Location: WideString read Get_Location write Set_Location;
2269
 
    property PrimaryUser: WideString read Get_PrimaryUser write Set_PrimaryUser;
2270
 
    property Owner: WideString read Get_Owner write Set_Owner;
2271
 
    property Division: WideString read Get_Division write Set_Division;
2272
 
    property Department: WideString read Get_Department write Set_Department;
2273
 
    property Role: WideString read Get_Role write Set_Role;
2274
 
    property OperatingSystem: WideString read Get_OperatingSystem write Set_OperatingSystem;
2275
 
    property OperatingSystemVersion: WideString read Get_OperatingSystemVersion write Set_OperatingSystemVersion;
2276
 
    property Model: WideString read Get_Model write Set_Model;
2277
 
    property Processor: WideString read Get_Processor write Set_Processor;
2278
 
    property ProcessorCount: WideString read Get_ProcessorCount write Set_ProcessorCount;
2279
 
    property MemorySize: WideString read Get_MemorySize write Set_MemorySize;
2280
 
    property StorageCapacity: WideString read Get_StorageCapacity write Set_StorageCapacity;
2281
 
    property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
2282
 
  end;
2283
 
 
2284
 
// *********************************************************************//
2285
 
// DispIntf:  IADsComputerDisp
2286
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2287
 
// GUID:      {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
2288
 
// *********************************************************************//
2289
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2290
 
  IADsComputerDisp = dispinterface
2291
 
    ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
2292
 
    property ComputerID: WideString readonly dispid 16;
2293
 
    property Site: WideString readonly dispid 18;
2294
 
    property Description: WideString dispid 19;
2295
 
    property Location: WideString dispid 20;
2296
 
    property PrimaryUser: WideString dispid 21;
2297
 
    property Owner: WideString dispid 22;
2298
 
    property Division: WideString dispid 23;
2299
 
    property Department: WideString dispid 24;
2300
 
    property Role: WideString dispid 25;
2301
 
    property OperatingSystem: WideString dispid 26;
2302
 
    property OperatingSystemVersion: WideString dispid 27;
2303
 
    property Model: WideString dispid 28;
2304
 
    property Processor: WideString dispid 29;
2305
 
    property ProcessorCount: WideString dispid 30;
2306
 
    property MemorySize: WideString dispid 31;
2307
 
    property StorageCapacity: WideString dispid 32;
2308
 
    property NetAddresses: OleVariant dispid 17;
2309
 
    property Name: WideString readonly dispid 2;
2310
 
    property Class_: WideString readonly dispid 3;
2311
 
    property GUID: WideString readonly dispid 4;
2312
 
    property ADsPath: WideString readonly dispid 5;
2313
 
    property Parent: WideString readonly dispid 6;
2314
 
    property Schema: WideString readonly dispid 7;
2315
 
    procedure GetInfo; dispid 8;
2316
 
    procedure SetInfo; dispid 9;
2317
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2318
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2319
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2320
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2321
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2322
 
  end;
2323
 
  {$endif}
2324
 
// *********************************************************************//
2325
 
// Interface: IADsComputerOperations
2326
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2327
 
// GUID:      {EF497680-1D9F-11CF-B1F3-02608C9E7553}
2328
 
// *********************************************************************//
2329
 
  IADsComputerOperations = interface(IADs)
2330
 
    ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
2331
 
    function  Status: IDispatch; safecall;
2332
 
    procedure Shutdown(bReboot: WordBool); safecall;
2333
 
  end;
2334
 
 
2335
 
// *********************************************************************//
2336
 
// DispIntf:  IADsComputerOperationsDisp
2337
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2338
 
// GUID:      {EF497680-1D9F-11CF-B1F3-02608C9E7553}
2339
 
// *********************************************************************//
2340
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2341
 
  IADsComputerOperationsDisp = dispinterface
2342
 
    ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
2343
 
    function  Status: IDispatch; dispid 33;
2344
 
    procedure Shutdown(bReboot: WordBool); dispid 34;
2345
 
    property Name: WideString readonly dispid 2;
2346
 
    property Class_: WideString readonly dispid 3;
2347
 
    property GUID: WideString readonly dispid 4;
2348
 
    property ADsPath: WideString readonly dispid 5;
2349
 
    property Parent: WideString readonly dispid 6;
2350
 
    property Schema: WideString readonly dispid 7;
2351
 
    procedure GetInfo; dispid 8;
2352
 
    procedure SetInfo; dispid 9;
2353
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2354
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2355
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2356
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2357
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2358
 
  end;
2359
 
  {$endif}
2360
 
// *********************************************************************//
2361
 
// Interface: IADsGroup
2362
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2363
 
// GUID:      {27636B00-410F-11CF-B1FF-02608C9E7553}
2364
 
// *********************************************************************//
2365
 
  IADsGroup = interface(IADs)
2366
 
    ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
2367
 
    function  Get_Description: WideString; safecall;
2368
 
    procedure Set_Description(const retval: WideString); safecall;
2369
 
    function  Members: IADsMembers; safecall;
2370
 
    function  IsMember(const bstrMember: WideString): WordBool; safecall;
2371
 
    procedure Add(const bstrNewItem: WideString); safecall;
2372
 
    procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
2373
 
    property Description: WideString read Get_Description write Set_Description;
2374
 
  end;
2375
 
 
2376
 
// *********************************************************************//
2377
 
// DispIntf:  IADsGroupDisp
2378
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2379
 
// GUID:      {27636B00-410F-11CF-B1FF-02608C9E7553}
2380
 
// *********************************************************************//
2381
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2382
 
  IADsGroupDisp = dispinterface
2383
 
    ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
2384
 
    property Description: WideString dispid 15;
2385
 
    function  Members: IADsMembers; dispid 16;
2386
 
    function  IsMember(const bstrMember: WideString): WordBool; dispid 17;
2387
 
    procedure Add(const bstrNewItem: WideString); dispid 18;
2388
 
    procedure Remove(const bstrItemToBeRemoved: WideString); dispid 19;
2389
 
    property Name: WideString readonly dispid 2;
2390
 
    property Class_: WideString readonly dispid 3;
2391
 
    property GUID: WideString readonly dispid 4;
2392
 
    property ADsPath: WideString readonly dispid 5;
2393
 
    property Parent: WideString readonly dispid 6;
2394
 
    property Schema: WideString readonly dispid 7;
2395
 
    procedure GetInfo; dispid 8;
2396
 
    procedure SetInfo; dispid 9;
2397
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2398
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2399
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2400
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2401
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2402
 
  end;
2403
 
  {$endif}
2404
 
// *********************************************************************//
2405
 
// Interface: IADsUser
2406
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2407
 
// GUID:      {3E37E320-17E2-11CF-ABC4-02608C9E7553}
2408
 
// *********************************************************************//
2409
 
  IADsUser = interface(IADs)
2410
 
    ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
2411
 
    function  Get_BadLoginAddress: WideString; safecall;
2412
 
    function  Get_BadLoginCount: Integer; safecall;
2413
 
    function  Get_LastLogin: TDateTime; safecall;
2414
 
    function  Get_LastLogoff: TDateTime; safecall;
2415
 
    function  Get_LastFailedLogin: TDateTime; safecall;
2416
 
    function  Get_PasswordLastChanged: TDateTime; safecall;
2417
 
    function  Get_Description: WideString; safecall;
2418
 
    procedure Set_Description(const retval: WideString); safecall;
2419
 
    function  Get_Division: WideString; safecall;
2420
 
    procedure Set_Division(const retval: WideString); safecall;
2421
 
    function  Get_Department: WideString; safecall;
2422
 
    procedure Set_Department(const retval: WideString); safecall;
2423
 
    function  Get_EmployeeID: WideString; safecall;
2424
 
    procedure Set_EmployeeID(const retval: WideString); safecall;
2425
 
    function  Get_FullName: WideString; safecall;
2426
 
    procedure Set_FullName(const retval: WideString); safecall;
2427
 
    function  Get_FirstName: WideString; safecall;
2428
 
    procedure Set_FirstName(const retval: WideString); safecall;
2429
 
    function  Get_LastName: WideString; safecall;
2430
 
    procedure Set_LastName(const retval: WideString); safecall;
2431
 
    function  Get_OtherName: WideString; safecall;
2432
 
    procedure Set_OtherName(const retval: WideString); safecall;
2433
 
    function  Get_NamePrefix: WideString; safecall;
2434
 
    procedure Set_NamePrefix(const retval: WideString); safecall;
2435
 
    function  Get_NameSuffix: WideString; safecall;
2436
 
    procedure Set_NameSuffix(const retval: WideString); safecall;
2437
 
    function  Get_Title: WideString; safecall;
2438
 
    procedure Set_Title(const retval: WideString); safecall;
2439
 
    function  Get_Manager: WideString; safecall;
2440
 
    procedure Set_Manager(const retval: WideString); safecall;
2441
 
    function  Get_TelephoneHome: OleVariant; safecall;
2442
 
    procedure Set_TelephoneHome(retval: OleVariant); safecall;
2443
 
    function  Get_TelephoneMobile: OleVariant; safecall;
2444
 
    procedure Set_TelephoneMobile(retval: OleVariant); safecall;
2445
 
    function  Get_TelephoneNumber: OleVariant; safecall;
2446
 
    procedure Set_TelephoneNumber(retval: OleVariant); safecall;
2447
 
    function  Get_TelephonePager: OleVariant; safecall;
2448
 
    procedure Set_TelephonePager(retval: OleVariant); safecall;
2449
 
    function  Get_FaxNumber: OleVariant; safecall;
2450
 
    procedure Set_FaxNumber(retval: OleVariant); safecall;
2451
 
    function  Get_OfficeLocations: OleVariant; safecall;
2452
 
    procedure Set_OfficeLocations(retval: OleVariant); safecall;
2453
 
    function  Get_PostalAddresses: OleVariant; safecall;
2454
 
    procedure Set_PostalAddresses(retval: OleVariant); safecall;
2455
 
    function  Get_PostalCodes: OleVariant; safecall;
2456
 
    procedure Set_PostalCodes(retval: OleVariant); safecall;
2457
 
    function  Get_SeeAlso: OleVariant; safecall;
2458
 
    procedure Set_SeeAlso(retval: OleVariant); safecall;
2459
 
    function  Get_AccountDisabled: WordBool; safecall;
2460
 
    procedure Set_AccountDisabled(retval: WordBool); safecall;
2461
 
    function  Get_AccountExpirationDate: TDateTime; safecall;
2462
 
    procedure Set_AccountExpirationDate(retval: TDateTime); safecall;
2463
 
    function  Get_GraceLoginsAllowed: Integer; safecall;
2464
 
    procedure Set_GraceLoginsAllowed(retval: Integer); safecall;
2465
 
    function  Get_GraceLoginsRemaining: Integer; safecall;
2466
 
    procedure Set_GraceLoginsRemaining(retval: Integer); safecall;
2467
 
    function  Get_IsAccountLocked: WordBool; safecall;
2468
 
    procedure Set_IsAccountLocked(retval: WordBool); safecall;
2469
 
    function  Get_LoginHours: OleVariant; safecall;
2470
 
    procedure Set_LoginHours(retval: OleVariant); safecall;
2471
 
    function  Get_LoginWorkstations: OleVariant; safecall;
2472
 
    procedure Set_LoginWorkstations(retval: OleVariant); safecall;
2473
 
    function  Get_MaxLogins: Integer; safecall;
2474
 
    procedure Set_MaxLogins(retval: Integer); safecall;
2475
 
    function  Get_MaxStorage: Integer; safecall;
2476
 
    procedure Set_MaxStorage(retval: Integer); safecall;
2477
 
    function  Get_PasswordExpirationDate: TDateTime; safecall;
2478
 
    procedure Set_PasswordExpirationDate(retval: TDateTime); safecall;
2479
 
    function  Get_PasswordMinimumLength: Integer; safecall;
2480
 
    procedure Set_PasswordMinimumLength(retval: Integer); safecall;
2481
 
    function  Get_PasswordRequired: WordBool; safecall;
2482
 
    procedure Set_PasswordRequired(retval: WordBool); safecall;
2483
 
    function  Get_RequireUniquePassword: WordBool; safecall;
2484
 
    procedure Set_RequireUniquePassword(retval: WordBool); safecall;
2485
 
    function  Get_EmailAddress: WideString; safecall;
2486
 
    procedure Set_EmailAddress(const retval: WideString); safecall;
2487
 
    function  Get_HomeDirectory: WideString; safecall;
2488
 
    procedure Set_HomeDirectory(const retval: WideString); safecall;
2489
 
    function  Get_Languages: OleVariant; safecall;
2490
 
    procedure Set_Languages(retval: OleVariant); safecall;
2491
 
    function  Get_Profile: WideString; safecall;
2492
 
    procedure Set_Profile(const retval: WideString); safecall;
2493
 
    function  Get_LoginScript: WideString; safecall;
2494
 
    procedure Set_LoginScript(const retval: WideString); safecall;
2495
 
    function  Get_Picture: OleVariant; safecall;
2496
 
    procedure Set_Picture(retval: OleVariant); safecall;
2497
 
    function  Get_HomePage: WideString; safecall;
2498
 
    procedure Set_HomePage(const retval: WideString); safecall;
2499
 
    function  Groups: IADsMembers; safecall;
2500
 
    procedure SetPassword(const NewPassword: WideString); safecall;
2501
 
    procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); safecall;
2502
 
    property BadLoginAddress: WideString read Get_BadLoginAddress;
2503
 
    property BadLoginCount: Integer read Get_BadLoginCount;
2504
 
    property LastLogin: TDateTime read Get_LastLogin;
2505
 
    property LastLogoff: TDateTime read Get_LastLogoff;
2506
 
    property LastFailedLogin: TDateTime read Get_LastFailedLogin;
2507
 
    property PasswordLastChanged: TDateTime read Get_PasswordLastChanged;
2508
 
    property Description: WideString read Get_Description write Set_Description;
2509
 
    property Division: WideString read Get_Division write Set_Division;
2510
 
    property Department: WideString read Get_Department write Set_Department;
2511
 
    property EmployeeID: WideString read Get_EmployeeID write Set_EmployeeID;
2512
 
    property FullName: WideString read Get_FullName write Set_FullName;
2513
 
    property FirstName: WideString read Get_FirstName write Set_FirstName;
2514
 
    property LastName: WideString read Get_LastName write Set_LastName;
2515
 
    property OtherName: WideString read Get_OtherName write Set_OtherName;
2516
 
    property NamePrefix: WideString read Get_NamePrefix write Set_NamePrefix;
2517
 
    property NameSuffix: WideString read Get_NameSuffix write Set_NameSuffix;
2518
 
    property Title: WideString read Get_Title write Set_Title;
2519
 
    property Manager: WideString read Get_Manager write Set_Manager;
2520
 
    property TelephoneHome: OleVariant read Get_TelephoneHome write Set_TelephoneHome;
2521
 
    property TelephoneMobile: OleVariant read Get_TelephoneMobile write Set_TelephoneMobile;
2522
 
    property TelephoneNumber: OleVariant read Get_TelephoneNumber write Set_TelephoneNumber;
2523
 
    property TelephonePager: OleVariant read Get_TelephonePager write Set_TelephonePager;
2524
 
    property FaxNumber: OleVariant read Get_FaxNumber write Set_FaxNumber;
2525
 
    property OfficeLocations: OleVariant read Get_OfficeLocations write Set_OfficeLocations;
2526
 
    property PostalAddresses: OleVariant read Get_PostalAddresses write Set_PostalAddresses;
2527
 
    property PostalCodes: OleVariant read Get_PostalCodes write Set_PostalCodes;
2528
 
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
2529
 
    property AccountDisabled: WordBool read Get_AccountDisabled write Set_AccountDisabled;
2530
 
    property AccountExpirationDate: TDateTime read Get_AccountExpirationDate write Set_AccountExpirationDate;
2531
 
    property GraceLoginsAllowed: Integer read Get_GraceLoginsAllowed write Set_GraceLoginsAllowed;
2532
 
    property GraceLoginsRemaining: Integer read Get_GraceLoginsRemaining write Set_GraceLoginsRemaining;
2533
 
    property IsAccountLocked: WordBool read Get_IsAccountLocked write Set_IsAccountLocked;
2534
 
    property LoginHours: OleVariant read Get_LoginHours write Set_LoginHours;
2535
 
    property LoginWorkstations: OleVariant read Get_LoginWorkstations write Set_LoginWorkstations;
2536
 
    property MaxLogins: Integer read Get_MaxLogins write Set_MaxLogins;
2537
 
    property MaxStorage: Integer read Get_MaxStorage write Set_MaxStorage;
2538
 
    property PasswordExpirationDate: TDateTime read Get_PasswordExpirationDate write Set_PasswordExpirationDate;
2539
 
    property PasswordMinimumLength: Integer read Get_PasswordMinimumLength write Set_PasswordMinimumLength;
2540
 
    property PasswordRequired: WordBool read Get_PasswordRequired write Set_PasswordRequired;
2541
 
    property RequireUniquePassword: WordBool read Get_RequireUniquePassword write Set_RequireUniquePassword;
2542
 
    property EmailAddress: WideString read Get_EmailAddress write Set_EmailAddress;
2543
 
    property HomeDirectory: WideString read Get_HomeDirectory write Set_HomeDirectory;
2544
 
    property Languages: OleVariant read Get_Languages write Set_Languages;
2545
 
    property Profile: WideString read Get_Profile write Set_Profile;
2546
 
    property LoginScript: WideString read Get_LoginScript write Set_LoginScript;
2547
 
    property Picture: OleVariant read Get_Picture write Set_Picture;
2548
 
    property HomePage: WideString read Get_HomePage write Set_HomePage;
2549
 
  end;
2550
 
 
2551
 
// *********************************************************************//
2552
 
// DispIntf:  IADsUserDisp
2553
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2554
 
// GUID:      {3E37E320-17E2-11CF-ABC4-02608C9E7553}
2555
 
// *********************************************************************//
2556
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2557
 
  IADsUserDisp = dispinterface
2558
 
    ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
2559
 
    property BadLoginAddress: WideString readonly dispid 53;
2560
 
    property BadLoginCount: Integer readonly dispid 54;
2561
 
    property LastLogin: TDateTime readonly dispid 56;
2562
 
    property LastLogoff: TDateTime readonly dispid 57;
2563
 
    property LastFailedLogin: TDateTime readonly dispid 58;
2564
 
    property PasswordLastChanged: TDateTime readonly dispid 59;
2565
 
    property Description: WideString dispid 15;
2566
 
    property Division: WideString dispid 19;
2567
 
    property Department: WideString dispid 122;
2568
 
    property EmployeeID: WideString dispid 20;
2569
 
    property FullName: WideString dispid 23;
2570
 
    property FirstName: WideString dispid 22;
2571
 
    property LastName: WideString dispid 25;
2572
 
    property OtherName: WideString dispid 27;
2573
 
    property NamePrefix: WideString dispid 114;
2574
 
    property NameSuffix: WideString dispid 115;
2575
 
    property Title: WideString dispid 36;
2576
 
    property Manager: WideString dispid 26;
2577
 
    property TelephoneHome: OleVariant dispid 32;
2578
 
    property TelephoneMobile: OleVariant dispid 33;
2579
 
    property TelephoneNumber: OleVariant dispid 34;
2580
 
    property TelephonePager: OleVariant dispid 17;
2581
 
    property FaxNumber: OleVariant dispid 16;
2582
 
    property OfficeLocations: OleVariant dispid 28;
2583
 
    property PostalAddresses: OleVariant dispid 30;
2584
 
    property PostalCodes: OleVariant dispid 31;
2585
 
    property SeeAlso: OleVariant dispid 117;
2586
 
    property AccountDisabled: WordBool dispid 37;
2587
 
    property AccountExpirationDate: TDateTime dispid 38;
2588
 
    property GraceLoginsAllowed: Integer dispid 41;
2589
 
    property GraceLoginsRemaining: Integer dispid 42;
2590
 
    property IsAccountLocked: WordBool dispid 43;
2591
 
    property LoginHours: OleVariant dispid 45;
2592
 
    property LoginWorkstations: OleVariant dispid 46;
2593
 
    property MaxLogins: Integer dispid 47;
2594
 
    property MaxStorage: Integer dispid 48;
2595
 
    property PasswordExpirationDate: TDateTime dispid 49;
2596
 
    property PasswordMinimumLength: Integer dispid 50;
2597
 
    property PasswordRequired: WordBool dispid 51;
2598
 
    property RequireUniquePassword: WordBool dispid 52;
2599
 
    property EmailAddress: WideString dispid 60;
2600
 
    property HomeDirectory: WideString dispid 61;
2601
 
    property Languages: OleVariant dispid 62;
2602
 
    property Profile: WideString dispid 63;
2603
 
    property LoginScript: WideString dispid 64;
2604
 
    property Picture: OleVariant dispid 65;
2605
 
    property HomePage: WideString dispid 120;
2606
 
    function  Groups: IADsMembers; dispid 66;
2607
 
    procedure SetPassword(const NewPassword: WideString); dispid 67;
2608
 
    procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); dispid 68;
2609
 
    property Name: WideString readonly dispid 2;
2610
 
    property Class_: WideString readonly dispid 3;
2611
 
    property GUID: WideString readonly dispid 4;
2612
 
    property ADsPath: WideString readonly dispid 5;
2613
 
    property Parent: WideString readonly dispid 6;
2614
 
    property Schema: WideString readonly dispid 7;
2615
 
    procedure GetInfo; dispid 8;
2616
 
    procedure SetInfo; dispid 9;
2617
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2618
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2619
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2620
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2621
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2622
 
  end;
2623
 
  {$endif}
2624
 
// *********************************************************************//
2625
 
// Interface: IADsPrintQueue
2626
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2627
 
// GUID:      {B15160D0-1226-11CF-A985-00AA006BC149}
2628
 
// *********************************************************************//
2629
 
  IADsPrintQueue = interface(IADs)
2630
 
    ['{B15160D0-1226-11CF-A985-00AA006BC149}']
2631
 
    function  Get_PrinterPath: WideString; safecall;
2632
 
    procedure Set_PrinterPath(const retval: WideString); safecall;
2633
 
    function  Get_Model: WideString; safecall;
2634
 
    procedure Set_Model(const retval: WideString); safecall;
2635
 
    function  Get_Datatype: WideString; safecall;
2636
 
    procedure Set_Datatype(const retval: WideString); safecall;
2637
 
    function  Get_PrintProcessor: WideString; safecall;
2638
 
    procedure Set_PrintProcessor(const retval: WideString); safecall;
2639
 
    function  Get_Description: WideString; safecall;
2640
 
    procedure Set_Description(const retval: WideString); safecall;
2641
 
    function  Get_Location: WideString; safecall;
2642
 
    procedure Set_Location(const retval: WideString); safecall;
2643
 
    function  Get_StartTime: TDateTime; safecall;
2644
 
    procedure Set_StartTime(retval: TDateTime); safecall;
2645
 
    function  Get_UntilTime: TDateTime; safecall;
2646
 
    procedure Set_UntilTime(retval: TDateTime); safecall;
2647
 
    function  Get_DefaultJobPriority: Integer; safecall;
2648
 
    procedure Set_DefaultJobPriority(retval: Integer); safecall;
2649
 
    function  Get_Priority: Integer; safecall;
2650
 
    procedure Set_Priority(retval: Integer); safecall;
2651
 
    function  Get_BannerPage: WideString; safecall;
2652
 
    procedure Set_BannerPage(const retval: WideString); safecall;
2653
 
    function  Get_PrintDevices: OleVariant; safecall;
2654
 
    procedure Set_PrintDevices(retval: OleVariant); safecall;
2655
 
    function  Get_NetAddresses: OleVariant; safecall;
2656
 
    procedure Set_NetAddresses(retval: OleVariant); safecall;
2657
 
    property PrinterPath: WideString read Get_PrinterPath write Set_PrinterPath;
2658
 
    property Model: WideString read Get_Model write Set_Model;
2659
 
    property Datatype: WideString read Get_Datatype write Set_Datatype;
2660
 
    property PrintProcessor: WideString read Get_PrintProcessor write Set_PrintProcessor;
2661
 
    property Description: WideString read Get_Description write Set_Description;
2662
 
    property Location: WideString read Get_Location write Set_Location;
2663
 
    property StartTime: TDateTime read Get_StartTime write Set_StartTime;
2664
 
    property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
2665
 
    property DefaultJobPriority: Integer read Get_DefaultJobPriority write Set_DefaultJobPriority;
2666
 
    property Priority: Integer read Get_Priority write Set_Priority;
2667
 
    property BannerPage: WideString read Get_BannerPage write Set_BannerPage;
2668
 
    property PrintDevices: OleVariant read Get_PrintDevices write Set_PrintDevices;
2669
 
    property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
2670
 
  end;
2671
 
 
2672
 
// *********************************************************************//
2673
 
// DispIntf:  IADsPrintQueueDisp
2674
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2675
 
// GUID:      {B15160D0-1226-11CF-A985-00AA006BC149}
2676
 
// *********************************************************************//
2677
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2678
 
  IADsPrintQueueDisp = dispinterface
2679
 
    ['{B15160D0-1226-11CF-A985-00AA006BC149}']
2680
 
    property PrinterPath: WideString dispid 15;
2681
 
    property Model: WideString dispid 16;
2682
 
    property Datatype: WideString dispid 17;
2683
 
    property PrintProcessor: WideString dispid 18;
2684
 
    property Description: WideString dispid 19;
2685
 
    property Location: WideString dispid 20;
2686
 
    property StartTime: TDateTime dispid 21;
2687
 
    property UntilTime: TDateTime dispid 22;
2688
 
    property DefaultJobPriority: Integer dispid 23;
2689
 
    property Priority: Integer dispid 24;
2690
 
    property BannerPage: WideString dispid 25;
2691
 
    property PrintDevices: OleVariant dispid 26;
2692
 
    property NetAddresses: OleVariant dispid 27;
2693
 
    property Name: WideString readonly dispid 2;
2694
 
    property Class_: WideString readonly dispid 3;
2695
 
    property GUID: WideString readonly dispid 4;
2696
 
    property ADsPath: WideString readonly dispid 5;
2697
 
    property Parent: WideString readonly dispid 6;
2698
 
    property Schema: WideString readonly dispid 7;
2699
 
    procedure GetInfo; dispid 8;
2700
 
    procedure SetInfo; dispid 9;
2701
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2702
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2703
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2704
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2705
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2706
 
  end;
2707
 
  {$endif}
2708
 
// *********************************************************************//
2709
 
// Interface: IADsPrintQueueOperations
2710
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2711
 
// GUID:      {124BE5C0-156E-11CF-A986-00AA006BC149}
2712
 
// *********************************************************************//
2713
 
  IADsPrintQueueOperations = interface(IADs)
2714
 
    ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
2715
 
    function  Get_Status: Integer; safecall;
2716
 
    function  PrintJobs: IADsCollection; safecall;
2717
 
    procedure Pause; safecall;
2718
 
    procedure Resume; safecall;
2719
 
    procedure Purge; safecall;
2720
 
    property Status: Integer read Get_Status;
2721
 
  end;
2722
 
 
2723
 
// *********************************************************************//
2724
 
// DispIntf:  IADsPrintQueueOperationsDisp
2725
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2726
 
// GUID:      {124BE5C0-156E-11CF-A986-00AA006BC149}
2727
 
// *********************************************************************//
2728
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2729
 
  IADsPrintQueueOperationsDisp = dispinterface
2730
 
    ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
2731
 
    property Status: Integer readonly dispid 27;
2732
 
    function  PrintJobs: IADsCollection; dispid 28;
2733
 
    procedure Pause; dispid 29;
2734
 
    procedure Resume; dispid 30;
2735
 
    procedure Purge; dispid 31;
2736
 
    property Name: WideString readonly dispid 2;
2737
 
    property Class_: WideString readonly dispid 3;
2738
 
    property GUID: WideString readonly dispid 4;
2739
 
    property ADsPath: WideString readonly dispid 5;
2740
 
    property Parent: WideString readonly dispid 6;
2741
 
    property Schema: WideString readonly dispid 7;
2742
 
    procedure GetInfo; dispid 8;
2743
 
    procedure SetInfo; dispid 9;
2744
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2745
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2746
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2747
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2748
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2749
 
  end;
2750
 
  {$endif}
2751
 
// *********************************************************************//
2752
 
// Interface: IADsPrintJob
2753
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2754
 
// GUID:      {32FB6780-1ED0-11CF-A988-00AA006BC149}
2755
 
// *********************************************************************//
2756
 
  IADsPrintJob = interface(IADs)
2757
 
    ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
2758
 
    function  Get_HostPrintQueue: WideString; safecall;
2759
 
    function  Get_User: WideString; safecall;
2760
 
    function  Get_UserPath: WideString; safecall;
2761
 
    function  Get_TimeSubmitted: TDateTime; safecall;
2762
 
    function  Get_TotalPages: Integer; safecall;
2763
 
    function  Get_Size: Integer; safecall;
2764
 
    function  Get_Description: WideString; safecall;
2765
 
    procedure Set_Description(const retval: WideString); safecall;
2766
 
    function  Get_Priority: Integer; safecall;
2767
 
    procedure Set_Priority(retval: Integer); safecall;
2768
 
    function  Get_StartTime: TDateTime; safecall;
2769
 
    procedure Set_StartTime(retval: TDateTime); safecall;
2770
 
    function  Get_UntilTime: TDateTime; safecall;
2771
 
    procedure Set_UntilTime(retval: TDateTime); safecall;
2772
 
    function  Get_Notify: WideString; safecall;
2773
 
    procedure Set_Notify(const retval: WideString); safecall;
2774
 
    function  Get_NotifyPath: WideString; safecall;
2775
 
    procedure Set_NotifyPath(const retval: WideString); safecall;
2776
 
    property HostPrintQueue: WideString read Get_HostPrintQueue;
2777
 
    property User: WideString read Get_User;
2778
 
    property UserPath: WideString read Get_UserPath;
2779
 
    property TimeSubmitted: TDateTime read Get_TimeSubmitted;
2780
 
    property TotalPages: Integer read Get_TotalPages;
2781
 
    property Size: Integer read Get_Size;
2782
 
    property Description: WideString read Get_Description write Set_Description;
2783
 
    property Priority: Integer read Get_Priority write Set_Priority;
2784
 
    property StartTime: TDateTime read Get_StartTime write Set_StartTime;
2785
 
    property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
2786
 
    property Notify: WideString read Get_Notify write Set_Notify;
2787
 
    property NotifyPath: WideString read Get_NotifyPath write Set_NotifyPath;
2788
 
  end;
2789
 
 
2790
 
// *********************************************************************//
2791
 
// DispIntf:  IADsPrintJobDisp
2792
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2793
 
// GUID:      {32FB6780-1ED0-11CF-A988-00AA006BC149}
2794
 
// *********************************************************************//
2795
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2796
 
  IADsPrintJobDisp = dispinterface
2797
 
    ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
2798
 
    property HostPrintQueue: WideString readonly dispid 15;
2799
 
    property User: WideString readonly dispid 16;
2800
 
    property UserPath: WideString readonly dispid 17;
2801
 
    property TimeSubmitted: TDateTime readonly dispid 18;
2802
 
    property TotalPages: Integer readonly dispid 19;
2803
 
    property Size: Integer readonly dispid 234;
2804
 
    property Description: WideString dispid 20;
2805
 
    property Priority: Integer dispid 21;
2806
 
    property StartTime: TDateTime dispid 22;
2807
 
    property UntilTime: TDateTime dispid 23;
2808
 
    property Notify: WideString dispid 24;
2809
 
    property NotifyPath: WideString dispid 25;
2810
 
    property Name: WideString readonly dispid 2;
2811
 
    property Class_: WideString readonly dispid 3;
2812
 
    property GUID: WideString readonly dispid 4;
2813
 
    property ADsPath: WideString readonly dispid 5;
2814
 
    property Parent: WideString readonly dispid 6;
2815
 
    property Schema: WideString readonly dispid 7;
2816
 
    procedure GetInfo; dispid 8;
2817
 
    procedure SetInfo; dispid 9;
2818
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2819
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2820
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2821
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2822
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2823
 
  end;
2824
 
  {$endif}
2825
 
// *********************************************************************//
2826
 
// Interface: IADsPrintJobOperations
2827
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2828
 
// GUID:      {9A52DB30-1ECF-11CF-A988-00AA006BC149}
2829
 
// *********************************************************************//
2830
 
  IADsPrintJobOperations = interface(IADs)
2831
 
    ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
2832
 
    function  Get_Status: Integer; safecall;
2833
 
    function  Get_TimeElapsed: Integer; safecall;
2834
 
    function  Get_PagesPrinted: Integer; safecall;
2835
 
    function  Get_Position: Integer; safecall;
2836
 
    procedure Set_Position(retval: Integer); safecall;
2837
 
    procedure Pause; safecall;
2838
 
    procedure Resume; safecall;
2839
 
    property Status: Integer read Get_Status;
2840
 
    property TimeElapsed: Integer read Get_TimeElapsed;
2841
 
    property PagesPrinted: Integer read Get_PagesPrinted;
2842
 
    property Position: Integer read Get_Position write Set_Position;
2843
 
  end;
2844
 
 
2845
 
// *********************************************************************//
2846
 
// DispIntf:  IADsPrintJobOperationsDisp
2847
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2848
 
// GUID:      {9A52DB30-1ECF-11CF-A988-00AA006BC149}
2849
 
// *********************************************************************//
2850
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2851
 
  IADsPrintJobOperationsDisp = dispinterface
2852
 
    ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
2853
 
    property Status: Integer readonly dispid 26;
2854
 
    property TimeElapsed: Integer readonly dispid 27;
2855
 
    property PagesPrinted: Integer readonly dispid 28;
2856
 
    property Position: Integer dispid 29;
2857
 
    procedure Pause; dispid 30;
2858
 
    procedure Resume; dispid 31;
2859
 
    property Name: WideString readonly dispid 2;
2860
 
    property Class_: WideString readonly dispid 3;
2861
 
    property GUID: WideString readonly dispid 4;
2862
 
    property ADsPath: WideString readonly dispid 5;
2863
 
    property Parent: WideString readonly dispid 6;
2864
 
    property Schema: WideString readonly dispid 7;
2865
 
    procedure GetInfo; dispid 8;
2866
 
    procedure SetInfo; dispid 9;
2867
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2868
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2869
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2870
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2871
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2872
 
  end;
2873
 
  {$endif}
2874
 
// *********************************************************************//
2875
 
// Interface: IADsService
2876
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2877
 
// GUID:      {68AF66E0-31CA-11CF-A98A-00AA006BC149}
2878
 
// *********************************************************************//
2879
 
  IADsService = interface(IADs)
2880
 
    ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
2881
 
    function  Get_HostComputer: WideString; safecall;
2882
 
    procedure Set_HostComputer(const retval: WideString); safecall;
2883
 
    function  Get_DisplayName: WideString; safecall;
2884
 
    procedure Set_DisplayName(const retval: WideString); safecall;
2885
 
    function  Get_Version: WideString; safecall;
2886
 
    procedure Set_Version(const retval: WideString); safecall;
2887
 
    function  Get_ServiceType: Integer; safecall;
2888
 
    procedure Set_ServiceType(retval: Integer); safecall;
2889
 
    function  Get_StartType: Integer; safecall;
2890
 
    procedure Set_StartType(retval: Integer); safecall;
2891
 
    function  Get_Path: WideString; safecall;
2892
 
    procedure Set_Path(const retval: WideString); safecall;
2893
 
    function  Get_StartupParameters: WideString; safecall;
2894
 
    procedure Set_StartupParameters(const retval: WideString); safecall;
2895
 
    function  Get_ErrorControl: Integer; safecall;
2896
 
    procedure Set_ErrorControl(retval: Integer); safecall;
2897
 
    function  Get_LoadOrderGroup: WideString; safecall;
2898
 
    procedure Set_LoadOrderGroup(const retval: WideString); safecall;
2899
 
    function  Get_ServiceAccountName: WideString; safecall;
2900
 
    procedure Set_ServiceAccountName(const retval: WideString); safecall;
2901
 
    function  Get_ServiceAccountPath: WideString; safecall;
2902
 
    procedure Set_ServiceAccountPath(const retval: WideString); safecall;
2903
 
    function  Get_Dependencies: OleVariant; safecall;
2904
 
    procedure Set_Dependencies(retval: OleVariant); safecall;
2905
 
    property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
2906
 
    property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
2907
 
    property Version: WideString read Get_Version write Set_Version;
2908
 
    property ServiceType: Integer read Get_ServiceType write Set_ServiceType;
2909
 
    property StartType: Integer read Get_StartType write Set_StartType;
2910
 
    property Path: WideString read Get_Path write Set_Path;
2911
 
    property StartupParameters: WideString read Get_StartupParameters write Set_StartupParameters;
2912
 
    property ErrorControl: Integer read Get_ErrorControl write Set_ErrorControl;
2913
 
    property LoadOrderGroup: WideString read Get_LoadOrderGroup write Set_LoadOrderGroup;
2914
 
    property ServiceAccountName: WideString read Get_ServiceAccountName write Set_ServiceAccountName;
2915
 
    property ServiceAccountPath: WideString read Get_ServiceAccountPath write Set_ServiceAccountPath;
2916
 
    property Dependencies: OleVariant read Get_Dependencies write Set_Dependencies;
2917
 
  end;
2918
 
 
2919
 
// *********************************************************************//
2920
 
// DispIntf:  IADsServiceDisp
2921
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2922
 
// GUID:      {68AF66E0-31CA-11CF-A98A-00AA006BC149}
2923
 
// *********************************************************************//
2924
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2925
 
  IADsServiceDisp = dispinterface
2926
 
    ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
2927
 
    property HostComputer: WideString dispid 15;
2928
 
    property DisplayName: WideString dispid 16;
2929
 
    property Version: WideString dispid 17;
2930
 
    property ServiceType: Integer dispid 18;
2931
 
    property StartType: Integer dispid 19;
2932
 
    property Path: WideString dispid 20;
2933
 
    property StartupParameters: WideString dispid 21;
2934
 
    property ErrorControl: Integer dispid 22;
2935
 
    property LoadOrderGroup: WideString dispid 23;
2936
 
    property ServiceAccountName: WideString dispid 24;
2937
 
    property ServiceAccountPath: WideString dispid 25;
2938
 
    property Dependencies: OleVariant dispid 26;
2939
 
    property Name: WideString readonly dispid 2;
2940
 
    property Class_: WideString readonly dispid 3;
2941
 
    property GUID: WideString readonly dispid 4;
2942
 
    property ADsPath: WideString readonly dispid 5;
2943
 
    property Parent: WideString readonly dispid 6;
2944
 
    property Schema: WideString readonly dispid 7;
2945
 
    procedure GetInfo; dispid 8;
2946
 
    procedure SetInfo; dispid 9;
2947
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2948
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2949
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2950
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2951
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2952
 
  end;
2953
 
  {$endif}
2954
 
// *********************************************************************//
2955
 
// Interface: IADsServiceOperations
2956
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2957
 
// GUID:      {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
2958
 
// *********************************************************************//
2959
 
  IADsServiceOperations = interface(IADs)
2960
 
    ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
2961
 
    function  Get_Status: Integer; safecall;
2962
 
    procedure Start; safecall;
2963
 
    procedure Stop; safecall;
2964
 
    procedure Pause; safecall;
2965
 
    procedure Continue; safecall;
2966
 
    procedure SetPassword(const bstrNewPassword: WideString); safecall;
2967
 
    property Status: Integer read Get_Status;
2968
 
  end;
2969
 
 
2970
 
// *********************************************************************//
2971
 
// DispIntf:  IADsServiceOperationsDisp
2972
 
// Flags:     (4416) Dual OleAutomation Dispatchable
2973
 
// GUID:      {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
2974
 
// *********************************************************************//
2975
 
  {$ifdef SUPPORTS_DISPINTERFACE}
2976
 
  IADsServiceOperationsDisp = dispinterface
2977
 
    ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
2978
 
    property Status: Integer readonly dispid 27;
2979
 
    procedure Start; dispid 28;
2980
 
    procedure Stop; dispid 29;
2981
 
    procedure Pause; dispid 30;
2982
 
    procedure Continue; dispid 31;
2983
 
    procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
2984
 
    property Name: WideString readonly dispid 2;
2985
 
    property Class_: WideString readonly dispid 3;
2986
 
    property GUID: WideString readonly dispid 4;
2987
 
    property ADsPath: WideString readonly dispid 5;
2988
 
    property Parent: WideString readonly dispid 6;
2989
 
    property Schema: WideString readonly dispid 7;
2990
 
    procedure GetInfo; dispid 8;
2991
 
    procedure SetInfo; dispid 9;
2992
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
2993
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
2994
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
2995
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
2996
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
2997
 
  end;
2998
 
  {$endif}
2999
 
 
3000
 
// *********************************************************************//
3001
 
// Interface: IADsFileService
3002
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3003
 
// GUID:      {A89D1900-31CA-11CF-A98A-00AA006BC149}
3004
 
// *********************************************************************//
3005
 
  IADsFileService = interface(IADsService)
3006
 
    ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
3007
 
    function  Get_Description: WideString; safecall;
3008
 
    procedure Set_Description(const retval: WideString); safecall;
3009
 
    function  Get_MaxUserCount: Integer; safecall;
3010
 
    procedure Set_MaxUserCount(retval: Integer); safecall;
3011
 
    property Description: WideString read Get_Description write Set_Description;
3012
 
    property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
3013
 
  end;
3014
 
 
3015
 
// *********************************************************************//
3016
 
// DispIntf:  IADsFileServiceDisp
3017
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3018
 
// GUID:      {A89D1900-31CA-11CF-A98A-00AA006BC149}
3019
 
// *********************************************************************//
3020
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3021
 
  IADsFileServiceDisp = dispinterface
3022
 
    ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
3023
 
    property Description: WideString dispid 33;
3024
 
    property MaxUserCount: Integer dispid 34;
3025
 
    property HostComputer: WideString dispid 15;
3026
 
    property DisplayName: WideString dispid 16;
3027
 
    property Version: WideString dispid 17;
3028
 
    property ServiceType: Integer dispid 18;
3029
 
    property StartType: Integer dispid 19;
3030
 
    property Path: WideString dispid 20;
3031
 
    property StartupParameters: WideString dispid 21;
3032
 
    property ErrorControl: Integer dispid 22;
3033
 
    property LoadOrderGroup: WideString dispid 23;
3034
 
    property ServiceAccountName: WideString dispid 24;
3035
 
    property ServiceAccountPath: WideString dispid 25;
3036
 
    property Dependencies: OleVariant dispid 26;
3037
 
    property Name: WideString readonly dispid 2;
3038
 
    property Class_: WideString readonly dispid 3;
3039
 
    property GUID: WideString readonly dispid 4;
3040
 
    property ADsPath: WideString readonly dispid 5;
3041
 
    property Parent: WideString readonly dispid 6;
3042
 
    property Schema: WideString readonly dispid 7;
3043
 
    procedure GetInfo; dispid 8;
3044
 
    procedure SetInfo; dispid 9;
3045
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
3046
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
3047
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
3048
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
3049
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
3050
 
  end;
3051
 
  {$endif}
3052
 
// *********************************************************************//
3053
 
// Interface: IADsFileServiceOperations
3054
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3055
 
// GUID:      {A02DED10-31CA-11CF-A98A-00AA006BC149}
3056
 
// *********************************************************************//
3057
 
  IADsFileServiceOperations = interface(IADsServiceOperations)
3058
 
    ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
3059
 
    function  Sessions: IADsCollection; safecall;
3060
 
    function  Resources: IADsCollection; safecall;
3061
 
  end;
3062
 
 
3063
 
// *********************************************************************//
3064
 
// DispIntf:  IADsFileServiceOperationsDisp
3065
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3066
 
// GUID:      {A02DED10-31CA-11CF-A98A-00AA006BC149}
3067
 
// *********************************************************************//
3068
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3069
 
  IADsFileServiceOperationsDisp = dispinterface
3070
 
    ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
3071
 
    function  Sessions: IADsCollection; dispid 35;
3072
 
    function  Resources: IADsCollection; dispid 36;
3073
 
    property Status: Integer readonly dispid 27;
3074
 
    procedure Start; dispid 28;
3075
 
    procedure Stop; dispid 29;
3076
 
    procedure Pause; dispid 30;
3077
 
    procedure Continue; dispid 31;
3078
 
    procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
3079
 
    property Name: WideString readonly dispid 2;
3080
 
    property Class_: WideString readonly dispid 3;
3081
 
    property GUID: WideString readonly dispid 4;
3082
 
    property ADsPath: WideString readonly dispid 5;
3083
 
    property Parent: WideString readonly dispid 6;
3084
 
    property Schema: WideString readonly dispid 7;
3085
 
    procedure GetInfo; dispid 8;
3086
 
    procedure SetInfo; dispid 9;
3087
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
3088
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
3089
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
3090
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
3091
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
3092
 
  end;
3093
 
  {$endif}
3094
 
// *********************************************************************//
3095
 
// Interface: IADsFileShare
3096
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3097
 
// GUID:      {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
3098
 
// *********************************************************************//
3099
 
  IADsFileShare = interface(IADs)
3100
 
    ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
3101
 
    function  Get_CurrentUserCount: Integer; safecall;
3102
 
    function  Get_Description: WideString; safecall;
3103
 
    procedure Set_Description(const retval: WideString); safecall;
3104
 
    function  Get_HostComputer: WideString; safecall;
3105
 
    procedure Set_HostComputer(const retval: WideString); safecall;
3106
 
    function  Get_Path: WideString; safecall;
3107
 
    procedure Set_Path(const retval: WideString); safecall;
3108
 
    function  Get_MaxUserCount: Integer; safecall;
3109
 
    procedure Set_MaxUserCount(retval: Integer); safecall;
3110
 
    property CurrentUserCount: Integer read Get_CurrentUserCount;
3111
 
    property Description: WideString read Get_Description write Set_Description;
3112
 
    property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
3113
 
    property Path: WideString read Get_Path write Set_Path;
3114
 
    property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
3115
 
  end;
3116
 
 
3117
 
// *********************************************************************//
3118
 
// DispIntf:  IADsFileShareDisp
3119
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3120
 
// GUID:      {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
3121
 
// *********************************************************************//
3122
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3123
 
  IADsFileShareDisp = dispinterface
3124
 
    ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
3125
 
    property CurrentUserCount: Integer readonly dispid 15;
3126
 
    property Description: WideString dispid 16;
3127
 
    property HostComputer: WideString dispid 17;
3128
 
    property Path: WideString dispid 18;
3129
 
    property MaxUserCount: Integer dispid 19;
3130
 
    property Name: WideString readonly dispid 2;
3131
 
    property Class_: WideString readonly dispid 3;
3132
 
    property GUID: WideString readonly dispid 4;
3133
 
    property ADsPath: WideString readonly dispid 5;
3134
 
    property Parent: WideString readonly dispid 6;
3135
 
    property Schema: WideString readonly dispid 7;
3136
 
    procedure GetInfo; dispid 8;
3137
 
    procedure SetInfo; dispid 9;
3138
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
3139
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
3140
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
3141
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
3142
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
3143
 
  end;
3144
 
  {$endif}
3145
 
 
3146
 
// *********************************************************************//
3147
 
// Interface: IADsSession
3148
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3149
 
// GUID:      {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
3150
 
// *********************************************************************//
3151
 
  IADsSession = interface(IADs)
3152
 
    ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
3153
 
    function  Get_User: WideString; safecall;
3154
 
    function  Get_UserPath: WideString; safecall;
3155
 
    function  Get_Computer: WideString; safecall;
3156
 
    function  Get_ComputerPath: WideString; safecall;
3157
 
    function  Get_ConnectTime: Integer; safecall;
3158
 
    function  Get_IdleTime: Integer; safecall;
3159
 
    property User: WideString read Get_User;
3160
 
    property UserPath: WideString read Get_UserPath;
3161
 
    property Computer: WideString read Get_Computer;
3162
 
    property ComputerPath: WideString read Get_ComputerPath;
3163
 
    property ConnectTime: Integer read Get_ConnectTime;
3164
 
    property IdleTime: Integer read Get_IdleTime;
3165
 
  end;
3166
 
 
3167
 
// *********************************************************************//
3168
 
// DispIntf:  IADsSessionDisp
3169
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3170
 
// GUID:      {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
3171
 
// *********************************************************************//
3172
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3173
 
  IADsSessionDisp = dispinterface
3174
 
    ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
3175
 
    property User: WideString readonly dispid 15;
3176
 
    property UserPath: WideString readonly dispid 16;
3177
 
    property Computer: WideString readonly dispid 17;
3178
 
    property ComputerPath: WideString readonly dispid 18;
3179
 
    property ConnectTime: Integer readonly dispid 19;
3180
 
    property IdleTime: Integer readonly dispid 20;
3181
 
    property Name: WideString readonly dispid 2;
3182
 
    property Class_: WideString readonly dispid 3;
3183
 
    property GUID: WideString readonly dispid 4;
3184
 
    property ADsPath: WideString readonly dispid 5;
3185
 
    property Parent: WideString readonly dispid 6;
3186
 
    property Schema: WideString readonly dispid 7;
3187
 
    procedure GetInfo; dispid 8;
3188
 
    procedure SetInfo; dispid 9;
3189
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
3190
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
3191
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
3192
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
3193
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
3194
 
  end;
3195
 
  {$endif}
3196
 
// *********************************************************************//
3197
 
// Interface: IADsResource
3198
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3199
 
// GUID:      {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
3200
 
// *********************************************************************//
3201
 
  IADsResource = interface(IADs)
3202
 
    ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
3203
 
    function  Get_User: WideString; safecall;
3204
 
    function  Get_UserPath: WideString; safecall;
3205
 
    function  Get_Path: WideString; safecall;
3206
 
    function  Get_LockCount: Integer; safecall;
3207
 
    property User: WideString read Get_User;
3208
 
    property UserPath: WideString read Get_UserPath;
3209
 
    property Path: WideString read Get_Path;
3210
 
    property LockCount: Integer read Get_LockCount;
3211
 
  end;
3212
 
 
3213
 
// *********************************************************************//
3214
 
// DispIntf:  IADsResourceDisp
3215
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3216
 
// GUID:      {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
3217
 
// *********************************************************************//
3218
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3219
 
  IADsResourceDisp = dispinterface
3220
 
    ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
3221
 
    property User: WideString readonly dispid 15;
3222
 
    property UserPath: WideString readonly dispid 16;
3223
 
    property Path: WideString readonly dispid 17;
3224
 
    property LockCount: Integer readonly dispid 18;
3225
 
    property Name: WideString readonly dispid 2;
3226
 
    property Class_: WideString readonly dispid 3;
3227
 
    property GUID: WideString readonly dispid 4;
3228
 
    property ADsPath: WideString readonly dispid 5;
3229
 
    property Parent: WideString readonly dispid 6;
3230
 
    property Schema: WideString readonly dispid 7;
3231
 
    procedure GetInfo; dispid 8;
3232
 
    procedure SetInfo; dispid 9;
3233
 
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
3234
 
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
3235
 
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
3236
 
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
3237
 
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
3238
 
  end;
3239
 
  {$endif}
3240
 
// *********************************************************************//
3241
 
// Interface: IADsOpenDSObject
3242
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3243
 
// GUID:      {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
3244
 
// *********************************************************************//
3245
 
  IADsOpenDSObject = interface(IDispatch)
3246
 
    ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
3247
 
    function  OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
3248
 
                           const lpszPassword: WideString; lnReserved: Integer): IDispatch; safecall;
3249
 
  end;
3250
 
 
3251
 
// *********************************************************************//
3252
 
// DispIntf:  IADsOpenDSObjectDisp
3253
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3254
 
// GUID:      {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
3255
 
// *********************************************************************//
3256
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3257
 
  IADsOpenDSObjectDisp = dispinterface
3258
 
    ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
3259
 
    function  OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
3260
 
                           const lpszPassword: WideString; lnReserved: Integer): IDispatch; dispid 1;
3261
 
  end;
3262
 
  {$endif}
3263
 
// *********************************************************************//
3264
 
// Interface: IDirectoryObject
3265
 
// Flags:     (0)
3266
 
// GUID:      {E798DE2C-22E4-11D0-84FE-00C04FD8D503}
3267
 
// *********************************************************************//
3268
 
  IDirectoryObject = interface(IUnknown)
3269
 
    ['{E798DE2C-22E4-11D0-84FE-00C04FD8D503}']
3270
 
    function  GetObjectInformation(out ppObjInfo: PUserType11): HResult; stdcall;
3271
 
    function  GetObjectAttributes(var pAttributeNames: PWideChar; dwNumberAttributes: LongWord;
3272
 
                                  out ppAttributeEntries: PUserType12;
3273
 
                                  out pdwNumAttributesReturned: LongWord): HResult; stdcall;
3274
 
    function  SetObjectAttributes(var pAttributeEntries: _ads_attr_info; dwNumAttributes: LongWord;
3275
 
                                  out pdwNumAttributesModified: LongWord): HResult; stdcall;
3276
 
    function  CreateDSObject(pszRDNName: PWideChar; var pAttributeEntries: _ads_attr_info;
3277
 
                             dwNumAttributes: LongWord; out ppObject: IDispatch): HResult; stdcall;
3278
 
    function  DeleteDSObject(pszRDNName: PWideChar): HResult; stdcall;
3279
 
  end;
3280
 
 
3281
 
// *********************************************************************//
3282
 
// Interface: IDirectorySearch
3283
 
// Flags:     (0)
3284
 
// GUID:      {109BA8EC-92F0-11D0-A790-00C04FD8D5A8}
3285
 
// *********************************************************************//
3286
 
  IDirectorySearch = interface(IUnknown)
3287
 
    ['{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}']
3288
 
    function  SetSearchPreference(var pSearchPrefs: ads_searchpref_info; dwNumPrefs: LongWord): HResult; stdcall;
3289
 
    function  ExecuteSearch(pszSearchFilter: PWideChar; var pAttributeNames: PWideChar;
3290
 
                            dwNumberAttributes: LongWord; out phSearchResult: Pointer): HResult; stdcall;
3291
 
    function  AbandonSearch(var phSearchResult: Pointer): HResult; stdcall;
3292
 
    function  GetFirstRow(var hSearchResult: Pointer): HResult; stdcall;
3293
 
    function  GetNextRow(var hSearchResult: Pointer): HResult; stdcall;
3294
 
    function  GetPreviousRow(var hSearchResult: Pointer): HResult; stdcall;
3295
 
    function  GetNextColumnName(var hSearchHandle: Pointer; out ppszColumnName: PWideChar): HResult; stdcall;
3296
 
    function  GetColumn(var hSearchResult: Pointer; szColumnName: PWideChar;
3297
 
                        out pSearchColumn: ads_search_column): HResult; stdcall;
3298
 
    function  FreeColumn(var pSearchColumn: ads_search_column): HResult; stdcall;
3299
 
    function  CloseSearchHandle(var hSearchResult: Pointer): HResult; stdcall;
3300
 
  end;
3301
 
 
3302
 
// *********************************************************************//
3303
 
// Interface: IDirectorySchemaMgmt
3304
 
// Flags:     (0)
3305
 
// GUID:      {75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}
3306
 
// *********************************************************************//
3307
 
  IDirectorySchemaMgmt = interface(IUnknown)
3308
 
    ['{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}']
3309
 
    function  EnumAttributes(var ppszAttrNames: PWideChar; dwNumAttributes: LongWord;
3310
 
                             ppAttrDefinition: PPUserType1; var pdwNumAttributes: LongWord): HResult; stdcall;
3311
 
    function  CreateAttributeDefinition(pszAttributeName: PWideChar;
3312
 
                                        var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
3313
 
    function  WriteAttributeDefinition(pszAttributeName: PWideChar;
3314
 
                                       var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
3315
 
    function  DeleteAttributeDefinition(pszAttributeName: PWideChar): HResult; stdcall;
3316
 
    function  EnumClasses(var ppszClassNames: PWideChar; dwNumClasses: LongWord;
3317
 
                          ppClassDefinition: PPUserType2; var pdwNumClasses: LongWord): HResult; stdcall;
3318
 
    function  WriteClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
3319
 
    function  CreateClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
3320
 
    function  DeleteClassDefinition(pszClassName: PWideChar): HResult; stdcall;
3321
 
  end;
3322
 
 
3323
 
// *********************************************************************//
3324
 
// Interface: IADsAggregatee
3325
 
// Flags:     (0)
3326
 
// GUID:      {1346CE8C-9039-11D0-8528-00C04FD8D503}
3327
 
// *********************************************************************//
3328
 
  IADsAggregatee = interface(IUnknown)
3329
 
    ['{1346CE8C-9039-11D0-8528-00C04FD8D503}']
3330
 
    function  ConnectAsAggregatee(const pOuterUnknown: IUnknown): HResult; stdcall;
3331
 
    function  DisconnectAsAggregatee: HResult; stdcall;
3332
 
    function  RelinquishInterface(var riid: TGUID): HResult; stdcall;
3333
 
    function  RestoreInterface(var riid: TGUID): HResult; stdcall;
3334
 
  end;
3335
 
 
3336
 
// *********************************************************************//
3337
 
// Interface: IADsAggregator
3338
 
// Flags:     (0)
3339
 
// GUID:      {52DB5FB0-941F-11D0-8529-00C04FD8D503}
3340
 
// *********************************************************************//
3341
 
  IADsAggregator = interface(IUnknown)
3342
 
    ['{52DB5FB0-941F-11D0-8529-00C04FD8D503}']
3343
 
    function  ConnectAsAggregator(const pAggregatee: IUnknown): HResult; stdcall;
3344
 
    function  DisconnectAsAggregator: HResult; stdcall;
3345
 
  end;
3346
 
 
3347
 
// *********************************************************************//
3348
 
// Interface: IADsAccessControlEntry
3349
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3350
 
// GUID:      {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
3351
 
// *********************************************************************//
3352
 
  IADsAccessControlEntry = interface(IDispatch)
3353
 
    ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
3354
 
    function  Get_AccessMask: Integer; safecall;
3355
 
    procedure Set_AccessMask(retval: Integer); safecall;
3356
 
    function  Get_AceType: Integer; safecall;
3357
 
    procedure Set_AceType(retval: Integer); safecall;
3358
 
    function  Get_AceFlags: Integer; safecall;
3359
 
    procedure Set_AceFlags(retval: Integer); safecall;
3360
 
    function  Get_Flags: Integer; safecall;
3361
 
    procedure Set_Flags(retval: Integer); safecall;
3362
 
    function  Get_ObjectType: WideString; safecall;
3363
 
    procedure Set_ObjectType(const retval: WideString); safecall;
3364
 
    function  Get_InheritedObjectType: WideString; safecall;
3365
 
    procedure Set_InheritedObjectType(const retval: WideString); safecall;
3366
 
    function  Get_Trustee: WideString; safecall;
3367
 
    procedure Set_Trustee(const retval: WideString); safecall;
3368
 
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
3369
 
    property AceType: Integer read Get_AceType write Set_AceType;
3370
 
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
3371
 
    property Flags: Integer read Get_Flags write Set_Flags;
3372
 
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
3373
 
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
3374
 
    property Trustee: WideString read Get_Trustee write Set_Trustee;
3375
 
  end;
3376
 
 
3377
 
// *********************************************************************//
3378
 
// DispIntf:  IADsAccessControlEntryDisp
3379
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3380
 
// GUID:      {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
3381
 
// *********************************************************************//
3382
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3383
 
  IADsAccessControlEntryDisp = dispinterface
3384
 
    ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
3385
 
    property AccessMask: Integer dispid 2;
3386
 
    property AceType: Integer dispid 3;
3387
 
    property AceFlags: Integer dispid 4;
3388
 
    property Flags: Integer dispid 5;
3389
 
    property ObjectType: WideString dispid 6;
3390
 
    property InheritedObjectType: WideString dispid 7;
3391
 
    property Trustee: WideString dispid 8;
3392
 
  end;
3393
 
  {$endif}
3394
 
// *********************************************************************//
3395
 
// Interface: IADsAccessControlList
3396
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3397
 
// GUID:      {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
3398
 
// *********************************************************************//
3399
 
  IADsAccessControlList = interface(IDispatch)
3400
 
    ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
3401
 
    function  Get_AclRevision: Integer; safecall;
3402
 
    procedure Set_AclRevision(retval: Integer); safecall;
3403
 
    function  Get_AceCount: Integer; safecall;
3404
 
    procedure Set_AceCount(retval: Integer); safecall;
3405
 
    procedure AddAce(const pAccessControlEntry: IDispatch); safecall;
3406
 
    procedure RemoveAce(const pAccessControlEntry: IDispatch); safecall;
3407
 
    function  CopyAccessList: IDispatch; safecall;
3408
 
    function  Get__NewEnum: IUnknown; safecall;
3409
 
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
3410
 
    property AceCount: Integer read Get_AceCount write Set_AceCount;
3411
 
    property _NewEnum: IUnknown read Get__NewEnum;
3412
 
  end;
3413
 
 
3414
 
// *********************************************************************//
3415
 
// DispIntf:  IADsAccessControlListDisp
3416
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3417
 
// GUID:      {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
3418
 
// *********************************************************************//
3419
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3420
 
  IADsAccessControlListDisp = dispinterface
3421
 
    ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
3422
 
    property AclRevision: Integer dispid 3;
3423
 
    property AceCount: Integer dispid 4;
3424
 
    procedure AddAce(const pAccessControlEntry: IDispatch); dispid 5;
3425
 
    procedure RemoveAce(const pAccessControlEntry: IDispatch); dispid 6;
3426
 
    function  CopyAccessList: IDispatch; dispid 7;
3427
 
    property _NewEnum: IUnknown readonly dispid -4;
3428
 
  end;
3429
 
  {$endif}
3430
 
// *********************************************************************//
3431
 
// Interface: IADsSecurityDescriptor
3432
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3433
 
// GUID:      {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
3434
 
// *********************************************************************//
3435
 
  IADsSecurityDescriptor = interface(IDispatch)
3436
 
    ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
3437
 
    function  Get_Revision: Integer; safecall;
3438
 
    procedure Set_Revision(retval: Integer); safecall;
3439
 
    function  Get_Control: Integer; safecall;
3440
 
    procedure Set_Control(retval: Integer); safecall;
3441
 
    function  Get_Owner: WideString; safecall;
3442
 
    procedure Set_Owner(const retval: WideString); safecall;
3443
 
    function  Get_OwnerDefaulted: WordBool; safecall;
3444
 
    procedure Set_OwnerDefaulted(retval: WordBool); safecall;
3445
 
    function  Get_Group: WideString; safecall;
3446
 
    procedure Set_Group(const retval: WideString); safecall;
3447
 
    function  Get_GroupDefaulted: WordBool; safecall;
3448
 
    procedure Set_GroupDefaulted(retval: WordBool); safecall;
3449
 
    function  Get_DiscretionaryAcl: IDispatch; safecall;
3450
 
    procedure Set_DiscretionaryAcl(const retval: IDispatch); safecall;
3451
 
    function  Get_DaclDefaulted: WordBool; safecall;
3452
 
    procedure Set_DaclDefaulted(retval: WordBool); safecall;
3453
 
    function  Get_SystemAcl: IDispatch; safecall;
3454
 
    procedure Set_SystemAcl(const retval: IDispatch); safecall;
3455
 
    function  Get_SaclDefaulted: WordBool; safecall;
3456
 
    procedure Set_SaclDefaulted(retval: WordBool); safecall;
3457
 
    function  CopySecurityDescriptor: IDispatch; safecall;
3458
 
    property Revision: Integer read Get_Revision write Set_Revision;
3459
 
    property Control: Integer read Get_Control write Set_Control;
3460
 
    property Owner: WideString read Get_Owner write Set_Owner;
3461
 
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
3462
 
    property Group: WideString read Get_Group write Set_Group;
3463
 
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
3464
 
    property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
3465
 
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
3466
 
    property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
3467
 
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
3468
 
  end;
3469
 
 
3470
 
// *********************************************************************//
3471
 
// DispIntf:  IADsSecurityDescriptorDisp
3472
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3473
 
// GUID:      {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
3474
 
// *********************************************************************//
3475
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3476
 
  IADsSecurityDescriptorDisp = dispinterface
3477
 
    ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
3478
 
    property Revision: Integer dispid 2;
3479
 
    property Control: Integer dispid 3;
3480
 
    property Owner: WideString dispid 4;
3481
 
    property OwnerDefaulted: WordBool dispid 5;
3482
 
    property Group: WideString dispid 6;
3483
 
    property GroupDefaulted: WordBool dispid 7;
3484
 
    property DiscretionaryAcl: IDispatch dispid 8;
3485
 
    property DaclDefaulted: WordBool dispid 9;
3486
 
    property SystemAcl: IDispatch dispid 10;
3487
 
    property SaclDefaulted: WordBool dispid 11;
3488
 
    function  CopySecurityDescriptor: IDispatch; dispid 12;
3489
 
  end;
3490
 
  {$endif}
3491
 
// *********************************************************************//
3492
 
// Interface: IADsLargeInteger
3493
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3494
 
// GUID:      {9068270B-0939-11D1-8BE1-00C04FD8D503}
3495
 
// *********************************************************************//
3496
 
  IADsLargeInteger = interface(IDispatch)
3497
 
    ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
3498
 
    function  Get_HighPart: Integer; safecall;
3499
 
    procedure Set_HighPart(retval: Integer); safecall;
3500
 
    function  Get_LowPart: Integer; safecall;
3501
 
    procedure Set_LowPart(retval: Integer); safecall;
3502
 
    property HighPart: Integer read Get_HighPart write Set_HighPart;
3503
 
    property LowPart: Integer read Get_LowPart write Set_LowPart;
3504
 
  end;
3505
 
 
3506
 
// *********************************************************************//
3507
 
// DispIntf:  IADsLargeIntegerDisp
3508
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3509
 
// GUID:      {9068270B-0939-11D1-8BE1-00C04FD8D503}
3510
 
// *********************************************************************//
3511
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3512
 
  IADsLargeIntegerDisp = dispinterface
3513
 
    ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
3514
 
    property HighPart: Integer dispid 2;
3515
 
    property LowPart: Integer dispid 3;
3516
 
  end;
3517
 
  {$endif}
3518
 
// *********************************************************************//
3519
 
// Interface: IADsNameTranslate
3520
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3521
 
// GUID:      {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
3522
 
// *********************************************************************//
3523
 
  IADsNameTranslate = interface(IDispatch)
3524
 
    ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
3525
 
    procedure Set_ChaseReferral(Param1: Integer); safecall;
3526
 
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString); safecall;
3527
 
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
3528
 
                     const bstrUserID: WideString; const bstrDomain: WideString;
3529
 
                     const bstrPassword: WideString); safecall;
3530
 
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); safecall;
3531
 
    function  Get(lnFormatType: Integer): WideString; safecall;
3532
 
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant); safecall;
3533
 
    function  GetEx(lnFormatType: Integer): OleVariant; safecall;
3534
 
    property ChaseReferral: Integer write Set_ChaseReferral;
3535
 
  end;
3536
 
 
3537
 
// *********************************************************************//
3538
 
// DispIntf:  IADsNameTranslateDisp
3539
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3540
 
// GUID:      {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
3541
 
// *********************************************************************//
3542
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3543
 
  IADsNameTranslateDisp = dispinterface
3544
 
    ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
3545
 
    property ChaseReferral: Integer writeonly dispid 1;
3546
 
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString); dispid 2;
3547
 
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
3548
 
                     const bstrUserID: WideString; const bstrDomain: WideString;
3549
 
                     const bstrPassword: WideString); dispid 3;
3550
 
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); dispid 4;
3551
 
    function  Get(lnFormatType: Integer): WideString; dispid 5;
3552
 
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant); dispid 6;
3553
 
    function  GetEx(lnFormatType: Integer): OleVariant; dispid 7;
3554
 
  end;
3555
 
  {$endif}
3556
 
// *********************************************************************//
3557
 
// Interface: IADsCaseIgnoreList
3558
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3559
 
// GUID:      {7B66B533-4680-11D1-A3B4-00C04FB950DC}
3560
 
// *********************************************************************//
3561
 
  IADsCaseIgnoreList = interface(IDispatch)
3562
 
    ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
3563
 
    function  Get_CaseIgnoreList: OleVariant; safecall;
3564
 
    procedure Set_CaseIgnoreList(retval: OleVariant); safecall;
3565
 
    property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
3566
 
  end;
3567
 
 
3568
 
// *********************************************************************//
3569
 
// DispIntf:  IADsCaseIgnoreListDisp
3570
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3571
 
// GUID:      {7B66B533-4680-11D1-A3B4-00C04FB950DC}
3572
 
// *********************************************************************//
3573
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3574
 
  IADsCaseIgnoreListDisp = dispinterface
3575
 
    ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
3576
 
    property CaseIgnoreList: OleVariant dispid 2;
3577
 
  end;
3578
 
  {$endif}
3579
 
// *********************************************************************//
3580
 
// Interface: IADsFaxNumber
3581
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3582
 
// GUID:      {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
3583
 
// *********************************************************************//
3584
 
  IADsFaxNumber = interface(IDispatch)
3585
 
    ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
3586
 
    function  Get_TelephoneNumber: WideString; safecall;
3587
 
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
3588
 
    function  Get_Parameters: OleVariant; safecall;
3589
 
    procedure Set_Parameters(retval: OleVariant); safecall;
3590
 
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
3591
 
    property Parameters: OleVariant read Get_Parameters write Set_Parameters;
3592
 
  end;
3593
 
 
3594
 
// *********************************************************************//
3595
 
// DispIntf:  IADsFaxNumberDisp
3596
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3597
 
// GUID:      {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
3598
 
// *********************************************************************//
3599
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3600
 
  IADsFaxNumberDisp = dispinterface
3601
 
    ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
3602
 
    property TelephoneNumber: WideString dispid 2;
3603
 
    property Parameters: OleVariant dispid 3;
3604
 
  end;
3605
 
  {$endif}
3606
 
// *********************************************************************//
3607
 
// Interface: IADsNetAddress
3608
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3609
 
// GUID:      {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
3610
 
// *********************************************************************//
3611
 
  IADsNetAddress = interface(IDispatch)
3612
 
    ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
3613
 
    function  Get_AddressType: Integer; safecall;
3614
 
    procedure Set_AddressType(retval: Integer); safecall;
3615
 
    function  Get_Address: OleVariant; safecall;
3616
 
    procedure Set_Address(retval: OleVariant); safecall;
3617
 
    property AddressType: Integer read Get_AddressType write Set_AddressType;
3618
 
    property Address: OleVariant read Get_Address write Set_Address;
3619
 
  end;
3620
 
 
3621
 
// *********************************************************************//
3622
 
// DispIntf:  IADsNetAddressDisp
3623
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3624
 
// GUID:      {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
3625
 
// *********************************************************************//
3626
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3627
 
  IADsNetAddressDisp = dispinterface
3628
 
    ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
3629
 
    property AddressType: Integer dispid 2;
3630
 
    property Address: OleVariant dispid 3;
3631
 
  end;
3632
 
  {$endif}
3633
 
// *********************************************************************//
3634
 
// Interface: IADsOctetList
3635
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3636
 
// GUID:      {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
3637
 
// *********************************************************************//
3638
 
  IADsOctetList = interface(IDispatch)
3639
 
    ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
3640
 
    function  Get_OctetList: OleVariant; safecall;
3641
 
    procedure Set_OctetList(retval: OleVariant); safecall;
3642
 
    property OctetList: OleVariant read Get_OctetList write Set_OctetList;
3643
 
  end;
3644
 
 
3645
 
// *********************************************************************//
3646
 
// DispIntf:  IADsOctetListDisp
3647
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3648
 
// GUID:      {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
3649
 
// *********************************************************************//
3650
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3651
 
  IADsOctetListDisp = dispinterface
3652
 
    ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
3653
 
    property OctetList: OleVariant dispid 2;
3654
 
  end;
3655
 
  {$endif}
3656
 
// *********************************************************************//
3657
 
// Interface: IADsEmail
3658
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3659
 
// GUID:      {97AF011A-478E-11D1-A3B4-00C04FB950DC}
3660
 
// *********************************************************************//
3661
 
  IADsEmail = interface(IDispatch)
3662
 
    ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
3663
 
    function  Get_Type_: Integer; safecall;
3664
 
    procedure Set_Type_(retval: Integer); safecall;
3665
 
    function  Get_Address: WideString; safecall;
3666
 
    procedure Set_Address(const retval: WideString); safecall;
3667
 
    property Type_: Integer read Get_Type_ write Set_Type_;
3668
 
    property Address: WideString read Get_Address write Set_Address;
3669
 
  end;
3670
 
 
3671
 
// *********************************************************************//
3672
 
// DispIntf:  IADsEmailDisp
3673
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3674
 
// GUID:      {97AF011A-478E-11D1-A3B4-00C04FB950DC}
3675
 
// *********************************************************************//
3676
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3677
 
  IADsEmailDisp = dispinterface
3678
 
    ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
3679
 
    property Type_: Integer dispid 2;
3680
 
    property Address: WideString dispid 3;
3681
 
  end;
3682
 
  {$endif}
3683
 
// *********************************************************************//
3684
 
// Interface: IADsPath
3685
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3686
 
// GUID:      {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
3687
 
// *********************************************************************//
3688
 
  IADsPath = interface(IDispatch)
3689
 
    ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
3690
 
    function  Get_Type_: Integer; safecall;
3691
 
    procedure Set_Type_(retval: Integer); safecall;
3692
 
    function  Get_VolumeName: WideString; safecall;
3693
 
    procedure Set_VolumeName(const retval: WideString); safecall;
3694
 
    function  Get_Path: WideString; safecall;
3695
 
    procedure Set_Path(const retval: WideString); safecall;
3696
 
    property Type_: Integer read Get_Type_ write Set_Type_;
3697
 
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
3698
 
    property Path: WideString read Get_Path write Set_Path;
3699
 
  end;
3700
 
 
3701
 
// *********************************************************************//
3702
 
// DispIntf:  IADsPathDisp
3703
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3704
 
// GUID:      {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
3705
 
// *********************************************************************//
3706
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3707
 
  IADsPathDisp = dispinterface
3708
 
    ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
3709
 
    property Type_: Integer dispid 2;
3710
 
    property VolumeName: WideString dispid 3;
3711
 
    property Path: WideString dispid 4;
3712
 
  end;
3713
 
  {$endif}
3714
 
// *********************************************************************//
3715
 
// Interface: IADsReplicaPointer
3716
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3717
 
// GUID:      {F60FB803-4080-11D1-A3AC-00C04FB950DC}
3718
 
// *********************************************************************//
3719
 
  IADsReplicaPointer = interface(IDispatch)
3720
 
    ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
3721
 
    function  Get_ServerName: WideString; safecall;
3722
 
    procedure Set_ServerName(const retval: WideString); safecall;
3723
 
    function  Get_ReplicaType: Integer; safecall;
3724
 
    procedure Set_ReplicaType(retval: Integer); safecall;
3725
 
    function  Get_ReplicaNumber: Integer; safecall;
3726
 
    procedure Set_ReplicaNumber(retval: Integer); safecall;
3727
 
    function  Get_Count: Integer; safecall;
3728
 
    procedure Set_Count(retval: Integer); safecall;
3729
 
    function  Get_ReplicaAddressHints: OleVariant; safecall;
3730
 
    procedure Set_ReplicaAddressHints(retval: OleVariant); safecall;
3731
 
    property ServerName: WideString read Get_ServerName write Set_ServerName;
3732
 
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
3733
 
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
3734
 
    property Count: Integer read Get_Count write Set_Count;
3735
 
    property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
3736
 
  end;
3737
 
 
3738
 
// *********************************************************************//
3739
 
// DispIntf:  IADsReplicaPointerDisp
3740
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3741
 
// GUID:      {F60FB803-4080-11D1-A3AC-00C04FB950DC}
3742
 
// *********************************************************************//
3743
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3744
 
  IADsReplicaPointerDisp = dispinterface
3745
 
    ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
3746
 
    property ServerName: WideString dispid 2;
3747
 
    property ReplicaType: Integer dispid 3;
3748
 
    property ReplicaNumber: Integer dispid 4;
3749
 
    property Count: Integer dispid 5;
3750
 
    property ReplicaAddressHints: OleVariant dispid 6;
3751
 
  end;
3752
 
  {$endif}
3753
 
// *********************************************************************//
3754
 
// Interface: IADsAcl
3755
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3756
 
// GUID:      {8452D3AB-0869-11D1-A377-00C04FB950DC}
3757
 
// *********************************************************************//
3758
 
  IADsAcl = interface(IDispatch)
3759
 
    ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
3760
 
    function  Get_ProtectedAttrName: WideString; safecall;
3761
 
    procedure Set_ProtectedAttrName(const retval: WideString); safecall;
3762
 
    function  Get_SubjectName: WideString; safecall;
3763
 
    procedure Set_SubjectName(const retval: WideString); safecall;
3764
 
    function  Get_Privileges: Integer; safecall;
3765
 
    procedure Set_Privileges(retval: Integer); safecall;
3766
 
    function  CopyAcl: IDispatch; safecall;
3767
 
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
3768
 
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
3769
 
    property Privileges: Integer read Get_Privileges write Set_Privileges;
3770
 
  end;
3771
 
 
3772
 
// *********************************************************************//
3773
 
// DispIntf:  IADsAclDisp
3774
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3775
 
// GUID:      {8452D3AB-0869-11D1-A377-00C04FB950DC}
3776
 
// *********************************************************************//
3777
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3778
 
  IADsAclDisp = dispinterface
3779
 
    ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
3780
 
    property ProtectedAttrName: WideString dispid 2;
3781
 
    property SubjectName: WideString dispid 3;
3782
 
    property Privileges: Integer dispid 4;
3783
 
    function  CopyAcl: IDispatch; dispid 5;
3784
 
  end;
3785
 
  {$endif}
3786
 
// *********************************************************************//
3787
 
// Interface: IADsTimestamp
3788
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3789
 
// GUID:      {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
3790
 
// *********************************************************************//
3791
 
  IADsTimestamp = interface(IDispatch)
3792
 
    ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
3793
 
    function  Get_WholeSeconds: Integer; safecall;
3794
 
    procedure Set_WholeSeconds(retval: Integer); safecall;
3795
 
    function  Get_EventID: Integer; safecall;
3796
 
    procedure Set_EventID(retval: Integer); safecall;
3797
 
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
3798
 
    property EventID: Integer read Get_EventID write Set_EventID;
3799
 
  end;
3800
 
 
3801
 
// *********************************************************************//
3802
 
// DispIntf:  IADsTimestampDisp
3803
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3804
 
// GUID:      {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
3805
 
// *********************************************************************//
3806
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3807
 
  IADsTimestampDisp = dispinterface
3808
 
    ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
3809
 
    property WholeSeconds: Integer dispid 2;
3810
 
    property EventID: Integer dispid 3;
3811
 
  end;
3812
 
  {$endif}
3813
 
// *********************************************************************//
3814
 
// Interface: IADsPostalAddress
3815
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3816
 
// GUID:      {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
3817
 
// *********************************************************************//
3818
 
  IADsPostalAddress = interface(IDispatch)
3819
 
    ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
3820
 
    function  Get_PostalAddress: OleVariant; safecall;
3821
 
    procedure Set_PostalAddress(retval: OleVariant); safecall;
3822
 
    property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
3823
 
  end;
3824
 
 
3825
 
// *********************************************************************//
3826
 
// DispIntf:  IADsPostalAddressDisp
3827
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3828
 
// GUID:      {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
3829
 
// *********************************************************************//
3830
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3831
 
  IADsPostalAddressDisp = dispinterface
3832
 
    ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
3833
 
    property PostalAddress: OleVariant dispid 2;
3834
 
  end;
3835
 
  {$endif}
3836
 
// *********************************************************************//
3837
 
// Interface: IADsBackLink
3838
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3839
 
// GUID:      {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
3840
 
// *********************************************************************//
3841
 
  IADsBackLink = interface(IDispatch)
3842
 
    ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
3843
 
    function  Get_RemoteID: Integer; safecall;
3844
 
    procedure Set_RemoteID(retval: Integer); safecall;
3845
 
    function  Get_ObjectName: WideString; safecall;
3846
 
    procedure Set_ObjectName(const retval: WideString); safecall;
3847
 
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
3848
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
3849
 
  end;
3850
 
 
3851
 
// *********************************************************************//
3852
 
// DispIntf:  IADsBackLinkDisp
3853
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3854
 
// GUID:      {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
3855
 
// *********************************************************************//
3856
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3857
 
  IADsBackLinkDisp = dispinterface
3858
 
    ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
3859
 
    property RemoteID: Integer dispid 2;
3860
 
    property ObjectName: WideString dispid 3;
3861
 
  end;
3862
 
  {$endif}
3863
 
// *********************************************************************//
3864
 
// Interface: IADsTypedName
3865
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3866
 
// GUID:      {B371A349-4080-11D1-A3AC-00C04FB950DC}
3867
 
// *********************************************************************//
3868
 
  IADsTypedName = interface(IDispatch)
3869
 
    ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
3870
 
    function  Get_ObjectName: WideString; safecall;
3871
 
    procedure Set_ObjectName(const retval: WideString); safecall;
3872
 
    function  Get_Level: Integer; safecall;
3873
 
    procedure Set_Level(retval: Integer); safecall;
3874
 
    function  Get_Interval: Integer; safecall;
3875
 
    procedure Set_Interval(retval: Integer); safecall;
3876
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
3877
 
    property Level: Integer read Get_Level write Set_Level;
3878
 
    property Interval: Integer read Get_Interval write Set_Interval;
3879
 
  end;
3880
 
 
3881
 
// *********************************************************************//
3882
 
// DispIntf:  IADsTypedNameDisp
3883
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3884
 
// GUID:      {B371A349-4080-11D1-A3AC-00C04FB950DC}
3885
 
// *********************************************************************//
3886
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3887
 
  IADsTypedNameDisp = dispinterface
3888
 
    ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
3889
 
    property ObjectName: WideString dispid 2;
3890
 
    property Level: Integer dispid 3;
3891
 
    property Interval: Integer dispid 4;
3892
 
  end;
3893
 
  {$endif}
3894
 
// *********************************************************************//
3895
 
// Interface: IADsHold
3896
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3897
 
// GUID:      {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
3898
 
// *********************************************************************//
3899
 
  IADsHold = interface(IDispatch)
3900
 
    ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
3901
 
    function  Get_ObjectName: WideString; safecall;
3902
 
    procedure Set_ObjectName(const retval: WideString); safecall;
3903
 
    function  Get_Amount: Integer; safecall;
3904
 
    procedure Set_Amount(retval: Integer); safecall;
3905
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
3906
 
    property Amount: Integer read Get_Amount write Set_Amount;
3907
 
  end;
3908
 
 
3909
 
// *********************************************************************//
3910
 
// DispIntf:  IADsHoldDisp
3911
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3912
 
// GUID:      {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
3913
 
// *********************************************************************//
3914
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3915
 
  IADsHoldDisp = dispinterface
3916
 
    ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
3917
 
    property ObjectName: WideString dispid 2;
3918
 
    property Amount: Integer dispid 3;
3919
 
  end;
3920
 
  {$endif}
3921
 
// *********************************************************************//
3922
 
// Interface: IADsObjectOptions
3923
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3924
 
// GUID:      {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
3925
 
// *********************************************************************//
3926
 
  IADsObjectOptions = interface(IDispatch)
3927
 
    ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
3928
 
    function  GetOption(lnOption: Integer): OleVariant; safecall;
3929
 
    procedure SetOption(lnOption: Integer; vValue: OleVariant); safecall;
3930
 
  end;
3931
 
 
3932
 
// *********************************************************************//
3933
 
// DispIntf:  IADsObjectOptionsDisp
3934
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3935
 
// GUID:      {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
3936
 
// *********************************************************************//
3937
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3938
 
  IADsObjectOptionsDisp = dispinterface
3939
 
    ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
3940
 
    function  GetOption(lnOption: Integer): OleVariant; dispid 2;
3941
 
    procedure SetOption(lnOption: Integer; vValue: OleVariant); dispid 3;
3942
 
  end;
3943
 
  {$endif}
3944
 
// *********************************************************************//
3945
 
// Interface: IADsPathname
3946
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3947
 
// GUID:      {D592AED4-F420-11D0-A36E-00C04FB950DC}
3948
 
// *********************************************************************//
3949
 
  IADsPathname = interface(IDispatch)
3950
 
    ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
3951
 
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); safecall;
3952
 
    procedure SetDisplayType(lnDisplayType: Integer); safecall;
3953
 
    function  Retrieve(lnFormatType: Integer): WideString; safecall;
3954
 
    function  GetNumElements: Integer; safecall;
3955
 
    function  GetElement(lnElementIndex: Integer): WideString; safecall;
3956
 
    procedure AddLeafElement(const bstrLeafElement: WideString); safecall;
3957
 
    procedure RemoveLeafElement; safecall;
3958
 
    function  CopyPath: IDispatch; safecall;
3959
 
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; safecall;
3960
 
    function  Get_EscapedMode: Integer; safecall;
3961
 
    procedure Set_EscapedMode(retval: Integer); safecall;
3962
 
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
3963
 
  end;
3964
 
 
3965
 
// *********************************************************************//
3966
 
// DispIntf:  IADsPathnameDisp
3967
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3968
 
// GUID:      {D592AED4-F420-11D0-A36E-00C04FB950DC}
3969
 
// *********************************************************************//
3970
 
  {$ifdef SUPPORTS_DISPINTERFACE}
3971
 
  IADsPathnameDisp = dispinterface
3972
 
    ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
3973
 
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); dispid 2;
3974
 
    procedure SetDisplayType(lnDisplayType: Integer); dispid 3;
3975
 
    function  Retrieve(lnFormatType: Integer): WideString; dispid 4;
3976
 
    function  GetNumElements: Integer; dispid 5;
3977
 
    function  GetElement(lnElementIndex: Integer): WideString; dispid 6;
3978
 
    procedure AddLeafElement(const bstrLeafElement: WideString); dispid 7;
3979
 
    procedure RemoveLeafElement; dispid 8;
3980
 
    function  CopyPath: IDispatch; dispid 9;
3981
 
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; dispid 10;
3982
 
    property EscapedMode: Integer dispid 11;
3983
 
  end;
3984
 
  {$endif}
3985
 
// *********************************************************************//
3986
 
// Interface: IADsADSystemInfo
3987
 
// Flags:     (4416) Dual OleAutomation Dispatchable
3988
 
// GUID:      {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
3989
 
// *********************************************************************//
3990
 
  IADsADSystemInfo = interface(IDispatch)
3991
 
    ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
3992
 
    function  Get_UserName: WideString; safecall;
3993
 
    function  Get_ComputerName: WideString; safecall;
3994
 
    function  Get_SiteName: WideString; safecall;
3995
 
    function  Get_DomainShortName: WideString; safecall;
3996
 
    function  Get_DomainDNSName: WideString; safecall;
3997
 
    function  Get_ForestDNSName: WideString; safecall;
3998
 
    function  Get_PDCRoleOwner: WideString; safecall;
3999
 
    function  Get_SchemaRoleOwner: WideString; safecall;
4000
 
    function  Get_IsNativeMode: WordBool; safecall;
4001
 
    function  GetAnyDCName: WideString; safecall;
4002
 
    function  GetDCSiteName(const szServer: WideString): WideString; safecall;
4003
 
    procedure RefreshSchemaCache; safecall;
4004
 
    function  GetTrees: OleVariant; safecall;
4005
 
    property UserName: WideString read Get_UserName;
4006
 
    property ComputerName: WideString read Get_ComputerName;
4007
 
    property SiteName: WideString read Get_SiteName;
4008
 
    property DomainShortName: WideString read Get_DomainShortName;
4009
 
    property DomainDNSName: WideString read Get_DomainDNSName;
4010
 
    property ForestDNSName: WideString read Get_ForestDNSName;
4011
 
    property PDCRoleOwner: WideString read Get_PDCRoleOwner;
4012
 
    property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
4013
 
    property IsNativeMode: WordBool read Get_IsNativeMode;
4014
 
  end;
4015
 
 
4016
 
// *********************************************************************//
4017
 
// DispIntf:  IADsADSystemInfoDisp
4018
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4019
 
// GUID:      {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
4020
 
// *********************************************************************//
4021
 
  {$ifdef SUPPORTS_DISPINTERFACE}
4022
 
  IADsADSystemInfoDisp = dispinterface
4023
 
    ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
4024
 
    property UserName: WideString readonly dispid 2;
4025
 
    property ComputerName: WideString readonly dispid 3;
4026
 
    property SiteName: WideString readonly dispid 4;
4027
 
    property DomainShortName: WideString readonly dispid 5;
4028
 
    property DomainDNSName: WideString readonly dispid 6;
4029
 
    property ForestDNSName: WideString readonly dispid 7;
4030
 
    property PDCRoleOwner: WideString readonly dispid 8;
4031
 
    property SchemaRoleOwner: WideString readonly dispid 9;
4032
 
    property IsNativeMode: WordBool readonly dispid 10;
4033
 
    function  GetAnyDCName: WideString; dispid 11;
4034
 
    function  GetDCSiteName(const szServer: WideString): WideString; dispid 12;
4035
 
    procedure RefreshSchemaCache; dispid 13;
4036
 
    function  GetTrees: OleVariant; dispid 14;
4037
 
  end;
4038
 
  {$endif}
4039
 
// *********************************************************************//
4040
 
// Interface: IADsWinNTSystemInfo
4041
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4042
 
// GUID:      {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
4043
 
// *********************************************************************//
4044
 
  IADsWinNTSystemInfo = interface(IDispatch)
4045
 
    ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
4046
 
    function  Get_UserName: WideString; safecall;
4047
 
    function  Get_ComputerName: WideString; safecall;
4048
 
    function  Get_DomainName: WideString; safecall;
4049
 
    function  Get_PDC: WideString; safecall;
4050
 
    property UserName: WideString read Get_UserName;
4051
 
    property ComputerName: WideString read Get_ComputerName;
4052
 
    property DomainName: WideString read Get_DomainName;
4053
 
    property PDC: WideString read Get_PDC;
4054
 
  end;
4055
 
 
4056
 
// *********************************************************************//
4057
 
// DispIntf:  IADsWinNTSystemInfoDisp
4058
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4059
 
// GUID:      {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
4060
 
// *********************************************************************//
4061
 
  {$ifdef SUPPORTS_DISPINTERFACE}
4062
 
  IADsWinNTSystemInfoDisp = dispinterface
4063
 
    ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
4064
 
    property UserName: WideString readonly dispid 2;
4065
 
    property ComputerName: WideString readonly dispid 3;
4066
 
    property DomainName: WideString readonly dispid 4;
4067
 
    property PDC: WideString readonly dispid 5;
4068
 
  end;
4069
 
  {$endif}
4070
 
// *********************************************************************//
4071
 
// Interface: IADsDNWithBinary
4072
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4073
 
// GUID:      {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
4074
 
// *********************************************************************//
4075
 
  IADsDNWithBinary = interface(IDispatch)
4076
 
    ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
4077
 
    function  Get_BinaryValue: OleVariant; safecall;
4078
 
    procedure Set_BinaryValue(retval: OleVariant); safecall;
4079
 
    function  Get_DNString: WideString; safecall;
4080
 
    procedure Set_DNString(const retval: WideString); safecall;
4081
 
    property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
4082
 
    property DNString: WideString read Get_DNString write Set_DNString;
4083
 
  end;
4084
 
 
4085
 
// *********************************************************************//
4086
 
// DispIntf:  IADsDNWithBinaryDisp
4087
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4088
 
// GUID:      {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
4089
 
// *********************************************************************//
4090
 
  {$ifdef SUPPORTS_DISPINTERFACE}
4091
 
  IADsDNWithBinaryDisp = dispinterface
4092
 
    ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
4093
 
    property BinaryValue: OleVariant dispid 2;
4094
 
    property DNString: WideString dispid 3;
4095
 
  end;
4096
 
  {$endif}
4097
 
 
4098
 
// *********************************************************************//
4099
 
// Interface: IADsDNWithString
4100
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4101
 
// GUID:      {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
4102
 
// *********************************************************************//
4103
 
  IADsDNWithString = interface(IDispatch)
4104
 
    ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
4105
 
    function  Get_StringValue: WideString; safecall;
4106
 
    procedure Set_StringValue(const retval: WideString); safecall;
4107
 
    function  Get_DNString: WideString; safecall;
4108
 
    procedure Set_DNString(const retval: WideString); safecall;
4109
 
    property StringValue: WideString read Get_StringValue write Set_StringValue;
4110
 
    property DNString: WideString read Get_DNString write Set_DNString;
4111
 
  end;
4112
 
 
4113
 
// *********************************************************************//
4114
 
// DispIntf:  IADsDNWithStringDisp
4115
 
// Flags:     (4416) Dual OleAutomation Dispatchable
4116
 
// GUID:      {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
4117
 
// *********************************************************************//
4118
 
  {$ifdef SUPPORTS_DISPINTERFACE}
4119
 
  IADsDNWithStringDisp = dispinterface
4120
 
    ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
4121
 
    property StringValue: WideString dispid 2;
4122
 
    property DNString: WideString dispid 3;
4123
 
  end;
4124
 
  {$endif}
4125
 
// *********************************************************************//
4126
 
// The Class CoPropertyEntry provides a Create and CreateRemote method to
4127
 
// create instances of the default interface IADsPropertyEntry exposed by
4128
 
// the CoClass PropertyEntry. The functions are intended to be used by
4129
 
// clients wishing to automate the CoClass objects exposed by the
4130
 
// server of this typelibrary.
4131
 
// *********************************************************************//
4132
 
  CoPropertyEntry = class
4133
 
    class function Create: IADsPropertyEntry;
4134
 
    class function CreateRemote(const MachineName: string): IADsPropertyEntry;
4135
 
  end;
4136
 
 
4137
 
// *********************************************************************//
4138
 
// OLE Server Proxy class declaration
4139
 
// Server Object    : TPropertyEntry
4140
 
// Help String      :
4141
 
// Default Interface: IADsPropertyEntry
4142
 
// Def. Intf. DISP? : No
4143
 
// Event   Interface:
4144
 
// TypeFlags        : (2) CanCreate
4145
 
// *********************************************************************//
4146
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4147
 
  TPropertyEntryProperties= class;
4148
 
{$ENDIF}
4149
 
  TPropertyEntry = class(TOleServer)
4150
 
  private
4151
 
    FIntf:        IADsPropertyEntry;
4152
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4153
 
    FProps:       TPropertyEntryProperties;
4154
 
    function      GetServerProperties: TPropertyEntryProperties;
4155
 
{$ENDIF}
4156
 
    function      GetDefaultInterface: IADsPropertyEntry;
4157
 
  protected
4158
 
    procedure InitServerData; override;
4159
 
    function  Get_Name: WideString;
4160
 
    procedure Set_Name(const retval: WideString);
4161
 
    function  Get_ADsType: Integer;
4162
 
    procedure Set_ADsType(retval: Integer);
4163
 
    function  Get_ControlCode: Integer;
4164
 
    procedure Set_ControlCode(retval: Integer);
4165
 
    function  Get_Values: OleVariant;
4166
 
    procedure Set_Values(retval: OleVariant);
4167
 
  public
4168
 
    constructor Create(AOwner: TComponent); override;
4169
 
    destructor  Destroy; override;
4170
 
    procedure Connect; override;
4171
 
    procedure ConnectTo(svrIntf: IADsPropertyEntry);
4172
 
    procedure Disconnect; override;
4173
 
    procedure Clear;
4174
 
    property  DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
4175
 
    property Values: OleVariant read Get_Values write Set_Values;
4176
 
    property Name: WideString read Get_Name write Set_Name;
4177
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
4178
 
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
4179
 
  published
4180
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4181
 
    property Server: TPropertyEntryProperties read GetServerProperties;
4182
 
{$ENDIF}
4183
 
  end;
4184
 
 
4185
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4186
 
// *********************************************************************//
4187
 
// OLE Server Properties Proxy Class
4188
 
// Server Object    : TPropertyEntry
4189
 
// (This object is used by the IDE's Property Inspector to allow editing
4190
 
//  of the properties of this server)
4191
 
// *********************************************************************//
4192
 
 TPropertyEntryProperties = class(TPersistent)
4193
 
  private
4194
 
    FServer:    TPropertyEntry;
4195
 
    function    GetDefaultInterface: IADsPropertyEntry;
4196
 
    constructor Create(AServer: TPropertyEntry);
4197
 
  protected
4198
 
    function  Get_Name: WideString;
4199
 
    procedure Set_Name(const retval: WideString);
4200
 
    function  Get_ADsType: Integer;
4201
 
    procedure Set_ADsType(retval: Integer);
4202
 
    function  Get_ControlCode: Integer;
4203
 
    procedure Set_ControlCode(retval: Integer);
4204
 
    function  Get_Values: OleVariant;
4205
 
    procedure Set_Values(retval: OleVariant);
4206
 
  public
4207
 
    property DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
4208
 
  published
4209
 
    property Name: WideString read Get_Name write Set_Name;
4210
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
4211
 
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
4212
 
  end;
4213
 
{$ENDIF}
4214
 
 
4215
 
// *********************************************************************//
4216
 
// The Class CoPropertyValue provides a Create and CreateRemote method to
4217
 
// create instances of the default interface IADsPropertyValue exposed by
4218
 
// the CoClass PropertyValue. The functions are intended to be used by
4219
 
// clients wishing to automate the CoClass objects exposed by the
4220
 
// server of this typelibrary.
4221
 
// *********************************************************************//
4222
 
  CoPropertyValue = class
4223
 
    class function Create: IADsPropertyValue;
4224
 
    class function CreateRemote(const MachineName: string): IADsPropertyValue;
4225
 
  end;
4226
 
 
4227
 
// *********************************************************************//
4228
 
// OLE Server Proxy class declaration
4229
 
// Server Object    : TPropertyValue
4230
 
// Help String      :
4231
 
// Default Interface: IADsPropertyValue
4232
 
// Def. Intf. DISP? : No
4233
 
// Event   Interface:
4234
 
// TypeFlags        : (2) CanCreate
4235
 
// *********************************************************************//
4236
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4237
 
  TPropertyValueProperties= class;
4238
 
{$ENDIF}
4239
 
  TPropertyValue = class(TOleServer)
4240
 
  private
4241
 
    FIntf:        IADsPropertyValue;
4242
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4243
 
    FProps:       TPropertyValueProperties;
4244
 
    function      GetServerProperties: TPropertyValueProperties;
4245
 
{$ENDIF}
4246
 
    function      GetDefaultInterface: IADsPropertyValue;
4247
 
  protected
4248
 
    procedure InitServerData; override;
4249
 
    function  Get_ADsType: Integer;
4250
 
    procedure Set_ADsType(retval: Integer);
4251
 
    function  Get_DNString: WideString;
4252
 
    procedure Set_DNString(const retval: WideString);
4253
 
    function  Get_CaseExactString: WideString;
4254
 
    procedure Set_CaseExactString(const retval: WideString);
4255
 
    function  Get_CaseIgnoreString: WideString;
4256
 
    procedure Set_CaseIgnoreString(const retval: WideString);
4257
 
    function  Get_PrintableString: WideString;
4258
 
    procedure Set_PrintableString(const retval: WideString);
4259
 
    function  Get_NumericString: WideString;
4260
 
    procedure Set_NumericString(const retval: WideString);
4261
 
    function  Get_Boolean: Integer;
4262
 
    procedure Set_Boolean(retval: Integer);
4263
 
    function  Get_Integer: Integer;
4264
 
    procedure Set_Integer(retval: Integer);
4265
 
    function  Get_OctetString: OleVariant;
4266
 
    procedure Set_OctetString(retval: OleVariant);
4267
 
    function  Get_SecurityDescriptor: IDispatch;
4268
 
    procedure Set_SecurityDescriptor(const retval: IDispatch);
4269
 
    function  Get_LargeInteger: IDispatch;
4270
 
    procedure Set_LargeInteger(const retval: IDispatch);
4271
 
    function  Get_UTCTime: TDateTime;
4272
 
    procedure Set_UTCTime(retval: TDateTime);
4273
 
  public
4274
 
    constructor Create(AOwner: TComponent); override;
4275
 
    destructor  Destroy; override;
4276
 
    procedure Connect; override;
4277
 
    procedure ConnectTo(svrIntf: IADsPropertyValue);
4278
 
    procedure Disconnect; override;
4279
 
    procedure Clear;
4280
 
    property  DefaultInterface: IADsPropertyValue read GetDefaultInterface;
4281
 
    property OctetString: OleVariant read Get_OctetString write Set_OctetString;
4282
 
    property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
4283
 
    property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
4284
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
4285
 
    property DNString: WideString read Get_DNString write Set_DNString;
4286
 
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
4287
 
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
4288
 
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
4289
 
    property NumericString: WideString read Get_NumericString write Set_NumericString;
4290
 
    property Boolean: Integer read Get_Boolean write Set_Boolean;
4291
 
    property Integer: Integer read Get_Integer write Set_Integer;
4292
 
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
4293
 
  published
4294
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4295
 
    property Server: TPropertyValueProperties read GetServerProperties;
4296
 
{$ENDIF}
4297
 
  end;
4298
 
 
4299
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4300
 
// *********************************************************************//
4301
 
// OLE Server Properties Proxy Class
4302
 
// Server Object    : TPropertyValue
4303
 
// (This object is used by the IDE's Property Inspector to allow editing
4304
 
//  of the properties of this server)
4305
 
// *********************************************************************//
4306
 
 TPropertyValueProperties = class(TPersistent)
4307
 
  private
4308
 
    FServer:    TPropertyValue;
4309
 
    function    GetDefaultInterface: IADsPropertyValue;
4310
 
    constructor Create(AServer: TPropertyValue);
4311
 
  protected
4312
 
    function  Get_ADsType: Integer;
4313
 
    procedure Set_ADsType(retval: Integer);
4314
 
    function  Get_DNString: WideString;
4315
 
    procedure Set_DNString(const retval: WideString);
4316
 
    function  Get_CaseExactString: WideString;
4317
 
    procedure Set_CaseExactString(const retval: WideString);
4318
 
    function  Get_CaseIgnoreString: WideString;
4319
 
    procedure Set_CaseIgnoreString(const retval: WideString);
4320
 
    function  Get_PrintableString: WideString;
4321
 
    procedure Set_PrintableString(const retval: WideString);
4322
 
    function  Get_NumericString: WideString;
4323
 
    procedure Set_NumericString(const retval: WideString);
4324
 
    function  Get_Boolean: Integer;
4325
 
    procedure Set_Boolean(retval: Integer);
4326
 
    function  Get_Integer: Integer;
4327
 
    procedure Set_Integer(retval: Integer);
4328
 
    function  Get_OctetString: OleVariant;
4329
 
    procedure Set_OctetString(retval: OleVariant);
4330
 
    function  Get_SecurityDescriptor: IDispatch;
4331
 
    procedure Set_SecurityDescriptor(const retval: IDispatch);
4332
 
    function  Get_LargeInteger: IDispatch;
4333
 
    procedure Set_LargeInteger(const retval: IDispatch);
4334
 
    function  Get_UTCTime: TDateTime;
4335
 
    procedure Set_UTCTime(retval: TDateTime);
4336
 
  public
4337
 
    property DefaultInterface: IADsPropertyValue read GetDefaultInterface;
4338
 
  published
4339
 
    property ADsType: Integer read Get_ADsType write Set_ADsType;
4340
 
    property DNString: WideString read Get_DNString write Set_DNString;
4341
 
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
4342
 
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
4343
 
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
4344
 
    property NumericString: WideString read Get_NumericString write Set_NumericString;
4345
 
    property Boolean: Integer read Get_Boolean write Set_Boolean;
4346
 
    property Integer: Integer read Get_Integer write Set_Integer;
4347
 
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
4348
 
  end;
4349
 
{$ENDIF}
4350
 
 
4351
 
// *********************************************************************//
4352
 
// The Class CoAccessControlEntry provides a Create and CreateRemote method to
4353
 
// create instances of the default interface IADsAccessControlEntry exposed by
4354
 
// the CoClass AccessControlEntry. The functions are intended to be used by
4355
 
// clients wishing to automate the CoClass objects exposed by the
4356
 
// server of this typelibrary.
4357
 
// *********************************************************************//
4358
 
  CoAccessControlEntry = class
4359
 
    class function Create: IADsAccessControlEntry;
4360
 
    class function CreateRemote(const MachineName: string): IADsAccessControlEntry;
4361
 
  end;
4362
 
 
4363
 
// *********************************************************************//
4364
 
// OLE Server Proxy class declaration
4365
 
// Server Object    : TAccessControlEntry
4366
 
// Help String      :
4367
 
// Default Interface: IADsAccessControlEntry
4368
 
// Def. Intf. DISP? : No
4369
 
// Event   Interface:
4370
 
// TypeFlags        : (2) CanCreate
4371
 
// *********************************************************************//
4372
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4373
 
  TAccessControlEntryProperties= class;
4374
 
{$ENDIF}
4375
 
  TAccessControlEntry = class(TOleServer)
4376
 
  private
4377
 
    FIntf:        IADsAccessControlEntry;
4378
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4379
 
    FProps:       TAccessControlEntryProperties;
4380
 
    function      GetServerProperties: TAccessControlEntryProperties;
4381
 
{$ENDIF}
4382
 
    function      GetDefaultInterface: IADsAccessControlEntry;
4383
 
  protected
4384
 
    procedure InitServerData; override;
4385
 
    function  Get_AccessMask: Integer;
4386
 
    procedure Set_AccessMask(retval: Integer);
4387
 
    function  Get_AceType: Integer;
4388
 
    procedure Set_AceType(retval: Integer);
4389
 
    function  Get_AceFlags: Integer;
4390
 
    procedure Set_AceFlags(retval: Integer);
4391
 
    function  Get_Flags: Integer;
4392
 
    procedure Set_Flags(retval: Integer);
4393
 
    function  Get_ObjectType: WideString;
4394
 
    procedure Set_ObjectType(const retval: WideString);
4395
 
    function  Get_InheritedObjectType: WideString;
4396
 
    procedure Set_InheritedObjectType(const retval: WideString);
4397
 
    function  Get_Trustee: WideString;
4398
 
    procedure Set_Trustee(const retval: WideString);
4399
 
  public
4400
 
    constructor Create(AOwner: TComponent); override;
4401
 
    destructor  Destroy; override;
4402
 
    procedure Connect; override;
4403
 
    procedure ConnectTo(svrIntf: IADsAccessControlEntry);
4404
 
    procedure Disconnect; override;
4405
 
    property  DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
4406
 
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
4407
 
    property AceType: Integer read Get_AceType write Set_AceType;
4408
 
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
4409
 
    property Flags: Integer read Get_Flags write Set_Flags;
4410
 
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
4411
 
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
4412
 
    property Trustee: WideString read Get_Trustee write Set_Trustee;
4413
 
  published
4414
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4415
 
    property Server: TAccessControlEntryProperties read GetServerProperties;
4416
 
{$ENDIF}
4417
 
  end;
4418
 
 
4419
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4420
 
// *********************************************************************//
4421
 
// OLE Server Properties Proxy Class
4422
 
// Server Object    : TAccessControlEntry
4423
 
// (This object is used by the IDE's Property Inspector to allow editing
4424
 
//  of the properties of this server)
4425
 
// *********************************************************************//
4426
 
 TAccessControlEntryProperties = class(TPersistent)
4427
 
  private
4428
 
    FServer:    TAccessControlEntry;
4429
 
    function    GetDefaultInterface: IADsAccessControlEntry;
4430
 
    constructor Create(AServer: TAccessControlEntry);
4431
 
  protected
4432
 
    function  Get_AccessMask: Integer;
4433
 
    procedure Set_AccessMask(retval: Integer);
4434
 
    function  Get_AceType: Integer;
4435
 
    procedure Set_AceType(retval: Integer);
4436
 
    function  Get_AceFlags: Integer;
4437
 
    procedure Set_AceFlags(retval: Integer);
4438
 
    function  Get_Flags: Integer;
4439
 
    procedure Set_Flags(retval: Integer);
4440
 
    function  Get_ObjectType: WideString;
4441
 
    procedure Set_ObjectType(const retval: WideString);
4442
 
    function  Get_InheritedObjectType: WideString;
4443
 
    procedure Set_InheritedObjectType(const retval: WideString);
4444
 
    function  Get_Trustee: WideString;
4445
 
    procedure Set_Trustee(const retval: WideString);
4446
 
  public
4447
 
    property DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
4448
 
  published
4449
 
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
4450
 
    property AceType: Integer read Get_AceType write Set_AceType;
4451
 
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
4452
 
    property Flags: Integer read Get_Flags write Set_Flags;
4453
 
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
4454
 
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
4455
 
    property Trustee: WideString read Get_Trustee write Set_Trustee;
4456
 
  end;
4457
 
{$ENDIF}
4458
 
 
4459
 
// *********************************************************************//
4460
 
// The Class CoAccessControlList provides a Create and CreateRemote method to
4461
 
// create instances of the default interface IADsAccessControlList exposed by
4462
 
// the CoClass AccessControlList. The functions are intended to be used by
4463
 
// clients wishing to automate the CoClass objects exposed by the
4464
 
// server of this typelibrary.
4465
 
// *********************************************************************//
4466
 
  CoAccessControlList = class
4467
 
    class function Create: IADsAccessControlList;
4468
 
    class function CreateRemote(const MachineName: string): IADsAccessControlList;
4469
 
  end;
4470
 
 
4471
 
// *********************************************************************//
4472
 
// OLE Server Proxy class declaration
4473
 
// Server Object    : TAccessControlList
4474
 
// Help String      :
4475
 
// Default Interface: IADsAccessControlList
4476
 
// Def. Intf. DISP? : No
4477
 
// Event   Interface:
4478
 
// TypeFlags        : (2) CanCreate
4479
 
// *********************************************************************//
4480
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4481
 
  TAccessControlListProperties= class;
4482
 
{$ENDIF}
4483
 
  TAccessControlList = class(TOleServer)
4484
 
  private
4485
 
    FIntf:        IADsAccessControlList;
4486
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4487
 
    FProps:       TAccessControlListProperties;
4488
 
    function      GetServerProperties: TAccessControlListProperties;
4489
 
{$ENDIF}
4490
 
    function      GetDefaultInterface: IADsAccessControlList;
4491
 
  protected
4492
 
    procedure InitServerData; override;
4493
 
    function  Get_AclRevision: Integer;
4494
 
    procedure Set_AclRevision(retval: Integer);
4495
 
    function  Get_AceCount: Integer;
4496
 
    procedure Set_AceCount(retval: Integer);
4497
 
  public
4498
 
    constructor Create(AOwner: TComponent); override;
4499
 
    destructor  Destroy; override;
4500
 
    procedure Connect; override;
4501
 
    procedure ConnectTo(svrIntf: IADsAccessControlList);
4502
 
    procedure Disconnect; override;
4503
 
    procedure AddAce(const pAccessControlEntry: IDispatch);
4504
 
    procedure RemoveAce(const pAccessControlEntry: IDispatch);
4505
 
    function  CopyAccessList: IDispatch;
4506
 
    property  DefaultInterface: IADsAccessControlList read GetDefaultInterface;
4507
 
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
4508
 
    property AceCount: Integer read Get_AceCount write Set_AceCount;
4509
 
  published
4510
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4511
 
    property Server: TAccessControlListProperties read GetServerProperties;
4512
 
{$ENDIF}
4513
 
  end;
4514
 
 
4515
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4516
 
// *********************************************************************//
4517
 
// OLE Server Properties Proxy Class
4518
 
// Server Object    : TAccessControlList
4519
 
// (This object is used by the IDE's Property Inspector to allow editing
4520
 
//  of the properties of this server)
4521
 
// *********************************************************************//
4522
 
 TAccessControlListProperties = class(TPersistent)
4523
 
  private
4524
 
    FServer:    TAccessControlList;
4525
 
    function    GetDefaultInterface: IADsAccessControlList;
4526
 
    constructor Create(AServer: TAccessControlList);
4527
 
  protected
4528
 
    function  Get_AclRevision: Integer;
4529
 
    procedure Set_AclRevision(retval: Integer);
4530
 
    function  Get_AceCount: Integer;
4531
 
    procedure Set_AceCount(retval: Integer);
4532
 
  public
4533
 
    property DefaultInterface: IADsAccessControlList read GetDefaultInterface;
4534
 
  published
4535
 
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
4536
 
    property AceCount: Integer read Get_AceCount write Set_AceCount;
4537
 
  end;
4538
 
{$ENDIF}
4539
 
 
4540
 
// *********************************************************************//
4541
 
// The Class CoSecurityDescriptor provides a Create and CreateRemote method to
4542
 
// create instances of the default interface IADsSecurityDescriptor exposed by
4543
 
// the CoClass SecurityDescriptor. The functions are intended to be used by
4544
 
// clients wishing to automate the CoClass objects exposed by the
4545
 
// server of this typelibrary.
4546
 
// *********************************************************************//
4547
 
  CoSecurityDescriptor = class
4548
 
    class function Create: IADsSecurityDescriptor;
4549
 
    class function CreateRemote(const MachineName: string): IADsSecurityDescriptor;
4550
 
  end;
4551
 
 
4552
 
// *********************************************************************//
4553
 
// OLE Server Proxy class declaration
4554
 
// Server Object    : TSecurityDescriptor
4555
 
// Help String      :
4556
 
// Default Interface: IADsSecurityDescriptor
4557
 
// Def. Intf. DISP? : No
4558
 
// Event   Interface:
4559
 
// TypeFlags        : (2) CanCreate
4560
 
// *********************************************************************//
4561
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4562
 
  TSecurityDescriptorProperties= class;
4563
 
{$ENDIF}
4564
 
  TSecurityDescriptor = class(TOleServer)
4565
 
  private
4566
 
    FIntf:        IADsSecurityDescriptor;
4567
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4568
 
    FProps:       TSecurityDescriptorProperties;
4569
 
    function      GetServerProperties: TSecurityDescriptorProperties;
4570
 
{$ENDIF}
4571
 
    function      GetDefaultInterface: IADsSecurityDescriptor;
4572
 
  protected
4573
 
    procedure InitServerData; override;
4574
 
    function  Get_Revision: Integer;
4575
 
    procedure Set_Revision(retval: Integer);
4576
 
    function  Get_Control: Integer;
4577
 
    procedure Set_Control(retval: Integer);
4578
 
    function  Get_Owner: WideString;
4579
 
    procedure Set_Owner(const retval: WideString);
4580
 
    function  Get_OwnerDefaulted: WordBool;
4581
 
    procedure Set_OwnerDefaulted(retval: WordBool);
4582
 
    function  Get_Group: WideString;
4583
 
    procedure Set_Group(const retval: WideString);
4584
 
    function  Get_GroupDefaulted: WordBool;
4585
 
    procedure Set_GroupDefaulted(retval: WordBool);
4586
 
    function  Get_DiscretionaryAcl: IDispatch;
4587
 
    procedure Set_DiscretionaryAcl(const retval: IDispatch);
4588
 
    function  Get_DaclDefaulted: WordBool;
4589
 
    procedure Set_DaclDefaulted(retval: WordBool);
4590
 
    function  Get_SystemAcl: IDispatch;
4591
 
    procedure Set_SystemAcl(const retval: IDispatch);
4592
 
    function  Get_SaclDefaulted: WordBool;
4593
 
    procedure Set_SaclDefaulted(retval: WordBool);
4594
 
  public
4595
 
    constructor Create(AOwner: TComponent); override;
4596
 
    destructor  Destroy; override;
4597
 
    procedure Connect; override;
4598
 
    procedure ConnectTo(svrIntf: IADsSecurityDescriptor);
4599
 
    procedure Disconnect; override;
4600
 
    function  CopySecurityDescriptor: IDispatch;
4601
 
    property  DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
4602
 
    property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
4603
 
    property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
4604
 
    property Revision: Integer read Get_Revision write Set_Revision;
4605
 
    property Control: Integer read Get_Control write Set_Control;
4606
 
    property Owner: WideString read Get_Owner write Set_Owner;
4607
 
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
4608
 
    property Group: WideString read Get_Group write Set_Group;
4609
 
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
4610
 
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
4611
 
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
4612
 
  published
4613
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4614
 
    property Server: TSecurityDescriptorProperties read GetServerProperties;
4615
 
{$ENDIF}
4616
 
  end;
4617
 
 
4618
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4619
 
// *********************************************************************//
4620
 
// OLE Server Properties Proxy Class
4621
 
// Server Object    : TSecurityDescriptor
4622
 
// (This object is used by the IDE's Property Inspector to allow editing
4623
 
//  of the properties of this server)
4624
 
// *********************************************************************//
4625
 
 TSecurityDescriptorProperties = class(TPersistent)
4626
 
  private
4627
 
    FServer:    TSecurityDescriptor;
4628
 
    function    GetDefaultInterface: IADsSecurityDescriptor;
4629
 
    constructor Create(AServer: TSecurityDescriptor);
4630
 
  protected
4631
 
    function  Get_Revision: Integer;
4632
 
    procedure Set_Revision(retval: Integer);
4633
 
    function  Get_Control: Integer;
4634
 
    procedure Set_Control(retval: Integer);
4635
 
    function  Get_Owner: WideString;
4636
 
    procedure Set_Owner(const retval: WideString);
4637
 
    function  Get_OwnerDefaulted: WordBool;
4638
 
    procedure Set_OwnerDefaulted(retval: WordBool);
4639
 
    function  Get_Group: WideString;
4640
 
    procedure Set_Group(const retval: WideString);
4641
 
    function  Get_GroupDefaulted: WordBool;
4642
 
    procedure Set_GroupDefaulted(retval: WordBool);
4643
 
    function  Get_DiscretionaryAcl: IDispatch;
4644
 
    procedure Set_DiscretionaryAcl(const retval: IDispatch);
4645
 
    function  Get_DaclDefaulted: WordBool;
4646
 
    procedure Set_DaclDefaulted(retval: WordBool);
4647
 
    function  Get_SystemAcl: IDispatch;
4648
 
    procedure Set_SystemAcl(const retval: IDispatch);
4649
 
    function  Get_SaclDefaulted: WordBool;
4650
 
    procedure Set_SaclDefaulted(retval: WordBool);
4651
 
  public
4652
 
    property DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
4653
 
  published
4654
 
    property Revision: Integer read Get_Revision write Set_Revision;
4655
 
    property Control: Integer read Get_Control write Set_Control;
4656
 
    property Owner: WideString read Get_Owner write Set_Owner;
4657
 
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
4658
 
    property Group: WideString read Get_Group write Set_Group;
4659
 
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
4660
 
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
4661
 
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
4662
 
  end;
4663
 
{$ENDIF}
4664
 
 
4665
 
// *********************************************************************//
4666
 
// The Class CoLargeInteger provides a Create and CreateRemote method to
4667
 
// create instances of the default interface IADsLargeInteger exposed by
4668
 
// the CoClass LargeInteger. The functions are intended to be used by
4669
 
// clients wishing to automate the CoClass objects exposed by the
4670
 
// server of this typelibrary.
4671
 
// *********************************************************************//
4672
 
  CoLargeInteger = class
4673
 
    class function Create: IADsLargeInteger;
4674
 
    class function CreateRemote(const MachineName: string): IADsLargeInteger;
4675
 
  end;
4676
 
 
4677
 
// *********************************************************************//
4678
 
// OLE Server Proxy class declaration
4679
 
// Server Object    : TLargeInteger
4680
 
// Help String      :
4681
 
// Default Interface: IADsLargeInteger
4682
 
// Def. Intf. DISP? : No
4683
 
// Event   Interface:
4684
 
// TypeFlags        : (2) CanCreate
4685
 
// *********************************************************************//
4686
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4687
 
  TLargeIntegerProperties= class;
4688
 
{$ENDIF}
4689
 
  TLargeInteger = class(TOleServer)
4690
 
  private
4691
 
    FIntf:        IADsLargeInteger;
4692
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4693
 
    FProps:       TLargeIntegerProperties;
4694
 
    function      GetServerProperties: TLargeIntegerProperties;
4695
 
{$ENDIF}
4696
 
    function      GetDefaultInterface: IADsLargeInteger;
4697
 
  protected
4698
 
    procedure InitServerData; override;
4699
 
    function  Get_HighPart: Integer;
4700
 
    procedure Set_HighPart(retval: Integer);
4701
 
    function  Get_LowPart: Integer;
4702
 
    procedure Set_LowPart(retval: Integer);
4703
 
  public
4704
 
    constructor Create(AOwner: TComponent); override;
4705
 
    destructor  Destroy; override;
4706
 
    procedure Connect; override;
4707
 
    procedure ConnectTo(svrIntf: IADsLargeInteger);
4708
 
    procedure Disconnect; override;
4709
 
    property  DefaultInterface: IADsLargeInteger read GetDefaultInterface;
4710
 
    property HighPart: Integer read Get_HighPart write Set_HighPart;
4711
 
    property LowPart: Integer read Get_LowPart write Set_LowPart;
4712
 
  published
4713
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4714
 
    property Server: TLargeIntegerProperties read GetServerProperties;
4715
 
{$ENDIF}
4716
 
  end;
4717
 
 
4718
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4719
 
// *********************************************************************//
4720
 
// OLE Server Properties Proxy Class
4721
 
// Server Object    : TLargeInteger
4722
 
// (This object is used by the IDE's Property Inspector to allow editing
4723
 
//  of the properties of this server)
4724
 
// *********************************************************************//
4725
 
 TLargeIntegerProperties = class(TPersistent)
4726
 
  private
4727
 
    FServer:    TLargeInteger;
4728
 
    function    GetDefaultInterface: IADsLargeInteger;
4729
 
    constructor Create(AServer: TLargeInteger);
4730
 
  protected
4731
 
    function  Get_HighPart: Integer;
4732
 
    procedure Set_HighPart(retval: Integer);
4733
 
    function  Get_LowPart: Integer;
4734
 
    procedure Set_LowPart(retval: Integer);
4735
 
  public
4736
 
    property DefaultInterface: IADsLargeInteger read GetDefaultInterface;
4737
 
  published
4738
 
    property HighPart: Integer read Get_HighPart write Set_HighPart;
4739
 
    property LowPart: Integer read Get_LowPart write Set_LowPart;
4740
 
  end;
4741
 
{$ENDIF}
4742
 
 
4743
 
// *********************************************************************//
4744
 
// The Class CoNameTranslate provides a Create and CreateRemote method to
4745
 
// create instances of the default interface IADsNameTranslate exposed by
4746
 
// the CoClass NameTranslate. The functions are intended to be used by
4747
 
// clients wishing to automate the CoClass objects exposed by the
4748
 
// server of this typelibrary.
4749
 
// *********************************************************************//
4750
 
  CoNameTranslate = class
4751
 
    class function Create: IADsNameTranslate;
4752
 
    class function CreateRemote(const MachineName: string): IADsNameTranslate;
4753
 
  end;
4754
 
 
4755
 
// *********************************************************************//
4756
 
// OLE Server Proxy class declaration
4757
 
// Server Object    : TNameTranslate
4758
 
// Help String      :
4759
 
// Default Interface: IADsNameTranslate
4760
 
// Def. Intf. DISP? : No
4761
 
// Event   Interface:
4762
 
// TypeFlags        : (2) CanCreate
4763
 
// *********************************************************************//
4764
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4765
 
  TNameTranslateProperties= class;
4766
 
{$ENDIF}
4767
 
  TNameTranslate = class(TOleServer)
4768
 
  private
4769
 
    FIntf:        IADsNameTranslate;
4770
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4771
 
    FProps:       TNameTranslateProperties;
4772
 
    function      GetServerProperties: TNameTranslateProperties;
4773
 
{$ENDIF}
4774
 
    function      GetDefaultInterface: IADsNameTranslate;
4775
 
  protected
4776
 
    procedure InitServerData; override;
4777
 
    procedure Set_ChaseReferral(Param1: Integer);
4778
 
  public
4779
 
    constructor Create(AOwner: TComponent); override;
4780
 
    destructor  Destroy; override;
4781
 
    procedure Connect; override;
4782
 
    procedure ConnectTo(svrIntf: IADsNameTranslate);
4783
 
    procedure Disconnect; override;
4784
 
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString);
4785
 
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
4786
 
                     const bstrUserID: WideString; const bstrDomain: WideString;
4787
 
                     const bstrPassword: WideString);
4788
 
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString);
4789
 
    function  Get(lnFormatType: Integer): WideString;
4790
 
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant);
4791
 
    function  GetEx(lnFormatType: Integer): OleVariant;
4792
 
    property  DefaultInterface: IADsNameTranslate read GetDefaultInterface;
4793
 
    property ChaseReferral: Integer write Set_ChaseReferral;
4794
 
  published
4795
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4796
 
    property Server: TNameTranslateProperties read GetServerProperties;
4797
 
{$ENDIF}
4798
 
  end;
4799
 
 
4800
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4801
 
// *********************************************************************//
4802
 
// OLE Server Properties Proxy Class
4803
 
// Server Object    : TNameTranslate
4804
 
// (This object is used by the IDE's Property Inspector to allow editing
4805
 
//  of the properties of this server)
4806
 
// *********************************************************************//
4807
 
 TNameTranslateProperties = class(TPersistent)
4808
 
  private
4809
 
    FServer:    TNameTranslate;
4810
 
    function    GetDefaultInterface: IADsNameTranslate;
4811
 
    constructor Create(AServer: TNameTranslate);
4812
 
  protected
4813
 
    procedure Set_ChaseReferral(Param1: Integer);
4814
 
  public
4815
 
    property DefaultInterface: IADsNameTranslate read GetDefaultInterface;
4816
 
  published
4817
 
  end;
4818
 
{$ENDIF}
4819
 
 
4820
 
// *********************************************************************//
4821
 
// The Class CoCaseIgnoreList provides a Create and CreateRemote method to
4822
 
// create instances of the default interface IADsCaseIgnoreList exposed by
4823
 
// the CoClass CaseIgnoreList. The functions are intended to be used by
4824
 
// clients wishing to automate the CoClass objects exposed by the
4825
 
// server of this typelibrary.
4826
 
// *********************************************************************//
4827
 
  CoCaseIgnoreList = class
4828
 
    class function Create: IADsCaseIgnoreList;
4829
 
    class function CreateRemote(const MachineName: string): IADsCaseIgnoreList;
4830
 
  end;
4831
 
 
4832
 
// *********************************************************************//
4833
 
// OLE Server Proxy class declaration
4834
 
// Server Object    : TCaseIgnoreList
4835
 
// Help String      :
4836
 
// Default Interface: IADsCaseIgnoreList
4837
 
// Def. Intf. DISP? : No
4838
 
// Event   Interface:
4839
 
// TypeFlags        : (2) CanCreate
4840
 
// *********************************************************************//
4841
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4842
 
  TCaseIgnoreListProperties= class;
4843
 
{$ENDIF}
4844
 
  TCaseIgnoreList = class(TOleServer)
4845
 
  private
4846
 
    FIntf:        IADsCaseIgnoreList;
4847
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4848
 
    FProps:       TCaseIgnoreListProperties;
4849
 
    function      GetServerProperties: TCaseIgnoreListProperties;
4850
 
{$ENDIF}
4851
 
    function      GetDefaultInterface: IADsCaseIgnoreList;
4852
 
  protected
4853
 
    procedure InitServerData; override;
4854
 
    function  Get_CaseIgnoreList: OleVariant;
4855
 
    procedure Set_CaseIgnoreList(retval: OleVariant);
4856
 
  public
4857
 
    constructor Create(AOwner: TComponent); override;
4858
 
    destructor  Destroy; override;
4859
 
    procedure Connect; override;
4860
 
    procedure ConnectTo(svrIntf: IADsCaseIgnoreList);
4861
 
    procedure Disconnect; override;
4862
 
    property  DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
4863
 
    property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
4864
 
  published
4865
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4866
 
    property Server: TCaseIgnoreListProperties read GetServerProperties;
4867
 
{$ENDIF}
4868
 
  end;
4869
 
 
4870
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4871
 
// *********************************************************************//
4872
 
// OLE Server Properties Proxy Class
4873
 
// Server Object    : TCaseIgnoreList
4874
 
// (This object is used by the IDE's Property Inspector to allow editing
4875
 
//  of the properties of this server)
4876
 
// *********************************************************************//
4877
 
 TCaseIgnoreListProperties = class(TPersistent)
4878
 
  private
4879
 
    FServer:    TCaseIgnoreList;
4880
 
    function    GetDefaultInterface: IADsCaseIgnoreList;
4881
 
    constructor Create(AServer: TCaseIgnoreList);
4882
 
  protected
4883
 
    function  Get_CaseIgnoreList: OleVariant;
4884
 
    procedure Set_CaseIgnoreList(retval: OleVariant);
4885
 
  public
4886
 
    property DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
4887
 
  published
4888
 
  end;
4889
 
{$ENDIF}
4890
 
 
4891
 
// *********************************************************************//
4892
 
// The Class CoFaxNumber provides a Create and CreateRemote method to
4893
 
// create instances of the default interface IADsFaxNumber exposed by
4894
 
// the CoClass FaxNumber. The functions are intended to be used by
4895
 
// clients wishing to automate the CoClass objects exposed by the
4896
 
// server of this typelibrary.
4897
 
// *********************************************************************//
4898
 
  CoFaxNumber = class
4899
 
    class function Create: IADsFaxNumber;
4900
 
    class function CreateRemote(const MachineName: string): IADsFaxNumber;
4901
 
  end;
4902
 
 
4903
 
// *********************************************************************//
4904
 
// OLE Server Proxy class declaration
4905
 
// Server Object    : TFaxNumber
4906
 
// Help String      :
4907
 
// Default Interface: IADsFaxNumber
4908
 
// Def. Intf. DISP? : No
4909
 
// Event   Interface:
4910
 
// TypeFlags        : (2) CanCreate
4911
 
// *********************************************************************//
4912
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4913
 
  TFaxNumberProperties= class;
4914
 
{$ENDIF}
4915
 
  TFaxNumber = class(TOleServer)
4916
 
  private
4917
 
    FIntf:        IADsFaxNumber;
4918
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4919
 
    FProps:       TFaxNumberProperties;
4920
 
    function      GetServerProperties: TFaxNumberProperties;
4921
 
{$ENDIF}
4922
 
    function      GetDefaultInterface: IADsFaxNumber;
4923
 
  protected
4924
 
    procedure InitServerData; override;
4925
 
    function  Get_TelephoneNumber: WideString;
4926
 
    procedure Set_TelephoneNumber(const retval: WideString);
4927
 
    function  Get_Parameters: OleVariant;
4928
 
    procedure Set_Parameters(retval: OleVariant);
4929
 
  public
4930
 
    constructor Create(AOwner: TComponent); override;
4931
 
    destructor  Destroy; override;
4932
 
    procedure Connect; override;
4933
 
    procedure ConnectTo(svrIntf: IADsFaxNumber);
4934
 
    procedure Disconnect; override;
4935
 
    property  DefaultInterface: IADsFaxNumber read GetDefaultInterface;
4936
 
    property Parameters: OleVariant read Get_Parameters write Set_Parameters;
4937
 
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
4938
 
  published
4939
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4940
 
    property Server: TFaxNumberProperties read GetServerProperties;
4941
 
{$ENDIF}
4942
 
  end;
4943
 
 
4944
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4945
 
// *********************************************************************//
4946
 
// OLE Server Properties Proxy Class
4947
 
// Server Object    : TFaxNumber
4948
 
// (This object is used by the IDE's Property Inspector to allow editing
4949
 
//  of the properties of this server)
4950
 
// *********************************************************************//
4951
 
 TFaxNumberProperties = class(TPersistent)
4952
 
  private
4953
 
    FServer:    TFaxNumber;
4954
 
    function    GetDefaultInterface: IADsFaxNumber;
4955
 
    constructor Create(AServer: TFaxNumber);
4956
 
  protected
4957
 
    function  Get_TelephoneNumber: WideString;
4958
 
    procedure Set_TelephoneNumber(const retval: WideString);
4959
 
    function  Get_Parameters: OleVariant;
4960
 
    procedure Set_Parameters(retval: OleVariant);
4961
 
  public
4962
 
    property DefaultInterface: IADsFaxNumber read GetDefaultInterface;
4963
 
  published
4964
 
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
4965
 
  end;
4966
 
{$ENDIF}
4967
 
 
4968
 
// *********************************************************************//
4969
 
// The Class CoNetAddress provides a Create and CreateRemote method to
4970
 
// create instances of the default interface IADsNetAddress exposed by
4971
 
// the CoClass NetAddress. The functions are intended to be used by
4972
 
// clients wishing to automate the CoClass objects exposed by the
4973
 
// server of this typelibrary.
4974
 
// *********************************************************************//
4975
 
  CoNetAddress = class
4976
 
    class function Create: IADsNetAddress;
4977
 
    class function CreateRemote(const MachineName: string): IADsNetAddress;
4978
 
  end;
4979
 
 
4980
 
// *********************************************************************//
4981
 
// OLE Server Proxy class declaration
4982
 
// Server Object    : TNetAddress
4983
 
// Help String      :
4984
 
// Default Interface: IADsNetAddress
4985
 
// Def. Intf. DISP? : No
4986
 
// Event   Interface:
4987
 
// TypeFlags        : (2) CanCreate
4988
 
// *********************************************************************//
4989
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4990
 
  TNetAddressProperties= class;
4991
 
{$ENDIF}
4992
 
  TNetAddress = class(TOleServer)
4993
 
  private
4994
 
    FIntf:        IADsNetAddress;
4995
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
4996
 
    FProps:       TNetAddressProperties;
4997
 
    function      GetServerProperties: TNetAddressProperties;
4998
 
{$ENDIF}
4999
 
    function      GetDefaultInterface: IADsNetAddress;
5000
 
  protected
5001
 
    procedure InitServerData; override;
5002
 
    function  Get_AddressType: Integer;
5003
 
    procedure Set_AddressType(retval: Integer);
5004
 
    function  Get_Address: OleVariant;
5005
 
    procedure Set_Address(retval: OleVariant);
5006
 
  public
5007
 
    constructor Create(AOwner: TComponent); override;
5008
 
    destructor  Destroy; override;
5009
 
    procedure Connect; override;
5010
 
    procedure ConnectTo(svrIntf: IADsNetAddress);
5011
 
    procedure Disconnect; override;
5012
 
    property  DefaultInterface: IADsNetAddress read GetDefaultInterface;
5013
 
    property Address: OleVariant read Get_Address write Set_Address;
5014
 
    property AddressType: Integer read Get_AddressType write Set_AddressType;
5015
 
  published
5016
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5017
 
    property Server: TNetAddressProperties read GetServerProperties;
5018
 
{$ENDIF}
5019
 
  end;
5020
 
 
5021
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5022
 
// *********************************************************************//
5023
 
// OLE Server Properties Proxy Class
5024
 
// Server Object    : TNetAddress
5025
 
// (This object is used by the IDE's Property Inspector to allow editing
5026
 
//  of the properties of this server)
5027
 
// *********************************************************************//
5028
 
 TNetAddressProperties = class(TPersistent)
5029
 
  private
5030
 
    FServer:    TNetAddress;
5031
 
    function    GetDefaultInterface: IADsNetAddress;
5032
 
    constructor Create(AServer: TNetAddress);
5033
 
  protected
5034
 
    function  Get_AddressType: Integer;
5035
 
    procedure Set_AddressType(retval: Integer);
5036
 
    function  Get_Address: OleVariant;
5037
 
    procedure Set_Address(retval: OleVariant);
5038
 
  public
5039
 
    property DefaultInterface: IADsNetAddress read GetDefaultInterface;
5040
 
  published
5041
 
    property AddressType: Integer read Get_AddressType write Set_AddressType;
5042
 
  end;
5043
 
{$ENDIF}
5044
 
 
5045
 
// *********************************************************************//
5046
 
// The Class CoOctetList provides a Create and CreateRemote method to
5047
 
// create instances of the default interface IADsOctetList exposed by
5048
 
// the CoClass OctetList. The functions are intended to be used by
5049
 
// clients wishing to automate the CoClass objects exposed by the
5050
 
// server of this typelibrary.
5051
 
// *********************************************************************//
5052
 
  CoOctetList = class
5053
 
    class function Create: IADsOctetList;
5054
 
    class function CreateRemote(const MachineName: string): IADsOctetList;
5055
 
  end;
5056
 
 
5057
 
// *********************************************************************//
5058
 
// OLE Server Proxy class declaration
5059
 
// Server Object    : TOctetList
5060
 
// Help String      :
5061
 
// Default Interface: IADsOctetList
5062
 
// Def. Intf. DISP? : No
5063
 
// Event   Interface:
5064
 
// TypeFlags        : (2) CanCreate
5065
 
// *********************************************************************//
5066
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5067
 
  TOctetListProperties= class;
5068
 
{$ENDIF}
5069
 
  TOctetList = class(TOleServer)
5070
 
  private
5071
 
    FIntf:        IADsOctetList;
5072
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5073
 
    FProps:       TOctetListProperties;
5074
 
    function      GetServerProperties: TOctetListProperties;
5075
 
{$ENDIF}
5076
 
    function      GetDefaultInterface: IADsOctetList;
5077
 
  protected
5078
 
    procedure InitServerData; override;
5079
 
    function  Get_OctetList: OleVariant;
5080
 
    procedure Set_OctetList(retval: OleVariant);
5081
 
  public
5082
 
    constructor Create(AOwner: TComponent); override;
5083
 
    destructor  Destroy; override;
5084
 
    procedure Connect; override;
5085
 
    procedure ConnectTo(svrIntf: IADsOctetList);
5086
 
    procedure Disconnect; override;
5087
 
    property  DefaultInterface: IADsOctetList read GetDefaultInterface;
5088
 
    property OctetList: OleVariant read Get_OctetList write Set_OctetList;
5089
 
  published
5090
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5091
 
    property Server: TOctetListProperties read GetServerProperties;
5092
 
{$ENDIF}
5093
 
  end;
5094
 
 
5095
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5096
 
// *********************************************************************//
5097
 
// OLE Server Properties Proxy Class
5098
 
// Server Object    : TOctetList
5099
 
// (This object is used by the IDE's Property Inspector to allow editing
5100
 
//  of the properties of this server)
5101
 
// *********************************************************************//
5102
 
 TOctetListProperties = class(TPersistent)
5103
 
  private
5104
 
    FServer:    TOctetList;
5105
 
    function    GetDefaultInterface: IADsOctetList;
5106
 
    constructor Create(AServer: TOctetList);
5107
 
  protected
5108
 
    function  Get_OctetList: OleVariant;
5109
 
    procedure Set_OctetList(retval: OleVariant);
5110
 
  public
5111
 
    property DefaultInterface: IADsOctetList read GetDefaultInterface;
5112
 
  published
5113
 
  end;
5114
 
{$ENDIF}
5115
 
 
5116
 
// *********************************************************************//
5117
 
// The Class CoEmail provides a Create and CreateRemote method to
5118
 
// create instances of the default interface IADsEmail exposed by
5119
 
// the CoClass Email. The functions are intended to be used by
5120
 
// clients wishing to automate the CoClass objects exposed by the
5121
 
// server of this typelibrary.
5122
 
// *********************************************************************//
5123
 
  CoEmail = class
5124
 
    class function Create: IADsEmail;
5125
 
    class function CreateRemote(const MachineName: string): IADsEmail;
5126
 
  end;
5127
 
 
5128
 
// *********************************************************************//
5129
 
// OLE Server Proxy class declaration
5130
 
// Server Object    : TEmail
5131
 
// Help String      :
5132
 
// Default Interface: IADsEmail
5133
 
// Def. Intf. DISP? : No
5134
 
// Event   Interface:
5135
 
// TypeFlags        : (2) CanCreate
5136
 
// *********************************************************************//
5137
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5138
 
  TEmailProperties= class;
5139
 
{$ENDIF}
5140
 
  TEmail = class(TOleServer)
5141
 
  private
5142
 
    FIntf:        IADsEmail;
5143
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5144
 
    FProps:       TEmailProperties;
5145
 
    function      GetServerProperties: TEmailProperties;
5146
 
{$ENDIF}
5147
 
    function      GetDefaultInterface: IADsEmail;
5148
 
  protected
5149
 
    procedure InitServerData; override;
5150
 
    function  Get_Type_: Integer;
5151
 
    procedure Set_Type_(retval: Integer);
5152
 
    function  Get_Address: WideString;
5153
 
    procedure Set_Address(const retval: WideString);
5154
 
  public
5155
 
    constructor Create(AOwner: TComponent); override;
5156
 
    destructor  Destroy; override;
5157
 
    procedure Connect; override;
5158
 
    procedure ConnectTo(svrIntf: IADsEmail);
5159
 
    procedure Disconnect; override;
5160
 
    property  DefaultInterface: IADsEmail read GetDefaultInterface;
5161
 
    property Type_: Integer read Get_Type_ write Set_Type_;
5162
 
    property Address: WideString read Get_Address write Set_Address;
5163
 
  published
5164
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5165
 
    property Server: TEmailProperties read GetServerProperties;
5166
 
{$ENDIF}
5167
 
  end;
5168
 
 
5169
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5170
 
// *********************************************************************//
5171
 
// OLE Server Properties Proxy Class
5172
 
// Server Object    : TEmail
5173
 
// (This object is used by the IDE's Property Inspector to allow editing
5174
 
//  of the properties of this server)
5175
 
// *********************************************************************//
5176
 
 TEmailProperties = class(TPersistent)
5177
 
  private
5178
 
    FServer:    TEmail;
5179
 
    function    GetDefaultInterface: IADsEmail;
5180
 
    constructor Create(AServer: TEmail);
5181
 
  protected
5182
 
    function  Get_Type_: Integer;
5183
 
    procedure Set_Type_(retval: Integer);
5184
 
    function  Get_Address: WideString;
5185
 
    procedure Set_Address(const retval: WideString);
5186
 
  public
5187
 
    property DefaultInterface: IADsEmail read GetDefaultInterface;
5188
 
  published
5189
 
    property Type_: Integer read Get_Type_ write Set_Type_;
5190
 
    property Address: WideString read Get_Address write Set_Address;
5191
 
  end;
5192
 
{$ENDIF}
5193
 
 
5194
 
// *********************************************************************//
5195
 
// The Class CoPath provides a Create and CreateRemote method to
5196
 
// create instances of the default interface IADsPath exposed by
5197
 
// the CoClass Path. The functions are intended to be used by
5198
 
// clients wishing to automate the CoClass objects exposed by the
5199
 
// server of this typelibrary.
5200
 
// *********************************************************************//
5201
 
  CoPath = class
5202
 
    class function Create: IADsPath;
5203
 
    class function CreateRemote(const MachineName: string): IADsPath;
5204
 
  end;
5205
 
 
5206
 
// *********************************************************************//
5207
 
// OLE Server Proxy class declaration
5208
 
// Server Object    : TPath
5209
 
// Help String      :
5210
 
// Default Interface: IADsPath
5211
 
// Def. Intf. DISP? : No
5212
 
// Event   Interface:
5213
 
// TypeFlags        : (2) CanCreate
5214
 
// *********************************************************************//
5215
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5216
 
  TPathProperties= class;
5217
 
{$ENDIF}
5218
 
  TPath = class(TOleServer)
5219
 
  private
5220
 
    FIntf:        IADsPath;
5221
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5222
 
    FProps:       TPathProperties;
5223
 
    function      GetServerProperties: TPathProperties;
5224
 
{$ENDIF}
5225
 
    function      GetDefaultInterface: IADsPath;
5226
 
  protected
5227
 
    procedure InitServerData; override;
5228
 
    function  Get_Type_: Integer;
5229
 
    procedure Set_Type_(retval: Integer);
5230
 
    function  Get_VolumeName: WideString;
5231
 
    procedure Set_VolumeName(const retval: WideString);
5232
 
    function  Get_Path: WideString;
5233
 
    procedure Set_Path(const retval: WideString);
5234
 
  public
5235
 
    constructor Create(AOwner: TComponent); override;
5236
 
    destructor  Destroy; override;
5237
 
    procedure Connect; override;
5238
 
    procedure ConnectTo(svrIntf: IADsPath);
5239
 
    procedure Disconnect; override;
5240
 
    property  DefaultInterface: IADsPath read GetDefaultInterface;
5241
 
    property Type_: Integer read Get_Type_ write Set_Type_;
5242
 
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
5243
 
    property Path: WideString read Get_Path write Set_Path;
5244
 
  published
5245
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5246
 
    property Server: TPathProperties read GetServerProperties;
5247
 
{$ENDIF}
5248
 
  end;
5249
 
 
5250
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5251
 
// *********************************************************************//
5252
 
// OLE Server Properties Proxy Class
5253
 
// Server Object    : TPath
5254
 
// (This object is used by the IDE's Property Inspector to allow editing
5255
 
//  of the properties of this server)
5256
 
// *********************************************************************//
5257
 
 TPathProperties = class(TPersistent)
5258
 
  private
5259
 
    FServer:    TPath;
5260
 
    function    GetDefaultInterface: IADsPath;
5261
 
    constructor Create(AServer: TPath);
5262
 
  protected
5263
 
    function  Get_Type_: Integer;
5264
 
    procedure Set_Type_(retval: Integer);
5265
 
    function  Get_VolumeName: WideString;
5266
 
    procedure Set_VolumeName(const retval: WideString);
5267
 
    function  Get_Path: WideString;
5268
 
    procedure Set_Path(const retval: WideString);
5269
 
  public
5270
 
    property DefaultInterface: IADsPath read GetDefaultInterface;
5271
 
  published
5272
 
    property Type_: Integer read Get_Type_ write Set_Type_;
5273
 
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
5274
 
    property Path: WideString read Get_Path write Set_Path;
5275
 
  end;
5276
 
{$ENDIF}
5277
 
 
5278
 
// *********************************************************************//
5279
 
// The Class CoReplicaPointer provides a Create and CreateRemote method to
5280
 
// create instances of the default interface IADsReplicaPointer exposed by
5281
 
// the CoClass ReplicaPointer. The functions are intended to be used by
5282
 
// clients wishing to automate the CoClass objects exposed by the
5283
 
// server of this typelibrary.
5284
 
// *********************************************************************//
5285
 
  CoReplicaPointer = class
5286
 
    class function Create: IADsReplicaPointer;
5287
 
    class function CreateRemote(const MachineName: string): IADsReplicaPointer;
5288
 
  end;
5289
 
 
5290
 
// *********************************************************************//
5291
 
// OLE Server Proxy class declaration
5292
 
// Server Object    : TReplicaPointer
5293
 
// Help String      :
5294
 
// Default Interface: IADsReplicaPointer
5295
 
// Def. Intf. DISP? : No
5296
 
// Event   Interface:
5297
 
// TypeFlags        : (2) CanCreate
5298
 
// *********************************************************************//
5299
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5300
 
  TReplicaPointerProperties= class;
5301
 
{$ENDIF}
5302
 
  TReplicaPointer = class(TOleServer)
5303
 
  private
5304
 
    FIntf:        IADsReplicaPointer;
5305
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5306
 
    FProps:       TReplicaPointerProperties;
5307
 
    function      GetServerProperties: TReplicaPointerProperties;
5308
 
{$ENDIF}
5309
 
    function      GetDefaultInterface: IADsReplicaPointer;
5310
 
  protected
5311
 
    procedure InitServerData; override;
5312
 
    function  Get_ServerName: WideString;
5313
 
    procedure Set_ServerName(const retval: WideString);
5314
 
    function  Get_ReplicaType: Integer;
5315
 
    procedure Set_ReplicaType(retval: Integer);
5316
 
    function  Get_ReplicaNumber: Integer;
5317
 
    procedure Set_ReplicaNumber(retval: Integer);
5318
 
    function  Get_Count: Integer;
5319
 
    procedure Set_Count(retval: Integer);
5320
 
    function  Get_ReplicaAddressHints: OleVariant;
5321
 
    procedure Set_ReplicaAddressHints(retval: OleVariant);
5322
 
  public
5323
 
    constructor Create(AOwner: TComponent); override;
5324
 
    destructor  Destroy; override;
5325
 
    procedure Connect; override;
5326
 
    procedure ConnectTo(svrIntf: IADsReplicaPointer);
5327
 
    procedure Disconnect; override;
5328
 
    property  DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
5329
 
    property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
5330
 
    property ServerName: WideString read Get_ServerName write Set_ServerName;
5331
 
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
5332
 
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
5333
 
    property Count: Integer read Get_Count write Set_Count;
5334
 
  published
5335
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5336
 
    property Server: TReplicaPointerProperties read GetServerProperties;
5337
 
{$ENDIF}
5338
 
  end;
5339
 
 
5340
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5341
 
// *********************************************************************//
5342
 
// OLE Server Properties Proxy Class
5343
 
// Server Object    : TReplicaPointer
5344
 
// (This object is used by the IDE's Property Inspector to allow editing
5345
 
//  of the properties of this server)
5346
 
// *********************************************************************//
5347
 
 TReplicaPointerProperties = class(TPersistent)
5348
 
  private
5349
 
    FServer:    TReplicaPointer;
5350
 
    function    GetDefaultInterface: IADsReplicaPointer;
5351
 
    constructor Create(AServer: TReplicaPointer);
5352
 
  protected
5353
 
    function  Get_ServerName: WideString;
5354
 
    procedure Set_ServerName(const retval: WideString);
5355
 
    function  Get_ReplicaType: Integer;
5356
 
    procedure Set_ReplicaType(retval: Integer);
5357
 
    function  Get_ReplicaNumber: Integer;
5358
 
    procedure Set_ReplicaNumber(retval: Integer);
5359
 
    function  Get_Count: Integer;
5360
 
    procedure Set_Count(retval: Integer);
5361
 
    function  Get_ReplicaAddressHints: OleVariant;
5362
 
    procedure Set_ReplicaAddressHints(retval: OleVariant);
5363
 
  public
5364
 
    property DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
5365
 
  published
5366
 
    property ServerName: WideString read Get_ServerName write Set_ServerName;
5367
 
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
5368
 
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
5369
 
    property Count: Integer read Get_Count write Set_Count;
5370
 
  end;
5371
 
{$ENDIF}
5372
 
 
5373
 
// *********************************************************************//
5374
 
// The Class CoAcl provides a Create and CreateRemote method to
5375
 
// create instances of the default interface IADsAcl exposed by
5376
 
// the CoClass Acl. The functions are intended to be used by
5377
 
// clients wishing to automate the CoClass objects exposed by the
5378
 
// server of this typelibrary.
5379
 
// *********************************************************************//
5380
 
  CoAcl = class
5381
 
    class function Create: IADsAcl;
5382
 
    class function CreateRemote(const MachineName: string): IADsAcl;
5383
 
  end;
5384
 
 
5385
 
// *********************************************************************//
5386
 
// OLE Server Proxy class declaration
5387
 
// Server Object    : TAcl
5388
 
// Help String      :
5389
 
// Default Interface: IADsAcl
5390
 
// Def. Intf. DISP? : No
5391
 
// Event   Interface:
5392
 
// TypeFlags        : (2) CanCreate
5393
 
// *********************************************************************//
5394
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5395
 
  TAclProperties= class;
5396
 
{$ENDIF}
5397
 
  TAcl = class(TOleServer)
5398
 
  private
5399
 
    FIntf:        IADsAcl;
5400
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5401
 
    FProps:       TAclProperties;
5402
 
    function      GetServerProperties: TAclProperties;
5403
 
{$ENDIF}
5404
 
    function      GetDefaultInterface: IADsAcl;
5405
 
  protected
5406
 
    procedure InitServerData; override;
5407
 
    function  Get_ProtectedAttrName: WideString;
5408
 
    procedure Set_ProtectedAttrName(const retval: WideString);
5409
 
    function  Get_SubjectName: WideString;
5410
 
    procedure Set_SubjectName(const retval: WideString);
5411
 
    function  Get_Privileges: Integer;
5412
 
    procedure Set_Privileges(retval: Integer);
5413
 
  public
5414
 
    constructor Create(AOwner: TComponent); override;
5415
 
    destructor  Destroy; override;
5416
 
    procedure Connect; override;
5417
 
    procedure ConnectTo(svrIntf: IADsAcl);
5418
 
    procedure Disconnect; override;
5419
 
    function  CopyAcl: IDispatch;
5420
 
    property  DefaultInterface: IADsAcl read GetDefaultInterface;
5421
 
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
5422
 
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
5423
 
    property Privileges: Integer read Get_Privileges write Set_Privileges;
5424
 
  published
5425
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5426
 
    property Server: TAclProperties read GetServerProperties;
5427
 
{$ENDIF}
5428
 
  end;
5429
 
 
5430
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5431
 
// *********************************************************************//
5432
 
// OLE Server Properties Proxy Class
5433
 
// Server Object    : TAcl
5434
 
// (This object is used by the IDE's Property Inspector to allow editing
5435
 
//  of the properties of this server)
5436
 
// *********************************************************************//
5437
 
 TAclProperties = class(TPersistent)
5438
 
  private
5439
 
    FServer:    TAcl;
5440
 
    function    GetDefaultInterface: IADsAcl;
5441
 
    constructor Create(AServer: TAcl);
5442
 
  protected
5443
 
    function  Get_ProtectedAttrName: WideString;
5444
 
    procedure Set_ProtectedAttrName(const retval: WideString);
5445
 
    function  Get_SubjectName: WideString;
5446
 
    procedure Set_SubjectName(const retval: WideString);
5447
 
    function  Get_Privileges: Integer;
5448
 
    procedure Set_Privileges(retval: Integer);
5449
 
  public
5450
 
    property DefaultInterface: IADsAcl read GetDefaultInterface;
5451
 
  published
5452
 
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
5453
 
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
5454
 
    property Privileges: Integer read Get_Privileges write Set_Privileges;
5455
 
  end;
5456
 
{$ENDIF}
5457
 
 
5458
 
// *********************************************************************//
5459
 
// The Class CoTimestamp provides a Create and CreateRemote method to
5460
 
// create instances of the default interface IADsTimestamp exposed by
5461
 
// the CoClass Timestamp. The functions are intended to be used by
5462
 
// clients wishing to automate the CoClass objects exposed by the
5463
 
// server of this typelibrary.
5464
 
// *********************************************************************//
5465
 
  CoTimestamp = class
5466
 
    class function Create: IADsTimestamp;
5467
 
    class function CreateRemote(const MachineName: string): IADsTimestamp;
5468
 
  end;
5469
 
 
5470
 
// *********************************************************************//
5471
 
// OLE Server Proxy class declaration
5472
 
// Server Object    : TTimestamp
5473
 
// Help String      :
5474
 
// Default Interface: IADsTimestamp
5475
 
// Def. Intf. DISP? : No
5476
 
// Event   Interface:
5477
 
// TypeFlags        : (2) CanCreate
5478
 
// *********************************************************************//
5479
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5480
 
  TTimestampProperties= class;
5481
 
{$ENDIF}
5482
 
  TTimestamp = class(TOleServer)
5483
 
  private
5484
 
    FIntf:        IADsTimestamp;
5485
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5486
 
    FProps:       TTimestampProperties;
5487
 
    function      GetServerProperties: TTimestampProperties;
5488
 
{$ENDIF}
5489
 
    function      GetDefaultInterface: IADsTimestamp;
5490
 
  protected
5491
 
    procedure InitServerData; override;
5492
 
    function  Get_WholeSeconds: Integer;
5493
 
    procedure Set_WholeSeconds(retval: Integer);
5494
 
    function  Get_EventID: Integer;
5495
 
    procedure Set_EventID(retval: Integer);
5496
 
  public
5497
 
    constructor Create(AOwner: TComponent); override;
5498
 
    destructor  Destroy; override;
5499
 
    procedure Connect; override;
5500
 
    procedure ConnectTo(svrIntf: IADsTimestamp);
5501
 
    procedure Disconnect; override;
5502
 
    property  DefaultInterface: IADsTimestamp read GetDefaultInterface;
5503
 
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
5504
 
    property EventID: Integer read Get_EventID write Set_EventID;
5505
 
  published
5506
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5507
 
    property Server: TTimestampProperties read GetServerProperties;
5508
 
{$ENDIF}
5509
 
  end;
5510
 
 
5511
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5512
 
// *********************************************************************//
5513
 
// OLE Server Properties Proxy Class
5514
 
// Server Object    : TTimestamp
5515
 
// (This object is used by the IDE's Property Inspector to allow editing
5516
 
//  of the properties of this server)
5517
 
// *********************************************************************//
5518
 
 TTimestampProperties = class(TPersistent)
5519
 
  private
5520
 
    FServer:    TTimestamp;
5521
 
    function    GetDefaultInterface: IADsTimestamp;
5522
 
    constructor Create(AServer: TTimestamp);
5523
 
  protected
5524
 
    function  Get_WholeSeconds: Integer;
5525
 
    procedure Set_WholeSeconds(retval: Integer);
5526
 
    function  Get_EventID: Integer;
5527
 
    procedure Set_EventID(retval: Integer);
5528
 
  public
5529
 
    property DefaultInterface: IADsTimestamp read GetDefaultInterface;
5530
 
  published
5531
 
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
5532
 
    property EventID: Integer read Get_EventID write Set_EventID;
5533
 
  end;
5534
 
{$ENDIF}
5535
 
 
5536
 
// *********************************************************************//
5537
 
// The Class CoPostalAddress provides a Create and CreateRemote method to
5538
 
// create instances of the default interface IADsPostalAddress exposed by
5539
 
// the CoClass PostalAddress. The functions are intended to be used by
5540
 
// clients wishing to automate the CoClass objects exposed by the
5541
 
// server of this typelibrary.
5542
 
// *********************************************************************//
5543
 
  CoPostalAddress = class
5544
 
    class function Create: IADsPostalAddress;
5545
 
    class function CreateRemote(const MachineName: string): IADsPostalAddress;
5546
 
  end;
5547
 
 
5548
 
// *********************************************************************//
5549
 
// OLE Server Proxy class declaration
5550
 
// Server Object    : TPostalAddress
5551
 
// Help String      :
5552
 
// Default Interface: IADsPostalAddress
5553
 
// Def. Intf. DISP? : No
5554
 
// Event   Interface:
5555
 
// TypeFlags        : (2) CanCreate
5556
 
// *********************************************************************//
5557
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5558
 
  TPostalAddressProperties= class;
5559
 
{$ENDIF}
5560
 
  TPostalAddress = class(TOleServer)
5561
 
  private
5562
 
    FIntf:        IADsPostalAddress;
5563
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5564
 
    FProps:       TPostalAddressProperties;
5565
 
    function      GetServerProperties: TPostalAddressProperties;
5566
 
{$ENDIF}
5567
 
    function      GetDefaultInterface: IADsPostalAddress;
5568
 
  protected
5569
 
    procedure InitServerData; override;
5570
 
    function  Get_PostalAddress: OleVariant;
5571
 
    procedure Set_PostalAddress(retval: OleVariant);
5572
 
  public
5573
 
    constructor Create(AOwner: TComponent); override;
5574
 
    destructor  Destroy; override;
5575
 
    procedure Connect; override;
5576
 
    procedure ConnectTo(svrIntf: IADsPostalAddress);
5577
 
    procedure Disconnect; override;
5578
 
    property  DefaultInterface: IADsPostalAddress read GetDefaultInterface;
5579
 
    property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
5580
 
  published
5581
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5582
 
    property Server: TPostalAddressProperties read GetServerProperties;
5583
 
{$ENDIF}
5584
 
  end;
5585
 
 
5586
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5587
 
// *********************************************************************//
5588
 
// OLE Server Properties Proxy Class
5589
 
// Server Object    : TPostalAddress
5590
 
// (This object is used by the IDE's Property Inspector to allow editing
5591
 
//  of the properties of this server)
5592
 
// *********************************************************************//
5593
 
 TPostalAddressProperties = class(TPersistent)
5594
 
  private
5595
 
    FServer:    TPostalAddress;
5596
 
    function    GetDefaultInterface: IADsPostalAddress;
5597
 
    constructor Create(AServer: TPostalAddress);
5598
 
  protected
5599
 
    function  Get_PostalAddress: OleVariant;
5600
 
    procedure Set_PostalAddress(retval: OleVariant);
5601
 
  public
5602
 
    property DefaultInterface: IADsPostalAddress read GetDefaultInterface;
5603
 
  published
5604
 
  end;
5605
 
{$ENDIF}
5606
 
 
5607
 
// *********************************************************************//
5608
 
// The Class CoBackLink provides a Create and CreateRemote method to
5609
 
// create instances of the default interface IADsBackLink exposed by
5610
 
// the CoClass BackLink. The functions are intended to be used by
5611
 
// clients wishing to automate the CoClass objects exposed by the
5612
 
// server of this typelibrary.
5613
 
// *********************************************************************//
5614
 
  CoBackLink = class
5615
 
    class function Create: IADsBackLink;
5616
 
    class function CreateRemote(const MachineName: string): IADsBackLink;
5617
 
  end;
5618
 
 
5619
 
// *********************************************************************//
5620
 
// OLE Server Proxy class declaration
5621
 
// Server Object    : TBackLink
5622
 
// Help String      :
5623
 
// Default Interface: IADsBackLink
5624
 
// Def. Intf. DISP? : No
5625
 
// Event   Interface:
5626
 
// TypeFlags        : (2) CanCreate
5627
 
// *********************************************************************//
5628
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5629
 
  TBackLinkProperties= class;
5630
 
{$ENDIF}
5631
 
  TBackLink = class(TOleServer)
5632
 
  private
5633
 
    FIntf:        IADsBackLink;
5634
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5635
 
    FProps:       TBackLinkProperties;
5636
 
    function      GetServerProperties: TBackLinkProperties;
5637
 
{$ENDIF}
5638
 
    function      GetDefaultInterface: IADsBackLink;
5639
 
  protected
5640
 
    procedure InitServerData; override;
5641
 
    function  Get_RemoteID: Integer;
5642
 
    procedure Set_RemoteID(retval: Integer);
5643
 
    function  Get_ObjectName: WideString;
5644
 
    procedure Set_ObjectName(const retval: WideString);
5645
 
  public
5646
 
    constructor Create(AOwner: TComponent); override;
5647
 
    destructor  Destroy; override;
5648
 
    procedure Connect; override;
5649
 
    procedure ConnectTo(svrIntf: IADsBackLink);
5650
 
    procedure Disconnect; override;
5651
 
    property  DefaultInterface: IADsBackLink read GetDefaultInterface;
5652
 
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
5653
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5654
 
  published
5655
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5656
 
    property Server: TBackLinkProperties read GetServerProperties;
5657
 
{$ENDIF}
5658
 
  end;
5659
 
 
5660
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5661
 
// *********************************************************************//
5662
 
// OLE Server Properties Proxy Class
5663
 
// Server Object    : TBackLink
5664
 
// (This object is used by the IDE's Property Inspector to allow editing
5665
 
//  of the properties of this server)
5666
 
// *********************************************************************//
5667
 
 TBackLinkProperties = class(TPersistent)
5668
 
  private
5669
 
    FServer:    TBackLink;
5670
 
    function    GetDefaultInterface: IADsBackLink;
5671
 
    constructor Create(AServer: TBackLink);
5672
 
  protected
5673
 
    function  Get_RemoteID: Integer;
5674
 
    procedure Set_RemoteID(retval: Integer);
5675
 
    function  Get_ObjectName: WideString;
5676
 
    procedure Set_ObjectName(const retval: WideString);
5677
 
  public
5678
 
    property DefaultInterface: IADsBackLink read GetDefaultInterface;
5679
 
  published
5680
 
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
5681
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5682
 
  end;
5683
 
{$ENDIF}
5684
 
 
5685
 
// *********************************************************************//
5686
 
// The Class CoTypedName provides a Create and CreateRemote method to
5687
 
// create instances of the default interface IADsTypedName exposed by
5688
 
// the CoClass TypedName. The functions are intended to be used by
5689
 
// clients wishing to automate the CoClass objects exposed by the
5690
 
// server of this typelibrary.
5691
 
// *********************************************************************//
5692
 
  CoTypedName = class
5693
 
    class function Create: IADsTypedName;
5694
 
    class function CreateRemote(const MachineName: string): IADsTypedName;
5695
 
  end;
5696
 
 
5697
 
// *********************************************************************//
5698
 
// OLE Server Proxy class declaration
5699
 
// Server Object    : TTypedName
5700
 
// Help String      :
5701
 
// Default Interface: IADsTypedName
5702
 
// Def. Intf. DISP? : No
5703
 
// Event   Interface:
5704
 
// TypeFlags        : (2) CanCreate
5705
 
// *********************************************************************//
5706
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5707
 
  TTypedNameProperties= class;
5708
 
{$ENDIF}
5709
 
  TTypedName = class(TOleServer)
5710
 
  private
5711
 
    FIntf:        IADsTypedName;
5712
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5713
 
    FProps:       TTypedNameProperties;
5714
 
    function      GetServerProperties: TTypedNameProperties;
5715
 
{$ENDIF}
5716
 
    function      GetDefaultInterface: IADsTypedName;
5717
 
  protected
5718
 
    procedure InitServerData; override;
5719
 
    function  Get_ObjectName: WideString;
5720
 
    procedure Set_ObjectName(const retval: WideString);
5721
 
    function  Get_Level: Integer;
5722
 
    procedure Set_Level(retval: Integer);
5723
 
    function  Get_Interval: Integer;
5724
 
    procedure Set_Interval(retval: Integer);
5725
 
  public
5726
 
    constructor Create(AOwner: TComponent); override;
5727
 
    destructor  Destroy; override;
5728
 
    procedure Connect; override;
5729
 
    procedure ConnectTo(svrIntf: IADsTypedName);
5730
 
    procedure Disconnect; override;
5731
 
    property  DefaultInterface: IADsTypedName read GetDefaultInterface;
5732
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5733
 
    property Level: Integer read Get_Level write Set_Level;
5734
 
    property Interval: Integer read Get_Interval write Set_Interval;
5735
 
  published
5736
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5737
 
    property Server: TTypedNameProperties read GetServerProperties;
5738
 
{$ENDIF}
5739
 
  end;
5740
 
 
5741
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5742
 
// *********************************************************************//
5743
 
// OLE Server Properties Proxy Class
5744
 
// Server Object    : TTypedName
5745
 
// (This object is used by the IDE's Property Inspector to allow editing
5746
 
//  of the properties of this server)
5747
 
// *********************************************************************//
5748
 
 TTypedNameProperties = class(TPersistent)
5749
 
  private
5750
 
    FServer:    TTypedName;
5751
 
    function    GetDefaultInterface: IADsTypedName;
5752
 
    constructor Create(AServer: TTypedName);
5753
 
  protected
5754
 
    function  Get_ObjectName: WideString;
5755
 
    procedure Set_ObjectName(const retval: WideString);
5756
 
    function  Get_Level: Integer;
5757
 
    procedure Set_Level(retval: Integer);
5758
 
    function  Get_Interval: Integer;
5759
 
    procedure Set_Interval(retval: Integer);
5760
 
  public
5761
 
    property DefaultInterface: IADsTypedName read GetDefaultInterface;
5762
 
  published
5763
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5764
 
    property Level: Integer read Get_Level write Set_Level;
5765
 
    property Interval: Integer read Get_Interval write Set_Interval;
5766
 
  end;
5767
 
{$ENDIF}
5768
 
 
5769
 
// *********************************************************************//
5770
 
// The Class CoHold provides a Create and CreateRemote method to
5771
 
// create instances of the default interface IADsHold exposed by
5772
 
// the CoClass Hold. The functions are intended to be used by
5773
 
// clients wishing to automate the CoClass objects exposed by the
5774
 
// server of this typelibrary.
5775
 
// *********************************************************************//
5776
 
  CoHold = class
5777
 
    class function Create: IADsHold;
5778
 
    class function CreateRemote(const MachineName: string): IADsHold;
5779
 
  end;
5780
 
 
5781
 
// *********************************************************************//
5782
 
// OLE Server Proxy class declaration
5783
 
// Server Object    : THold
5784
 
// Help String      :
5785
 
// Default Interface: IADsHold
5786
 
// Def. Intf. DISP? : No
5787
 
// Event   Interface:
5788
 
// TypeFlags        : (2) CanCreate
5789
 
// *********************************************************************//
5790
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5791
 
  THoldProperties= class;
5792
 
{$ENDIF}
5793
 
  THold = class(TOleServer)
5794
 
  private
5795
 
    FIntf:        IADsHold;
5796
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5797
 
    FProps:       THoldProperties;
5798
 
    function      GetServerProperties: THoldProperties;
5799
 
{$ENDIF}
5800
 
    function      GetDefaultInterface: IADsHold;
5801
 
  protected
5802
 
    procedure InitServerData; override;
5803
 
    function  Get_ObjectName: WideString;
5804
 
    procedure Set_ObjectName(const retval: WideString);
5805
 
    function  Get_Amount: Integer;
5806
 
    procedure Set_Amount(retval: Integer);
5807
 
  public
5808
 
    constructor Create(AOwner: TComponent); override;
5809
 
    destructor  Destroy; override;
5810
 
    procedure Connect; override;
5811
 
    procedure ConnectTo(svrIntf: IADsHold);
5812
 
    procedure Disconnect; override;
5813
 
    property  DefaultInterface: IADsHold read GetDefaultInterface;
5814
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5815
 
    property Amount: Integer read Get_Amount write Set_Amount;
5816
 
  published
5817
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5818
 
    property Server: THoldProperties read GetServerProperties;
5819
 
{$ENDIF}
5820
 
  end;
5821
 
 
5822
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5823
 
// *********************************************************************//
5824
 
// OLE Server Properties Proxy Class
5825
 
// Server Object    : THold
5826
 
// (This object is used by the IDE's Property Inspector to allow editing
5827
 
//  of the properties of this server)
5828
 
// *********************************************************************//
5829
 
 THoldProperties = class(TPersistent)
5830
 
  private
5831
 
    FServer:    THold;
5832
 
    function    GetDefaultInterface: IADsHold;
5833
 
    constructor Create(AServer: THold);
5834
 
  protected
5835
 
    function  Get_ObjectName: WideString;
5836
 
    procedure Set_ObjectName(const retval: WideString);
5837
 
    function  Get_Amount: Integer;
5838
 
    procedure Set_Amount(retval: Integer);
5839
 
  public
5840
 
    property DefaultInterface: IADsHold read GetDefaultInterface;
5841
 
  published
5842
 
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
5843
 
    property Amount: Integer read Get_Amount write Set_Amount;
5844
 
  end;
5845
 
{$ENDIF}
5846
 
 
5847
 
// *********************************************************************//
5848
 
// The Class CoPathname provides a Create and CreateRemote method to
5849
 
// create instances of the default interface IADsPathname exposed by
5850
 
// the CoClass Pathname. The functions are intended to be used by
5851
 
// clients wishing to automate the CoClass objects exposed by the
5852
 
// server of this typelibrary.
5853
 
// *********************************************************************//
5854
 
  CoPathname = class
5855
 
    class function Create: IADsPathname;
5856
 
    class function CreateRemote(const MachineName: string): IADsPathname;
5857
 
  end;
5858
 
 
5859
 
// *********************************************************************//
5860
 
// OLE Server Proxy class declaration
5861
 
// Server Object    : TPathname
5862
 
// Help String      :
5863
 
// Default Interface: IADsPathname
5864
 
// Def. Intf. DISP? : No
5865
 
// Event   Interface:
5866
 
// TypeFlags        : (2) CanCreate
5867
 
// *********************************************************************//
5868
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5869
 
  TPathnameProperties= class;
5870
 
{$ENDIF}
5871
 
  TPathname = class(TOleServer)
5872
 
  private
5873
 
    FIntf:        IADsPathname;
5874
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5875
 
    FProps:       TPathnameProperties;
5876
 
    function      GetServerProperties: TPathnameProperties;
5877
 
{$ENDIF}
5878
 
    function      GetDefaultInterface: IADsPathname;
5879
 
  protected
5880
 
    procedure InitServerData; override;
5881
 
    function  Get_EscapedMode: Integer;
5882
 
    procedure Set_EscapedMode(retval: Integer);
5883
 
  public
5884
 
    constructor Create(AOwner: TComponent); override;
5885
 
    destructor  Destroy; override;
5886
 
    procedure Connect; override;
5887
 
    procedure ConnectTo(svrIntf: IADsPathname);
5888
 
    procedure Disconnect; override;
5889
 
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer);
5890
 
    procedure SetDisplayType(lnDisplayType: Integer);
5891
 
    function  Retrieve(lnFormatType: Integer): WideString;
5892
 
    function  GetNumElements: Integer;
5893
 
    function  GetElement(lnElementIndex: Integer): WideString;
5894
 
    procedure AddLeafElement(const bstrLeafElement: WideString);
5895
 
    procedure RemoveLeafElement;
5896
 
    function  CopyPath: IDispatch;
5897
 
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
5898
 
    property  DefaultInterface: IADsPathname read GetDefaultInterface;
5899
 
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
5900
 
  published
5901
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5902
 
    property Server: TPathnameProperties read GetServerProperties;
5903
 
{$ENDIF}
5904
 
  end;
5905
 
 
5906
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5907
 
// *********************************************************************//
5908
 
// OLE Server Properties Proxy Class
5909
 
// Server Object    : TPathname
5910
 
// (This object is used by the IDE's Property Inspector to allow editing
5911
 
//  of the properties of this server)
5912
 
// *********************************************************************//
5913
 
 TPathnameProperties = class(TPersistent)
5914
 
  private
5915
 
    FServer:    TPathname;
5916
 
    function    GetDefaultInterface: IADsPathname;
5917
 
    constructor Create(AServer: TPathname);
5918
 
  protected
5919
 
    function  Get_EscapedMode: Integer;
5920
 
    procedure Set_EscapedMode(retval: Integer);
5921
 
  public
5922
 
    property DefaultInterface: IADsPathname read GetDefaultInterface;
5923
 
  published
5924
 
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
5925
 
  end;
5926
 
{$ENDIF}
5927
 
 
5928
 
// *********************************************************************//
5929
 
// The Class CoADSystemInfo provides a Create and CreateRemote method to
5930
 
// create instances of the default interface IADsADSystemInfo exposed by
5931
 
// the CoClass ADSystemInfo. The functions are intended to be used by
5932
 
// clients wishing to automate the CoClass objects exposed by the
5933
 
// server of this typelibrary.
5934
 
// *********************************************************************//
5935
 
  CoADSystemInfo = class
5936
 
    class function Create: IADsADSystemInfo;
5937
 
    class function CreateRemote(const MachineName: string): IADsADSystemInfo;
5938
 
  end;
5939
 
 
5940
 
// *********************************************************************//
5941
 
// OLE Server Proxy class declaration
5942
 
// Server Object    : TADSystemInfo
5943
 
// Help String      :
5944
 
// Default Interface: IADsADSystemInfo
5945
 
// Def. Intf. DISP? : No
5946
 
// Event   Interface:
5947
 
// TypeFlags        : (2) CanCreate
5948
 
// *********************************************************************//
5949
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5950
 
  TADSystemInfoProperties= class;
5951
 
{$ENDIF}
5952
 
  TADSystemInfo = class(TOleServer)
5953
 
  private
5954
 
    FIntf:        IADsADSystemInfo;
5955
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5956
 
    FProps:       TADSystemInfoProperties;
5957
 
    function      GetServerProperties: TADSystemInfoProperties;
5958
 
{$ENDIF}
5959
 
    function      GetDefaultInterface: IADsADSystemInfo;
5960
 
  protected
5961
 
    procedure InitServerData; override;
5962
 
    function  Get_UserName: WideString;
5963
 
    function  Get_ComputerName: WideString;
5964
 
    function  Get_SiteName: WideString;
5965
 
    function  Get_DomainShortName: WideString;
5966
 
    function  Get_DomainDNSName: WideString;
5967
 
    function  Get_ForestDNSName: WideString;
5968
 
    function  Get_PDCRoleOwner: WideString;
5969
 
    function  Get_SchemaRoleOwner: WideString;
5970
 
    function  Get_IsNativeMode: WordBool;
5971
 
  public
5972
 
    constructor Create(AOwner: TComponent); override;
5973
 
    destructor  Destroy; override;
5974
 
    procedure Connect; override;
5975
 
    procedure ConnectTo(svrIntf: IADsADSystemInfo);
5976
 
    procedure Disconnect; override;
5977
 
    function  GetAnyDCName: WideString;
5978
 
    function  GetDCSiteName(const szServer: WideString): WideString;
5979
 
    procedure RefreshSchemaCache;
5980
 
    function  GetTrees: OleVariant;
5981
 
    property  DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
5982
 
    property UserName: WideString read Get_UserName;
5983
 
    property ComputerName: WideString read Get_ComputerName;
5984
 
    property SiteName: WideString read Get_SiteName;
5985
 
    property DomainShortName: WideString read Get_DomainShortName;
5986
 
    property DomainDNSName: WideString read Get_DomainDNSName;
5987
 
    property ForestDNSName: WideString read Get_ForestDNSName;
5988
 
    property PDCRoleOwner: WideString read Get_PDCRoleOwner;
5989
 
    property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
5990
 
    property IsNativeMode: WordBool read Get_IsNativeMode;
5991
 
  published
5992
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5993
 
    property Server: TADSystemInfoProperties read GetServerProperties;
5994
 
{$ENDIF}
5995
 
  end;
5996
 
 
5997
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
5998
 
// *********************************************************************//
5999
 
// OLE Server Properties Proxy Class
6000
 
// Server Object    : TADSystemInfo
6001
 
// (This object is used by the IDE's Property Inspector to allow editing
6002
 
//  of the properties of this server)
6003
 
// *********************************************************************//
6004
 
 TADSystemInfoProperties = class(TPersistent)
6005
 
  private
6006
 
    FServer:    TADSystemInfo;
6007
 
    function    GetDefaultInterface: IADsADSystemInfo;
6008
 
    constructor Create(AServer: TADSystemInfo);
6009
 
  protected
6010
 
    function  Get_UserName: WideString;
6011
 
    function  Get_ComputerName: WideString;
6012
 
    function  Get_SiteName: WideString;
6013
 
    function  Get_DomainShortName: WideString;
6014
 
    function  Get_DomainDNSName: WideString;
6015
 
    function  Get_ForestDNSName: WideString;
6016
 
    function  Get_PDCRoleOwner: WideString;
6017
 
    function  Get_SchemaRoleOwner: WideString;
6018
 
    function  Get_IsNativeMode: WordBool;
6019
 
  public
6020
 
    property DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
6021
 
  published
6022
 
  end;
6023
 
{$ENDIF}
6024
 
 
6025
 
// *********************************************************************//
6026
 
// The Class CoWinNTSystemInfo provides a Create and CreateRemote method to
6027
 
// create instances of the default interface IADsWinNTSystemInfo exposed by
6028
 
// the CoClass WinNTSystemInfo. The functions are intended to be used by
6029
 
// clients wishing to automate the CoClass objects exposed by the
6030
 
// server of this typelibrary.
6031
 
// *********************************************************************//
6032
 
  CoWinNTSystemInfo = class
6033
 
    class function Create: IADsWinNTSystemInfo;
6034
 
    class function CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
6035
 
  end;
6036
 
 
6037
 
// *********************************************************************//
6038
 
// OLE Server Proxy class declaration
6039
 
// Server Object    : TWinNTSystemInfo
6040
 
// Help String      :
6041
 
// Default Interface: IADsWinNTSystemInfo
6042
 
// Def. Intf. DISP? : No
6043
 
// Event   Interface:
6044
 
// TypeFlags        : (2) CanCreate
6045
 
// *********************************************************************//
6046
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6047
 
  TWinNTSystemInfoProperties= class;
6048
 
{$ENDIF}
6049
 
  TWinNTSystemInfo = class(TOleServer)
6050
 
  private
6051
 
    FIntf:        IADsWinNTSystemInfo;
6052
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6053
 
    FProps:       TWinNTSystemInfoProperties;
6054
 
    function      GetServerProperties: TWinNTSystemInfoProperties;
6055
 
{$ENDIF}
6056
 
    function      GetDefaultInterface: IADsWinNTSystemInfo;
6057
 
  protected
6058
 
    procedure InitServerData; override;
6059
 
    function  Get_UserName: WideString;
6060
 
    function  Get_ComputerName: WideString;
6061
 
    function  Get_DomainName: WideString;
6062
 
    function  Get_PDC: WideString;
6063
 
  public
6064
 
    constructor Create(AOwner: TComponent); override;
6065
 
    destructor  Destroy; override;
6066
 
    procedure Connect; override;
6067
 
    procedure ConnectTo(svrIntf: IADsWinNTSystemInfo);
6068
 
    procedure Disconnect; override;
6069
 
    property  DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
6070
 
    property UserName: WideString read Get_UserName;
6071
 
    property ComputerName: WideString read Get_ComputerName;
6072
 
    property DomainName: WideString read Get_DomainName;
6073
 
    property PDC: WideString read Get_PDC;
6074
 
  published
6075
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6076
 
    property Server: TWinNTSystemInfoProperties read GetServerProperties;
6077
 
{$ENDIF}
6078
 
  end;
6079
 
 
6080
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6081
 
// *********************************************************************//
6082
 
// OLE Server Properties Proxy Class
6083
 
// Server Object    : TWinNTSystemInfo
6084
 
// (This object is used by the IDE's Property Inspector to allow editing
6085
 
//  of the properties of this server)
6086
 
// *********************************************************************//
6087
 
 TWinNTSystemInfoProperties = class(TPersistent)
6088
 
  private
6089
 
    FServer:    TWinNTSystemInfo;
6090
 
    function    GetDefaultInterface: IADsWinNTSystemInfo;
6091
 
    constructor Create(AServer: TWinNTSystemInfo);
6092
 
  protected
6093
 
    function  Get_UserName: WideString;
6094
 
    function  Get_ComputerName: WideString;
6095
 
    function  Get_DomainName: WideString;
6096
 
    function  Get_PDC: WideString;
6097
 
  public
6098
 
    property DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
6099
 
  published
6100
 
  end;
6101
 
{$ENDIF}
6102
 
 
6103
 
// *********************************************************************//
6104
 
// The Class CoDNWithBinary provides a Create and CreateRemote method to
6105
 
// create instances of the default interface IADsDNWithBinary exposed by
6106
 
// the CoClass DNWithBinary. The functions are intended to be used by
6107
 
// clients wishing to automate the CoClass objects exposed by the
6108
 
// server of this typelibrary.
6109
 
// *********************************************************************//
6110
 
  CoDNWithBinary = class
6111
 
    class function Create: IADsDNWithBinary;
6112
 
    class function CreateRemote(const MachineName: string): IADsDNWithBinary;
6113
 
  end;
6114
 
 
6115
 
// *********************************************************************//
6116
 
// OLE Server Proxy class declaration
6117
 
// Server Object    : TDNWithBinary
6118
 
// Help String      :
6119
 
// Default Interface: IADsDNWithBinary
6120
 
// Def. Intf. DISP? : No
6121
 
// Event   Interface:
6122
 
// TypeFlags        : (2) CanCreate
6123
 
// *********************************************************************//
6124
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6125
 
  TDNWithBinaryProperties= class;
6126
 
{$ENDIF}
6127
 
  TDNWithBinary = class(TOleServer)
6128
 
  private
6129
 
    FIntf:        IADsDNWithBinary;
6130
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6131
 
    FProps:       TDNWithBinaryProperties;
6132
 
    function      GetServerProperties: TDNWithBinaryProperties;
6133
 
{$ENDIF}
6134
 
    function      GetDefaultInterface: IADsDNWithBinary;
6135
 
  protected
6136
 
    procedure InitServerData; override;
6137
 
    function  Get_BinaryValue: OleVariant;
6138
 
    procedure Set_BinaryValue(retval: OleVariant);
6139
 
    function  Get_DNString: WideString;
6140
 
    procedure Set_DNString(const retval: WideString);
6141
 
  public
6142
 
    constructor Create(AOwner: TComponent); override;
6143
 
    destructor  Destroy; override;
6144
 
    procedure Connect; override;
6145
 
    procedure ConnectTo(svrIntf: IADsDNWithBinary);
6146
 
    procedure Disconnect; override;
6147
 
    property  DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
6148
 
    property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
6149
 
    property DNString: WideString read Get_DNString write Set_DNString;
6150
 
  published
6151
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6152
 
    property Server: TDNWithBinaryProperties read GetServerProperties;
6153
 
{$ENDIF}
6154
 
  end;
6155
 
 
6156
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6157
 
// *********************************************************************//
6158
 
// OLE Server Properties Proxy Class
6159
 
// Server Object    : TDNWithBinary
6160
 
// (This object is used by the IDE's Property Inspector to allow editing
6161
 
//  of the properties of this server)
6162
 
// *********************************************************************//
6163
 
 TDNWithBinaryProperties = class(TPersistent)
6164
 
  private
6165
 
    FServer:    TDNWithBinary;
6166
 
    function    GetDefaultInterface: IADsDNWithBinary;
6167
 
    constructor Create(AServer: TDNWithBinary);
6168
 
  protected
6169
 
    function  Get_BinaryValue: OleVariant;
6170
 
    procedure Set_BinaryValue(retval: OleVariant);
6171
 
    function  Get_DNString: WideString;
6172
 
    procedure Set_DNString(const retval: WideString);
6173
 
  public
6174
 
    property DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
6175
 
  published
6176
 
    property DNString: WideString read Get_DNString write Set_DNString;
6177
 
  end;
6178
 
{$ENDIF}
6179
 
 
6180
 
// *********************************************************************//
6181
 
// The Class CoDNWithString provides a Create and CreateRemote method to
6182
 
// create instances of the default interface IADsDNWithString exposed by
6183
 
// the CoClass DNWithString. The functions are intended to be used by
6184
 
// clients wishing to automate the CoClass objects exposed by the
6185
 
// server of this typelibrary.
6186
 
// *********************************************************************//
6187
 
  CoDNWithString = class
6188
 
    class function Create: IADsDNWithString;
6189
 
    class function CreateRemote(const MachineName: string): IADsDNWithString;
6190
 
  end;
6191
 
 
6192
 
// *********************************************************************//
6193
 
// OLE Server Proxy class declaration
6194
 
// Server Object    : TDNWithString
6195
 
// Help String      :
6196
 
// Default Interface: IADsDNWithString
6197
 
// Def. Intf. DISP? : No
6198
 
// Event   Interface:
6199
 
// TypeFlags        : (2) CanCreate
6200
 
// *********************************************************************//
6201
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6202
 
  TDNWithStringProperties= class;
6203
 
{$ENDIF}
6204
 
  TDNWithString = class(TOleServer)
6205
 
  private
6206
 
    FIntf:        IADsDNWithString;
6207
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6208
 
    FProps:       TDNWithStringProperties;
6209
 
    function      GetServerProperties: TDNWithStringProperties;
6210
 
{$ENDIF}
6211
 
    function      GetDefaultInterface: IADsDNWithString;
6212
 
  protected
6213
 
    procedure InitServerData; override;
6214
 
    function  Get_StringValue: WideString;
6215
 
    procedure Set_StringValue(const retval: WideString);
6216
 
    function  Get_DNString: WideString;
6217
 
    procedure Set_DNString(const retval: WideString);
6218
 
  public
6219
 
    constructor Create(AOwner: TComponent); override;
6220
 
    destructor  Destroy; override;
6221
 
    procedure Connect; override;
6222
 
    procedure ConnectTo(svrIntf: IADsDNWithString);
6223
 
    procedure Disconnect; override;
6224
 
    property  DefaultInterface: IADsDNWithString read GetDefaultInterface;
6225
 
    property StringValue: WideString read Get_StringValue write Set_StringValue;
6226
 
    property DNString: WideString read Get_DNString write Set_DNString;
6227
 
  published
6228
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6229
 
    property Server: TDNWithStringProperties read GetServerProperties;
6230
 
{$ENDIF}
6231
 
  end;
6232
 
 
6233
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6234
 
// *********************************************************************//
6235
 
// OLE Server Properties Proxy Class
6236
 
// Server Object    : TDNWithString
6237
 
// (This object is used by the IDE's Property Inspector to allow editing
6238
 
//  of the properties of this server)
6239
 
// *********************************************************************//
6240
 
 TDNWithStringProperties = class(TPersistent)
6241
 
  private
6242
 
    FServer:    TDNWithString;
6243
 
    function    GetDefaultInterface: IADsDNWithString;
6244
 
    constructor Create(AServer: TDNWithString);
6245
 
  protected
6246
 
    function  Get_StringValue: WideString;
6247
 
    procedure Set_StringValue(const retval: WideString);
6248
 
    function  Get_DNString: WideString;
6249
 
    procedure Set_DNString(const retval: WideString);
6250
 
  public
6251
 
    property DefaultInterface: IADsDNWithString read GetDefaultInterface;
6252
 
  published
6253
 
    property StringValue: WideString read Get_StringValue write Set_StringValue;
6254
 
    property DNString: WideString read Get_DNString write Set_DNString;
6255
 
  end;
6256
 
{$ENDIF}
6257
 
 
6258
 
procedure Register;
6259
 
 
6260
 
implementation
6261
 
 
6262
 
uses ComObj;
6263
 
 
6264
 
class function CoPropertyEntry.Create: IADsPropertyEntry;
6265
 
begin
6266
 
  Result := CreateComObject(CLASS_PropertyEntry) as IADsPropertyEntry;
6267
 
end;
6268
 
 
6269
 
class function CoPropertyEntry.CreateRemote(const MachineName: string): IADsPropertyEntry;
6270
 
begin
6271
 
  Result := CreateRemoteComObject(MachineName, CLASS_PropertyEntry) as IADsPropertyEntry;
6272
 
end;
6273
 
 
6274
 
procedure TPropertyEntry.InitServerData;
6275
 
const
6276
 
  CServerData: TServerData = (
6277
 
    ClassID:   '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
6278
 
    IntfIID:   '{05792C8E-941F-11D0-8529-00C04FD8D503}';
6279
 
    EventIID:  '';
6280
 
    LicenseKey: nil;
6281
 
    Version: 500);
6282
 
begin
6283
 
  ServerData := @CServerData;
6284
 
end;
6285
 
 
6286
 
procedure TPropertyEntry.Connect;
6287
 
var
6288
 
  punk: IUnknown;
6289
 
begin
6290
 
  if FIntf = nil then
6291
 
  begin
6292
 
    punk := GetServer;
6293
 
    Fintf:= punk as IADsPropertyEntry;
6294
 
  end;
6295
 
end;
6296
 
 
6297
 
procedure TPropertyEntry.ConnectTo(svrIntf: IADsPropertyEntry);
6298
 
begin
6299
 
  Disconnect;
6300
 
  FIntf := svrIntf;
6301
 
end;
6302
 
 
6303
 
procedure TPropertyEntry.DisConnect;
6304
 
begin
6305
 
  if Fintf <> nil then
6306
 
  begin
6307
 
    FIntf := nil;
6308
 
  end;
6309
 
end;
6310
 
 
6311
 
function TPropertyEntry.GetDefaultInterface: IADsPropertyEntry;
6312
 
begin
6313
 
  if FIntf = nil then
6314
 
    Connect;
6315
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
6316
 
  Result := FIntf;
6317
 
end;
6318
 
 
6319
 
constructor TPropertyEntry.Create(AOwner: TComponent);
6320
 
begin
6321
 
  inherited Create(AOwner);
6322
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6323
 
  FProps := TPropertyEntryProperties.Create(Self);
6324
 
{$ENDIF}
6325
 
end;
6326
 
 
6327
 
destructor TPropertyEntry.Destroy;
6328
 
begin
6329
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6330
 
  FProps.Free;
6331
 
{$ENDIF}
6332
 
  inherited Destroy;
6333
 
end;
6334
 
 
6335
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6336
 
function TPropertyEntry.GetServerProperties: TPropertyEntryProperties;
6337
 
begin
6338
 
  Result := FProps;
6339
 
end;
6340
 
{$ENDIF}
6341
 
 
6342
 
function  TPropertyEntry.Get_Name: WideString;
6343
 
begin
6344
 
  Result := DefaultInterface.Get_Name;
6345
 
end;
6346
 
 
6347
 
procedure TPropertyEntry.Set_Name(const retval: WideString);
6348
 
begin
6349
 
  DefaultInterface.Set_Name(retval);
6350
 
end;
6351
 
 
6352
 
function  TPropertyEntry.Get_ADsType: Integer;
6353
 
begin
6354
 
  Result := DefaultInterface.Get_ADsType;
6355
 
end;
6356
 
 
6357
 
procedure TPropertyEntry.Set_ADsType(retval: Integer);
6358
 
begin
6359
 
  DefaultInterface.Set_ADsType(retval);
6360
 
end;
6361
 
 
6362
 
function  TPropertyEntry.Get_ControlCode: Integer;
6363
 
begin
6364
 
  Result := DefaultInterface.Get_ControlCode;
6365
 
end;
6366
 
 
6367
 
procedure TPropertyEntry.Set_ControlCode(retval: Integer);
6368
 
begin
6369
 
  DefaultInterface.Set_ControlCode(retval);
6370
 
end;
6371
 
 
6372
 
function  TPropertyEntry.Get_Values: OleVariant;
6373
 
begin
6374
 
  Result := DefaultInterface.Get_Values;
6375
 
end;
6376
 
 
6377
 
procedure TPropertyEntry.Set_Values(retval: OleVariant);
6378
 
begin
6379
 
  DefaultInterface.Set_Values(retval);
6380
 
end;
6381
 
 
6382
 
procedure TPropertyEntry.Clear;
6383
 
begin
6384
 
  DefaultInterface.Clear;
6385
 
end;
6386
 
 
6387
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6388
 
constructor TPropertyEntryProperties.Create(AServer: TPropertyEntry);
6389
 
begin
6390
 
  inherited Create;
6391
 
  FServer := AServer;
6392
 
end;
6393
 
 
6394
 
function TPropertyEntryProperties.GetDefaultInterface: IADsPropertyEntry;
6395
 
begin
6396
 
  Result := FServer.DefaultInterface;
6397
 
end;
6398
 
 
6399
 
function  TPropertyEntryProperties.Get_Name: WideString;
6400
 
begin
6401
 
  Result := DefaultInterface.Get_Name;
6402
 
end;
6403
 
 
6404
 
procedure TPropertyEntryProperties.Set_Name(const retval: WideString);
6405
 
begin
6406
 
  DefaultInterface.Set_Name(retval);
6407
 
end;
6408
 
 
6409
 
function  TPropertyEntryProperties.Get_ADsType: Integer;
6410
 
begin
6411
 
  Result := DefaultInterface.Get_ADsType;
6412
 
end;
6413
 
 
6414
 
procedure TPropertyEntryProperties.Set_ADsType(retval: Integer);
6415
 
begin
6416
 
  DefaultInterface.Set_ADsType(retval);
6417
 
end;
6418
 
 
6419
 
function  TPropertyEntryProperties.Get_ControlCode: Integer;
6420
 
begin
6421
 
  Result := DefaultInterface.Get_ControlCode;
6422
 
end;
6423
 
 
6424
 
procedure TPropertyEntryProperties.Set_ControlCode(retval: Integer);
6425
 
begin
6426
 
  DefaultInterface.Set_ControlCode(retval);
6427
 
end;
6428
 
 
6429
 
function  TPropertyEntryProperties.Get_Values: OleVariant;
6430
 
begin
6431
 
  Result := DefaultInterface.Get_Values;
6432
 
end;
6433
 
 
6434
 
procedure TPropertyEntryProperties.Set_Values(retval: OleVariant);
6435
 
begin
6436
 
  DefaultInterface.Set_Values(retval);
6437
 
end;
6438
 
 
6439
 
{$ENDIF}
6440
 
 
6441
 
class function CoPropertyValue.Create: IADsPropertyValue;
6442
 
begin
6443
 
  Result := CreateComObject(CLASS_PropertyValue) as IADsPropertyValue;
6444
 
end;
6445
 
 
6446
 
class function CoPropertyValue.CreateRemote(const MachineName: string): IADsPropertyValue;
6447
 
begin
6448
 
  Result := CreateRemoteComObject(MachineName, CLASS_PropertyValue) as IADsPropertyValue;
6449
 
end;
6450
 
 
6451
 
procedure TPropertyValue.InitServerData;
6452
 
const
6453
 
  CServerData: TServerData = (
6454
 
    ClassID:   '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
6455
 
    IntfIID:   '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
6456
 
    EventIID:  '';
6457
 
    LicenseKey: nil;
6458
 
    Version: 500);
6459
 
begin
6460
 
  ServerData := @CServerData;
6461
 
end;
6462
 
 
6463
 
procedure TPropertyValue.Connect;
6464
 
var
6465
 
  punk: IUnknown;
6466
 
begin
6467
 
  if FIntf = nil then
6468
 
  begin
6469
 
    punk := GetServer;
6470
 
    Fintf:= punk as IADsPropertyValue;
6471
 
  end;
6472
 
end;
6473
 
 
6474
 
procedure TPropertyValue.ConnectTo(svrIntf: IADsPropertyValue);
6475
 
begin
6476
 
  Disconnect;
6477
 
  FIntf := svrIntf;
6478
 
end;
6479
 
 
6480
 
procedure TPropertyValue.DisConnect;
6481
 
begin
6482
 
  if Fintf <> nil then
6483
 
  begin
6484
 
    FIntf := nil;
6485
 
  end;
6486
 
end;
6487
 
 
6488
 
function TPropertyValue.GetDefaultInterface: IADsPropertyValue;
6489
 
begin
6490
 
  if FIntf = nil then
6491
 
    Connect;
6492
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
6493
 
  Result := FIntf;
6494
 
end;
6495
 
 
6496
 
constructor TPropertyValue.Create(AOwner: TComponent);
6497
 
begin
6498
 
  inherited Create(AOwner);
6499
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6500
 
  FProps := TPropertyValueProperties.Create(Self);
6501
 
{$ENDIF}
6502
 
end;
6503
 
 
6504
 
destructor TPropertyValue.Destroy;
6505
 
begin
6506
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6507
 
  FProps.Free;
6508
 
{$ENDIF}
6509
 
  inherited Destroy;
6510
 
end;
6511
 
 
6512
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6513
 
function TPropertyValue.GetServerProperties: TPropertyValueProperties;
6514
 
begin
6515
 
  Result := FProps;
6516
 
end;
6517
 
{$ENDIF}
6518
 
 
6519
 
function  TPropertyValue.Get_ADsType: Integer;
6520
 
begin
6521
 
  Result := DefaultInterface.Get_ADsType;
6522
 
end;
6523
 
 
6524
 
procedure TPropertyValue.Set_ADsType(retval: Integer);
6525
 
begin
6526
 
  DefaultInterface.Set_ADsType(retval);
6527
 
end;
6528
 
 
6529
 
function  TPropertyValue.Get_DNString: WideString;
6530
 
begin
6531
 
  Result := DefaultInterface.Get_DNString;
6532
 
end;
6533
 
 
6534
 
procedure TPropertyValue.Set_DNString(const retval: WideString);
6535
 
begin
6536
 
  DefaultInterface.Set_DNString(retval);
6537
 
end;
6538
 
 
6539
 
function  TPropertyValue.Get_CaseExactString: WideString;
6540
 
begin
6541
 
  Result := DefaultInterface.Get_CaseExactString;
6542
 
end;
6543
 
 
6544
 
procedure TPropertyValue.Set_CaseExactString(const retval: WideString);
6545
 
begin
6546
 
  DefaultInterface.Set_CaseExactString(retval);
6547
 
end;
6548
 
 
6549
 
function  TPropertyValue.Get_CaseIgnoreString: WideString;
6550
 
begin
6551
 
  Result := DefaultInterface.Get_CaseIgnoreString;
6552
 
end;
6553
 
 
6554
 
procedure TPropertyValue.Set_CaseIgnoreString(const retval: WideString);
6555
 
begin
6556
 
  DefaultInterface.Set_CaseIgnoreString(retval);
6557
 
end;
6558
 
 
6559
 
function  TPropertyValue.Get_PrintableString: WideString;
6560
 
begin
6561
 
  Result := DefaultInterface.Get_PrintableString;
6562
 
end;
6563
 
 
6564
 
procedure TPropertyValue.Set_PrintableString(const retval: WideString);
6565
 
begin
6566
 
  DefaultInterface.Set_PrintableString(retval);
6567
 
end;
6568
 
 
6569
 
function  TPropertyValue.Get_NumericString: WideString;
6570
 
begin
6571
 
  Result := DefaultInterface.Get_NumericString;
6572
 
end;
6573
 
 
6574
 
procedure TPropertyValue.Set_NumericString(const retval: WideString);
6575
 
begin
6576
 
  DefaultInterface.Set_NumericString(retval);
6577
 
end;
6578
 
 
6579
 
function  TPropertyValue.Get_Boolean: Integer;
6580
 
begin
6581
 
  Result := DefaultInterface.Get_Boolean;
6582
 
end;
6583
 
 
6584
 
procedure TPropertyValue.Set_Boolean(retval: Integer);
6585
 
begin
6586
 
  DefaultInterface.Set_Boolean(retval);
6587
 
end;
6588
 
 
6589
 
function  TPropertyValue.Get_Integer: Integer;
6590
 
begin
6591
 
  Result := DefaultInterface.Get_Integer;
6592
 
end;
6593
 
 
6594
 
procedure TPropertyValue.Set_Integer(retval: Integer);
6595
 
begin
6596
 
  DefaultInterface.Set_Integer(retval);
6597
 
end;
6598
 
 
6599
 
function  TPropertyValue.Get_OctetString: OleVariant;
6600
 
begin
6601
 
  Result := DefaultInterface.Get_OctetString;
6602
 
end;
6603
 
 
6604
 
procedure TPropertyValue.Set_OctetString(retval: OleVariant);
6605
 
begin
6606
 
  DefaultInterface.Set_OctetString(retval);
6607
 
end;
6608
 
 
6609
 
function  TPropertyValue.Get_SecurityDescriptor: IDispatch;
6610
 
begin
6611
 
  Result := DefaultInterface.Get_SecurityDescriptor;
6612
 
end;
6613
 
 
6614
 
procedure TPropertyValue.Set_SecurityDescriptor(const retval: IDispatch);
6615
 
begin
6616
 
  DefaultInterface.Set_SecurityDescriptor(retval);
6617
 
end;
6618
 
 
6619
 
function  TPropertyValue.Get_LargeInteger: IDispatch;
6620
 
begin
6621
 
  Result := DefaultInterface.Get_LargeInteger;
6622
 
end;
6623
 
 
6624
 
procedure TPropertyValue.Set_LargeInteger(const retval: IDispatch);
6625
 
begin
6626
 
  DefaultInterface.Set_LargeInteger(retval);
6627
 
end;
6628
 
 
6629
 
function  TPropertyValue.Get_UTCTime: TDateTime;
6630
 
begin
6631
 
  Result := DefaultInterface.Get_UTCTime;
6632
 
end;
6633
 
 
6634
 
procedure TPropertyValue.Set_UTCTime(retval: TDateTime);
6635
 
begin
6636
 
  DefaultInterface.Set_UTCTime(retval);
6637
 
end;
6638
 
 
6639
 
procedure TPropertyValue.Clear;
6640
 
begin
6641
 
  DefaultInterface.Clear;
6642
 
end;
6643
 
 
6644
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6645
 
constructor TPropertyValueProperties.Create(AServer: TPropertyValue);
6646
 
begin
6647
 
  inherited Create;
6648
 
  FServer := AServer;
6649
 
end;
6650
 
 
6651
 
function TPropertyValueProperties.GetDefaultInterface: IADsPropertyValue;
6652
 
begin
6653
 
  Result := FServer.DefaultInterface;
6654
 
end;
6655
 
 
6656
 
function  TPropertyValueProperties.Get_ADsType: Integer;
6657
 
begin
6658
 
  Result := DefaultInterface.Get_ADsType;
6659
 
end;
6660
 
 
6661
 
procedure TPropertyValueProperties.Set_ADsType(retval: Integer);
6662
 
begin
6663
 
  DefaultInterface.Set_ADsType(retval);
6664
 
end;
6665
 
 
6666
 
function  TPropertyValueProperties.Get_DNString: WideString;
6667
 
begin
6668
 
  Result := DefaultInterface.Get_DNString;
6669
 
end;
6670
 
 
6671
 
procedure TPropertyValueProperties.Set_DNString(const retval: WideString);
6672
 
begin
6673
 
  DefaultInterface.Set_DNString(retval);
6674
 
end;
6675
 
 
6676
 
function  TPropertyValueProperties.Get_CaseExactString: WideString;
6677
 
begin
6678
 
  Result := DefaultInterface.Get_CaseExactString;
6679
 
end;
6680
 
 
6681
 
procedure TPropertyValueProperties.Set_CaseExactString(const retval: WideString);
6682
 
begin
6683
 
  DefaultInterface.Set_CaseExactString(retval);
6684
 
end;
6685
 
 
6686
 
function  TPropertyValueProperties.Get_CaseIgnoreString: WideString;
6687
 
begin
6688
 
  Result := DefaultInterface.Get_CaseIgnoreString;
6689
 
end;
6690
 
 
6691
 
procedure TPropertyValueProperties.Set_CaseIgnoreString(const retval: WideString);
6692
 
begin
6693
 
  DefaultInterface.Set_CaseIgnoreString(retval);
6694
 
end;
6695
 
 
6696
 
function  TPropertyValueProperties.Get_PrintableString: WideString;
6697
 
begin
6698
 
  Result := DefaultInterface.Get_PrintableString;
6699
 
end;
6700
 
 
6701
 
procedure TPropertyValueProperties.Set_PrintableString(const retval: WideString);
6702
 
begin
6703
 
  DefaultInterface.Set_PrintableString(retval);
6704
 
end;
6705
 
 
6706
 
function  TPropertyValueProperties.Get_NumericString: WideString;
6707
 
begin
6708
 
  Result := DefaultInterface.Get_NumericString;
6709
 
end;
6710
 
 
6711
 
procedure TPropertyValueProperties.Set_NumericString(const retval: WideString);
6712
 
begin
6713
 
  DefaultInterface.Set_NumericString(retval);
6714
 
end;
6715
 
 
6716
 
function  TPropertyValueProperties.Get_Boolean: Integer;
6717
 
begin
6718
 
  Result := DefaultInterface.Get_Boolean;
6719
 
end;
6720
 
 
6721
 
procedure TPropertyValueProperties.Set_Boolean(retval: Integer);
6722
 
begin
6723
 
  DefaultInterface.Set_Boolean(retval);
6724
 
end;
6725
 
 
6726
 
function  TPropertyValueProperties.Get_Integer: Integer;
6727
 
begin
6728
 
  Result := DefaultInterface.Get_Integer;
6729
 
end;
6730
 
 
6731
 
procedure TPropertyValueProperties.Set_Integer(retval: Integer);
6732
 
begin
6733
 
  DefaultInterface.Set_Integer(retval);
6734
 
end;
6735
 
 
6736
 
function  TPropertyValueProperties.Get_OctetString: OleVariant;
6737
 
begin
6738
 
  Result := DefaultInterface.Get_OctetString;
6739
 
end;
6740
 
 
6741
 
procedure TPropertyValueProperties.Set_OctetString(retval: OleVariant);
6742
 
begin
6743
 
  DefaultInterface.Set_OctetString(retval);
6744
 
end;
6745
 
 
6746
 
function  TPropertyValueProperties.Get_SecurityDescriptor: IDispatch;
6747
 
begin
6748
 
  Result := DefaultInterface.Get_SecurityDescriptor;
6749
 
end;
6750
 
 
6751
 
procedure TPropertyValueProperties.Set_SecurityDescriptor(const retval: IDispatch);
6752
 
begin
6753
 
  DefaultInterface.Set_SecurityDescriptor(retval);
6754
 
end;
6755
 
 
6756
 
function  TPropertyValueProperties.Get_LargeInteger: IDispatch;
6757
 
begin
6758
 
  Result := DefaultInterface.Get_LargeInteger;
6759
 
end;
6760
 
 
6761
 
procedure TPropertyValueProperties.Set_LargeInteger(const retval: IDispatch);
6762
 
begin
6763
 
  DefaultInterface.Set_LargeInteger(retval);
6764
 
end;
6765
 
 
6766
 
function  TPropertyValueProperties.Get_UTCTime: TDateTime;
6767
 
begin
6768
 
  Result := DefaultInterface.Get_UTCTime;
6769
 
end;
6770
 
 
6771
 
procedure TPropertyValueProperties.Set_UTCTime(retval: TDateTime);
6772
 
begin
6773
 
  DefaultInterface.Set_UTCTime(retval);
6774
 
end;
6775
 
 
6776
 
{$ENDIF}
6777
 
 
6778
 
class function CoAccessControlEntry.Create: IADsAccessControlEntry;
6779
 
begin
6780
 
  Result := CreateComObject(CLASS_AccessControlEntry) as IADsAccessControlEntry;
6781
 
end;
6782
 
 
6783
 
class function CoAccessControlEntry.CreateRemote(const MachineName: string): IADsAccessControlEntry;
6784
 
begin
6785
 
  Result := CreateRemoteComObject(MachineName, CLASS_AccessControlEntry) as IADsAccessControlEntry;
6786
 
end;
6787
 
 
6788
 
procedure TAccessControlEntry.InitServerData;
6789
 
const
6790
 
  CServerData: TServerData = (
6791
 
    ClassID:   '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
6792
 
    IntfIID:   '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
6793
 
    EventIID:  '';
6794
 
    LicenseKey: nil;
6795
 
    Version: 500);
6796
 
begin
6797
 
  ServerData := @CServerData;
6798
 
end;
6799
 
 
6800
 
procedure TAccessControlEntry.Connect;
6801
 
var
6802
 
  punk: IUnknown;
6803
 
begin
6804
 
  if FIntf = nil then
6805
 
  begin
6806
 
    punk := GetServer;
6807
 
    Fintf:= punk as IADsAccessControlEntry;
6808
 
  end;
6809
 
end;
6810
 
 
6811
 
procedure TAccessControlEntry.ConnectTo(svrIntf: IADsAccessControlEntry);
6812
 
begin
6813
 
  Disconnect;
6814
 
  FIntf := svrIntf;
6815
 
end;
6816
 
 
6817
 
procedure TAccessControlEntry.DisConnect;
6818
 
begin
6819
 
  if Fintf <> nil then
6820
 
  begin
6821
 
    FIntf := nil;
6822
 
  end;
6823
 
end;
6824
 
 
6825
 
function TAccessControlEntry.GetDefaultInterface: IADsAccessControlEntry;
6826
 
begin
6827
 
  if FIntf = nil then
6828
 
    Connect;
6829
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
6830
 
  Result := FIntf;
6831
 
end;
6832
 
 
6833
 
constructor TAccessControlEntry.Create(AOwner: TComponent);
6834
 
begin
6835
 
  inherited Create(AOwner);
6836
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6837
 
  FProps := TAccessControlEntryProperties.Create(Self);
6838
 
{$ENDIF}
6839
 
end;
6840
 
 
6841
 
destructor TAccessControlEntry.Destroy;
6842
 
begin
6843
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6844
 
  FProps.Free;
6845
 
{$ENDIF}
6846
 
  inherited Destroy;
6847
 
end;
6848
 
 
6849
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6850
 
function TAccessControlEntry.GetServerProperties: TAccessControlEntryProperties;
6851
 
begin
6852
 
  Result := FProps;
6853
 
end;
6854
 
{$ENDIF}
6855
 
 
6856
 
function  TAccessControlEntry.Get_AccessMask: Integer;
6857
 
begin
6858
 
  Result := DefaultInterface.Get_AccessMask;
6859
 
end;
6860
 
 
6861
 
procedure TAccessControlEntry.Set_AccessMask(retval: Integer);
6862
 
begin
6863
 
  DefaultInterface.Set_AccessMask(retval);
6864
 
end;
6865
 
 
6866
 
function  TAccessControlEntry.Get_AceType: Integer;
6867
 
begin
6868
 
  Result := DefaultInterface.Get_AceType;
6869
 
end;
6870
 
 
6871
 
procedure TAccessControlEntry.Set_AceType(retval: Integer);
6872
 
begin
6873
 
  DefaultInterface.Set_AceType(retval);
6874
 
end;
6875
 
 
6876
 
function  TAccessControlEntry.Get_AceFlags: Integer;
6877
 
begin
6878
 
  Result := DefaultInterface.Get_AceFlags;
6879
 
end;
6880
 
 
6881
 
procedure TAccessControlEntry.Set_AceFlags(retval: Integer);
6882
 
begin
6883
 
  DefaultInterface.Set_AceFlags(retval);
6884
 
end;
6885
 
 
6886
 
function  TAccessControlEntry.Get_Flags: Integer;
6887
 
begin
6888
 
  Result := DefaultInterface.Get_Flags;
6889
 
end;
6890
 
 
6891
 
procedure TAccessControlEntry.Set_Flags(retval: Integer);
6892
 
begin
6893
 
  DefaultInterface.Set_Flags(retval);
6894
 
end;
6895
 
 
6896
 
function  TAccessControlEntry.Get_ObjectType: WideString;
6897
 
begin
6898
 
  Result := DefaultInterface.Get_ObjectType;
6899
 
end;
6900
 
 
6901
 
procedure TAccessControlEntry.Set_ObjectType(const retval: WideString);
6902
 
begin
6903
 
  DefaultInterface.Set_ObjectType(retval);
6904
 
end;
6905
 
 
6906
 
function  TAccessControlEntry.Get_InheritedObjectType: WideString;
6907
 
begin
6908
 
  Result := DefaultInterface.Get_InheritedObjectType;
6909
 
end;
6910
 
 
6911
 
procedure TAccessControlEntry.Set_InheritedObjectType(const retval: WideString);
6912
 
begin
6913
 
  DefaultInterface.Set_InheritedObjectType(retval);
6914
 
end;
6915
 
 
6916
 
function  TAccessControlEntry.Get_Trustee: WideString;
6917
 
begin
6918
 
  Result := DefaultInterface.Get_Trustee;
6919
 
end;
6920
 
 
6921
 
procedure TAccessControlEntry.Set_Trustee(const retval: WideString);
6922
 
begin
6923
 
  DefaultInterface.Set_Trustee(retval);
6924
 
end;
6925
 
 
6926
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
6927
 
constructor TAccessControlEntryProperties.Create(AServer: TAccessControlEntry);
6928
 
begin
6929
 
  inherited Create;
6930
 
  FServer := AServer;
6931
 
end;
6932
 
 
6933
 
function TAccessControlEntryProperties.GetDefaultInterface: IADsAccessControlEntry;
6934
 
begin
6935
 
  Result := FServer.DefaultInterface;
6936
 
end;
6937
 
 
6938
 
function  TAccessControlEntryProperties.Get_AccessMask: Integer;
6939
 
begin
6940
 
  Result := DefaultInterface.Get_AccessMask;
6941
 
end;
6942
 
 
6943
 
procedure TAccessControlEntryProperties.Set_AccessMask(retval: Integer);
6944
 
begin
6945
 
  DefaultInterface.Set_AccessMask(retval);
6946
 
end;
6947
 
 
6948
 
function  TAccessControlEntryProperties.Get_AceType: Integer;
6949
 
begin
6950
 
  Result := DefaultInterface.Get_AceType;
6951
 
end;
6952
 
 
6953
 
procedure TAccessControlEntryProperties.Set_AceType(retval: Integer);
6954
 
begin
6955
 
  DefaultInterface.Set_AceType(retval);
6956
 
end;
6957
 
 
6958
 
function  TAccessControlEntryProperties.Get_AceFlags: Integer;
6959
 
begin
6960
 
  Result := DefaultInterface.Get_AceFlags;
6961
 
end;
6962
 
 
6963
 
procedure TAccessControlEntryProperties.Set_AceFlags(retval: Integer);
6964
 
begin
6965
 
  DefaultInterface.Set_AceFlags(retval);
6966
 
end;
6967
 
 
6968
 
function  TAccessControlEntryProperties.Get_Flags: Integer;
6969
 
begin
6970
 
  Result := DefaultInterface.Get_Flags;
6971
 
end;
6972
 
 
6973
 
procedure TAccessControlEntryProperties.Set_Flags(retval: Integer);
6974
 
begin
6975
 
  DefaultInterface.Set_Flags(retval);
6976
 
end;
6977
 
 
6978
 
function  TAccessControlEntryProperties.Get_ObjectType: WideString;
6979
 
begin
6980
 
  Result := DefaultInterface.Get_ObjectType;
6981
 
end;
6982
 
 
6983
 
procedure TAccessControlEntryProperties.Set_ObjectType(const retval: WideString);
6984
 
begin
6985
 
  DefaultInterface.Set_ObjectType(retval);
6986
 
end;
6987
 
 
6988
 
function  TAccessControlEntryProperties.Get_InheritedObjectType: WideString;
6989
 
begin
6990
 
  Result := DefaultInterface.Get_InheritedObjectType;
6991
 
end;
6992
 
 
6993
 
procedure TAccessControlEntryProperties.Set_InheritedObjectType(const retval: WideString);
6994
 
begin
6995
 
  DefaultInterface.Set_InheritedObjectType(retval);
6996
 
end;
6997
 
 
6998
 
function  TAccessControlEntryProperties.Get_Trustee: WideString;
6999
 
begin
7000
 
  Result := DefaultInterface.Get_Trustee;
7001
 
end;
7002
 
 
7003
 
procedure TAccessControlEntryProperties.Set_Trustee(const retval: WideString);
7004
 
begin
7005
 
  DefaultInterface.Set_Trustee(retval);
7006
 
end;
7007
 
 
7008
 
{$ENDIF}
7009
 
 
7010
 
class function CoAccessControlList.Create: IADsAccessControlList;
7011
 
begin
7012
 
  Result := CreateComObject(CLASS_AccessControlList) as IADsAccessControlList;
7013
 
end;
7014
 
 
7015
 
class function CoAccessControlList.CreateRemote(const MachineName: string): IADsAccessControlList;
7016
 
begin
7017
 
  Result := CreateRemoteComObject(MachineName, CLASS_AccessControlList) as IADsAccessControlList;
7018
 
end;
7019
 
 
7020
 
procedure TAccessControlList.InitServerData;
7021
 
const
7022
 
  CServerData: TServerData = (
7023
 
    ClassID:   '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
7024
 
    IntfIID:   '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
7025
 
    EventIID:  '';
7026
 
    LicenseKey: nil;
7027
 
    Version: 500);
7028
 
begin
7029
 
  ServerData := @CServerData;
7030
 
end;
7031
 
 
7032
 
procedure TAccessControlList.Connect;
7033
 
var
7034
 
  punk: IUnknown;
7035
 
begin
7036
 
  if FIntf = nil then
7037
 
  begin
7038
 
    punk := GetServer;
7039
 
    Fintf:= punk as IADsAccessControlList;
7040
 
  end;
7041
 
end;
7042
 
 
7043
 
procedure TAccessControlList.ConnectTo(svrIntf: IADsAccessControlList);
7044
 
begin
7045
 
  Disconnect;
7046
 
  FIntf := svrIntf;
7047
 
end;
7048
 
 
7049
 
procedure TAccessControlList.DisConnect;
7050
 
begin
7051
 
  if Fintf <> nil then
7052
 
  begin
7053
 
    FIntf := nil;
7054
 
  end;
7055
 
end;
7056
 
 
7057
 
function TAccessControlList.GetDefaultInterface: IADsAccessControlList;
7058
 
begin
7059
 
  if FIntf = nil then
7060
 
    Connect;
7061
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7062
 
  Result := FIntf;
7063
 
end;
7064
 
 
7065
 
constructor TAccessControlList.Create(AOwner: TComponent);
7066
 
begin
7067
 
  inherited Create(AOwner);
7068
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7069
 
  FProps := TAccessControlListProperties.Create(Self);
7070
 
{$ENDIF}
7071
 
end;
7072
 
 
7073
 
destructor TAccessControlList.Destroy;
7074
 
begin
7075
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7076
 
  FProps.Free;
7077
 
{$ENDIF}
7078
 
  inherited Destroy;
7079
 
end;
7080
 
 
7081
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7082
 
function TAccessControlList.GetServerProperties: TAccessControlListProperties;
7083
 
begin
7084
 
  Result := FProps;
7085
 
end;
7086
 
{$ENDIF}
7087
 
 
7088
 
function  TAccessControlList.Get_AclRevision: Integer;
7089
 
begin
7090
 
  Result := DefaultInterface.Get_AclRevision;
7091
 
end;
7092
 
 
7093
 
procedure TAccessControlList.Set_AclRevision(retval: Integer);
7094
 
begin
7095
 
  DefaultInterface.Set_AclRevision(retval);
7096
 
end;
7097
 
 
7098
 
function  TAccessControlList.Get_AceCount: Integer;
7099
 
begin
7100
 
  Result := DefaultInterface.Get_AceCount;
7101
 
end;
7102
 
 
7103
 
procedure TAccessControlList.Set_AceCount(retval: Integer);
7104
 
begin
7105
 
  DefaultInterface.Set_AceCount(retval);
7106
 
end;
7107
 
 
7108
 
procedure TAccessControlList.AddAce(const pAccessControlEntry: IDispatch);
7109
 
begin
7110
 
  DefaultInterface.AddAce(pAccessControlEntry);
7111
 
end;
7112
 
 
7113
 
procedure TAccessControlList.RemoveAce(const pAccessControlEntry: IDispatch);
7114
 
begin
7115
 
  DefaultInterface.RemoveAce(pAccessControlEntry);
7116
 
end;
7117
 
 
7118
 
function  TAccessControlList.CopyAccessList: IDispatch;
7119
 
begin
7120
 
  Result := DefaultInterface.CopyAccessList;
7121
 
end;
7122
 
 
7123
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7124
 
constructor TAccessControlListProperties.Create(AServer: TAccessControlList);
7125
 
begin
7126
 
  inherited Create;
7127
 
  FServer := AServer;
7128
 
end;
7129
 
 
7130
 
function TAccessControlListProperties.GetDefaultInterface: IADsAccessControlList;
7131
 
begin
7132
 
  Result := FServer.DefaultInterface;
7133
 
end;
7134
 
 
7135
 
function  TAccessControlListProperties.Get_AclRevision: Integer;
7136
 
begin
7137
 
  Result := DefaultInterface.Get_AclRevision;
7138
 
end;
7139
 
 
7140
 
procedure TAccessControlListProperties.Set_AclRevision(retval: Integer);
7141
 
begin
7142
 
  DefaultInterface.Set_AclRevision(retval);
7143
 
end;
7144
 
 
7145
 
function  TAccessControlListProperties.Get_AceCount: Integer;
7146
 
begin
7147
 
  Result := DefaultInterface.Get_AceCount;
7148
 
end;
7149
 
 
7150
 
procedure TAccessControlListProperties.Set_AceCount(retval: Integer);
7151
 
begin
7152
 
  DefaultInterface.Set_AceCount(retval);
7153
 
end;
7154
 
 
7155
 
{$ENDIF}
7156
 
 
7157
 
class function CoSecurityDescriptor.Create: IADsSecurityDescriptor;
7158
 
begin
7159
 
  Result := CreateComObject(CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
7160
 
end;
7161
 
 
7162
 
class function CoSecurityDescriptor.CreateRemote(const MachineName: string): IADsSecurityDescriptor;
7163
 
begin
7164
 
  Result := CreateRemoteComObject(MachineName, CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
7165
 
end;
7166
 
 
7167
 
procedure TSecurityDescriptor.InitServerData;
7168
 
const
7169
 
  CServerData: TServerData = (
7170
 
    ClassID:   '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
7171
 
    IntfIID:   '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
7172
 
    EventIID:  '';
7173
 
    LicenseKey: nil;
7174
 
    Version: 500);
7175
 
begin
7176
 
  ServerData := @CServerData;
7177
 
end;
7178
 
 
7179
 
procedure TSecurityDescriptor.Connect;
7180
 
var
7181
 
  punk: IUnknown;
7182
 
begin
7183
 
  if FIntf = nil then
7184
 
  begin
7185
 
    punk := GetServer;
7186
 
    Fintf:= punk as IADsSecurityDescriptor;
7187
 
  end;
7188
 
end;
7189
 
 
7190
 
procedure TSecurityDescriptor.ConnectTo(svrIntf: IADsSecurityDescriptor);
7191
 
begin
7192
 
  Disconnect;
7193
 
  FIntf := svrIntf;
7194
 
end;
7195
 
 
7196
 
procedure TSecurityDescriptor.DisConnect;
7197
 
begin
7198
 
  if Fintf <> nil then
7199
 
  begin
7200
 
    FIntf := nil;
7201
 
  end;
7202
 
end;
7203
 
 
7204
 
function TSecurityDescriptor.GetDefaultInterface: IADsSecurityDescriptor;
7205
 
begin
7206
 
  if FIntf = nil then
7207
 
    Connect;
7208
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7209
 
  Result := FIntf;
7210
 
end;
7211
 
 
7212
 
constructor TSecurityDescriptor.Create(AOwner: TComponent);
7213
 
begin
7214
 
  inherited Create(AOwner);
7215
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7216
 
  FProps := TSecurityDescriptorProperties.Create(Self);
7217
 
{$ENDIF}
7218
 
end;
7219
 
 
7220
 
destructor TSecurityDescriptor.Destroy;
7221
 
begin
7222
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7223
 
  FProps.Free;
7224
 
{$ENDIF}
7225
 
  inherited Destroy;
7226
 
end;
7227
 
 
7228
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7229
 
function TSecurityDescriptor.GetServerProperties: TSecurityDescriptorProperties;
7230
 
begin
7231
 
  Result := FProps;
7232
 
end;
7233
 
{$ENDIF}
7234
 
 
7235
 
function  TSecurityDescriptor.Get_Revision: Integer;
7236
 
begin
7237
 
  Result := DefaultInterface.Get_Revision;
7238
 
end;
7239
 
 
7240
 
procedure TSecurityDescriptor.Set_Revision(retval: Integer);
7241
 
begin
7242
 
  DefaultInterface.Set_Revision(retval);
7243
 
end;
7244
 
 
7245
 
function  TSecurityDescriptor.Get_Control: Integer;
7246
 
begin
7247
 
  Result := DefaultInterface.Get_Control;
7248
 
end;
7249
 
 
7250
 
procedure TSecurityDescriptor.Set_Control(retval: Integer);
7251
 
begin
7252
 
  DefaultInterface.Set_Control(retval);
7253
 
end;
7254
 
 
7255
 
function  TSecurityDescriptor.Get_Owner: WideString;
7256
 
begin
7257
 
  Result := DefaultInterface.Get_Owner;
7258
 
end;
7259
 
 
7260
 
procedure TSecurityDescriptor.Set_Owner(const retval: WideString);
7261
 
begin
7262
 
  DefaultInterface.Set_Owner(retval);
7263
 
end;
7264
 
 
7265
 
function  TSecurityDescriptor.Get_OwnerDefaulted: WordBool;
7266
 
begin
7267
 
  Result := DefaultInterface.Get_OwnerDefaulted;
7268
 
end;
7269
 
 
7270
 
procedure TSecurityDescriptor.Set_OwnerDefaulted(retval: WordBool);
7271
 
begin
7272
 
  DefaultInterface.Set_OwnerDefaulted(retval);
7273
 
end;
7274
 
 
7275
 
function  TSecurityDescriptor.Get_Group: WideString;
7276
 
begin
7277
 
  Result := DefaultInterface.Get_Group;
7278
 
end;
7279
 
 
7280
 
procedure TSecurityDescriptor.Set_Group(const retval: WideString);
7281
 
begin
7282
 
  DefaultInterface.Set_Group(retval);
7283
 
end;
7284
 
 
7285
 
function  TSecurityDescriptor.Get_GroupDefaulted: WordBool;
7286
 
begin
7287
 
  Result := DefaultInterface.Get_GroupDefaulted;
7288
 
end;
7289
 
 
7290
 
procedure TSecurityDescriptor.Set_GroupDefaulted(retval: WordBool);
7291
 
begin
7292
 
  DefaultInterface.Set_GroupDefaulted(retval);
7293
 
end;
7294
 
 
7295
 
function  TSecurityDescriptor.Get_DiscretionaryAcl: IDispatch;
7296
 
begin
7297
 
  Result := DefaultInterface.Get_DiscretionaryAcl;
7298
 
end;
7299
 
 
7300
 
procedure TSecurityDescriptor.Set_DiscretionaryAcl(const retval: IDispatch);
7301
 
begin
7302
 
  DefaultInterface.Set_DiscretionaryAcl(retval);
7303
 
end;
7304
 
 
7305
 
function  TSecurityDescriptor.Get_DaclDefaulted: WordBool;
7306
 
begin
7307
 
  Result := DefaultInterface.Get_DaclDefaulted;
7308
 
end;
7309
 
 
7310
 
procedure TSecurityDescriptor.Set_DaclDefaulted(retval: WordBool);
7311
 
begin
7312
 
  DefaultInterface.Set_DaclDefaulted(retval);
7313
 
end;
7314
 
 
7315
 
function  TSecurityDescriptor.Get_SystemAcl: IDispatch;
7316
 
begin
7317
 
  Result := DefaultInterface.Get_SystemAcl;
7318
 
end;
7319
 
 
7320
 
procedure TSecurityDescriptor.Set_SystemAcl(const retval: IDispatch);
7321
 
begin
7322
 
  DefaultInterface.Set_SystemAcl(retval);
7323
 
end;
7324
 
 
7325
 
function  TSecurityDescriptor.Get_SaclDefaulted: WordBool;
7326
 
begin
7327
 
  Result := DefaultInterface.Get_SaclDefaulted;
7328
 
end;
7329
 
 
7330
 
procedure TSecurityDescriptor.Set_SaclDefaulted(retval: WordBool);
7331
 
begin
7332
 
  DefaultInterface.Set_SaclDefaulted(retval);
7333
 
end;
7334
 
 
7335
 
function  TSecurityDescriptor.CopySecurityDescriptor: IDispatch;
7336
 
begin
7337
 
  Result := DefaultInterface.CopySecurityDescriptor;
7338
 
end;
7339
 
 
7340
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7341
 
constructor TSecurityDescriptorProperties.Create(AServer: TSecurityDescriptor);
7342
 
begin
7343
 
  inherited Create;
7344
 
  FServer := AServer;
7345
 
end;
7346
 
 
7347
 
function TSecurityDescriptorProperties.GetDefaultInterface: IADsSecurityDescriptor;
7348
 
begin
7349
 
  Result := FServer.DefaultInterface;
7350
 
end;
7351
 
 
7352
 
function  TSecurityDescriptorProperties.Get_Revision: Integer;
7353
 
begin
7354
 
  Result := DefaultInterface.Get_Revision;
7355
 
end;
7356
 
 
7357
 
procedure TSecurityDescriptorProperties.Set_Revision(retval: Integer);
7358
 
begin
7359
 
  DefaultInterface.Set_Revision(retval);
7360
 
end;
7361
 
 
7362
 
function  TSecurityDescriptorProperties.Get_Control: Integer;
7363
 
begin
7364
 
  Result := DefaultInterface.Get_Control;
7365
 
end;
7366
 
 
7367
 
procedure TSecurityDescriptorProperties.Set_Control(retval: Integer);
7368
 
begin
7369
 
  DefaultInterface.Set_Control(retval);
7370
 
end;
7371
 
 
7372
 
function  TSecurityDescriptorProperties.Get_Owner: WideString;
7373
 
begin
7374
 
  Result := DefaultInterface.Get_Owner;
7375
 
end;
7376
 
 
7377
 
procedure TSecurityDescriptorProperties.Set_Owner(const retval: WideString);
7378
 
begin
7379
 
  DefaultInterface.Set_Owner(retval);
7380
 
end;
7381
 
 
7382
 
function  TSecurityDescriptorProperties.Get_OwnerDefaulted: WordBool;
7383
 
begin
7384
 
  Result := DefaultInterface.Get_OwnerDefaulted;
7385
 
end;
7386
 
 
7387
 
procedure TSecurityDescriptorProperties.Set_OwnerDefaulted(retval: WordBool);
7388
 
begin
7389
 
  DefaultInterface.Set_OwnerDefaulted(retval);
7390
 
end;
7391
 
 
7392
 
function  TSecurityDescriptorProperties.Get_Group: WideString;
7393
 
begin
7394
 
  Result := DefaultInterface.Get_Group;
7395
 
end;
7396
 
 
7397
 
procedure TSecurityDescriptorProperties.Set_Group(const retval: WideString);
7398
 
begin
7399
 
  DefaultInterface.Set_Group(retval);
7400
 
end;
7401
 
 
7402
 
function  TSecurityDescriptorProperties.Get_GroupDefaulted: WordBool;
7403
 
begin
7404
 
  Result := DefaultInterface.Get_GroupDefaulted;
7405
 
end;
7406
 
 
7407
 
procedure TSecurityDescriptorProperties.Set_GroupDefaulted(retval: WordBool);
7408
 
begin
7409
 
  DefaultInterface.Set_GroupDefaulted(retval);
7410
 
end;
7411
 
 
7412
 
function  TSecurityDescriptorProperties.Get_DiscretionaryAcl: IDispatch;
7413
 
begin
7414
 
  Result := DefaultInterface.Get_DiscretionaryAcl;
7415
 
end;
7416
 
 
7417
 
procedure TSecurityDescriptorProperties.Set_DiscretionaryAcl(const retval: IDispatch);
7418
 
begin
7419
 
  DefaultInterface.Set_DiscretionaryAcl(retval);
7420
 
end;
7421
 
 
7422
 
function  TSecurityDescriptorProperties.Get_DaclDefaulted: WordBool;
7423
 
begin
7424
 
  Result := DefaultInterface.Get_DaclDefaulted;
7425
 
end;
7426
 
 
7427
 
procedure TSecurityDescriptorProperties.Set_DaclDefaulted(retval: WordBool);
7428
 
begin
7429
 
  DefaultInterface.Set_DaclDefaulted(retval);
7430
 
end;
7431
 
 
7432
 
function  TSecurityDescriptorProperties.Get_SystemAcl: IDispatch;
7433
 
begin
7434
 
  Result := DefaultInterface.Get_SystemAcl;
7435
 
end;
7436
 
 
7437
 
procedure TSecurityDescriptorProperties.Set_SystemAcl(const retval: IDispatch);
7438
 
begin
7439
 
  DefaultInterface.Set_SystemAcl(retval);
7440
 
end;
7441
 
 
7442
 
function  TSecurityDescriptorProperties.Get_SaclDefaulted: WordBool;
7443
 
begin
7444
 
  Result := DefaultInterface.Get_SaclDefaulted;
7445
 
end;
7446
 
 
7447
 
procedure TSecurityDescriptorProperties.Set_SaclDefaulted(retval: WordBool);
7448
 
begin
7449
 
  DefaultInterface.Set_SaclDefaulted(retval);
7450
 
end;
7451
 
 
7452
 
{$ENDIF}
7453
 
 
7454
 
class function CoLargeInteger.Create: IADsLargeInteger;
7455
 
begin
7456
 
  Result := CreateComObject(CLASS_LargeInteger) as IADsLargeInteger;
7457
 
end;
7458
 
 
7459
 
class function CoLargeInteger.CreateRemote(const MachineName: string): IADsLargeInteger;
7460
 
begin
7461
 
  Result := CreateRemoteComObject(MachineName, CLASS_LargeInteger) as IADsLargeInteger;
7462
 
end;
7463
 
 
7464
 
procedure TLargeInteger.InitServerData;
7465
 
const
7466
 
  CServerData: TServerData = (
7467
 
    ClassID:   '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
7468
 
    IntfIID:   '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
7469
 
    EventIID:  '';
7470
 
    LicenseKey: nil;
7471
 
    Version: 500);
7472
 
begin
7473
 
  ServerData := @CServerData;
7474
 
end;
7475
 
 
7476
 
procedure TLargeInteger.Connect;
7477
 
var
7478
 
  punk: IUnknown;
7479
 
begin
7480
 
  if FIntf = nil then
7481
 
  begin
7482
 
    punk := GetServer;
7483
 
    Fintf:= punk as IADsLargeInteger;
7484
 
  end;
7485
 
end;
7486
 
 
7487
 
procedure TLargeInteger.ConnectTo(svrIntf: IADsLargeInteger);
7488
 
begin
7489
 
  Disconnect;
7490
 
  FIntf := svrIntf;
7491
 
end;
7492
 
 
7493
 
procedure TLargeInteger.DisConnect;
7494
 
begin
7495
 
  if Fintf <> nil then
7496
 
  begin
7497
 
    FIntf := nil;
7498
 
  end;
7499
 
end;
7500
 
 
7501
 
function TLargeInteger.GetDefaultInterface: IADsLargeInteger;
7502
 
begin
7503
 
  if FIntf = nil then
7504
 
    Connect;
7505
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7506
 
  Result := FIntf;
7507
 
end;
7508
 
 
7509
 
constructor TLargeInteger.Create(AOwner: TComponent);
7510
 
begin
7511
 
  inherited Create(AOwner);
7512
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7513
 
  FProps := TLargeIntegerProperties.Create(Self);
7514
 
{$ENDIF}
7515
 
end;
7516
 
 
7517
 
destructor TLargeInteger.Destroy;
7518
 
begin
7519
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7520
 
  FProps.Free;
7521
 
{$ENDIF}
7522
 
  inherited Destroy;
7523
 
end;
7524
 
 
7525
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7526
 
function TLargeInteger.GetServerProperties: TLargeIntegerProperties;
7527
 
begin
7528
 
  Result := FProps;
7529
 
end;
7530
 
{$ENDIF}
7531
 
 
7532
 
function  TLargeInteger.Get_HighPart: Integer;
7533
 
begin
7534
 
  Result := DefaultInterface.Get_HighPart;
7535
 
end;
7536
 
 
7537
 
procedure TLargeInteger.Set_HighPart(retval: Integer);
7538
 
begin
7539
 
  DefaultInterface.Set_HighPart(retval);
7540
 
end;
7541
 
 
7542
 
function  TLargeInteger.Get_LowPart: Integer;
7543
 
begin
7544
 
  Result := DefaultInterface.Get_LowPart;
7545
 
end;
7546
 
 
7547
 
procedure TLargeInteger.Set_LowPart(retval: Integer);
7548
 
begin
7549
 
  DefaultInterface.Set_LowPart(retval);
7550
 
end;
7551
 
 
7552
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7553
 
constructor TLargeIntegerProperties.Create(AServer: TLargeInteger);
7554
 
begin
7555
 
  inherited Create;
7556
 
  FServer := AServer;
7557
 
end;
7558
 
 
7559
 
function TLargeIntegerProperties.GetDefaultInterface: IADsLargeInteger;
7560
 
begin
7561
 
  Result := FServer.DefaultInterface;
7562
 
end;
7563
 
 
7564
 
function  TLargeIntegerProperties.Get_HighPart: Integer;
7565
 
begin
7566
 
  Result := DefaultInterface.Get_HighPart;
7567
 
end;
7568
 
 
7569
 
procedure TLargeIntegerProperties.Set_HighPart(retval: Integer);
7570
 
begin
7571
 
  DefaultInterface.Set_HighPart(retval);
7572
 
end;
7573
 
 
7574
 
function  TLargeIntegerProperties.Get_LowPart: Integer;
7575
 
begin
7576
 
  Result := DefaultInterface.Get_LowPart;
7577
 
end;
7578
 
 
7579
 
procedure TLargeIntegerProperties.Set_LowPart(retval: Integer);
7580
 
begin
7581
 
  DefaultInterface.Set_LowPart(retval);
7582
 
end;
7583
 
 
7584
 
{$ENDIF}
7585
 
 
7586
 
class function CoNameTranslate.Create: IADsNameTranslate;
7587
 
begin
7588
 
  Result := CreateComObject(CLASS_NameTranslate) as IADsNameTranslate;
7589
 
end;
7590
 
 
7591
 
class function CoNameTranslate.CreateRemote(const MachineName: string): IADsNameTranslate;
7592
 
begin
7593
 
  Result := CreateRemoteComObject(MachineName, CLASS_NameTranslate) as IADsNameTranslate;
7594
 
end;
7595
 
 
7596
 
procedure TNameTranslate.InitServerData;
7597
 
const
7598
 
  CServerData: TServerData = (
7599
 
    ClassID:   '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
7600
 
    IntfIID:   '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
7601
 
    EventIID:  '';
7602
 
    LicenseKey: nil;
7603
 
    Version: 500);
7604
 
begin
7605
 
  ServerData := @CServerData;
7606
 
end;
7607
 
 
7608
 
procedure TNameTranslate.Connect;
7609
 
var
7610
 
  punk: IUnknown;
7611
 
begin
7612
 
  if FIntf = nil then
7613
 
  begin
7614
 
    punk := GetServer;
7615
 
    Fintf:= punk as IADsNameTranslate;
7616
 
  end;
7617
 
end;
7618
 
 
7619
 
procedure TNameTranslate.ConnectTo(svrIntf: IADsNameTranslate);
7620
 
begin
7621
 
  Disconnect;
7622
 
  FIntf := svrIntf;
7623
 
end;
7624
 
 
7625
 
procedure TNameTranslate.DisConnect;
7626
 
begin
7627
 
  if Fintf <> nil then
7628
 
  begin
7629
 
    FIntf := nil;
7630
 
  end;
7631
 
end;
7632
 
 
7633
 
function TNameTranslate.GetDefaultInterface: IADsNameTranslate;
7634
 
begin
7635
 
  if FIntf = nil then
7636
 
    Connect;
7637
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7638
 
  Result := FIntf;
7639
 
end;
7640
 
 
7641
 
constructor TNameTranslate.Create(AOwner: TComponent);
7642
 
begin
7643
 
  inherited Create(AOwner);
7644
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7645
 
  FProps := TNameTranslateProperties.Create(Self);
7646
 
{$ENDIF}
7647
 
end;
7648
 
 
7649
 
destructor TNameTranslate.Destroy;
7650
 
begin
7651
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7652
 
  FProps.Free;
7653
 
{$ENDIF}
7654
 
  inherited Destroy;
7655
 
end;
7656
 
 
7657
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7658
 
function TNameTranslate.GetServerProperties: TNameTranslateProperties;
7659
 
begin
7660
 
  Result := FProps;
7661
 
end;
7662
 
{$ENDIF}
7663
 
 
7664
 
procedure TNameTranslate.Set_ChaseReferral(Param1: Integer);
7665
 
begin
7666
 
  DefaultInterface.Set_ChaseReferral(Param1);
7667
 
end;
7668
 
 
7669
 
procedure TNameTranslate.Init(lnSetType: Integer; const bstrADsPath: WideString);
7670
 
begin
7671
 
  DefaultInterface.Init(lnSetType, bstrADsPath);
7672
 
end;
7673
 
 
7674
 
procedure TNameTranslate.InitEx(lnSetType: Integer; const bstrADsPath: WideString;
7675
 
                                const bstrUserID: WideString; const bstrDomain: WideString;
7676
 
                                const bstrPassword: WideString);
7677
 
begin
7678
 
  DefaultInterface.InitEx(lnSetType, bstrADsPath, bstrUserID, bstrDomain, bstrPassword);
7679
 
end;
7680
 
 
7681
 
procedure TNameTranslate.Set_(lnSetType: Integer; const bstrADsPath: WideString);
7682
 
begin
7683
 
  DefaultInterface.Set_(lnSetType, bstrADsPath);
7684
 
end;
7685
 
 
7686
 
function  TNameTranslate.Get(lnFormatType: Integer): WideString;
7687
 
begin
7688
 
  Result := DefaultInterface.Get(lnFormatType);
7689
 
end;
7690
 
 
7691
 
procedure TNameTranslate.SetEx(lnFormatType: Integer; pVar: OleVariant);
7692
 
begin
7693
 
  DefaultInterface.SetEx(lnFormatType, pVar);
7694
 
end;
7695
 
 
7696
 
function  TNameTranslate.GetEx(lnFormatType: Integer): OleVariant;
7697
 
begin
7698
 
  Result := DefaultInterface.GetEx(lnFormatType);
7699
 
end;
7700
 
 
7701
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7702
 
constructor TNameTranslateProperties.Create(AServer: TNameTranslate);
7703
 
begin
7704
 
  inherited Create;
7705
 
  FServer := AServer;
7706
 
end;
7707
 
 
7708
 
function TNameTranslateProperties.GetDefaultInterface: IADsNameTranslate;
7709
 
begin
7710
 
  Result := FServer.DefaultInterface;
7711
 
end;
7712
 
 
7713
 
procedure TNameTranslateProperties.Set_ChaseReferral(Param1: Integer);
7714
 
begin
7715
 
  DefaultInterface.Set_ChaseReferral(Param1);
7716
 
end;
7717
 
 
7718
 
{$ENDIF}
7719
 
 
7720
 
class function CoCaseIgnoreList.Create: IADsCaseIgnoreList;
7721
 
begin
7722
 
  Result := CreateComObject(CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
7723
 
end;
7724
 
 
7725
 
class function CoCaseIgnoreList.CreateRemote(const MachineName: string): IADsCaseIgnoreList;
7726
 
begin
7727
 
  Result := CreateRemoteComObject(MachineName, CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
7728
 
end;
7729
 
 
7730
 
procedure TCaseIgnoreList.InitServerData;
7731
 
const
7732
 
  CServerData: TServerData = (
7733
 
    ClassID:   '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
7734
 
    IntfIID:   '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
7735
 
    EventIID:  '';
7736
 
    LicenseKey: nil;
7737
 
    Version: 500);
7738
 
begin
7739
 
  ServerData := @CServerData;
7740
 
end;
7741
 
 
7742
 
procedure TCaseIgnoreList.Connect;
7743
 
var
7744
 
  punk: IUnknown;
7745
 
begin
7746
 
  if FIntf = nil then
7747
 
  begin
7748
 
    punk := GetServer;
7749
 
    Fintf:= punk as IADsCaseIgnoreList;
7750
 
  end;
7751
 
end;
7752
 
 
7753
 
procedure TCaseIgnoreList.ConnectTo(svrIntf: IADsCaseIgnoreList);
7754
 
begin
7755
 
  Disconnect;
7756
 
  FIntf := svrIntf;
7757
 
end;
7758
 
 
7759
 
procedure TCaseIgnoreList.DisConnect;
7760
 
begin
7761
 
  if Fintf <> nil then
7762
 
  begin
7763
 
    FIntf := nil;
7764
 
  end;
7765
 
end;
7766
 
 
7767
 
function TCaseIgnoreList.GetDefaultInterface: IADsCaseIgnoreList;
7768
 
begin
7769
 
  if FIntf = nil then
7770
 
    Connect;
7771
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7772
 
  Result := FIntf;
7773
 
end;
7774
 
 
7775
 
constructor TCaseIgnoreList.Create(AOwner: TComponent);
7776
 
begin
7777
 
  inherited Create(AOwner);
7778
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7779
 
  FProps := TCaseIgnoreListProperties.Create(Self);
7780
 
{$ENDIF}
7781
 
end;
7782
 
 
7783
 
destructor TCaseIgnoreList.Destroy;
7784
 
begin
7785
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7786
 
  FProps.Free;
7787
 
{$ENDIF}
7788
 
  inherited Destroy;
7789
 
end;
7790
 
 
7791
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7792
 
function TCaseIgnoreList.GetServerProperties: TCaseIgnoreListProperties;
7793
 
begin
7794
 
  Result := FProps;
7795
 
end;
7796
 
{$ENDIF}
7797
 
 
7798
 
function  TCaseIgnoreList.Get_CaseIgnoreList: OleVariant;
7799
 
begin
7800
 
  Result := DefaultInterface.Get_CaseIgnoreList;
7801
 
end;
7802
 
 
7803
 
procedure TCaseIgnoreList.Set_CaseIgnoreList(retval: OleVariant);
7804
 
begin
7805
 
  DefaultInterface.Set_CaseIgnoreList(retval);
7806
 
end;
7807
 
 
7808
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7809
 
constructor TCaseIgnoreListProperties.Create(AServer: TCaseIgnoreList);
7810
 
begin
7811
 
  inherited Create;
7812
 
  FServer := AServer;
7813
 
end;
7814
 
 
7815
 
function TCaseIgnoreListProperties.GetDefaultInterface: IADsCaseIgnoreList;
7816
 
begin
7817
 
  Result := FServer.DefaultInterface;
7818
 
end;
7819
 
 
7820
 
function  TCaseIgnoreListProperties.Get_CaseIgnoreList: OleVariant;
7821
 
begin
7822
 
  Result := DefaultInterface.Get_CaseIgnoreList;
7823
 
end;
7824
 
 
7825
 
procedure TCaseIgnoreListProperties.Set_CaseIgnoreList(retval: OleVariant);
7826
 
begin
7827
 
  DefaultInterface.Set_CaseIgnoreList(retval);
7828
 
end;
7829
 
 
7830
 
{$ENDIF}
7831
 
 
7832
 
class function CoFaxNumber.Create: IADsFaxNumber;
7833
 
begin
7834
 
  Result := CreateComObject(CLASS_FaxNumber) as IADsFaxNumber;
7835
 
end;
7836
 
 
7837
 
class function CoFaxNumber.CreateRemote(const MachineName: string): IADsFaxNumber;
7838
 
begin
7839
 
  Result := CreateRemoteComObject(MachineName, CLASS_FaxNumber) as IADsFaxNumber;
7840
 
end;
7841
 
 
7842
 
procedure TFaxNumber.InitServerData;
7843
 
const
7844
 
  CServerData: TServerData = (
7845
 
    ClassID:   '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
7846
 
    IntfIID:   '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
7847
 
    EventIID:  '';
7848
 
    LicenseKey: nil;
7849
 
    Version: 500);
7850
 
begin
7851
 
  ServerData := @CServerData;
7852
 
end;
7853
 
 
7854
 
procedure TFaxNumber.Connect;
7855
 
var
7856
 
  punk: IUnknown;
7857
 
begin
7858
 
  if FIntf = nil then
7859
 
  begin
7860
 
    punk := GetServer;
7861
 
    Fintf:= punk as IADsFaxNumber;
7862
 
  end;
7863
 
end;
7864
 
 
7865
 
procedure TFaxNumber.ConnectTo(svrIntf: IADsFaxNumber);
7866
 
begin
7867
 
  Disconnect;
7868
 
  FIntf := svrIntf;
7869
 
end;
7870
 
 
7871
 
procedure TFaxNumber.DisConnect;
7872
 
begin
7873
 
  if Fintf <> nil then
7874
 
  begin
7875
 
    FIntf := nil;
7876
 
  end;
7877
 
end;
7878
 
 
7879
 
function TFaxNumber.GetDefaultInterface: IADsFaxNumber;
7880
 
begin
7881
 
  if FIntf = nil then
7882
 
    Connect;
7883
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
7884
 
  Result := FIntf;
7885
 
end;
7886
 
 
7887
 
constructor TFaxNumber.Create(AOwner: TComponent);
7888
 
begin
7889
 
  inherited Create(AOwner);
7890
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7891
 
  FProps := TFaxNumberProperties.Create(Self);
7892
 
{$ENDIF}
7893
 
end;
7894
 
 
7895
 
destructor TFaxNumber.Destroy;
7896
 
begin
7897
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7898
 
  FProps.Free;
7899
 
{$ENDIF}
7900
 
  inherited Destroy;
7901
 
end;
7902
 
 
7903
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7904
 
function TFaxNumber.GetServerProperties: TFaxNumberProperties;
7905
 
begin
7906
 
  Result := FProps;
7907
 
end;
7908
 
{$ENDIF}
7909
 
 
7910
 
function  TFaxNumber.Get_TelephoneNumber: WideString;
7911
 
begin
7912
 
  Result := DefaultInterface.Get_TelephoneNumber;
7913
 
end;
7914
 
 
7915
 
procedure TFaxNumber.Set_TelephoneNumber(const retval: WideString);
7916
 
begin
7917
 
  DefaultInterface.Set_TelephoneNumber(retval);
7918
 
end;
7919
 
 
7920
 
function  TFaxNumber.Get_Parameters: OleVariant;
7921
 
begin
7922
 
  Result := DefaultInterface.Get_Parameters;
7923
 
end;
7924
 
 
7925
 
procedure TFaxNumber.Set_Parameters(retval: OleVariant);
7926
 
begin
7927
 
  DefaultInterface.Set_Parameters(retval);
7928
 
end;
7929
 
 
7930
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
7931
 
constructor TFaxNumberProperties.Create(AServer: TFaxNumber);
7932
 
begin
7933
 
  inherited Create;
7934
 
  FServer := AServer;
7935
 
end;
7936
 
 
7937
 
function TFaxNumberProperties.GetDefaultInterface: IADsFaxNumber;
7938
 
begin
7939
 
  Result := FServer.DefaultInterface;
7940
 
end;
7941
 
 
7942
 
function  TFaxNumberProperties.Get_TelephoneNumber: WideString;
7943
 
begin
7944
 
  Result := DefaultInterface.Get_TelephoneNumber;
7945
 
end;
7946
 
 
7947
 
procedure TFaxNumberProperties.Set_TelephoneNumber(const retval: WideString);
7948
 
begin
7949
 
  DefaultInterface.Set_TelephoneNumber(retval);
7950
 
end;
7951
 
 
7952
 
function  TFaxNumberProperties.Get_Parameters: OleVariant;
7953
 
begin
7954
 
  Result := DefaultInterface.Get_Parameters;
7955
 
end;
7956
 
 
7957
 
procedure TFaxNumberProperties.Set_Parameters(retval: OleVariant);
7958
 
begin
7959
 
  DefaultInterface.Set_Parameters(retval);
7960
 
end;
7961
 
 
7962
 
{$ENDIF}
7963
 
 
7964
 
class function CoNetAddress.Create: IADsNetAddress;
7965
 
begin
7966
 
  Result := CreateComObject(CLASS_NetAddress) as IADsNetAddress;
7967
 
end;
7968
 
 
7969
 
class function CoNetAddress.CreateRemote(const MachineName: string): IADsNetAddress;
7970
 
begin
7971
 
  Result := CreateRemoteComObject(MachineName, CLASS_NetAddress) as IADsNetAddress;
7972
 
end;
7973
 
 
7974
 
procedure TNetAddress.InitServerData;
7975
 
const
7976
 
  CServerData: TServerData = (
7977
 
    ClassID:   '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
7978
 
    IntfIID:   '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
7979
 
    EventIID:  '';
7980
 
    LicenseKey: nil;
7981
 
    Version: 500);
7982
 
begin
7983
 
  ServerData := @CServerData;
7984
 
end;
7985
 
 
7986
 
procedure TNetAddress.Connect;
7987
 
var
7988
 
  punk: IUnknown;
7989
 
begin
7990
 
  if FIntf = nil then
7991
 
  begin
7992
 
    punk := GetServer;
7993
 
    Fintf:= punk as IADsNetAddress;
7994
 
  end;
7995
 
end;
7996
 
 
7997
 
procedure TNetAddress.ConnectTo(svrIntf: IADsNetAddress);
7998
 
begin
7999
 
  Disconnect;
8000
 
  FIntf := svrIntf;
8001
 
end;
8002
 
 
8003
 
procedure TNetAddress.DisConnect;
8004
 
begin
8005
 
  if Fintf <> nil then
8006
 
  begin
8007
 
    FIntf := nil;
8008
 
  end;
8009
 
end;
8010
 
 
8011
 
function TNetAddress.GetDefaultInterface: IADsNetAddress;
8012
 
begin
8013
 
  if FIntf = nil then
8014
 
    Connect;
8015
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8016
 
  Result := FIntf;
8017
 
end;
8018
 
 
8019
 
constructor TNetAddress.Create(AOwner: TComponent);
8020
 
begin
8021
 
  inherited Create(AOwner);
8022
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8023
 
  FProps := TNetAddressProperties.Create(Self);
8024
 
{$ENDIF}
8025
 
end;
8026
 
 
8027
 
destructor TNetAddress.Destroy;
8028
 
begin
8029
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8030
 
  FProps.Free;
8031
 
{$ENDIF}
8032
 
  inherited Destroy;
8033
 
end;
8034
 
 
8035
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8036
 
function TNetAddress.GetServerProperties: TNetAddressProperties;
8037
 
begin
8038
 
  Result := FProps;
8039
 
end;
8040
 
{$ENDIF}
8041
 
 
8042
 
function  TNetAddress.Get_AddressType: Integer;
8043
 
begin
8044
 
  Result := DefaultInterface.Get_AddressType;
8045
 
end;
8046
 
 
8047
 
procedure TNetAddress.Set_AddressType(retval: Integer);
8048
 
begin
8049
 
  DefaultInterface.Set_AddressType(retval);
8050
 
end;
8051
 
 
8052
 
function  TNetAddress.Get_Address: OleVariant;
8053
 
begin
8054
 
  Result := DefaultInterface.Get_Address;
8055
 
end;
8056
 
 
8057
 
procedure TNetAddress.Set_Address(retval: OleVariant);
8058
 
begin
8059
 
  DefaultInterface.Set_Address(retval);
8060
 
end;
8061
 
 
8062
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8063
 
constructor TNetAddressProperties.Create(AServer: TNetAddress);
8064
 
begin
8065
 
  inherited Create;
8066
 
  FServer := AServer;
8067
 
end;
8068
 
 
8069
 
function TNetAddressProperties.GetDefaultInterface: IADsNetAddress;
8070
 
begin
8071
 
  Result := FServer.DefaultInterface;
8072
 
end;
8073
 
 
8074
 
function  TNetAddressProperties.Get_AddressType: Integer;
8075
 
begin
8076
 
  Result := DefaultInterface.Get_AddressType;
8077
 
end;
8078
 
 
8079
 
procedure TNetAddressProperties.Set_AddressType(retval: Integer);
8080
 
begin
8081
 
  DefaultInterface.Set_AddressType(retval);
8082
 
end;
8083
 
 
8084
 
function  TNetAddressProperties.Get_Address: OleVariant;
8085
 
begin
8086
 
  Result := DefaultInterface.Get_Address;
8087
 
end;
8088
 
 
8089
 
procedure TNetAddressProperties.Set_Address(retval: OleVariant);
8090
 
begin
8091
 
  DefaultInterface.Set_Address(retval);
8092
 
end;
8093
 
 
8094
 
{$ENDIF}
8095
 
 
8096
 
class function CoOctetList.Create: IADsOctetList;
8097
 
begin
8098
 
  Result := CreateComObject(CLASS_OctetList) as IADsOctetList;
8099
 
end;
8100
 
 
8101
 
class function CoOctetList.CreateRemote(const MachineName: string): IADsOctetList;
8102
 
begin
8103
 
  Result := CreateRemoteComObject(MachineName, CLASS_OctetList) as IADsOctetList;
8104
 
end;
8105
 
 
8106
 
procedure TOctetList.InitServerData;
8107
 
const
8108
 
  CServerData: TServerData = (
8109
 
    ClassID:   '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
8110
 
    IntfIID:   '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
8111
 
    EventIID:  '';
8112
 
    LicenseKey: nil;
8113
 
    Version: 500);
8114
 
begin
8115
 
  ServerData := @CServerData;
8116
 
end;
8117
 
 
8118
 
procedure TOctetList.Connect;
8119
 
var
8120
 
  punk: IUnknown;
8121
 
begin
8122
 
  if FIntf = nil then
8123
 
  begin
8124
 
    punk := GetServer;
8125
 
    Fintf:= punk as IADsOctetList;
8126
 
  end;
8127
 
end;
8128
 
 
8129
 
procedure TOctetList.ConnectTo(svrIntf: IADsOctetList);
8130
 
begin
8131
 
  Disconnect;
8132
 
  FIntf := svrIntf;
8133
 
end;
8134
 
 
8135
 
procedure TOctetList.DisConnect;
8136
 
begin
8137
 
  if Fintf <> nil then
8138
 
  begin
8139
 
    FIntf := nil;
8140
 
  end;
8141
 
end;
8142
 
 
8143
 
function TOctetList.GetDefaultInterface: IADsOctetList;
8144
 
begin
8145
 
  if FIntf = nil then
8146
 
    Connect;
8147
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8148
 
  Result := FIntf;
8149
 
end;
8150
 
 
8151
 
constructor TOctetList.Create(AOwner: TComponent);
8152
 
begin
8153
 
  inherited Create(AOwner);
8154
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8155
 
  FProps := TOctetListProperties.Create(Self);
8156
 
{$ENDIF}
8157
 
end;
8158
 
 
8159
 
destructor TOctetList.Destroy;
8160
 
begin
8161
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8162
 
  FProps.Free;
8163
 
{$ENDIF}
8164
 
  inherited Destroy;
8165
 
end;
8166
 
 
8167
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8168
 
function TOctetList.GetServerProperties: TOctetListProperties;
8169
 
begin
8170
 
  Result := FProps;
8171
 
end;
8172
 
{$ENDIF}
8173
 
 
8174
 
function  TOctetList.Get_OctetList: OleVariant;
8175
 
begin
8176
 
  Result := DefaultInterface.Get_OctetList;
8177
 
end;
8178
 
 
8179
 
procedure TOctetList.Set_OctetList(retval: OleVariant);
8180
 
begin
8181
 
  DefaultInterface.Set_OctetList(retval);
8182
 
end;
8183
 
 
8184
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8185
 
constructor TOctetListProperties.Create(AServer: TOctetList);
8186
 
begin
8187
 
  inherited Create;
8188
 
  FServer := AServer;
8189
 
end;
8190
 
 
8191
 
function TOctetListProperties.GetDefaultInterface: IADsOctetList;
8192
 
begin
8193
 
  Result := FServer.DefaultInterface;
8194
 
end;
8195
 
 
8196
 
function  TOctetListProperties.Get_OctetList: OleVariant;
8197
 
begin
8198
 
  Result := DefaultInterface.Get_OctetList;
8199
 
end;
8200
 
 
8201
 
procedure TOctetListProperties.Set_OctetList(retval: OleVariant);
8202
 
begin
8203
 
  DefaultInterface.Set_OctetList(retval);
8204
 
end;
8205
 
 
8206
 
{$ENDIF}
8207
 
 
8208
 
class function CoEmail.Create: IADsEmail;
8209
 
begin
8210
 
  Result := CreateComObject(CLASS_Email) as IADsEmail;
8211
 
end;
8212
 
 
8213
 
class function CoEmail.CreateRemote(const MachineName: string): IADsEmail;
8214
 
begin
8215
 
  Result := CreateRemoteComObject(MachineName, CLASS_Email) as IADsEmail;
8216
 
end;
8217
 
 
8218
 
procedure TEmail.InitServerData;
8219
 
const
8220
 
  CServerData: TServerData = (
8221
 
    ClassID:   '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
8222
 
    IntfIID:   '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
8223
 
    EventIID:  '';
8224
 
    LicenseKey: nil;
8225
 
    Version: 500);
8226
 
begin
8227
 
  ServerData := @CServerData;
8228
 
end;
8229
 
 
8230
 
procedure TEmail.Connect;
8231
 
var
8232
 
  punk: IUnknown;
8233
 
begin
8234
 
  if FIntf = nil then
8235
 
  begin
8236
 
    punk := GetServer;
8237
 
    Fintf:= punk as IADsEmail;
8238
 
  end;
8239
 
end;
8240
 
 
8241
 
procedure TEmail.ConnectTo(svrIntf: IADsEmail);
8242
 
begin
8243
 
  Disconnect;
8244
 
  FIntf := svrIntf;
8245
 
end;
8246
 
 
8247
 
procedure TEmail.DisConnect;
8248
 
begin
8249
 
  if Fintf <> nil then
8250
 
  begin
8251
 
    FIntf := nil;
8252
 
  end;
8253
 
end;
8254
 
 
8255
 
function TEmail.GetDefaultInterface: IADsEmail;
8256
 
begin
8257
 
  if FIntf = nil then
8258
 
    Connect;
8259
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8260
 
  Result := FIntf;
8261
 
end;
8262
 
 
8263
 
constructor TEmail.Create(AOwner: TComponent);
8264
 
begin
8265
 
  inherited Create(AOwner);
8266
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8267
 
  FProps := TEmailProperties.Create(Self);
8268
 
{$ENDIF}
8269
 
end;
8270
 
 
8271
 
destructor TEmail.Destroy;
8272
 
begin
8273
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8274
 
  FProps.Free;
8275
 
{$ENDIF}
8276
 
  inherited Destroy;
8277
 
end;
8278
 
 
8279
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8280
 
function TEmail.GetServerProperties: TEmailProperties;
8281
 
begin
8282
 
  Result := FProps;
8283
 
end;
8284
 
{$ENDIF}
8285
 
 
8286
 
function  TEmail.Get_Type_: Integer;
8287
 
begin
8288
 
  Result := DefaultInterface.Get_Type_;
8289
 
end;
8290
 
 
8291
 
procedure TEmail.Set_Type_(retval: Integer);
8292
 
begin
8293
 
  DefaultInterface.Set_Type_(retval);
8294
 
end;
8295
 
 
8296
 
function  TEmail.Get_Address: WideString;
8297
 
begin
8298
 
  Result := DefaultInterface.Get_Address;
8299
 
end;
8300
 
 
8301
 
procedure TEmail.Set_Address(const retval: WideString);
8302
 
begin
8303
 
  DefaultInterface.Set_Address(retval);
8304
 
end;
8305
 
 
8306
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8307
 
constructor TEmailProperties.Create(AServer: TEmail);
8308
 
begin
8309
 
  inherited Create;
8310
 
  FServer := AServer;
8311
 
end;
8312
 
 
8313
 
function TEmailProperties.GetDefaultInterface: IADsEmail;
8314
 
begin
8315
 
  Result := FServer.DefaultInterface;
8316
 
end;
8317
 
 
8318
 
function  TEmailProperties.Get_Type_: Integer;
8319
 
begin
8320
 
  Result := DefaultInterface.Get_Type_;
8321
 
end;
8322
 
 
8323
 
procedure TEmailProperties.Set_Type_(retval: Integer);
8324
 
begin
8325
 
  DefaultInterface.Set_Type_(retval);
8326
 
end;
8327
 
 
8328
 
function  TEmailProperties.Get_Address: WideString;
8329
 
begin
8330
 
  Result := DefaultInterface.Get_Address;
8331
 
end;
8332
 
 
8333
 
procedure TEmailProperties.Set_Address(const retval: WideString);
8334
 
begin
8335
 
  DefaultInterface.Set_Address(retval);
8336
 
end;
8337
 
 
8338
 
{$ENDIF}
8339
 
 
8340
 
class function CoPath.Create: IADsPath;
8341
 
begin
8342
 
  Result := CreateComObject(CLASS_Path) as IADsPath;
8343
 
end;
8344
 
 
8345
 
class function CoPath.CreateRemote(const MachineName: string): IADsPath;
8346
 
begin
8347
 
  Result := CreateRemoteComObject(MachineName, CLASS_Path) as IADsPath;
8348
 
end;
8349
 
 
8350
 
procedure TPath.InitServerData;
8351
 
const
8352
 
  CServerData: TServerData = (
8353
 
    ClassID:   '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
8354
 
    IntfIID:   '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
8355
 
    EventIID:  '';
8356
 
    LicenseKey: nil;
8357
 
    Version: 500);
8358
 
begin
8359
 
  ServerData := @CServerData;
8360
 
end;
8361
 
 
8362
 
procedure TPath.Connect;
8363
 
var
8364
 
  punk: IUnknown;
8365
 
begin
8366
 
  if FIntf = nil then
8367
 
  begin
8368
 
    punk := GetServer;
8369
 
    Fintf:= punk as IADsPath;
8370
 
  end;
8371
 
end;
8372
 
 
8373
 
procedure TPath.ConnectTo(svrIntf: IADsPath);
8374
 
begin
8375
 
  Disconnect;
8376
 
  FIntf := svrIntf;
8377
 
end;
8378
 
 
8379
 
procedure TPath.DisConnect;
8380
 
begin
8381
 
  if Fintf <> nil then
8382
 
  begin
8383
 
    FIntf := nil;
8384
 
  end;
8385
 
end;
8386
 
 
8387
 
function TPath.GetDefaultInterface: IADsPath;
8388
 
begin
8389
 
  if FIntf = nil then
8390
 
    Connect;
8391
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8392
 
  Result := FIntf;
8393
 
end;
8394
 
 
8395
 
constructor TPath.Create(AOwner: TComponent);
8396
 
begin
8397
 
  inherited Create(AOwner);
8398
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8399
 
  FProps := TPathProperties.Create(Self);
8400
 
{$ENDIF}
8401
 
end;
8402
 
 
8403
 
destructor TPath.Destroy;
8404
 
begin
8405
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8406
 
  FProps.Free;
8407
 
{$ENDIF}
8408
 
  inherited Destroy;
8409
 
end;
8410
 
 
8411
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8412
 
function TPath.GetServerProperties: TPathProperties;
8413
 
begin
8414
 
  Result := FProps;
8415
 
end;
8416
 
{$ENDIF}
8417
 
 
8418
 
function  TPath.Get_Type_: Integer;
8419
 
begin
8420
 
  Result := DefaultInterface.Get_Type_;
8421
 
end;
8422
 
 
8423
 
procedure TPath.Set_Type_(retval: Integer);
8424
 
begin
8425
 
  DefaultInterface.Set_Type_(retval);
8426
 
end;
8427
 
 
8428
 
function  TPath.Get_VolumeName: WideString;
8429
 
begin
8430
 
  Result := DefaultInterface.Get_VolumeName;
8431
 
end;
8432
 
 
8433
 
procedure TPath.Set_VolumeName(const retval: WideString);
8434
 
begin
8435
 
  DefaultInterface.Set_VolumeName(retval);
8436
 
end;
8437
 
 
8438
 
function  TPath.Get_Path: WideString;
8439
 
begin
8440
 
  Result := DefaultInterface.Get_Path;
8441
 
end;
8442
 
 
8443
 
procedure TPath.Set_Path(const retval: WideString);
8444
 
begin
8445
 
  DefaultInterface.Set_Path(retval);
8446
 
end;
8447
 
 
8448
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8449
 
constructor TPathProperties.Create(AServer: TPath);
8450
 
begin
8451
 
  inherited Create;
8452
 
  FServer := AServer;
8453
 
end;
8454
 
 
8455
 
function TPathProperties.GetDefaultInterface: IADsPath;
8456
 
begin
8457
 
  Result := FServer.DefaultInterface;
8458
 
end;
8459
 
 
8460
 
function  TPathProperties.Get_Type_: Integer;
8461
 
begin
8462
 
  Result := DefaultInterface.Get_Type_;
8463
 
end;
8464
 
 
8465
 
procedure TPathProperties.Set_Type_(retval: Integer);
8466
 
begin
8467
 
  DefaultInterface.Set_Type_(retval);
8468
 
end;
8469
 
 
8470
 
function  TPathProperties.Get_VolumeName: WideString;
8471
 
begin
8472
 
  Result := DefaultInterface.Get_VolumeName;
8473
 
end;
8474
 
 
8475
 
procedure TPathProperties.Set_VolumeName(const retval: WideString);
8476
 
begin
8477
 
  DefaultInterface.Set_VolumeName(retval);
8478
 
end;
8479
 
 
8480
 
function  TPathProperties.Get_Path: WideString;
8481
 
begin
8482
 
  Result := DefaultInterface.Get_Path;
8483
 
end;
8484
 
 
8485
 
procedure TPathProperties.Set_Path(const retval: WideString);
8486
 
begin
8487
 
  DefaultInterface.Set_Path(retval);
8488
 
end;
8489
 
 
8490
 
{$ENDIF}
8491
 
 
8492
 
class function CoReplicaPointer.Create: IADsReplicaPointer;
8493
 
begin
8494
 
  Result := CreateComObject(CLASS_ReplicaPointer) as IADsReplicaPointer;
8495
 
end;
8496
 
 
8497
 
class function CoReplicaPointer.CreateRemote(const MachineName: string): IADsReplicaPointer;
8498
 
begin
8499
 
  Result := CreateRemoteComObject(MachineName, CLASS_ReplicaPointer) as IADsReplicaPointer;
8500
 
end;
8501
 
 
8502
 
procedure TReplicaPointer.InitServerData;
8503
 
const
8504
 
  CServerData: TServerData = (
8505
 
    ClassID:   '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
8506
 
    IntfIID:   '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
8507
 
    EventIID:  '';
8508
 
    LicenseKey: nil;
8509
 
    Version: 500);
8510
 
begin
8511
 
  ServerData := @CServerData;
8512
 
end;
8513
 
 
8514
 
procedure TReplicaPointer.Connect;
8515
 
var
8516
 
  punk: IUnknown;
8517
 
begin
8518
 
  if FIntf = nil then
8519
 
  begin
8520
 
    punk := GetServer;
8521
 
    Fintf:= punk as IADsReplicaPointer;
8522
 
  end;
8523
 
end;
8524
 
 
8525
 
procedure TReplicaPointer.ConnectTo(svrIntf: IADsReplicaPointer);
8526
 
begin
8527
 
  Disconnect;
8528
 
  FIntf := svrIntf;
8529
 
end;
8530
 
 
8531
 
procedure TReplicaPointer.DisConnect;
8532
 
begin
8533
 
  if Fintf <> nil then
8534
 
  begin
8535
 
    FIntf := nil;
8536
 
  end;
8537
 
end;
8538
 
 
8539
 
function TReplicaPointer.GetDefaultInterface: IADsReplicaPointer;
8540
 
begin
8541
 
  if FIntf = nil then
8542
 
    Connect;
8543
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8544
 
  Result := FIntf;
8545
 
end;
8546
 
 
8547
 
constructor TReplicaPointer.Create(AOwner: TComponent);
8548
 
begin
8549
 
  inherited Create(AOwner);
8550
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8551
 
  FProps := TReplicaPointerProperties.Create(Self);
8552
 
{$ENDIF}
8553
 
end;
8554
 
 
8555
 
destructor TReplicaPointer.Destroy;
8556
 
begin
8557
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8558
 
  FProps.Free;
8559
 
{$ENDIF}
8560
 
  inherited Destroy;
8561
 
end;
8562
 
 
8563
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8564
 
function TReplicaPointer.GetServerProperties: TReplicaPointerProperties;
8565
 
begin
8566
 
  Result := FProps;
8567
 
end;
8568
 
{$ENDIF}
8569
 
 
8570
 
function  TReplicaPointer.Get_ServerName: WideString;
8571
 
begin
8572
 
  Result := DefaultInterface.Get_ServerName;
8573
 
end;
8574
 
 
8575
 
procedure TReplicaPointer.Set_ServerName(const retval: WideString);
8576
 
begin
8577
 
  DefaultInterface.Set_ServerName(retval);
8578
 
end;
8579
 
 
8580
 
function  TReplicaPointer.Get_ReplicaType: Integer;
8581
 
begin
8582
 
  Result := DefaultInterface.Get_ReplicaType;
8583
 
end;
8584
 
 
8585
 
procedure TReplicaPointer.Set_ReplicaType(retval: Integer);
8586
 
begin
8587
 
  DefaultInterface.Set_ReplicaType(retval);
8588
 
end;
8589
 
 
8590
 
function  TReplicaPointer.Get_ReplicaNumber: Integer;
8591
 
begin
8592
 
  Result := DefaultInterface.Get_ReplicaNumber;
8593
 
end;
8594
 
 
8595
 
procedure TReplicaPointer.Set_ReplicaNumber(retval: Integer);
8596
 
begin
8597
 
  DefaultInterface.Set_ReplicaNumber(retval);
8598
 
end;
8599
 
 
8600
 
function  TReplicaPointer.Get_Count: Integer;
8601
 
begin
8602
 
  Result := DefaultInterface.Get_Count;
8603
 
end;
8604
 
 
8605
 
procedure TReplicaPointer.Set_Count(retval: Integer);
8606
 
begin
8607
 
  DefaultInterface.Set_Count(retval);
8608
 
end;
8609
 
 
8610
 
function  TReplicaPointer.Get_ReplicaAddressHints: OleVariant;
8611
 
begin
8612
 
  Result := DefaultInterface.Get_ReplicaAddressHints;
8613
 
end;
8614
 
 
8615
 
procedure TReplicaPointer.Set_ReplicaAddressHints(retval: OleVariant);
8616
 
begin
8617
 
  DefaultInterface.Set_ReplicaAddressHints(retval);
8618
 
end;
8619
 
 
8620
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8621
 
constructor TReplicaPointerProperties.Create(AServer: TReplicaPointer);
8622
 
begin
8623
 
  inherited Create;
8624
 
  FServer := AServer;
8625
 
end;
8626
 
 
8627
 
function TReplicaPointerProperties.GetDefaultInterface: IADsReplicaPointer;
8628
 
begin
8629
 
  Result := FServer.DefaultInterface;
8630
 
end;
8631
 
 
8632
 
function  TReplicaPointerProperties.Get_ServerName: WideString;
8633
 
begin
8634
 
  Result := DefaultInterface.Get_ServerName;
8635
 
end;
8636
 
 
8637
 
procedure TReplicaPointerProperties.Set_ServerName(const retval: WideString);
8638
 
begin
8639
 
  DefaultInterface.Set_ServerName(retval);
8640
 
end;
8641
 
 
8642
 
function  TReplicaPointerProperties.Get_ReplicaType: Integer;
8643
 
begin
8644
 
  Result := DefaultInterface.Get_ReplicaType;
8645
 
end;
8646
 
 
8647
 
procedure TReplicaPointerProperties.Set_ReplicaType(retval: Integer);
8648
 
begin
8649
 
  DefaultInterface.Set_ReplicaType(retval);
8650
 
end;
8651
 
 
8652
 
function  TReplicaPointerProperties.Get_ReplicaNumber: Integer;
8653
 
begin
8654
 
  Result := DefaultInterface.Get_ReplicaNumber;
8655
 
end;
8656
 
 
8657
 
procedure TReplicaPointerProperties.Set_ReplicaNumber(retval: Integer);
8658
 
begin
8659
 
  DefaultInterface.Set_ReplicaNumber(retval);
8660
 
end;
8661
 
 
8662
 
function  TReplicaPointerProperties.Get_Count: Integer;
8663
 
begin
8664
 
  Result := DefaultInterface.Get_Count;
8665
 
end;
8666
 
 
8667
 
procedure TReplicaPointerProperties.Set_Count(retval: Integer);
8668
 
begin
8669
 
  DefaultInterface.Set_Count(retval);
8670
 
end;
8671
 
 
8672
 
function  TReplicaPointerProperties.Get_ReplicaAddressHints: OleVariant;
8673
 
begin
8674
 
  Result := DefaultInterface.Get_ReplicaAddressHints;
8675
 
end;
8676
 
 
8677
 
procedure TReplicaPointerProperties.Set_ReplicaAddressHints(retval: OleVariant);
8678
 
begin
8679
 
  DefaultInterface.Set_ReplicaAddressHints(retval);
8680
 
end;
8681
 
 
8682
 
{$ENDIF}
8683
 
 
8684
 
class function CoAcl.Create: IADsAcl;
8685
 
begin
8686
 
  Result := CreateComObject(CLASS_Acl) as IADsAcl;
8687
 
end;
8688
 
 
8689
 
class function CoAcl.CreateRemote(const MachineName: string): IADsAcl;
8690
 
begin
8691
 
  Result := CreateRemoteComObject(MachineName, CLASS_Acl) as IADsAcl;
8692
 
end;
8693
 
 
8694
 
procedure TAcl.InitServerData;
8695
 
const
8696
 
  CServerData: TServerData = (
8697
 
    ClassID:   '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
8698
 
    IntfIID:   '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
8699
 
    EventIID:  '';
8700
 
    LicenseKey: nil;
8701
 
    Version: 500);
8702
 
begin
8703
 
  ServerData := @CServerData;
8704
 
end;
8705
 
 
8706
 
procedure TAcl.Connect;
8707
 
var
8708
 
  punk: IUnknown;
8709
 
begin
8710
 
  if FIntf = nil then
8711
 
  begin
8712
 
    punk := GetServer;
8713
 
    Fintf:= punk as IADsAcl;
8714
 
  end;
8715
 
end;
8716
 
 
8717
 
procedure TAcl.ConnectTo(svrIntf: IADsAcl);
8718
 
begin
8719
 
  Disconnect;
8720
 
  FIntf := svrIntf;
8721
 
end;
8722
 
 
8723
 
procedure TAcl.DisConnect;
8724
 
begin
8725
 
  if Fintf <> nil then
8726
 
  begin
8727
 
    FIntf := nil;
8728
 
  end;
8729
 
end;
8730
 
 
8731
 
function TAcl.GetDefaultInterface: IADsAcl;
8732
 
begin
8733
 
  if FIntf = nil then
8734
 
    Connect;
8735
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8736
 
  Result := FIntf;
8737
 
end;
8738
 
 
8739
 
constructor TAcl.Create(AOwner: TComponent);
8740
 
begin
8741
 
  inherited Create(AOwner);
8742
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8743
 
  FProps := TAclProperties.Create(Self);
8744
 
{$ENDIF}
8745
 
end;
8746
 
 
8747
 
destructor TAcl.Destroy;
8748
 
begin
8749
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8750
 
  FProps.Free;
8751
 
{$ENDIF}
8752
 
  inherited Destroy;
8753
 
end;
8754
 
 
8755
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8756
 
function TAcl.GetServerProperties: TAclProperties;
8757
 
begin
8758
 
  Result := FProps;
8759
 
end;
8760
 
{$ENDIF}
8761
 
 
8762
 
function  TAcl.Get_ProtectedAttrName: WideString;
8763
 
begin
8764
 
  Result := DefaultInterface.Get_ProtectedAttrName;
8765
 
end;
8766
 
 
8767
 
procedure TAcl.Set_ProtectedAttrName(const retval: WideString);
8768
 
begin
8769
 
  DefaultInterface.Set_ProtectedAttrName(retval);
8770
 
end;
8771
 
 
8772
 
function  TAcl.Get_SubjectName: WideString;
8773
 
begin
8774
 
  Result := DefaultInterface.Get_SubjectName;
8775
 
end;
8776
 
 
8777
 
procedure TAcl.Set_SubjectName(const retval: WideString);
8778
 
begin
8779
 
  DefaultInterface.Set_SubjectName(retval);
8780
 
end;
8781
 
 
8782
 
function  TAcl.Get_Privileges: Integer;
8783
 
begin
8784
 
  Result := DefaultInterface.Get_Privileges;
8785
 
end;
8786
 
 
8787
 
procedure TAcl.Set_Privileges(retval: Integer);
8788
 
begin
8789
 
  DefaultInterface.Set_Privileges(retval);
8790
 
end;
8791
 
 
8792
 
function  TAcl.CopyAcl: IDispatch;
8793
 
begin
8794
 
  Result := DefaultInterface.CopyAcl;
8795
 
end;
8796
 
 
8797
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8798
 
constructor TAclProperties.Create(AServer: TAcl);
8799
 
begin
8800
 
  inherited Create;
8801
 
  FServer := AServer;
8802
 
end;
8803
 
 
8804
 
function TAclProperties.GetDefaultInterface: IADsAcl;
8805
 
begin
8806
 
  Result := FServer.DefaultInterface;
8807
 
end;
8808
 
 
8809
 
function  TAclProperties.Get_ProtectedAttrName: WideString;
8810
 
begin
8811
 
  Result := DefaultInterface.Get_ProtectedAttrName;
8812
 
end;
8813
 
 
8814
 
procedure TAclProperties.Set_ProtectedAttrName(const retval: WideString);
8815
 
begin
8816
 
  DefaultInterface.Set_ProtectedAttrName(retval);
8817
 
end;
8818
 
 
8819
 
function  TAclProperties.Get_SubjectName: WideString;
8820
 
begin
8821
 
  Result := DefaultInterface.Get_SubjectName;
8822
 
end;
8823
 
 
8824
 
procedure TAclProperties.Set_SubjectName(const retval: WideString);
8825
 
begin
8826
 
  DefaultInterface.Set_SubjectName(retval);
8827
 
end;
8828
 
 
8829
 
function  TAclProperties.Get_Privileges: Integer;
8830
 
begin
8831
 
  Result := DefaultInterface.Get_Privileges;
8832
 
end;
8833
 
 
8834
 
procedure TAclProperties.Set_Privileges(retval: Integer);
8835
 
begin
8836
 
  DefaultInterface.Set_Privileges(retval);
8837
 
end;
8838
 
 
8839
 
{$ENDIF}
8840
 
 
8841
 
class function CoTimestamp.Create: IADsTimestamp;
8842
 
begin
8843
 
  Result := CreateComObject(CLASS_Timestamp) as IADsTimestamp;
8844
 
end;
8845
 
 
8846
 
class function CoTimestamp.CreateRemote(const MachineName: string): IADsTimestamp;
8847
 
begin
8848
 
  Result := CreateRemoteComObject(MachineName, CLASS_Timestamp) as IADsTimestamp;
8849
 
end;
8850
 
 
8851
 
procedure TTimestamp.InitServerData;
8852
 
const
8853
 
  CServerData: TServerData = (
8854
 
    ClassID:   '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
8855
 
    IntfIID:   '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
8856
 
    EventIID:  '';
8857
 
    LicenseKey: nil;
8858
 
    Version: 500);
8859
 
begin
8860
 
  ServerData := @CServerData;
8861
 
end;
8862
 
 
8863
 
procedure TTimestamp.Connect;
8864
 
var
8865
 
  punk: IUnknown;
8866
 
begin
8867
 
  if FIntf = nil then
8868
 
  begin
8869
 
    punk := GetServer;
8870
 
    Fintf:= punk as IADsTimestamp;
8871
 
  end;
8872
 
end;
8873
 
 
8874
 
procedure TTimestamp.ConnectTo(svrIntf: IADsTimestamp);
8875
 
begin
8876
 
  Disconnect;
8877
 
  FIntf := svrIntf;
8878
 
end;
8879
 
 
8880
 
procedure TTimestamp.DisConnect;
8881
 
begin
8882
 
  if Fintf <> nil then
8883
 
  begin
8884
 
    FIntf := nil;
8885
 
  end;
8886
 
end;
8887
 
 
8888
 
function TTimestamp.GetDefaultInterface: IADsTimestamp;
8889
 
begin
8890
 
  if FIntf = nil then
8891
 
    Connect;
8892
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
8893
 
  Result := FIntf;
8894
 
end;
8895
 
 
8896
 
constructor TTimestamp.Create(AOwner: TComponent);
8897
 
begin
8898
 
  inherited Create(AOwner);
8899
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8900
 
  FProps := TTimestampProperties.Create(Self);
8901
 
{$ENDIF}
8902
 
end;
8903
 
 
8904
 
destructor TTimestamp.Destroy;
8905
 
begin
8906
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8907
 
  FProps.Free;
8908
 
{$ENDIF}
8909
 
  inherited Destroy;
8910
 
end;
8911
 
 
8912
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8913
 
function TTimestamp.GetServerProperties: TTimestampProperties;
8914
 
begin
8915
 
  Result := FProps;
8916
 
end;
8917
 
{$ENDIF}
8918
 
 
8919
 
function  TTimestamp.Get_WholeSeconds: Integer;
8920
 
begin
8921
 
  Result := DefaultInterface.Get_WholeSeconds;
8922
 
end;
8923
 
 
8924
 
procedure TTimestamp.Set_WholeSeconds(retval: Integer);
8925
 
begin
8926
 
  DefaultInterface.Set_WholeSeconds(retval);
8927
 
end;
8928
 
 
8929
 
function  TTimestamp.Get_EventID: Integer;
8930
 
begin
8931
 
  Result := DefaultInterface.Get_EventID;
8932
 
end;
8933
 
 
8934
 
procedure TTimestamp.Set_EventID(retval: Integer);
8935
 
begin
8936
 
  DefaultInterface.Set_EventID(retval);
8937
 
end;
8938
 
 
8939
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
8940
 
constructor TTimestampProperties.Create(AServer: TTimestamp);
8941
 
begin
8942
 
  inherited Create;
8943
 
  FServer := AServer;
8944
 
end;
8945
 
 
8946
 
function TTimestampProperties.GetDefaultInterface: IADsTimestamp;
8947
 
begin
8948
 
  Result := FServer.DefaultInterface;
8949
 
end;
8950
 
 
8951
 
function  TTimestampProperties.Get_WholeSeconds: Integer;
8952
 
begin
8953
 
  Result := DefaultInterface.Get_WholeSeconds;
8954
 
end;
8955
 
 
8956
 
procedure TTimestampProperties.Set_WholeSeconds(retval: Integer);
8957
 
begin
8958
 
  DefaultInterface.Set_WholeSeconds(retval);
8959
 
end;
8960
 
 
8961
 
function  TTimestampProperties.Get_EventID: Integer;
8962
 
begin
8963
 
  Result := DefaultInterface.Get_EventID;
8964
 
end;
8965
 
 
8966
 
procedure TTimestampProperties.Set_EventID(retval: Integer);
8967
 
begin
8968
 
  DefaultInterface.Set_EventID(retval);
8969
 
end;
8970
 
 
8971
 
{$ENDIF}
8972
 
 
8973
 
class function CoPostalAddress.Create: IADsPostalAddress;
8974
 
begin
8975
 
  Result := CreateComObject(CLASS_PostalAddress) as IADsPostalAddress;
8976
 
end;
8977
 
 
8978
 
class function CoPostalAddress.CreateRemote(const MachineName: string): IADsPostalAddress;
8979
 
begin
8980
 
  Result := CreateRemoteComObject(MachineName, CLASS_PostalAddress) as IADsPostalAddress;
8981
 
end;
8982
 
 
8983
 
procedure TPostalAddress.InitServerData;
8984
 
const
8985
 
  CServerData: TServerData = (
8986
 
    ClassID:   '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
8987
 
    IntfIID:   '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
8988
 
    EventIID:  '';
8989
 
    LicenseKey: nil;
8990
 
    Version: 500);
8991
 
begin
8992
 
  ServerData := @CServerData;
8993
 
end;
8994
 
 
8995
 
procedure TPostalAddress.Connect;
8996
 
var
8997
 
  punk: IUnknown;
8998
 
begin
8999
 
  if FIntf = nil then
9000
 
  begin
9001
 
    punk := GetServer;
9002
 
    Fintf:= punk as IADsPostalAddress;
9003
 
  end;
9004
 
end;
9005
 
 
9006
 
procedure TPostalAddress.ConnectTo(svrIntf: IADsPostalAddress);
9007
 
begin
9008
 
  Disconnect;
9009
 
  FIntf := svrIntf;
9010
 
end;
9011
 
 
9012
 
procedure TPostalAddress.DisConnect;
9013
 
begin
9014
 
  if Fintf <> nil then
9015
 
  begin
9016
 
    FIntf := nil;
9017
 
  end;
9018
 
end;
9019
 
 
9020
 
function TPostalAddress.GetDefaultInterface: IADsPostalAddress;
9021
 
begin
9022
 
  if FIntf = nil then
9023
 
    Connect;
9024
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9025
 
  Result := FIntf;
9026
 
end;
9027
 
 
9028
 
constructor TPostalAddress.Create(AOwner: TComponent);
9029
 
begin
9030
 
  inherited Create(AOwner);
9031
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9032
 
  FProps := TPostalAddressProperties.Create(Self);
9033
 
{$ENDIF}
9034
 
end;
9035
 
 
9036
 
destructor TPostalAddress.Destroy;
9037
 
begin
9038
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9039
 
  FProps.Free;
9040
 
{$ENDIF}
9041
 
  inherited Destroy;
9042
 
end;
9043
 
 
9044
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9045
 
function TPostalAddress.GetServerProperties: TPostalAddressProperties;
9046
 
begin
9047
 
  Result := FProps;
9048
 
end;
9049
 
{$ENDIF}
9050
 
 
9051
 
function  TPostalAddress.Get_PostalAddress: OleVariant;
9052
 
begin
9053
 
  Result := DefaultInterface.Get_PostalAddress;
9054
 
end;
9055
 
 
9056
 
procedure TPostalAddress.Set_PostalAddress(retval: OleVariant);
9057
 
begin
9058
 
  DefaultInterface.Set_PostalAddress(retval);
9059
 
end;
9060
 
 
9061
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9062
 
constructor TPostalAddressProperties.Create(AServer: TPostalAddress);
9063
 
begin
9064
 
  inherited Create;
9065
 
  FServer := AServer;
9066
 
end;
9067
 
 
9068
 
function TPostalAddressProperties.GetDefaultInterface: IADsPostalAddress;
9069
 
begin
9070
 
  Result := FServer.DefaultInterface;
9071
 
end;
9072
 
 
9073
 
function  TPostalAddressProperties.Get_PostalAddress: OleVariant;
9074
 
begin
9075
 
  Result := DefaultInterface.Get_PostalAddress;
9076
 
end;
9077
 
 
9078
 
procedure TPostalAddressProperties.Set_PostalAddress(retval: OleVariant);
9079
 
begin
9080
 
  DefaultInterface.Set_PostalAddress(retval);
9081
 
end;
9082
 
 
9083
 
{$ENDIF}
9084
 
 
9085
 
class function CoBackLink.Create: IADsBackLink;
9086
 
begin
9087
 
  Result := CreateComObject(CLASS_BackLink) as IADsBackLink;
9088
 
end;
9089
 
 
9090
 
class function CoBackLink.CreateRemote(const MachineName: string): IADsBackLink;
9091
 
begin
9092
 
  Result := CreateRemoteComObject(MachineName, CLASS_BackLink) as IADsBackLink;
9093
 
end;
9094
 
 
9095
 
procedure TBackLink.InitServerData;
9096
 
const
9097
 
  CServerData: TServerData = (
9098
 
    ClassID:   '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
9099
 
    IntfIID:   '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
9100
 
    EventIID:  '';
9101
 
    LicenseKey: nil;
9102
 
    Version: 500);
9103
 
begin
9104
 
  ServerData := @CServerData;
9105
 
end;
9106
 
 
9107
 
procedure TBackLink.Connect;
9108
 
var
9109
 
  punk: IUnknown;
9110
 
begin
9111
 
  if FIntf = nil then
9112
 
  begin
9113
 
    punk := GetServer;
9114
 
    Fintf:= punk as IADsBackLink;
9115
 
  end;
9116
 
end;
9117
 
 
9118
 
procedure TBackLink.ConnectTo(svrIntf: IADsBackLink);
9119
 
begin
9120
 
  Disconnect;
9121
 
  FIntf := svrIntf;
9122
 
end;
9123
 
 
9124
 
procedure TBackLink.DisConnect;
9125
 
begin
9126
 
  if Fintf <> nil then
9127
 
  begin
9128
 
    FIntf := nil;
9129
 
  end;
9130
 
end;
9131
 
 
9132
 
function TBackLink.GetDefaultInterface: IADsBackLink;
9133
 
begin
9134
 
  if FIntf = nil then
9135
 
    Connect;
9136
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9137
 
  Result := FIntf;
9138
 
end;
9139
 
 
9140
 
constructor TBackLink.Create(AOwner: TComponent);
9141
 
begin
9142
 
  inherited Create(AOwner);
9143
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9144
 
  FProps := TBackLinkProperties.Create(Self);
9145
 
{$ENDIF}
9146
 
end;
9147
 
 
9148
 
destructor TBackLink.Destroy;
9149
 
begin
9150
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9151
 
  FProps.Free;
9152
 
{$ENDIF}
9153
 
  inherited Destroy;
9154
 
end;
9155
 
 
9156
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9157
 
function TBackLink.GetServerProperties: TBackLinkProperties;
9158
 
begin
9159
 
  Result := FProps;
9160
 
end;
9161
 
{$ENDIF}
9162
 
 
9163
 
function  TBackLink.Get_RemoteID: Integer;
9164
 
begin
9165
 
  Result := DefaultInterface.Get_RemoteID;
9166
 
end;
9167
 
 
9168
 
procedure TBackLink.Set_RemoteID(retval: Integer);
9169
 
begin
9170
 
  DefaultInterface.Set_RemoteID(retval);
9171
 
end;
9172
 
 
9173
 
function  TBackLink.Get_ObjectName: WideString;
9174
 
begin
9175
 
  Result := DefaultInterface.Get_ObjectName;
9176
 
end;
9177
 
 
9178
 
procedure TBackLink.Set_ObjectName(const retval: WideString);
9179
 
begin
9180
 
  DefaultInterface.Set_ObjectName(retval);
9181
 
end;
9182
 
 
9183
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9184
 
constructor TBackLinkProperties.Create(AServer: TBackLink);
9185
 
begin
9186
 
  inherited Create;
9187
 
  FServer := AServer;
9188
 
end;
9189
 
 
9190
 
function TBackLinkProperties.GetDefaultInterface: IADsBackLink;
9191
 
begin
9192
 
  Result := FServer.DefaultInterface;
9193
 
end;
9194
 
 
9195
 
function  TBackLinkProperties.Get_RemoteID: Integer;
9196
 
begin
9197
 
  Result := DefaultInterface.Get_RemoteID;
9198
 
end;
9199
 
 
9200
 
procedure TBackLinkProperties.Set_RemoteID(retval: Integer);
9201
 
begin
9202
 
  DefaultInterface.Set_RemoteID(retval);
9203
 
end;
9204
 
 
9205
 
function  TBackLinkProperties.Get_ObjectName: WideString;
9206
 
begin
9207
 
  Result := DefaultInterface.Get_ObjectName;
9208
 
end;
9209
 
 
9210
 
procedure TBackLinkProperties.Set_ObjectName(const retval: WideString);
9211
 
begin
9212
 
  DefaultInterface.Set_ObjectName(retval);
9213
 
end;
9214
 
 
9215
 
{$ENDIF}
9216
 
 
9217
 
class function CoTypedName.Create: IADsTypedName;
9218
 
begin
9219
 
  Result := CreateComObject(CLASS_TypedName) as IADsTypedName;
9220
 
end;
9221
 
 
9222
 
class function CoTypedName.CreateRemote(const MachineName: string): IADsTypedName;
9223
 
begin
9224
 
  Result := CreateRemoteComObject(MachineName, CLASS_TypedName) as IADsTypedName;
9225
 
end;
9226
 
 
9227
 
procedure TTypedName.InitServerData;
9228
 
const
9229
 
  CServerData: TServerData = (
9230
 
    ClassID:   '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
9231
 
    IntfIID:   '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
9232
 
    EventIID:  '';
9233
 
    LicenseKey: nil;
9234
 
    Version: 500);
9235
 
begin
9236
 
  ServerData := @CServerData;
9237
 
end;
9238
 
 
9239
 
procedure TTypedName.Connect;
9240
 
var
9241
 
  punk: IUnknown;
9242
 
begin
9243
 
  if FIntf = nil then
9244
 
  begin
9245
 
    punk := GetServer;
9246
 
    Fintf:= punk as IADsTypedName;
9247
 
  end;
9248
 
end;
9249
 
 
9250
 
procedure TTypedName.ConnectTo(svrIntf: IADsTypedName);
9251
 
begin
9252
 
  Disconnect;
9253
 
  FIntf := svrIntf;
9254
 
end;
9255
 
 
9256
 
procedure TTypedName.DisConnect;
9257
 
begin
9258
 
  if Fintf <> nil then
9259
 
  begin
9260
 
    FIntf := nil;
9261
 
  end;
9262
 
end;
9263
 
 
9264
 
function TTypedName.GetDefaultInterface: IADsTypedName;
9265
 
begin
9266
 
  if FIntf = nil then
9267
 
    Connect;
9268
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9269
 
  Result := FIntf;
9270
 
end;
9271
 
 
9272
 
constructor TTypedName.Create(AOwner: TComponent);
9273
 
begin
9274
 
  inherited Create(AOwner);
9275
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9276
 
  FProps := TTypedNameProperties.Create(Self);
9277
 
{$ENDIF}
9278
 
end;
9279
 
 
9280
 
destructor TTypedName.Destroy;
9281
 
begin
9282
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9283
 
  FProps.Free;
9284
 
{$ENDIF}
9285
 
  inherited Destroy;
9286
 
end;
9287
 
 
9288
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9289
 
function TTypedName.GetServerProperties: TTypedNameProperties;
9290
 
begin
9291
 
  Result := FProps;
9292
 
end;
9293
 
{$ENDIF}
9294
 
 
9295
 
function  TTypedName.Get_ObjectName: WideString;
9296
 
begin
9297
 
  Result := DefaultInterface.Get_ObjectName;
9298
 
end;
9299
 
 
9300
 
procedure TTypedName.Set_ObjectName(const retval: WideString);
9301
 
begin
9302
 
  DefaultInterface.Set_ObjectName(retval);
9303
 
end;
9304
 
 
9305
 
function  TTypedName.Get_Level: Integer;
9306
 
begin
9307
 
  Result := DefaultInterface.Get_Level;
9308
 
end;
9309
 
 
9310
 
procedure TTypedName.Set_Level(retval: Integer);
9311
 
begin
9312
 
  DefaultInterface.Set_Level(retval);
9313
 
end;
9314
 
 
9315
 
function  TTypedName.Get_Interval: Integer;
9316
 
begin
9317
 
  Result := DefaultInterface.Get_Interval;
9318
 
end;
9319
 
 
9320
 
procedure TTypedName.Set_Interval(retval: Integer);
9321
 
begin
9322
 
  DefaultInterface.Set_Interval(retval);
9323
 
end;
9324
 
 
9325
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9326
 
constructor TTypedNameProperties.Create(AServer: TTypedName);
9327
 
begin
9328
 
  inherited Create;
9329
 
  FServer := AServer;
9330
 
end;
9331
 
 
9332
 
function TTypedNameProperties.GetDefaultInterface: IADsTypedName;
9333
 
begin
9334
 
  Result := FServer.DefaultInterface;
9335
 
end;
9336
 
 
9337
 
function  TTypedNameProperties.Get_ObjectName: WideString;
9338
 
begin
9339
 
  Result := DefaultInterface.Get_ObjectName;
9340
 
end;
9341
 
 
9342
 
procedure TTypedNameProperties.Set_ObjectName(const retval: WideString);
9343
 
begin
9344
 
  DefaultInterface.Set_ObjectName(retval);
9345
 
end;
9346
 
 
9347
 
function  TTypedNameProperties.Get_Level: Integer;
9348
 
begin
9349
 
  Result := DefaultInterface.Get_Level;
9350
 
end;
9351
 
 
9352
 
procedure TTypedNameProperties.Set_Level(retval: Integer);
9353
 
begin
9354
 
  DefaultInterface.Set_Level(retval);
9355
 
end;
9356
 
 
9357
 
function  TTypedNameProperties.Get_Interval: Integer;
9358
 
begin
9359
 
  Result := DefaultInterface.Get_Interval;
9360
 
end;
9361
 
 
9362
 
procedure TTypedNameProperties.Set_Interval(retval: Integer);
9363
 
begin
9364
 
  DefaultInterface.Set_Interval(retval);
9365
 
end;
9366
 
 
9367
 
{$ENDIF}
9368
 
 
9369
 
class function CoHold.Create: IADsHold;
9370
 
begin
9371
 
  Result := CreateComObject(CLASS_Hold) as IADsHold;
9372
 
end;
9373
 
 
9374
 
class function CoHold.CreateRemote(const MachineName: string): IADsHold;
9375
 
begin
9376
 
  Result := CreateRemoteComObject(MachineName, CLASS_Hold) as IADsHold;
9377
 
end;
9378
 
 
9379
 
procedure THold.InitServerData;
9380
 
const
9381
 
  CServerData: TServerData = (
9382
 
    ClassID:   '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
9383
 
    IntfIID:   '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
9384
 
    EventIID:  '';
9385
 
    LicenseKey: nil;
9386
 
    Version: 500);
9387
 
begin
9388
 
  ServerData := @CServerData;
9389
 
end;
9390
 
 
9391
 
procedure THold.Connect;
9392
 
var
9393
 
  punk: IUnknown;
9394
 
begin
9395
 
  if FIntf = nil then
9396
 
  begin
9397
 
    punk := GetServer;
9398
 
    Fintf:= punk as IADsHold;
9399
 
  end;
9400
 
end;
9401
 
 
9402
 
procedure THold.ConnectTo(svrIntf: IADsHold);
9403
 
begin
9404
 
  Disconnect;
9405
 
  FIntf := svrIntf;
9406
 
end;
9407
 
 
9408
 
procedure THold.DisConnect;
9409
 
begin
9410
 
  if Fintf <> nil then
9411
 
  begin
9412
 
    FIntf := nil;
9413
 
  end;
9414
 
end;
9415
 
 
9416
 
function THold.GetDefaultInterface: IADsHold;
9417
 
begin
9418
 
  if FIntf = nil then
9419
 
    Connect;
9420
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9421
 
  Result := FIntf;
9422
 
end;
9423
 
 
9424
 
constructor THold.Create(AOwner: TComponent);
9425
 
begin
9426
 
  inherited Create(AOwner);
9427
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9428
 
  FProps := THoldProperties.Create(Self);
9429
 
{$ENDIF}
9430
 
end;
9431
 
 
9432
 
destructor THold.Destroy;
9433
 
begin
9434
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9435
 
  FProps.Free;
9436
 
{$ENDIF}
9437
 
  inherited Destroy;
9438
 
end;
9439
 
 
9440
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9441
 
function THold.GetServerProperties: THoldProperties;
9442
 
begin
9443
 
  Result := FProps;
9444
 
end;
9445
 
{$ENDIF}
9446
 
 
9447
 
function  THold.Get_ObjectName: WideString;
9448
 
begin
9449
 
  Result := DefaultInterface.Get_ObjectName;
9450
 
end;
9451
 
 
9452
 
procedure THold.Set_ObjectName(const retval: WideString);
9453
 
begin
9454
 
  DefaultInterface.Set_ObjectName(retval);
9455
 
end;
9456
 
 
9457
 
function  THold.Get_Amount: Integer;
9458
 
begin
9459
 
  Result := DefaultInterface.Get_Amount;
9460
 
end;
9461
 
 
9462
 
procedure THold.Set_Amount(retval: Integer);
9463
 
begin
9464
 
  DefaultInterface.Set_Amount(retval);
9465
 
end;
9466
 
 
9467
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9468
 
constructor THoldProperties.Create(AServer: THold);
9469
 
begin
9470
 
  inherited Create;
9471
 
  FServer := AServer;
9472
 
end;
9473
 
 
9474
 
function THoldProperties.GetDefaultInterface: IADsHold;
9475
 
begin
9476
 
  Result := FServer.DefaultInterface;
9477
 
end;
9478
 
 
9479
 
function  THoldProperties.Get_ObjectName: WideString;
9480
 
begin
9481
 
  Result := DefaultInterface.Get_ObjectName;
9482
 
end;
9483
 
 
9484
 
procedure THoldProperties.Set_ObjectName(const retval: WideString);
9485
 
begin
9486
 
  DefaultInterface.Set_ObjectName(retval);
9487
 
end;
9488
 
 
9489
 
function  THoldProperties.Get_Amount: Integer;
9490
 
begin
9491
 
  Result := DefaultInterface.Get_Amount;
9492
 
end;
9493
 
 
9494
 
procedure THoldProperties.Set_Amount(retval: Integer);
9495
 
begin
9496
 
  DefaultInterface.Set_Amount(retval);
9497
 
end;
9498
 
 
9499
 
{$ENDIF}
9500
 
 
9501
 
class function CoPathname.Create: IADsPathname;
9502
 
begin
9503
 
  Result := CreateComObject(CLASS_Pathname) as IADsPathname;
9504
 
end;
9505
 
 
9506
 
class function CoPathname.CreateRemote(const MachineName: string): IADsPathname;
9507
 
begin
9508
 
  Result := CreateRemoteComObject(MachineName, CLASS_Pathname) as IADsPathname;
9509
 
end;
9510
 
 
9511
 
procedure TPathname.InitServerData;
9512
 
const
9513
 
  CServerData: TServerData = (
9514
 
    ClassID:   '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
9515
 
    IntfIID:   '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
9516
 
    EventIID:  '';
9517
 
    LicenseKey: nil;
9518
 
    Version: 500);
9519
 
begin
9520
 
  ServerData := @CServerData;
9521
 
end;
9522
 
 
9523
 
procedure TPathname.Connect;
9524
 
var
9525
 
  punk: IUnknown;
9526
 
begin
9527
 
  if FIntf = nil then
9528
 
  begin
9529
 
    punk := GetServer;
9530
 
    Fintf:= punk as IADsPathname;
9531
 
  end;
9532
 
end;
9533
 
 
9534
 
procedure TPathname.ConnectTo(svrIntf: IADsPathname);
9535
 
begin
9536
 
  Disconnect;
9537
 
  FIntf := svrIntf;
9538
 
end;
9539
 
 
9540
 
procedure TPathname.DisConnect;
9541
 
begin
9542
 
  if Fintf <> nil then
9543
 
  begin
9544
 
    FIntf := nil;
9545
 
  end;
9546
 
end;
9547
 
 
9548
 
function TPathname.GetDefaultInterface: IADsPathname;
9549
 
begin
9550
 
  if FIntf = nil then
9551
 
    Connect;
9552
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9553
 
  Result := FIntf;
9554
 
end;
9555
 
 
9556
 
constructor TPathname.Create(AOwner: TComponent);
9557
 
begin
9558
 
  inherited Create(AOwner);
9559
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9560
 
  FProps := TPathnameProperties.Create(Self);
9561
 
{$ENDIF}
9562
 
end;
9563
 
 
9564
 
destructor TPathname.Destroy;
9565
 
begin
9566
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9567
 
  FProps.Free;
9568
 
{$ENDIF}
9569
 
  inherited Destroy;
9570
 
end;
9571
 
 
9572
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9573
 
function TPathname.GetServerProperties: TPathnameProperties;
9574
 
begin
9575
 
  Result := FProps;
9576
 
end;
9577
 
{$ENDIF}
9578
 
 
9579
 
function  TPathname.Get_EscapedMode: Integer;
9580
 
begin
9581
 
  Result := DefaultInterface.Get_EscapedMode;
9582
 
end;
9583
 
 
9584
 
procedure TPathname.Set_EscapedMode(retval: Integer);
9585
 
begin
9586
 
  DefaultInterface.Set_EscapedMode(retval);
9587
 
end;
9588
 
 
9589
 
procedure TPathname.Set_(const bstrADsPath: WideString; lnSetType: Integer);
9590
 
begin
9591
 
  DefaultInterface.Set_(bstrADsPath, lnSetType);
9592
 
end;
9593
 
 
9594
 
procedure TPathname.SetDisplayType(lnDisplayType: Integer);
9595
 
begin
9596
 
  DefaultInterface.SetDisplayType(lnDisplayType);
9597
 
end;
9598
 
 
9599
 
function  TPathname.Retrieve(lnFormatType: Integer): WideString;
9600
 
begin
9601
 
  Result := DefaultInterface.Retrieve(lnFormatType);
9602
 
end;
9603
 
 
9604
 
function  TPathname.GetNumElements: Integer;
9605
 
begin
9606
 
  Result := DefaultInterface.GetNumElements;
9607
 
end;
9608
 
 
9609
 
function  TPathname.GetElement(lnElementIndex: Integer): WideString;
9610
 
begin
9611
 
  Result := DefaultInterface.GetElement(lnElementIndex);
9612
 
end;
9613
 
 
9614
 
procedure TPathname.AddLeafElement(const bstrLeafElement: WideString);
9615
 
begin
9616
 
  DefaultInterface.AddLeafElement(bstrLeafElement);
9617
 
end;
9618
 
 
9619
 
procedure TPathname.RemoveLeafElement;
9620
 
begin
9621
 
  DefaultInterface.RemoveLeafElement;
9622
 
end;
9623
 
 
9624
 
function  TPathname.CopyPath: IDispatch;
9625
 
begin
9626
 
  Result := DefaultInterface.CopyPath;
9627
 
end;
9628
 
 
9629
 
function  TPathname.GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
9630
 
begin
9631
 
  Result := DefaultInterface.GetEscapedElement(lnReserved, bstrInStr);
9632
 
end;
9633
 
 
9634
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9635
 
constructor TPathnameProperties.Create(AServer: TPathname);
9636
 
begin
9637
 
  inherited Create;
9638
 
  FServer := AServer;
9639
 
end;
9640
 
 
9641
 
function TPathnameProperties.GetDefaultInterface: IADsPathname;
9642
 
begin
9643
 
  Result := FServer.DefaultInterface;
9644
 
end;
9645
 
 
9646
 
function  TPathnameProperties.Get_EscapedMode: Integer;
9647
 
begin
9648
 
  Result := DefaultInterface.Get_EscapedMode;
9649
 
end;
9650
 
 
9651
 
procedure TPathnameProperties.Set_EscapedMode(retval: Integer);
9652
 
begin
9653
 
  DefaultInterface.Set_EscapedMode(retval);
9654
 
end;
9655
 
 
9656
 
{$ENDIF}
9657
 
 
9658
 
class function CoADSystemInfo.Create: IADsADSystemInfo;
9659
 
begin
9660
 
  Result := CreateComObject(CLASS_ADSystemInfo) as IADsADSystemInfo;
9661
 
end;
9662
 
 
9663
 
class function CoADSystemInfo.CreateRemote(const MachineName: string): IADsADSystemInfo;
9664
 
begin
9665
 
  Result := CreateRemoteComObject(MachineName, CLASS_ADSystemInfo) as IADsADSystemInfo;
9666
 
end;
9667
 
 
9668
 
procedure TADSystemInfo.InitServerData;
9669
 
const
9670
 
  CServerData: TServerData = (
9671
 
    ClassID:   '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
9672
 
    IntfIID:   '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
9673
 
    EventIID:  '';
9674
 
    LicenseKey: nil;
9675
 
    Version: 500);
9676
 
begin
9677
 
  ServerData := @CServerData;
9678
 
end;
9679
 
 
9680
 
procedure TADSystemInfo.Connect;
9681
 
var
9682
 
  punk: IUnknown;
9683
 
begin
9684
 
  if FIntf = nil then
9685
 
  begin
9686
 
    punk := GetServer;
9687
 
    Fintf:= punk as IADsADSystemInfo;
9688
 
  end;
9689
 
end;
9690
 
 
9691
 
procedure TADSystemInfo.ConnectTo(svrIntf: IADsADSystemInfo);
9692
 
begin
9693
 
  Disconnect;
9694
 
  FIntf := svrIntf;
9695
 
end;
9696
 
 
9697
 
procedure TADSystemInfo.DisConnect;
9698
 
begin
9699
 
  if Fintf <> nil then
9700
 
  begin
9701
 
    FIntf := nil;
9702
 
  end;
9703
 
end;
9704
 
 
9705
 
function TADSystemInfo.GetDefaultInterface: IADsADSystemInfo;
9706
 
begin
9707
 
  if FIntf = nil then
9708
 
    Connect;
9709
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9710
 
  Result := FIntf;
9711
 
end;
9712
 
 
9713
 
constructor TADSystemInfo.Create(AOwner: TComponent);
9714
 
begin
9715
 
  inherited Create(AOwner);
9716
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9717
 
  FProps := TADSystemInfoProperties.Create(Self);
9718
 
{$ENDIF}
9719
 
end;
9720
 
 
9721
 
destructor TADSystemInfo.Destroy;
9722
 
begin
9723
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9724
 
  FProps.Free;
9725
 
{$ENDIF}
9726
 
  inherited Destroy;
9727
 
end;
9728
 
 
9729
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9730
 
function TADSystemInfo.GetServerProperties: TADSystemInfoProperties;
9731
 
begin
9732
 
  Result := FProps;
9733
 
end;
9734
 
{$ENDIF}
9735
 
 
9736
 
function  TADSystemInfo.Get_UserName: WideString;
9737
 
begin
9738
 
  Result := DefaultInterface.Get_UserName;
9739
 
end;
9740
 
 
9741
 
function  TADSystemInfo.Get_ComputerName: WideString;
9742
 
begin
9743
 
  Result := DefaultInterface.Get_ComputerName;
9744
 
end;
9745
 
 
9746
 
function  TADSystemInfo.Get_SiteName: WideString;
9747
 
begin
9748
 
  Result := DefaultInterface.Get_SiteName;
9749
 
end;
9750
 
 
9751
 
function  TADSystemInfo.Get_DomainShortName: WideString;
9752
 
begin
9753
 
  Result := DefaultInterface.Get_DomainShortName;
9754
 
end;
9755
 
 
9756
 
function  TADSystemInfo.Get_DomainDNSName: WideString;
9757
 
begin
9758
 
  Result := DefaultInterface.Get_DomainDNSName;
9759
 
end;
9760
 
 
9761
 
function  TADSystemInfo.Get_ForestDNSName: WideString;
9762
 
begin
9763
 
  Result := DefaultInterface.Get_ForestDNSName;
9764
 
end;
9765
 
 
9766
 
function  TADSystemInfo.Get_PDCRoleOwner: WideString;
9767
 
begin
9768
 
  Result := DefaultInterface.Get_PDCRoleOwner;
9769
 
end;
9770
 
 
9771
 
function  TADSystemInfo.Get_SchemaRoleOwner: WideString;
9772
 
begin
9773
 
  Result := DefaultInterface.Get_SchemaRoleOwner;
9774
 
end;
9775
 
 
9776
 
function  TADSystemInfo.Get_IsNativeMode: WordBool;
9777
 
begin
9778
 
  Result := DefaultInterface.Get_IsNativeMode;
9779
 
end;
9780
 
 
9781
 
function  TADSystemInfo.GetAnyDCName: WideString;
9782
 
begin
9783
 
  Result := DefaultInterface.GetAnyDCName;
9784
 
end;
9785
 
 
9786
 
function  TADSystemInfo.GetDCSiteName(const szServer: WideString): WideString;
9787
 
begin
9788
 
  Result := DefaultInterface.GetDCSiteName(szServer);
9789
 
end;
9790
 
 
9791
 
procedure TADSystemInfo.RefreshSchemaCache;
9792
 
begin
9793
 
  DefaultInterface.RefreshSchemaCache;
9794
 
end;
9795
 
 
9796
 
function  TADSystemInfo.GetTrees: OleVariant;
9797
 
begin
9798
 
  Result := DefaultInterface.GetTrees;
9799
 
end;
9800
 
 
9801
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9802
 
constructor TADSystemInfoProperties.Create(AServer: TADSystemInfo);
9803
 
begin
9804
 
  inherited Create;
9805
 
  FServer := AServer;
9806
 
end;
9807
 
 
9808
 
function TADSystemInfoProperties.GetDefaultInterface: IADsADSystemInfo;
9809
 
begin
9810
 
  Result := FServer.DefaultInterface;
9811
 
end;
9812
 
 
9813
 
function  TADSystemInfoProperties.Get_UserName: WideString;
9814
 
begin
9815
 
  Result := DefaultInterface.Get_UserName;
9816
 
end;
9817
 
 
9818
 
function  TADSystemInfoProperties.Get_ComputerName: WideString;
9819
 
begin
9820
 
  Result := DefaultInterface.Get_ComputerName;
9821
 
end;
9822
 
 
9823
 
function  TADSystemInfoProperties.Get_SiteName: WideString;
9824
 
begin
9825
 
  Result := DefaultInterface.Get_SiteName;
9826
 
end;
9827
 
 
9828
 
function  TADSystemInfoProperties.Get_DomainShortName: WideString;
9829
 
begin
9830
 
  Result := DefaultInterface.Get_DomainShortName;
9831
 
end;
9832
 
 
9833
 
function  TADSystemInfoProperties.Get_DomainDNSName: WideString;
9834
 
begin
9835
 
  Result := DefaultInterface.Get_DomainDNSName;
9836
 
end;
9837
 
 
9838
 
function  TADSystemInfoProperties.Get_ForestDNSName: WideString;
9839
 
begin
9840
 
  Result := DefaultInterface.Get_ForestDNSName;
9841
 
end;
9842
 
 
9843
 
function  TADSystemInfoProperties.Get_PDCRoleOwner: WideString;
9844
 
begin
9845
 
  Result := DefaultInterface.Get_PDCRoleOwner;
9846
 
end;
9847
 
 
9848
 
function  TADSystemInfoProperties.Get_SchemaRoleOwner: WideString;
9849
 
begin
9850
 
  Result := DefaultInterface.Get_SchemaRoleOwner;
9851
 
end;
9852
 
 
9853
 
function  TADSystemInfoProperties.Get_IsNativeMode: WordBool;
9854
 
begin
9855
 
  Result := DefaultInterface.Get_IsNativeMode;
9856
 
end;
9857
 
 
9858
 
{$ENDIF}
9859
 
 
9860
 
class function CoWinNTSystemInfo.Create: IADsWinNTSystemInfo;
9861
 
begin
9862
 
  Result := CreateComObject(CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
9863
 
end;
9864
 
 
9865
 
class function CoWinNTSystemInfo.CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
9866
 
begin
9867
 
  Result := CreateRemoteComObject(MachineName, CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
9868
 
end;
9869
 
 
9870
 
procedure TWinNTSystemInfo.InitServerData;
9871
 
const
9872
 
  CServerData: TServerData = (
9873
 
    ClassID:   '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
9874
 
    IntfIID:   '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
9875
 
    EventIID:  '';
9876
 
    LicenseKey: nil;
9877
 
    Version: 500);
9878
 
begin
9879
 
  ServerData := @CServerData;
9880
 
end;
9881
 
 
9882
 
procedure TWinNTSystemInfo.Connect;
9883
 
var
9884
 
  punk: IUnknown;
9885
 
begin
9886
 
  if FIntf = nil then
9887
 
  begin
9888
 
    punk := GetServer;
9889
 
    Fintf:= punk as IADsWinNTSystemInfo;
9890
 
  end;
9891
 
end;
9892
 
 
9893
 
procedure TWinNTSystemInfo.ConnectTo(svrIntf: IADsWinNTSystemInfo);
9894
 
begin
9895
 
  Disconnect;
9896
 
  FIntf := svrIntf;
9897
 
end;
9898
 
 
9899
 
procedure TWinNTSystemInfo.DisConnect;
9900
 
begin
9901
 
  if Fintf <> nil then
9902
 
  begin
9903
 
    FIntf := nil;
9904
 
  end;
9905
 
end;
9906
 
 
9907
 
function TWinNTSystemInfo.GetDefaultInterface: IADsWinNTSystemInfo;
9908
 
begin
9909
 
  if FIntf = nil then
9910
 
    Connect;
9911
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
9912
 
  Result := FIntf;
9913
 
end;
9914
 
 
9915
 
constructor TWinNTSystemInfo.Create(AOwner: TComponent);
9916
 
begin
9917
 
  inherited Create(AOwner);
9918
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9919
 
  FProps := TWinNTSystemInfoProperties.Create(Self);
9920
 
{$ENDIF}
9921
 
end;
9922
 
 
9923
 
destructor TWinNTSystemInfo.Destroy;
9924
 
begin
9925
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9926
 
  FProps.Free;
9927
 
{$ENDIF}
9928
 
  inherited Destroy;
9929
 
end;
9930
 
 
9931
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9932
 
function TWinNTSystemInfo.GetServerProperties: TWinNTSystemInfoProperties;
9933
 
begin
9934
 
  Result := FProps;
9935
 
end;
9936
 
{$ENDIF}
9937
 
 
9938
 
function  TWinNTSystemInfo.Get_UserName: WideString;
9939
 
begin
9940
 
  Result := DefaultInterface.Get_UserName;
9941
 
end;
9942
 
 
9943
 
function  TWinNTSystemInfo.Get_ComputerName: WideString;
9944
 
begin
9945
 
  Result := DefaultInterface.Get_ComputerName;
9946
 
end;
9947
 
 
9948
 
function  TWinNTSystemInfo.Get_DomainName: WideString;
9949
 
begin
9950
 
  Result := DefaultInterface.Get_DomainName;
9951
 
end;
9952
 
 
9953
 
function  TWinNTSystemInfo.Get_PDC: WideString;
9954
 
begin
9955
 
  Result := DefaultInterface.Get_PDC;
9956
 
end;
9957
 
 
9958
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
9959
 
constructor TWinNTSystemInfoProperties.Create(AServer: TWinNTSystemInfo);
9960
 
begin
9961
 
  inherited Create;
9962
 
  FServer := AServer;
9963
 
end;
9964
 
 
9965
 
function TWinNTSystemInfoProperties.GetDefaultInterface: IADsWinNTSystemInfo;
9966
 
begin
9967
 
  Result := FServer.DefaultInterface;
9968
 
end;
9969
 
 
9970
 
function  TWinNTSystemInfoProperties.Get_UserName: WideString;
9971
 
begin
9972
 
  Result := DefaultInterface.Get_UserName;
9973
 
end;
9974
 
 
9975
 
function  TWinNTSystemInfoProperties.Get_ComputerName: WideString;
9976
 
begin
9977
 
  Result := DefaultInterface.Get_ComputerName;
9978
 
end;
9979
 
 
9980
 
function  TWinNTSystemInfoProperties.Get_DomainName: WideString;
9981
 
begin
9982
 
  Result := DefaultInterface.Get_DomainName;
9983
 
end;
9984
 
 
9985
 
function  TWinNTSystemInfoProperties.Get_PDC: WideString;
9986
 
begin
9987
 
  Result := DefaultInterface.Get_PDC;
9988
 
end;
9989
 
 
9990
 
{$ENDIF}
9991
 
 
9992
 
class function CoDNWithBinary.Create: IADsDNWithBinary;
9993
 
begin
9994
 
  Result := CreateComObject(CLASS_DNWithBinary) as IADsDNWithBinary;
9995
 
end;
9996
 
 
9997
 
class function CoDNWithBinary.CreateRemote(const MachineName: string): IADsDNWithBinary;
9998
 
begin
9999
 
  Result := CreateRemoteComObject(MachineName, CLASS_DNWithBinary) as IADsDNWithBinary;
10000
 
end;
10001
 
 
10002
 
procedure TDNWithBinary.InitServerData;
10003
 
const
10004
 
  CServerData: TServerData = (
10005
 
    ClassID:   '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
10006
 
    IntfIID:   '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
10007
 
    EventIID:  '';
10008
 
    LicenseKey: nil;
10009
 
    Version: 500);
10010
 
begin
10011
 
  ServerData := @CServerData;
10012
 
end;
10013
 
 
10014
 
procedure TDNWithBinary.Connect;
10015
 
var
10016
 
  punk: IUnknown;
10017
 
begin
10018
 
  if FIntf = nil then
10019
 
  begin
10020
 
    punk := GetServer;
10021
 
    Fintf:= punk as IADsDNWithBinary;
10022
 
  end;
10023
 
end;
10024
 
 
10025
 
procedure TDNWithBinary.ConnectTo(svrIntf: IADsDNWithBinary);
10026
 
begin
10027
 
  Disconnect;
10028
 
  FIntf := svrIntf;
10029
 
end;
10030
 
 
10031
 
procedure TDNWithBinary.DisConnect;
10032
 
begin
10033
 
  if Fintf <> nil then
10034
 
  begin
10035
 
    FIntf := nil;
10036
 
  end;
10037
 
end;
10038
 
 
10039
 
function TDNWithBinary.GetDefaultInterface: IADsDNWithBinary;
10040
 
begin
10041
 
  if FIntf = nil then
10042
 
    Connect;
10043
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
10044
 
  Result := FIntf;
10045
 
end;
10046
 
 
10047
 
constructor TDNWithBinary.Create(AOwner: TComponent);
10048
 
begin
10049
 
  inherited Create(AOwner);
10050
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10051
 
  FProps := TDNWithBinaryProperties.Create(Self);
10052
 
{$ENDIF}
10053
 
end;
10054
 
 
10055
 
destructor TDNWithBinary.Destroy;
10056
 
begin
10057
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10058
 
  FProps.Free;
10059
 
{$ENDIF}
10060
 
  inherited Destroy;
10061
 
end;
10062
 
 
10063
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10064
 
function TDNWithBinary.GetServerProperties: TDNWithBinaryProperties;
10065
 
begin
10066
 
  Result := FProps;
10067
 
end;
10068
 
{$ENDIF}
10069
 
 
10070
 
function  TDNWithBinary.Get_BinaryValue: OleVariant;
10071
 
begin
10072
 
  Result := DefaultInterface.Get_BinaryValue;
10073
 
end;
10074
 
 
10075
 
procedure TDNWithBinary.Set_BinaryValue(retval: OleVariant);
10076
 
begin
10077
 
  DefaultInterface.Set_BinaryValue(retval);
10078
 
end;
10079
 
 
10080
 
function  TDNWithBinary.Get_DNString: WideString;
10081
 
begin
10082
 
  Result := DefaultInterface.Get_DNString;
10083
 
end;
10084
 
 
10085
 
procedure TDNWithBinary.Set_DNString(const retval: WideString);
10086
 
begin
10087
 
  DefaultInterface.Set_DNString(retval);
10088
 
end;
10089
 
 
10090
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10091
 
constructor TDNWithBinaryProperties.Create(AServer: TDNWithBinary);
10092
 
begin
10093
 
  inherited Create;
10094
 
  FServer := AServer;
10095
 
end;
10096
 
 
10097
 
function TDNWithBinaryProperties.GetDefaultInterface: IADsDNWithBinary;
10098
 
begin
10099
 
  Result := FServer.DefaultInterface;
10100
 
end;
10101
 
 
10102
 
function  TDNWithBinaryProperties.Get_BinaryValue: OleVariant;
10103
 
begin
10104
 
  Result := DefaultInterface.Get_BinaryValue;
10105
 
end;
10106
 
 
10107
 
procedure TDNWithBinaryProperties.Set_BinaryValue(retval: OleVariant);
10108
 
begin
10109
 
  DefaultInterface.Set_BinaryValue(retval);
10110
 
end;
10111
 
 
10112
 
function  TDNWithBinaryProperties.Get_DNString: WideString;
10113
 
begin
10114
 
  Result := DefaultInterface.Get_DNString;
10115
 
end;
10116
 
 
10117
 
procedure TDNWithBinaryProperties.Set_DNString(const retval: WideString);
10118
 
begin
10119
 
  DefaultInterface.Set_DNString(retval);
10120
 
end;
10121
 
 
10122
 
{$ENDIF}
10123
 
 
10124
 
class function CoDNWithString.Create: IADsDNWithString;
10125
 
begin
10126
 
  Result := CreateComObject(CLASS_DNWithString) as IADsDNWithString;
10127
 
end;
10128
 
 
10129
 
class function CoDNWithString.CreateRemote(const MachineName: string): IADsDNWithString;
10130
 
begin
10131
 
  Result := CreateRemoteComObject(MachineName, CLASS_DNWithString) as IADsDNWithString;
10132
 
end;
10133
 
 
10134
 
procedure TDNWithString.InitServerData;
10135
 
const
10136
 
  CServerData: TServerData = (
10137
 
    ClassID:   '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
10138
 
    IntfIID:   '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
10139
 
    EventIID:  '';
10140
 
    LicenseKey: nil;
10141
 
    Version: 500);
10142
 
begin
10143
 
  ServerData := @CServerData;
10144
 
end;
10145
 
 
10146
 
procedure TDNWithString.Connect;
10147
 
var
10148
 
  punk: IUnknown;
10149
 
begin
10150
 
  if FIntf = nil then
10151
 
  begin
10152
 
    punk := GetServer;
10153
 
    Fintf:= punk as IADsDNWithString;
10154
 
  end;
10155
 
end;
10156
 
 
10157
 
procedure TDNWithString.ConnectTo(svrIntf: IADsDNWithString);
10158
 
begin
10159
 
  Disconnect;
10160
 
  FIntf := svrIntf;
10161
 
end;
10162
 
 
10163
 
procedure TDNWithString.DisConnect;
10164
 
begin
10165
 
  if Fintf <> nil then
10166
 
  begin
10167
 
    FIntf := nil;
10168
 
  end;
10169
 
end;
10170
 
 
10171
 
function TDNWithString.GetDefaultInterface: IADsDNWithString;
10172
 
begin
10173
 
  if FIntf = nil then
10174
 
    Connect;
10175
 
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
10176
 
  Result := FIntf;
10177
 
end;
10178
 
 
10179
 
constructor TDNWithString.Create(AOwner: TComponent);
10180
 
begin
10181
 
  inherited Create(AOwner);
10182
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10183
 
  FProps := TDNWithStringProperties.Create(Self);
10184
 
{$ENDIF}
10185
 
end;
10186
 
 
10187
 
destructor TDNWithString.Destroy;
10188
 
begin
10189
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10190
 
  FProps.Free;
10191
 
{$ENDIF}
10192
 
  inherited Destroy;
10193
 
end;
10194
 
 
10195
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10196
 
function TDNWithString.GetServerProperties: TDNWithStringProperties;
10197
 
begin
10198
 
  Result := FProps;
10199
 
end;
10200
 
{$ENDIF}
10201
 
 
10202
 
function  TDNWithString.Get_StringValue: WideString;
10203
 
begin
10204
 
  Result := DefaultInterface.Get_StringValue;
10205
 
end;
10206
 
 
10207
 
procedure TDNWithString.Set_StringValue(const retval: WideString);
10208
 
begin
10209
 
  DefaultInterface.Set_StringValue(retval);
10210
 
end;
10211
 
 
10212
 
function  TDNWithString.Get_DNString: WideString;
10213
 
begin
10214
 
  Result := DefaultInterface.Get_DNString;
10215
 
end;
10216
 
 
10217
 
procedure TDNWithString.Set_DNString(const retval: WideString);
10218
 
begin
10219
 
  DefaultInterface.Set_DNString(retval);
10220
 
end;
10221
 
 
10222
 
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
10223
 
constructor TDNWithStringProperties.Create(AServer: TDNWithString);
10224
 
begin
10225
 
  inherited Create;
10226
 
  FServer := AServer;
10227
 
end;
10228
 
 
10229
 
function TDNWithStringProperties.GetDefaultInterface: IADsDNWithString;
10230
 
begin
10231
 
  Result := FServer.DefaultInterface;
10232
 
end;
10233
 
 
10234
 
function  TDNWithStringProperties.Get_StringValue: WideString;
10235
 
begin
10236
 
  Result := DefaultInterface.Get_StringValue;
10237
 
end;
10238
 
 
10239
 
procedure TDNWithStringProperties.Set_StringValue(const retval: WideString);
10240
 
begin
10241
 
  DefaultInterface.Set_StringValue(retval);
10242
 
end;
10243
 
 
10244
 
function  TDNWithStringProperties.Get_DNString: WideString;
10245
 
begin
10246
 
  Result := DefaultInterface.Get_DNString;
10247
 
end;
10248
 
 
10249
 
procedure TDNWithStringProperties.Set_DNString(const retval: WideString);
10250
 
begin
10251
 
  DefaultInterface.Set_DNString(retval);
10252
 
end;
10253
 
 
10254
 
{$ENDIF}
10255
 
 
10256
 
 
10257
 
{$ifdef FPC} // dummy
10258
 
{
10259
 
function CreateComObject(ID: TGUID): IUnknown; //empty
10260
 
 
10261
 
begin
10262
 
end;
10263
 
 
10264
 
function CreateRemoteComObject(w:widestring; ID: TGUID): IUnknown; //empty
10265
 
 
10266
 
begin
10267
 
end;
10268
 
}
10269
 
function  tOleServer.GetServer:IUnknown;
10270
 
begin
10271
 
end;
10272
 
 
10273
 
procedure tOleServer.InitServerData;
10274
 
begin
10275
 
end;
10276
 
constructor tOleServer.Create(AOwner: TComponent);
10277
 
begin
10278
 
end;
10279
 
Procedure tOleServer.Connect;
10280
 
begin
10281
 
end;
10282
 
procedure tOleServer.Disconnect;
10283
 
begin
10284
 
end;
10285
 
 
10286
 
 
10287
 
{$endif}
10288
 
 
10289
 
 
10290
 
procedure Register;
10291
 
begin
10292
 
  RegisterComponents('ActiveX',[TPropertyEntry, TPropertyValue, TAccessControlEntry, TAccessControlList,
10293
 
    TSecurityDescriptor, TLargeInteger, TNameTranslate, TCaseIgnoreList, TFaxNumber,
10294
 
    TNetAddress, TOctetList, TEmail, TPath, TReplicaPointer,
10295
 
    TAcl, TTimestamp, TPostalAddress, TBackLink, TTypedName,
10296
 
    THold, TPathname, TADSystemInfo, TWinNTSystemInfo, TDNWithBinary,
10297
 
    TDNWithString]);
10298
 
end;
10299
 
 
10300
 
 
10301
 
 
10302
 
end.
 
1
 
 
2
unit JwaAdsTLB;
 
3
 
 
4
// ************************************************************************ //
 
5
// WARNING
 
6
// -------
 
7
// The types declared in this file were generated from data read from a
 
8
// Type Library. If this type library is explicitly or indirectly (via
 
9
// another type library referring to this type library) re-imported, or the
 
10
// 'Refresh' command of the Type Library Editor activated while editing the
 
11
// Type Library, the contents of this file will be regenerated and all
 
12
// manual modifications will be lost.
 
13
// ************************************************************************ //
 
14
 
 
15
// (rom) deactivated CVS string
 
16
// PASTLWTR : Revision:   1.88.1.0.1.0
 
17
// File generated on 9/25/2000 11:37:09 AM from Type Library described below.
 
18
 
 
19
// *************************************************************************//
 
20
// NOTE:
 
21
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
 
22
// which return objects that may need to be explicitly created via a function
 
23
// call prior to any access via the property. These items have been disabled
 
24
// in order to prevent accidental use from within the object inspector. You
 
25
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
 
26
// removing them from the $IFDEF blocks. However, such items must still be
 
27
// programmatically created via a method of the appropriate CoClass before
 
28
// they can be used.
 
29
// ************************************************************************ //
 
30
// Type Lib: C:\WINNT\system32\activeds.tlb (1)
 
31
// IID\LCID: {97D25DB0-0363-11CF-ABC4-02608C9E7553}\0
 
32
// Helpfile:
 
33
// DepndLst:
 
34
//   (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
 
35
//   (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
 
36
// Errors:
 
37
//   Hint: Member 'String' of '_ADS_CASEIGNORE_LIST' changed to 'String_'
 
38
//   Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0005' changed to 'Type_'
 
39
//   Hint: Member 'Type' of '__MIDL___MIDL_itf_ads_0000_0014' changed to 'Type_'
 
40
//   Hint: Member 'Class' of 'IADs' changed to 'Class_'
 
41
//   Hint: Member 'Set' of 'IADsNameTranslate' changed to 'Set_'
 
42
//   Hint: Member 'Type' of 'IADsEmail' changed to 'Type_'
 
43
//   Hint: Member 'Type' of 'IADsPath' changed to 'Type_'
 
44
//   Hint: Member 'Set' of 'IADsPathname' changed to 'Set_'
 
45
//   Error creating palette bitmap of (TPropertyEntry) : Server activeds.dll contains no icons
 
46
//   Error creating palette bitmap of (TPropertyValue) : Server activeds.dll contains no icons
 
47
//   Error creating palette bitmap of (TAccessControlEntry) : Server activeds.dll contains no icons
 
48
//   Error creating palette bitmap of (TAccessControlList) : Server activeds.dll contains no icons
 
49
//   Error creating palette bitmap of (TSecurityDescriptor) : Server activeds.dll contains no icons
 
50
//   Error creating palette bitmap of (TLargeInteger) : Server activeds.dll contains no icons
 
51
//   Error creating palette bitmap of (TNameTranslate) : Server activeds.dll contains no icons
 
52
//   Error creating palette bitmap of (TCaseIgnoreList) : Server activeds.dll contains no icons
 
53
//   Error creating palette bitmap of (TFaxNumber) : Server activeds.dll contains no icons
 
54
//   Error creating palette bitmap of (TNetAddress) : Server activeds.dll contains no icons
 
55
//   Error creating palette bitmap of (TOctetList) : Server activeds.dll contains no icons
 
56
//   Error creating palette bitmap of (TEmail) : Server activeds.dll contains no icons
 
57
//   Error creating palette bitmap of (TPath) : Server activeds.dll contains no icons
 
58
//   Error creating palette bitmap of (TReplicaPointer) : Server activeds.dll contains no icons
 
59
//   Error creating palette bitmap of (TAcl) : Server activeds.dll contains no icons
 
60
//   Error creating palette bitmap of (TTimestamp) : Server activeds.dll contains no icons
 
61
//   Error creating palette bitmap of (TPostalAddress) : Server activeds.dll contains no icons
 
62
//   Error creating palette bitmap of (TBackLink) : Server activeds.dll contains no icons
 
63
//   Error creating palette bitmap of (TTypedName) : Server activeds.dll contains no icons
 
64
//   Error creating palette bitmap of (THold) : Server activeds.dll contains no icons
 
65
//   Error creating palette bitmap of (TPathname) : Server activeds.dll contains no icons
 
66
//   Error creating palette bitmap of (TADSystemInfo) : Server activeds.dll contains no icons
 
67
//   Error creating palette bitmap of (TWinNTSystemInfo) : Server activeds.dll contains no icons
 
68
//   Error creating palette bitmap of (TDNWithBinary) : Server activeds.dll contains no icons
 
69
//   Error creating palette bitmap of (TDNWithString) : Server activeds.dll contains no icons
 
70
// ************************************************************************ //
 
71
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
 
72
 
 
73
interface
 
74
{$i jediapilib.inc}
 
75
uses
 
76
  Windows, ActiveX, Classes {$IFNDEF NOVCL} ,Graphics, OleServer, OleCtrls, StdVCL {$ENDIF} ;
 
77
 
 
78
{$IFDEF FPC}
 
79
Type
 
80
// Temporary dummies to get FPC working.
 
81
           TServerData= Record
 
82
                            ClassID:   TGUID;
 
83
                            IntfIID:   TGUID;
 
84
                            EventIID:  String;   // probably TGUID too
 
85
                            LicenseKey: pointer;
 
86
                            Version: integer
 
87
                            end;
 
88
 
 
89
 
 
90
 
 
91
               TOleServer = Class(TComponent)  // for registercomponents to work
 
92
                           private
 
93
                            ServerData : ^TServerData;
 
94
                           public
 
95
                 function  GetServer:IUnknown;
 
96
                 procedure InitServerData; virtual;
 
97
                 constructor Create(AOwner: TComponent); virtual;
 
98
                 Procedure Connect; virtual;
 
99
                 procedure Disconnect; virtual;
 
100
                 end;
 
101
 
 
102
 
 
103
  SysUINT    = Windows.UINT;
 
104
  SysINT     = Windows.WINT;
 
105
{$endif}
 
106
 
 
107
// *********************************************************************//
 
108
// GUIDS declared in the TypeLibrary. Following prefixes are used:
 
109
//   Type Libraries     : LIBID_xxxx
 
110
//   CoClasses          : CLASS_xxxx
 
111
//   DISPInterfaces     : DIID_xxxx
 
112
//   Non-DISP interfaces: IID_xxxx
 
113
// *********************************************************************//
 
114
 
 
115
const
 
116
  // TypeLibrary Major and minor versions
 
117
  ActiveDsMajorVersion = 1;
 
118
  ActiveDsMinorVersion = 0;
 
119
 
 
120
  LIBID_ActiveDs: TGUID = '{97D25DB0-0363-11CF-ABC4-02608C9E7553}';
 
121
 
 
122
  IID_IADs: TGUID = '{FD8256D0-FD15-11CE-ABC4-02608C9E7553}';
 
123
  IID_IADsContainer: TGUID = '{001677D0-FD16-11CE-ABC4-02608C9E7553}';
 
124
  IID_IADsCollection: TGUID = '{72B945E0-253B-11CF-A988-00AA006BC149}';
 
125
  IID_IADsMembers: TGUID = '{451A0030-72EC-11CF-B03B-00AA006E0975}';
 
126
  IID_IADsPropertyList: TGUID = '{C6F602B6-8F69-11D0-8528-00C04FD8D503}';
 
127
  IID_IADsPropertyEntry: TGUID = '{05792C8E-941F-11D0-8529-00C04FD8D503}';
 
128
  CLASS_PropertyEntry: TGUID = '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
 
129
  IID_IADsPropertyValue: TGUID = '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
 
130
  IID_IADsPropertyValue2: TGUID = '{306E831C-5BC7-11D1-A3B8-00C04FB950DC}';
 
131
  CLASS_PropertyValue: TGUID = '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
 
132
  IID_IPrivateDispatch: TGUID = '{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}';
 
133
  IID_ITypeInfo: TGUID = '{00020401-0000-0000-C000-000000000046}';
 
134
  IID_ITypeComp: TGUID = '{00020403-0000-0000-C000-000000000046}';
 
135
  IID_ITypeLib: TGUID = '{00020402-0000-0000-C000-000000000046}';
 
136
  IID_IPrivateUnknown: TGUID = '{89126BAB-6EAD-11D1-8C18-00C04FD8D503}';
 
137
  IID_IADsExtension: TGUID = '{3D35553C-D2B0-11D1-B17B-0000F87593A0}';
 
138
  IID_IADsDeleteOps: TGUID = '{B2BD0902-8878-11D1-8C21-00C04FD8D503}';
 
139
  IID_IADsNamespaces: TGUID = '{28B96BA0-B330-11CF-A9AD-00AA006BC149}';
 
140
  IID_IADsClass: TGUID = '{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}';
 
141
  IID_IADsProperty: TGUID = '{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}';
 
142
  IID_IADsSyntax: TGUID = '{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}';
 
143
  IID_IADsLocality: TGUID = '{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}';
 
144
  IID_IADsO: TGUID = '{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}';
 
145
  IID_IADsOU: TGUID = '{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}';
 
146
  IID_IADsDomain: TGUID = '{00E4C220-FD16-11CE-ABC4-02608C9E7553}';
 
147
  IID_IADsComputer: TGUID = '{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}';
 
148
  IID_IADsComputerOperations: TGUID = '{EF497680-1D9F-11CF-B1F3-02608C9E7553}';
 
149
  IID_IADsGroup: TGUID = '{27636B00-410F-11CF-B1FF-02608C9E7553}';
 
150
  IID_IADsUser: TGUID = '{3E37E320-17E2-11CF-ABC4-02608C9E7553}';
 
151
  IID_IADsPrintQueue: TGUID = '{B15160D0-1226-11CF-A985-00AA006BC149}';
 
152
  IID_IADsPrintQueueOperations: TGUID = '{124BE5C0-156E-11CF-A986-00AA006BC149}';
 
153
  IID_IADsPrintJob: TGUID = '{32FB6780-1ED0-11CF-A988-00AA006BC149}';
 
154
  IID_IADsPrintJobOperations: TGUID = '{9A52DB30-1ECF-11CF-A988-00AA006BC149}';
 
155
  IID_IADsService: TGUID = '{68AF66E0-31CA-11CF-A98A-00AA006BC149}';
 
156
  IID_IADsServiceOperations: TGUID = '{5D7B33F0-31CA-11CF-A98A-00AA006BC149}';
 
157
  IID_IADsFileService: TGUID = '{A89D1900-31CA-11CF-A98A-00AA006BC149}';
 
158
  IID_IADsFileServiceOperations: TGUID = '{A02DED10-31CA-11CF-A98A-00AA006BC149}';
 
159
  IID_IADsFileShare: TGUID = '{EB6DCAF0-4B83-11CF-A995-00AA006BC149}';
 
160
  IID_IADsSession: TGUID = '{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}';
 
161
  IID_IADsResource: TGUID = '{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}';
 
162
  IID_IADsOpenDSObject: TGUID = '{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}';
 
163
  IID_IDirectoryObject: TGUID = '{E798DE2C-22E4-11D0-84FE-00C04FD8D503}';
 
164
  IID_IDirectorySearch: TGUID = '{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}';
 
165
  IID_IDirectorySchemaMgmt: TGUID = '{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}';
 
166
  IID_IADsAggregatee: TGUID = '{1346CE8C-9039-11D0-8528-00C04FD8D503}';
 
167
  IID_IADsAggregator: TGUID = '{52DB5FB0-941F-11D0-8529-00C04FD8D503}';
 
168
  IID_IADsAccessControlEntry: TGUID = '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
 
169
  CLASS_AccessControlEntry: TGUID = '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
 
170
  IID_IADsAccessControlList: TGUID = '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
 
171
  CLASS_AccessControlList: TGUID = '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
 
172
  IID_IADsSecurityDescriptor: TGUID = '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
 
173
  CLASS_SecurityDescriptor: TGUID = '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
 
174
  IID_IADsLargeInteger: TGUID = '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
 
175
  CLASS_LargeInteger: TGUID = '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
 
176
  IID_IADsNameTranslate: TGUID = '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
 
177
  CLASS_NameTranslate: TGUID = '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
 
178
  IID_IADsCaseIgnoreList: TGUID = '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
 
179
  CLASS_CaseIgnoreList: TGUID = '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
 
180
  IID_IADsFaxNumber: TGUID = '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
 
181
  CLASS_FaxNumber: TGUID = '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
 
182
  IID_IADsNetAddress: TGUID = '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
 
183
  CLASS_NetAddress: TGUID = '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
 
184
  IID_IADsOctetList: TGUID = '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
 
185
  CLASS_OctetList: TGUID = '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
 
186
  IID_IADsEmail: TGUID = '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
 
187
  CLASS_Email: TGUID = '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
 
188
  IID_IADsPath: TGUID = '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
 
189
  CLASS_Path: TGUID = '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
 
190
  IID_IADsReplicaPointer: TGUID = '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
 
191
  CLASS_ReplicaPointer: TGUID = '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
 
192
  IID_IADsAcl: TGUID = '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
 
193
  CLASS_Acl: TGUID = '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
 
194
  IID_IADsTimestamp: TGUID = '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
 
195
  CLASS_Timestamp: TGUID = '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
 
196
  IID_IADsPostalAddress: TGUID = '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
 
197
  CLASS_PostalAddress: TGUID = '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
 
198
  IID_IADsBackLink: TGUID = '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
 
199
  CLASS_BackLink: TGUID = '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
 
200
  IID_IADsTypedName: TGUID = '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
 
201
  CLASS_TypedName: TGUID = '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
 
202
  IID_IADsHold: TGUID = '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
 
203
  CLASS_Hold: TGUID = '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
 
204
  IID_IADsObjectOptions: TGUID = '{46F14FDA-232B-11D1-A808-00C04FD8D5A8}';
 
205
  IID_IADsPathname: TGUID = '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
 
206
  CLASS_Pathname: TGUID = '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
 
207
  IID_IADsADSystemInfo: TGUID = '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
 
208
  CLASS_ADSystemInfo: TGUID = '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
 
209
  IID_IADsWinNTSystemInfo: TGUID = '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
 
210
  CLASS_WinNTSystemInfo: TGUID = '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
 
211
  IID_IADsDNWithBinary: TGUID = '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
 
212
  CLASS_DNWithBinary: TGUID = '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
 
213
  IID_IADsDNWithString: TGUID = '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
 
214
  CLASS_DNWithString: TGUID = '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
 
215
 
 
216
// *********************************************************************//
 
217
// Declaration of Enumerations defined in Type Library
 
218
// *********************************************************************//
 
219
// Constants for enum __MIDL___MIDL_itf_ads_0000_0001
 
220
type
 
221
  __MIDL___MIDL_itf_ads_0000_0001 = TOleEnum;
 
222
const
 
223
  ADSTYPE_INVALID = $00000000;
 
224
  ADSTYPE_DN_STRING = $00000001;
 
225
  ADSTYPE_CASE_EXACT_STRING = $00000002;
 
226
  ADSTYPE_CASE_IGNORE_STRING = $00000003;
 
227
  ADSTYPE_PRINTABLE_STRING = $00000004;
 
228
  ADSTYPE_NUMERIC_STRING = $00000005;
 
229
  ADSTYPE_BOOLEAN = $00000006;
 
230
  ADSTYPE_INTEGER = $00000007;
 
231
  ADSTYPE_OCTET_STRING = $00000008;
 
232
  ADSTYPE_UTC_TIME = $00000009;
 
233
  ADSTYPE_LARGE_INTEGER = $0000000A;
 
234
  ADSTYPE_PROV_SPECIFIC = $0000000B;
 
235
  ADSTYPE_OBJECT_CLASS = $0000000C;
 
236
  ADSTYPE_CASEIGNORE_LIST = $0000000D;
 
237
  ADSTYPE_OCTET_LIST = $0000000E;
 
238
  ADSTYPE_PATH = $0000000F;
 
239
  ADSTYPE_POSTALADDRESS = $00000010;
 
240
  ADSTYPE_TIMESTAMP = $00000011;
 
241
  ADSTYPE_BACKLINK = $00000012;
 
242
  ADSTYPE_TYPEDNAME = $00000013;
 
243
  ADSTYPE_HOLD = $00000014;
 
244
  ADSTYPE_NETADDRESS = $00000015;
 
245
  ADSTYPE_REPLICAPOINTER = $00000016;
 
246
  ADSTYPE_FAXNUMBER = $00000017;
 
247
  ADSTYPE_EMAIL = $00000018;
 
248
  ADSTYPE_NT_SECURITY_DESCRIPTOR = $00000019;
 
249
  ADSTYPE_UNKNOWN = $0000001A;
 
250
  ADSTYPE_DN_WITH_BINARY = $0000001B;
 
251
  ADSTYPE_DN_WITH_STRING = $0000001C;
 
252
 
 
253
// Constants for enum __MIDL___MIDL_itf_ads_0000_0018
 
254
type
 
255
  __MIDL___MIDL_itf_ads_0000_0018 = TOleEnum;
 
256
const
 
257
  ADS_SECURE_AUTHENTICATION = $00000001;
 
258
  ADS_USE_ENCRYPTION = $00000002;
 
259
  ADS_USE_SSL = $00000002;
 
260
  ADS_READONLY_SERVER = $00000004;
 
261
  ADS_PROMPT_CREDENTIALS = $00000008;
 
262
  ADS_NO_AUTHENTICATION = $00000010;
 
263
  ADS_FAST_BIND = $00000020;
 
264
  ADS_USE_SIGNING = $00000040;
 
265
  ADS_USE_SEALING = $00000080;
 
266
  ADS_USE_DELEGATION = $00000100;
 
267
  ADS_AUTH_RESERVED = $80000000;
 
268
 
 
269
// Constants for enum __MIDL___MIDL_itf_ads_0000_0019
 
270
type
 
271
  __MIDL___MIDL_itf_ads_0000_0019 = TOleEnum;
 
272
const
 
273
  ADS_STATUS_S_OK = $00000000;
 
274
  ADS_STATUS_INVALID_SEARCHPREF = $00000001;
 
275
  ADS_STATUS_INVALID_SEARCHPREFVALUE = $00000002;
 
276
 
 
277
// Constants for enum __MIDL___MIDL_itf_ads_0000_0020
 
278
type
 
279
  __MIDL___MIDL_itf_ads_0000_0020 = TOleEnum;
 
280
const
 
281
  ADS_DEREF_NEVER = $00000000;
 
282
  ADS_DEREF_SEARCHING = $00000001;
 
283
  ADS_DEREF_FINDING = $00000002;
 
284
  ADS_DEREF_ALWAYS = $00000003;
 
285
 
 
286
// Constants for enum __MIDL___MIDL_itf_ads_0000_0021
 
287
type
 
288
  __MIDL___MIDL_itf_ads_0000_0021 = TOleEnum;
 
289
const
 
290
  ADS_SCOPE_BASE = $00000000;
 
291
  ADS_SCOPE_ONELEVEL = $00000001;
 
292
  ADS_SCOPE_SUBTREE = $00000002;
 
293
 
 
294
// Constants for enum __MIDL___MIDL_itf_ads_0000_0022
 
295
type
 
296
  __MIDL___MIDL_itf_ads_0000_0022 = TOleEnum;
 
297
const
 
298
  ADSIPROP_ASYNCHRONOUS = $00000000;
 
299
  ADSIPROP_DEREF_ALIASES = $00000001;
 
300
  ADSIPROP_SIZE_LIMIT = $00000002;
 
301
  ADSIPROP_TIME_LIMIT = $00000003;
 
302
  ADSIPROP_ATTRIBTYPES_ONLY = $00000004;
 
303
  ADSIPROP_SEARCH_SCOPE = $00000005;
 
304
  ADSIPROP_TIMEOUT = $00000006;
 
305
  ADSIPROP_PAGESIZE = $00000007;
 
306
  ADSIPROP_PAGED_TIME_LIMIT = $00000008;
 
307
  ADSIPROP_CHASE_REFERRALS = $00000009;
 
308
  ADSIPROP_SORT_ON = $0000000A;
 
309
  ADSIPROP_CACHE_RESULTS = $0000000B;
 
310
  ADSIPROP_ADSIFLAG = $0000000C;
 
311
 
 
312
// Constants for enum __MIDL___MIDL_itf_ads_0000_0023
 
313
type
 
314
  __MIDL___MIDL_itf_ads_0000_0023 = TOleEnum;
 
315
const
 
316
  ADSI_DIALECT_LDAP = $00000000;
 
317
  ADSI_DIALECT_SQL = $00000001;
 
318
 
 
319
// Constants for enum __MIDL___MIDL_itf_ads_0000_0024
 
320
type
 
321
  __MIDL___MIDL_itf_ads_0000_0024 = TOleEnum;
 
322
const
 
323
  ADS_CHASE_REFERRALS_NEVER = $00000000;
 
324
  ADS_CHASE_REFERRALS_SUBORDINATE = $00000020;
 
325
  ADS_CHASE_REFERRALS_EXTERNAL = $00000040;
 
326
  ADS_CHASE_REFERRALS_ALWAYS = $00000060;
 
327
 
 
328
// Constants for enum __MIDL___MIDL_itf_ads_0000_0025
 
329
type
 
330
  __MIDL___MIDL_itf_ads_0000_0025 = TOleEnum;
 
331
const
 
332
  ADS_SEARCHPREF_ASYNCHRONOUS = $00000000;
 
333
  ADS_SEARCHPREF_DEREF_ALIASES = $00000001;
 
334
  ADS_SEARCHPREF_SIZE_LIMIT = $00000002;
 
335
  ADS_SEARCHPREF_TIME_LIMIT = $00000003;
 
336
  ADS_SEARCHPREF_ATTRIBTYPES_ONLY = $00000004;
 
337
  ADS_SEARCHPREF_SEARCH_SCOPE = $00000005;
 
338
  ADS_SEARCHPREF_TIMEOUT = $00000006;
 
339
  ADS_SEARCHPREF_PAGESIZE = $00000007;
 
340
  ADS_SEARCHPREF_PAGED_TIME_LIMIT = $00000008;
 
341
  ADS_SEARCHPREF_CHASE_REFERRALS = $00000009;
 
342
  ADS_SEARCHPREF_SORT_ON = $0000000A;
 
343
  ADS_SEARCHPREF_CACHE_RESULTS = $0000000B;
 
344
  ADS_SEARCHPREF_DIRSYNC = $0000000C;
 
345
  ADS_SEARCHPREF_TOMBSTONE = $0000000D;
 
346
 
 
347
// Constants for enum __MIDL___MIDL_itf_ads_0000_0026
 
348
type
 
349
  __MIDL___MIDL_itf_ads_0000_0026 = TOleEnum;
 
350
const
 
351
  ADS_PROPERTY_CLEAR = $00000001;
 
352
  ADS_PROPERTY_UPDATE = $00000002;
 
353
  ADS_PROPERTY_APPEND = $00000003;
 
354
  ADS_PROPERTY_DELETE = $00000004;
 
355
 
 
356
// Constants for enum tagTYPEKIND
 
357
type
 
358
  tagTYPEKIND = TOleEnum;
 
359
const
 
360
  TKIND_ENUM = $00000000;
 
361
  TKIND_RECORD = $00000001;
 
362
  TKIND_MODULE = $00000002;
 
363
  TKIND_INTERFACE = $00000003;
 
364
  TKIND_DISPATCH = $00000004;
 
365
  TKIND_COCLASS = $00000005;
 
366
  TKIND_ALIAS = $00000006;
 
367
  TKIND_UNION = $00000007;
 
368
  TKIND_MAX = $00000008;
 
369
 
 
370
// Constants for enum tagDESCKIND
 
371
type
 
372
  tagDESCKIND = TOleEnum;
 
373
const
 
374
  DESCKIND_NONE = $00000000;
 
375
  DESCKIND_FUNCDESC = $00000001;
 
376
  DESCKIND_VARDESC = $00000002;
 
377
  DESCKIND_TYPECOMP = $00000003;
 
378
  DESCKIND_IMPLICITAPPOBJ = $00000004;
 
379
  DESCKIND_MAX = $00000005;
 
380
 
 
381
// Constants for enum tagFUNCKIND
 
382
type
 
383
  tagFUNCKIND = TOleEnum;
 
384
const
 
385
  FUNC_VIRTUAL = $00000000;
 
386
  FUNC_PUREVIRTUAL = $00000001;
 
387
  FUNC_NONVIRTUAL = $00000002;
 
388
  FUNC_STATIC = $00000003;
 
389
  FUNC_DISPATCH = $00000004;
 
390
 
 
391
// Constants for enum tagINVOKEKIND
 
392
type
 
393
  tagINVOKEKIND = TOleEnum;
 
394
const
 
395
  INVOKE_FUNC = $00000001;
 
396
  INVOKE_PROPERTYGET = $00000002;
 
397
  INVOKE_PROPERTYPUT = $00000004;
 
398
  INVOKE_PROPERTYPUTREF = $00000008;
 
399
 
 
400
// Constants for enum tagCALLCONV
 
401
type
 
402
  tagCALLCONV = TOleEnum;
 
403
const
 
404
  CC_FASTCALL = $00000000;
 
405
  CC_CDECL = $00000001;
 
406
  CC_MSCPASCAL = $00000002;
 
407
  CC_PASCAL = $00000002;
 
408
  CC_MACPASCAL = $00000003;
 
409
  CC_STDCALL = $00000004;
 
410
  CC_FPFASTCALL = $00000005;
 
411
  CC_SYSCALL = $00000006;
 
412
  CC_MPWCDECL = $00000007;
 
413
  CC_MPWPASCAL = $00000008;
 
414
  CC_MAX = $00000009;
 
415
 
 
416
// Constants for enum tagVARKIND
 
417
type
 
418
  tagVARKIND = TOleEnum;
 
419
const
 
420
  VAR_PERINSTANCE = $00000000;
 
421
  VAR_STATIC = $00000001;
 
422
  VAR_CONST = $00000002;
 
423
  VAR_DISPATCH = $00000003;
 
424
 
 
425
// Constants for enum tagSYSKIND
 
426
type
 
427
  tagSYSKIND = TOleEnum;
 
428
const
 
429
  SYS_WIN16 = $00000000;
 
430
  SYS_WIN32 = $00000001;
 
431
  SYS_MAC = $00000002;
 
432
  SYS_WIN64 = $00000001;
 
433
 
 
434
// Constants for enum __MIDL___MIDL_itf_ads_0120_0001
 
435
type
 
436
  __MIDL___MIDL_itf_ads_0120_0001 = TOleEnum;
 
437
const
 
438
  ADS_SYSTEMFLAG_DISALLOW_DELETE = $80000000;
 
439
  ADS_SYSTEMFLAG_CONFIG_ALLOW_RENAME = $40000000;
 
440
  ADS_SYSTEMFLAG_CONFIG_ALLOW_MOVE = $20000000;
 
441
  ADS_SYSTEMFLAG_CONFIG_ALLOW_LIMITED_MOVE = $10000000;
 
442
  ADS_SYSTEMFLAG_DOMAIN_DISALLOW_RENAME = $08000000;
 
443
  ADS_SYSTEMFLAG_DOMAIN_DISALLOW_MOVE = $04000000;
 
444
  ADS_SYSTEMFLAG_CR_NTDS_NC = $00000001;
 
445
  ADS_SYSTEMFLAG_CR_NTDS_DOMAIN = $00000002;
 
446
  ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED = $00000001;
 
447
  ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = $00000004;
 
448
 
 
449
// Constants for enum __MIDL___MIDL_itf_ads_0126_0001
 
450
type
 
451
  __MIDL___MIDL_itf_ads_0126_0001 = TOleEnum;
 
452
const
 
453
  ADS_GROUP_TYPE_GLOBAL_GROUP = $00000002;
 
454
  ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = $00000004;
 
455
  ADS_GROUP_TYPE_LOCAL_GROUP = $00000004;
 
456
  ADS_GROUP_TYPE_UNIVERSAL_GROUP = $00000008;
 
457
  ADS_GROUP_TYPE_SECURITY_ENABLED = $80000000;
 
458
 
 
459
// Constants for enum ADS_USER_FLAG
 
460
type
 
461
  ADS_USER_FLAG = TOleEnum;
 
462
const
 
463
  ADS_UF_SCRIPT = $00000001;
 
464
  ADS_UF_ACCOUNTDISABLE = $00000002;
 
465
  ADS_UF_HOMEDIR_REQUIRED = $00000008;
 
466
  ADS_UF_LOCKOUT = $00000010;
 
467
  ADS_UF_PASSWD_NOTREQD = $00000020;
 
468
  ADS_UF_PASSWD_CANT_CHANGE = $00000040;
 
469
  ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = $00000080;
 
470
  ADS_UF_TEMP_DUPLICATE_ACCOUNT = $00000100;
 
471
  ADS_UF_NORMAL_ACCOUNT = $00000200;
 
472
  ADS_UF_INTERDOMAIN_TRUST_ACCOUNT = $00000800;
 
473
  ADS_UF_WORKSTATION_TRUST_ACCOUNT = $00001000;
 
474
  ADS_UF_SERVER_TRUST_ACCOUNT = $00002000;
 
475
  ADS_UF_DONT_EXPIRE_PASSWD = $00010000;
 
476
  ADS_UF_MNS_LOGON_ACCOUNT = $00020000;
 
477
  ADS_UF_SMARTCARD_REQUIRED = $00040000;
 
478
  ADS_UF_TRUSTED_FOR_DELEGATION = $00080000;
 
479
  ADS_UF_NOT_DELEGATED = $00100000;
 
480
 
 
481
// Constants for enum __MIDL___MIDL_itf_ads_0148_0001
 
482
type
 
483
  __MIDL___MIDL_itf_ads_0148_0001 = TOleEnum;
 
484
const
 
485
  ADS_RIGHT_DELETE = $00010000;
 
486
  ADS_RIGHT_READ_CONTROL = $00020000;
 
487
  ADS_RIGHT_WRITE_DAC = $00040000;
 
488
  ADS_RIGHT_WRITE_OWNER = $00080000;
 
489
  ADS_RIGHT_SYNCHRONIZE = $00100000;
 
490
  ADS_RIGHT_ACCESS_SYSTEM_SECURITY = $01000000;
 
491
  ADS_RIGHT_GENERIC_READ = $80000000;
 
492
  ADS_RIGHT_GENERIC_WRITE = $40000000;
 
493
  ADS_RIGHT_GENERIC_EXECUTE = $20000000;
 
494
  ADS_RIGHT_GENERIC_ALL = $10000000;
 
495
  ADS_RIGHT_DS_CREATE_CHILD = $00000001;
 
496
  ADS_RIGHT_DS_DELETE_CHILD = $00000002;
 
497
  ADS_RIGHT_ACTRL_DS_LIST = $00000004;
 
498
  ADS_RIGHT_DS_SELF = $00000008;
 
499
  ADS_RIGHT_DS_READ_PROP = $00000010;
 
500
  ADS_RIGHT_DS_WRITE_PROP = $00000020;
 
501
  ADS_RIGHT_DS_DELETE_TREE = $00000040;
 
502
  ADS_RIGHT_DS_LIST_OBJECT = $00000080;
 
503
  ADS_RIGHT_DS_CONTROL_ACCESS = $00000100;
 
504
 
 
505
// Constants for enum __MIDL___MIDL_itf_ads_0148_0002
 
506
type
 
507
  __MIDL___MIDL_itf_ads_0148_0002 = TOleEnum;
 
508
const
 
509
  ADS_ACETYPE_ACCESS_ALLOWED = $00000000;
 
510
  ADS_ACETYPE_ACCESS_DENIED = $00000001;
 
511
  ADS_ACETYPE_SYSTEM_AUDIT = $00000002;
 
512
  ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = $00000005;
 
513
  ADS_ACETYPE_ACCESS_DENIED_OBJECT = $00000006;
 
514
  ADS_ACETYPE_SYSTEM_AUDIT_OBJECT = $00000007;
 
515
 
 
516
// Constants for enum __MIDL___MIDL_itf_ads_0148_0003
 
517
type
 
518
  __MIDL___MIDL_itf_ads_0148_0003 = TOleEnum;
 
519
const
 
520
  ADS_ACEFLAG_INHERIT_ACE = $00000002;
 
521
  ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE = $00000004;
 
522
  ADS_ACEFLAG_INHERIT_ONLY_ACE = $00000008;
 
523
  ADS_ACEFLAG_INHERITED_ACE = $00000010;
 
524
  ADS_ACEFLAG_VALID_INHERIT_FLAGS = $0000001F;
 
525
  ADS_ACEFLAG_SUCCESSFUL_ACCESS = $00000040;
 
526
  ADS_ACEFLAG_FAILED_ACCESS = $00000080;
 
527
 
 
528
// Constants for enum __MIDL___MIDL_itf_ads_0148_0004
 
529
type
 
530
  __MIDL___MIDL_itf_ads_0148_0004 = TOleEnum;
 
531
const
 
532
  ADS_FLAG_OBJECT_TYPE_PRESENT = $00000001;
 
533
  ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = $00000002;
 
534
 
 
535
// Constants for enum __MIDL___MIDL_itf_ads_0148_0005
 
536
type
 
537
  __MIDL___MIDL_itf_ads_0148_0005 = TOleEnum;
 
538
const
 
539
  ADS_SD_CONTROL_SE_OWNER_DEFAULTED = $00000001;
 
540
  ADS_SD_CONTROL_SE_GROUP_DEFAULTED = $00000002;
 
541
  ADS_SD_CONTROL_SE_DACL_PRESENT = $00000004;
 
542
  ADS_SD_CONTROL_SE_DACL_DEFAULTED = $00000008;
 
543
  ADS_SD_CONTROL_SE_SACL_PRESENT = $00000010;
 
544
  ADS_SD_CONTROL_SE_SACL_DEFAULTED = $00000020;
 
545
  ADS_SD_CONTROL_SE_DACL_AUTO_INHERIT_REQ = $00000100;
 
546
  ADS_SD_CONTROL_SE_SACL_AUTO_INHERIT_REQ = $00000200;
 
547
  ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED = $00000400;
 
548
  ADS_SD_CONTROL_SE_SACL_AUTO_INHERITED = $00000800;
 
549
  ADS_SD_CONTROL_SE_DACL_PROTECTED = $00001000;
 
550
  ADS_SD_CONTROL_SE_SACL_PROTECTED = $00002000;
 
551
  ADS_SD_CONTROL_SE_SELF_RELATIVE = $00008000;
 
552
 
 
553
// Constants for enum __MIDL___MIDL_itf_ads_0148_0006
 
554
type
 
555
  __MIDL___MIDL_itf_ads_0148_0006 = TOleEnum;
 
556
const
 
557
  ADS_SD_REVISION_DS = $00000004;
 
558
 
 
559
// Constants for enum __MIDL___MIDL_itf_ads_0149_0001
 
560
type
 
561
  __MIDL___MIDL_itf_ads_0149_0001 = TOleEnum;
 
562
const
 
563
  ADS_NAME_TYPE_1779 = $00000001;
 
564
  ADS_NAME_TYPE_CANONICAL = $00000002;
 
565
  ADS_NAME_TYPE_NT4 = $00000003;
 
566
  ADS_NAME_TYPE_DISPLAY = $00000004;
 
567
  ADS_NAME_TYPE_DOMAIN_SIMPLE = $00000005;
 
568
  ADS_NAME_TYPE_ENTERPRISE_SIMPLE = $00000006;
 
569
  ADS_NAME_TYPE_GUID = $00000007;
 
570
  ADS_NAME_TYPE_UNKNOWN = $00000008;
 
571
  ADS_NAME_TYPE_USER_PRINCIPAL_NAME = $00000009;
 
572
  ADS_NAME_TYPE_CANONICAL_EX = $0000000A;
 
573
  ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME = $0000000B;
 
574
  ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = $0000000C;
 
575
 
 
576
// Constants for enum __MIDL___MIDL_itf_ads_0149_0002
 
577
type
 
578
  __MIDL___MIDL_itf_ads_0149_0002 = TOleEnum;
 
579
const
 
580
  ADS_NAME_INITTYPE_DOMAIN = $00000001;
 
581
  ADS_NAME_INITTYPE_SERVER = $00000002;
 
582
  ADS_NAME_INITTYPE_GC = $00000003;
 
583
 
 
584
// Constants for enum __MIDL___MIDL_itf_ads_0163_0001
 
585
type
 
586
  __MIDL___MIDL_itf_ads_0163_0001 = TOleEnum;
 
587
const
 
588
  ADS_OPTION_SERVERNAME = $00000000;
 
589
  ADS_OPTION_REFERRALS = $00000001;
 
590
  ADS_OPTION_PAGE_SIZE = $00000002;
 
591
  ADS_OPTION_SECURITY_MASK = $00000003;
 
592
  ADS_OPTION_MUTUAL_AUTH_STATUS = $00000004;
 
593
 
 
594
// Constants for enum __MIDL___MIDL_itf_ads_0163_0002
 
595
type
 
596
  __MIDL___MIDL_itf_ads_0163_0002 = TOleEnum;
 
597
const
 
598
  ADS_SECURITY_INFO_OWNER = $00000001;
 
599
  ADS_SECURITY_INFO_GROUP = $00000002;
 
600
  ADS_SECURITY_INFO_DACL = $00000004;
 
601
  ADS_SECURITY_INFO_SACL = $00000008;
 
602
 
 
603
// Constants for enum __MIDL___MIDL_itf_ads_0164_0001
 
604
type
 
605
  __MIDL___MIDL_itf_ads_0164_0001 = TOleEnum;
 
606
const
 
607
  ADS_SETTYPE_FULL = $00000001;
 
608
  ADS_SETTYPE_PROVIDER = $00000002;
 
609
  ADS_SETTYPE_SERVER = $00000003;
 
610
  ADS_SETTYPE_DN = $00000004;
 
611
 
 
612
// Constants for enum __MIDL___MIDL_itf_ads_0164_0002
 
613
type
 
614
  __MIDL___MIDL_itf_ads_0164_0002 = TOleEnum;
 
615
const
 
616
  ADS_FORMAT_WINDOWS = $00000001;
 
617
  ADS_FORMAT_WINDOWS_NO_SERVER = $00000002;
 
618
  ADS_FORMAT_WINDOWS_DN = $00000003;
 
619
  ADS_FORMAT_WINDOWS_PARENT = $00000004;
 
620
  ADS_FORMAT_X500 = $00000005;
 
621
  ADS_FORMAT_X500_NO_SERVER = $00000006;
 
622
  ADS_FORMAT_X500_DN = $00000007;
 
623
  ADS_FORMAT_X500_PARENT = $00000008;
 
624
  ADS_FORMAT_SERVER = $00000009;
 
625
  ADS_FORMAT_PROVIDER = $0000000A;
 
626
  ADS_FORMAT_LEAF = $0000000B;
 
627
 
 
628
// Constants for enum __MIDL___MIDL_itf_ads_0164_0003
 
629
type
 
630
  __MIDL___MIDL_itf_ads_0164_0003 = TOleEnum;
 
631
const
 
632
  ADS_DISPLAY_FULL = $00000001;
 
633
  ADS_DISPLAY_VALUE_ONLY = $00000002;
 
634
 
 
635
// Constants for enum __MIDL___MIDL_itf_ads_0164_0004
 
636
type
 
637
  __MIDL___MIDL_itf_ads_0164_0004 = TOleEnum;
 
638
const
 
639
  ADS_ESCAPEDMODE_DEFAULT = $00000001;
 
640
  ADS_ESCAPEDMODE_ON = $00000002;
 
641
  ADS_ESCAPEDMODE_OFF = $00000003;
 
642
  ADS_ESCAPEDMODE_OFF_EX = $00000004;
 
643
 
 
644
type
 
645
 
 
646
// *********************************************************************//
 
647
// Forward declaration of types defined in TypeLibrary
 
648
// *********************************************************************//
 
649
  IADs = interface;
 
650
  {$ifdef SUPPORTS_DISPINTERFACE}
 
651
  IADsDisp = dispinterface;
 
652
  {$endif}
 
653
  IADsContainer = interface;
 
654
  {$ifdef SUPPORTS_DISPINTERFACE}
 
655
  IADsContainerDisp = dispinterface;
 
656
  {$endif}
 
657
  IADsCollection = interface;
 
658
  {$ifdef SUPPORTS_DISPINTERFACE}
 
659
  IADsCollectionDisp = dispinterface;
 
660
  {$endif}
 
661
  IADsMembers = interface;
 
662
  {$ifdef SUPPORTS_DISPINTERFACE}
 
663
  IADsMembersDisp = dispinterface;
 
664
  {$endif}
 
665
  IADsPropertyList = interface;
 
666
  {$ifdef SUPPORTS_DISPINTERFACE}
 
667
  IADsPropertyListDisp = dispinterface;
 
668
  {$endif}
 
669
  IADsPropertyEntry = interface;
 
670
  {$ifdef SUPPORTS_DISPINTERFACE}
 
671
  IADsPropertyEntryDisp = dispinterface;
 
672
  {$endif}
 
673
  IADsPropertyValue = interface;
 
674
  {$ifdef SUPPORTS_DISPINTERFACE}
 
675
  IADsPropertyValueDisp = dispinterface;
 
676
  {$endif}
 
677
  IADsPropertyValue2 = interface;
 
678
  {$ifdef SUPPORTS_DISPINTERFACE}
 
679
  IADsPropertyValue2Disp = dispinterface;
 
680
  {$endif}
 
681
  IPrivateDispatch = interface;
 
682
  ITypeInfo = interface;
 
683
  ITypeComp = interface;
 
684
  ITypeLib = interface;
 
685
  IPrivateUnknown = interface;
 
686
  IADsExtension = interface;
 
687
  IADsDeleteOps = interface;
 
688
  {$ifdef SUPPORTS_DISPINTERFACE}
 
689
  IADsDeleteOpsDisp = dispinterface;
 
690
  {$endif}
 
691
  IADsNamespaces = interface;
 
692
  {$ifdef SUPPORTS_DISPINTERFACE}
 
693
  IADsNamespacesDisp = dispinterface;
 
694
  {$endif}
 
695
  IADsClass = interface;
 
696
  {$ifdef SUPPORTS_DISPINTERFACE}
 
697
  IADsClassDisp = dispinterface;
 
698
  {$endif}
 
699
  IADsProperty = interface;
 
700
  {$ifdef SUPPORTS_DISPINTERFACE}
 
701
  IADsPropertyDisp = dispinterface;
 
702
  {$endif}
 
703
  IADsSyntax = interface;
 
704
  {$ifdef SUPPORTS_DISPINTERFACE}
 
705
  IADsSyntaxDisp = dispinterface;
 
706
  {$endif}
 
707
  IADsLocality = interface;
 
708
  {$ifdef SUPPORTS_DISPINTERFACE}
 
709
  IADsLocalityDisp = dispinterface;
 
710
  {$endif}
 
711
  IADsO = interface;
 
712
  {$ifdef SUPPORTS_DISPINTERFACE}
 
713
  IADsODisp = dispinterface;
 
714
  {$endif}
 
715
  IADsOU = interface;
 
716
  {$ifdef SUPPORTS_DISPINTERFACE}
 
717
  IADsOUDisp = dispinterface;
 
718
  {$endif}
 
719
  IADsDomain = interface;
 
720
  {$ifdef SUPPORTS_DISPINTERFACE}
 
721
  IADsDomainDisp = dispinterface;
 
722
  {$endif}
 
723
  IADsComputer = interface;
 
724
  {$ifdef SUPPORTS_DISPINTERFACE}
 
725
  IADsComputerDisp = dispinterface;
 
726
  {$endif}
 
727
  IADsComputerOperations = interface;
 
728
  {$ifdef SUPPORTS_DISPINTERFACE}
 
729
  IADsComputerOperationsDisp = dispinterface;
 
730
  {$endif}
 
731
  IADsGroup = interface;
 
732
  {$ifdef SUPPORTS_DISPINTERFACE}
 
733
  IADsGroupDisp = dispinterface;
 
734
  {$endif}
 
735
  IADsUser = interface;
 
736
  {$ifdef SUPPORTS_DISPINTERFACE}
 
737
  IADsUserDisp = dispinterface;
 
738
  {$endif}
 
739
  IADsPrintQueue = interface;
 
740
  {$ifdef SUPPORTS_DISPINTERFACE}
 
741
  IADsPrintQueueDisp = dispinterface;
 
742
  {$endif}
 
743
  IADsPrintQueueOperations = interface;
 
744
  {$ifdef SUPPORTS_DISPINTERFACE}
 
745
  IADsPrintQueueOperationsDisp = dispinterface;
 
746
  {$endif}
 
747
  IADsPrintJob = interface;
 
748
  {$ifdef SUPPORTS_DISPINTERFACE}
 
749
  IADsPrintJobDisp = dispinterface;
 
750
  {$endif}
 
751
  IADsPrintJobOperations = interface;
 
752
  {$ifdef SUPPORTS_DISPINTERFACE}
 
753
  IADsPrintJobOperationsDisp = dispinterface;
 
754
  {$endif}
 
755
  IADsService = interface;
 
756
  {$ifdef SUPPORTS_DISPINTERFACE}
 
757
  IADsServiceDisp = dispinterface;
 
758
  {$endif}
 
759
  IADsServiceOperations = interface;
 
760
  {$ifdef SUPPORTS_DISPINTERFACE}
 
761
  IADsServiceOperationsDisp = dispinterface;
 
762
  {$endif}
 
763
  IADsFileService = interface;
 
764
  {$ifdef SUPPORTS_DISPINTERFACE}
 
765
  IADsFileServiceDisp = dispinterface;
 
766
  {$endif}
 
767
  IADsFileServiceOperations = interface;
 
768
  {$ifdef SUPPORTS_DISPINTERFACE}
 
769
  IADsFileServiceOperationsDisp = dispinterface;
 
770
  {$endif}
 
771
  IADsFileShare = interface;
 
772
  {$ifdef SUPPORTS_DISPINTERFACE}
 
773
  IADsFileShareDisp = dispinterface;
 
774
  {$endif}
 
775
  IADsSession = interface;
 
776
  {$ifdef SUPPORTS_DISPINTERFACE}
 
777
  IADsSessionDisp = dispinterface;
 
778
  {$endif}
 
779
  IADsResource = interface;
 
780
  {$ifdef SUPPORTS_DISPINTERFACE}
 
781
  IADsResourceDisp = dispinterface;
 
782
  {$endif}
 
783
  IADsOpenDSObject = interface;
 
784
  {$ifdef SUPPORTS_DISPINTERFACE}
 
785
  IADsOpenDSObjectDisp = dispinterface;
 
786
  {$endif}
 
787
  IDirectoryObject = interface;
 
788
  IDirectorySearch = interface;
 
789
  IDirectorySchemaMgmt = interface;
 
790
  IADsAggregatee = interface;
 
791
  IADsAggregator = interface;
 
792
  IADsAccessControlEntry = interface;
 
793
  {$ifdef SUPPORTS_DISPINTERFACE}
 
794
  IADsAccessControlEntryDisp = dispinterface;
 
795
  {$endif}
 
796
  IADsAccessControlList = interface;
 
797
  {$ifdef SUPPORTS_DISPINTERFACE}
 
798
  IADsAccessControlListDisp = dispinterface;
 
799
  {$endif}
 
800
  IADsSecurityDescriptor = interface;
 
801
  {$ifdef SUPPORTS_DISPINTERFACE}
 
802
  IADsSecurityDescriptorDisp = dispinterface;
 
803
  {$endif}
 
804
  IADsLargeInteger = interface;
 
805
  {$ifdef SUPPORTS_DISPINTERFACE}
 
806
  IADsLargeIntegerDisp = dispinterface;
 
807
  {$endif}
 
808
  IADsNameTranslate = interface;
 
809
  {$ifdef SUPPORTS_DISPINTERFACE}
 
810
  IADsNameTranslateDisp = dispinterface;
 
811
  {$endif}
 
812
  IADsCaseIgnoreList = interface;
 
813
  {$ifdef SUPPORTS_DISPINTERFACE}
 
814
  IADsCaseIgnoreListDisp = dispinterface;
 
815
  {$endif}
 
816
  IADsFaxNumber = interface;
 
817
  {$ifdef SUPPORTS_DISPINTERFACE}
 
818
  IADsFaxNumberDisp = dispinterface;
 
819
  {$endif}
 
820
  IADsNetAddress = interface;
 
821
  {$ifdef SUPPORTS_DISPINTERFACE}
 
822
  IADsNetAddressDisp = dispinterface;
 
823
  {$endif}
 
824
  IADsOctetList = interface;
 
825
  {$ifdef SUPPORTS_DISPINTERFACE}
 
826
  IADsOctetListDisp = dispinterface;
 
827
  {$endif}
 
828
  IADsEmail = interface;
 
829
  {$ifdef SUPPORTS_DISPINTERFACE}
 
830
  IADsEmailDisp = dispinterface;
 
831
  {$endif}
 
832
  IADsPath = interface;
 
833
  {$ifdef SUPPORTS_DISPINTERFACE}
 
834
  IADsPathDisp = dispinterface;
 
835
  {$endif}
 
836
  IADsReplicaPointer = interface;
 
837
  {$ifdef SUPPORTS_DISPINTERFACE}
 
838
  IADsReplicaPointerDisp = dispinterface;
 
839
  {$endif}
 
840
  IADsAcl = interface;
 
841
  {$ifdef SUPPORTS_DISPINTERFACE}
 
842
  IADsAclDisp = dispinterface;
 
843
  {$endif}
 
844
  IADsTimestamp = interface;
 
845
  {$ifdef SUPPORTS_DISPINTERFACE}
 
846
  IADsTimestampDisp = dispinterface;
 
847
  {$endif}
 
848
  IADsPostalAddress = interface;
 
849
  {$ifdef SUPPORTS_DISPINTERFACE}
 
850
  IADsPostalAddressDisp = dispinterface;
 
851
  {$endif}
 
852
  IADsBackLink = interface;
 
853
  {$ifdef SUPPORTS_DISPINTERFACE}
 
854
  IADsBackLinkDisp = dispinterface;
 
855
  {$endif}
 
856
  IADsTypedName = interface;
 
857
  {$ifdef SUPPORTS_DISPINTERFACE}
 
858
  IADsTypedNameDisp = dispinterface;
 
859
  {$endif}
 
860
  IADsHold = interface;
 
861
  {$ifdef SUPPORTS_DISPINTERFACE}
 
862
  IADsHoldDisp = dispinterface;
 
863
  {$endif}
 
864
  IADsObjectOptions = interface;
 
865
  {$ifdef SUPPORTS_DISPINTERFACE}
 
866
  IADsObjectOptionsDisp = dispinterface;
 
867
  {$endif}
 
868
  IADsPathname = interface;
 
869
  {$ifdef SUPPORTS_DISPINTERFACE}
 
870
  IADsPathnameDisp = dispinterface;
 
871
  {$endif}
 
872
  IADsADSystemInfo = interface;
 
873
  {$ifdef SUPPORTS_DISPINTERFACE}
 
874
  IADsADSystemInfoDisp = dispinterface;
 
875
  {$endif}
 
876
  IADsWinNTSystemInfo = interface;
 
877
  {$ifdef SUPPORTS_DISPINTERFACE}
 
878
  IADsWinNTSystemInfoDisp = dispinterface;
 
879
  {$endif}
 
880
  IADsDNWithBinary = interface;
 
881
  {$ifdef SUPPORTS_DISPINTERFACE}
 
882
  IADsDNWithBinaryDisp = dispinterface;
 
883
  {$endif}
 
884
  IADsDNWithString = interface;
 
885
  {$ifdef SUPPORTS_DISPINTERFACE}
 
886
  IADsDNWithStringDisp = dispinterface;
 
887
  {$endif}
 
888
 
 
889
// *********************************************************************//
 
890
// Declaration of CoClasses defined in Type Library
 
891
// (NOTE: Here we map each CoClass to its Default Interface)
 
892
// *********************************************************************//
 
893
  PropertyEntry = IADsPropertyEntry;
 
894
  PropertyValue = IADsPropertyValue;
 
895
  AccessControlEntry = IADsAccessControlEntry;
 
896
  AccessControlList = IADsAccessControlList;
 
897
  SecurityDescriptor = IADsSecurityDescriptor;
 
898
  LargeInteger = IADsLargeInteger;
 
899
  NameTranslate = IADsNameTranslate;
 
900
  CaseIgnoreList = IADsCaseIgnoreList;
 
901
  FaxNumber = IADsFaxNumber;
 
902
  NetAddress = IADsNetAddress;
 
903
  OctetList = IADsOctetList;
 
904
  Email = IADsEmail;
 
905
  Path = IADsPath;
 
906
  ReplicaPointer = IADsReplicaPointer;
 
907
  Acl = IADsAcl;
 
908
  Timestamp = IADsTimestamp;
 
909
  PostalAddress = IADsPostalAddress;
 
910
  BackLink = IADsBackLink;
 
911
  TypedName = IADsTypedName;
 
912
  Hold = IADsHold;
 
913
  Pathname = IADsPathname;
 
914
  ADSystemInfo = IADsADSystemInfo;
 
915
  WinNTSystemInfo = IADsWinNTSystemInfo;
 
916
  DNWithBinary = IADsDNWithBinary;
 
917
  DNWithString = IADsDNWithString;
 
918
 
 
919
// *********************************************************************//
 
920
// Declaration of structures, unions and aliases.
 
921
// *********************************************************************//
 
922
  PUserType1 = ^_ADS_CASEIGNORE_LIST; {*}
 
923
  PUserType2 = ^_ADS_OCTET_LIST; {*}
 
924
  PPWideChar1 = ^PWideChar; {*}
 
925
  PUserType8 = ^tagTYPEDESC; {*}
 
926
  PUserType9 = ^tagARRAYDESC; {*}
 
927
  PUserType3 = ^TGUID; {*}
 
928
  PWord1 = ^Word; {*}
 
929
  PPWord1 = ^PWord1; {*}
 
930
  PUserType4 = ^TGUID; {*}
 
931
  PUserType5 = ^tagTYPEATTR; {*}
 
932
  PUserType6 = ^tagFUNCDESC; {*}
 
933
  PUserType7 = ^tagVARDESC; {*}
 
934
  PUserType10 = ^tagTLIBATTR; {*}
 
935
  PUserType11 = ^_ads_object_info; {*}
 
936
  PUserType12 = ^_ads_attr_info; {*}
 
937
  PUserType13 = ^ads_searchpref_info; {*}
 
938
  PUserType14 = ^ads_search_column; {*}
 
939
  PUserType15 = ^_ads_attr_def; {*}
 
940
  PPUserType1 = ^PUserType15; {*}
 
941
  PUINT1 = ^LongWord; {*}
 
942
  PUserType16 = ^_ads_class_def; {*}
 
943
  PPUserType2 = ^PUserType16; {*}
 
944
 
 
945
  ADSTYPEENUM = __MIDL___MIDL_itf_ads_0000_0001;
 
946
 
 
947
  __MIDL___MIDL_itf_ads_0000_0002 = packed record
 
948
    dwLength: LongWord;
 
949
    lpValue: ^Byte;
 
950
  end;
 
951
 
 
952
  ADS_OCTET_STRING = __MIDL___MIDL_itf_ads_0000_0002;
 
953
 
 
954
  __MIDL___MIDL_itf_ads_0000_0003 = packed record
 
955
    dwLength: LongWord;
 
956
    lpValue: ^Byte;
 
957
  end;
 
958
 
 
959
  ADS_NT_SECURITY_DESCRIPTOR = __MIDL___MIDL_itf_ads_0000_0003;
 
960
 
 
961
  _SYSTEMTIME = packed record
 
962
    wYear: Word;
 
963
    wMonth: Word;
 
964
    wDayOfWeek: Word;
 
965
    wDay: Word;
 
966
    wHour: Word;
 
967
    wMinute: Word;
 
968
    wSecond: Word;
 
969
    wMilliseconds: Word;
 
970
  end;
 
971
 
 
972
  _LARGE_INTEGER = packed record
 
973
    QuadPart: Int64;
 
974
  end;
 
975
 
 
976
  __MIDL___MIDL_itf_ads_0000_0004 = packed record
 
977
    dwLength: LongWord;
 
978
    lpValue: ^Byte;
 
979
  end;
 
980
 
 
981
  ADS_PROV_SPECIFIC = __MIDL___MIDL_itf_ads_0000_0004;
 
982
 
 
983
  __MIDL___MIDL_itf_ads_0000_0005 = packed record
 
984
    Type_: LongWord;
 
985
    VolumeName: PWideChar;
 
986
    Path: PWideChar;
 
987
  end;
 
988
 
 
989
  ADS_PATH = __MIDL___MIDL_itf_ads_0000_0005;
 
990
 
 
991
  __MIDL___MIDL_itf_ads_0000_0006 = packed record
 
992
    PostalAddress: array[0..5] of PWideChar;
 
993
  end;
 
994
 
 
995
  ADS_POSTALADDRESS = __MIDL___MIDL_itf_ads_0000_0006;
 
996
 
 
997
  __MIDL___MIDL_itf_ads_0000_0007 = packed record
 
998
    WholeSeconds: LongWord;
 
999
    EventID: LongWord;
 
1000
  end;
 
1001
 
 
1002
  ADS_TIMESTAMP = __MIDL___MIDL_itf_ads_0000_0007;
 
1003
 
 
1004
  __MIDL___MIDL_itf_ads_0000_0008 = packed record
 
1005
    RemoteID: LongWord;
 
1006
    ObjectName: PWideChar;
 
1007
  end;
 
1008
 
 
1009
  ADS_BACKLINK = __MIDL___MIDL_itf_ads_0000_0008;
 
1010
 
 
1011
  __MIDL___MIDL_itf_ads_0000_0009 = packed record
 
1012
    ObjectName: PWideChar;
 
1013
    Level: LongWord;
 
1014
    Interval: LongWord;
 
1015
  end;
 
1016
 
 
1017
  ADS_TYPEDNAME = __MIDL___MIDL_itf_ads_0000_0009;
 
1018
 
 
1019
  __MIDL___MIDL_itf_ads_0000_0010 = packed record
 
1020
    ObjectName: PWideChar;
 
1021
    Amount: LongWord;
 
1022
  end;
 
1023
 
 
1024
  ADS_HOLD = __MIDL___MIDL_itf_ads_0000_0010;
 
1025
 
 
1026
  __MIDL___MIDL_itf_ads_0000_0011 = packed record
 
1027
    AddressType: LongWord;
 
1028
    AddressLength: LongWord;
 
1029
    Address: ^Byte;
 
1030
  end;
 
1031
 
 
1032
  ADS_NETADDRESS = __MIDL___MIDL_itf_ads_0000_0011;
 
1033
 
 
1034
  __MIDL___MIDL_itf_ads_0000_0012 = packed record
 
1035
    ServerName: PWideChar;
 
1036
    ReplicaType: LongWord;
 
1037
    ReplicaNumber: LongWord;
 
1038
    Count: LongWord;
 
1039
    ReplicaAddressHints: ^__MIDL___MIDL_itf_ads_0000_0011;
 
1040
  end;
 
1041
 
 
1042
  ADS_REPLICAPOINTER = __MIDL___MIDL_itf_ads_0000_0012;
 
1043
 
 
1044
  __MIDL___MIDL_itf_ads_0000_0013 = packed record
 
1045
    TelephoneNumber: PWideChar;
 
1046
    NumberOfBits: LongWord;
 
1047
    Parameters: ^Byte;
 
1048
  end;
 
1049
 
 
1050
  ADS_FAXNUMBER = __MIDL___MIDL_itf_ads_0000_0013;
 
1051
 
 
1052
  __MIDL___MIDL_itf_ads_0000_0014 = packed record
 
1053
    Address: PWideChar;
 
1054
    Type_: LongWord;
 
1055
  end;
 
1056
 
 
1057
  ADS_EMAIL = __MIDL___MIDL_itf_ads_0000_0014;
 
1058
 
 
1059
  __MIDL___MIDL_itf_ads_0000_0015 = packed record
 
1060
    dwLength: LongWord;
 
1061
    lpBinaryValue: ^Byte;
 
1062
    pszDNString: PWideChar;
 
1063
  end;
 
1064
 
 
1065
  ADS_DN_WITH_BINARY = __MIDL___MIDL_itf_ads_0000_0015;
 
1066
 
 
1067
  __MIDL___MIDL_itf_ads_0000_0016 = packed record
 
1068
    pszStringValue: PWideChar;
 
1069
    pszDNString: PWideChar;
 
1070
  end;
 
1071
 
 
1072
  ADS_DN_WITH_STRING = __MIDL___MIDL_itf_ads_0000_0016;
 
1073
 
 
1074
  _ADS_CASEIGNORE_LIST = packed record
 
1075
    Next: PUserType1;
 
1076
    String_: PWideChar;
 
1077
  end;
 
1078
 
 
1079
  _ADS_OCTET_LIST = packed record
 
1080
    Next: PUserType2;
 
1081
    Length: LongWord;
 
1082
    Data: ^Byte;
 
1083
  end;
 
1084
 
 
1085
  __MIDL___MIDL_itf_ads_0000_0017 = record
 
1086
    case Integer of
 
1087
      0: (DNString: PWideChar);
 
1088
      1: (CaseExactString: PWideChar);
 
1089
      2: (CaseIgnoreString: PWideChar);
 
1090
      3: (PrintableString: PWideChar);
 
1091
      4: (NumericString: PWideChar);
 
1092
      5: (Boolean: LongWord);
 
1093
      6: (Integer: LongWord);
 
1094
      7: (OctetString: ADS_OCTET_STRING);
 
1095
      8: (UTCTime: _SYSTEMTIME);
 
1096
      9: (LargeInteger: _LARGE_INTEGER);
 
1097
      10: (ClassName: PWideChar);
 
1098
      11: (ProviderSpecific: ADS_PROV_SPECIFIC);
 
1099
      12: (pCaseIgnoreList: ^_ADS_CASEIGNORE_LIST);
 
1100
      13: (pOctetList: ^_ADS_OCTET_LIST);
 
1101
      14: (pPath: ^__MIDL___MIDL_itf_ads_0000_0005);
 
1102
      15: (pPostalAddress: ^__MIDL___MIDL_itf_ads_0000_0006);
 
1103
      16: (Timestamp: ADS_TIMESTAMP);
 
1104
      17: (BackLink: ADS_BACKLINK);
 
1105
      18: (pTypedName: ^__MIDL___MIDL_itf_ads_0000_0009);
 
1106
      19: (Hold: ADS_HOLD);
 
1107
      20: (pNetAddress: ^__MIDL___MIDL_itf_ads_0000_0011);
 
1108
      21: (pReplicaPointer: ^__MIDL___MIDL_itf_ads_0000_0012);
 
1109
      22: (pFaxNumber: ^__MIDL___MIDL_itf_ads_0000_0013);
 
1110
      23: (Email: ADS_EMAIL);
 
1111
      24: (SecurityDescriptor: ADS_NT_SECURITY_DESCRIPTOR);
 
1112
      25: (pDNWithBinary: ^__MIDL___MIDL_itf_ads_0000_0015);
 
1113
      26: (pDNWithString: ^__MIDL___MIDL_itf_ads_0000_0016);
 
1114
  end;
 
1115
 
 
1116
  ADS_AUTHENTICATION_ENUM = __MIDL___MIDL_itf_ads_0000_0018;
 
1117
 
 
1118
  _ads_object_info = packed record
 
1119
    pszRDN: PWideChar;
 
1120
    pszObjectDN: PWideChar;
 
1121
    pszParentDN: PWideChar;
 
1122
    pszSchemaDN: PWideChar;
 
1123
    pszClassName: PWideChar;
 
1124
  end;
 
1125
 
 
1126
  ADS_STATUSENUM = __MIDL___MIDL_itf_ads_0000_0019;
 
1127
  ADS_DEREFENUM = __MIDL___MIDL_itf_ads_0000_0020;
 
1128
  ADS_SCOPEENUM = __MIDL___MIDL_itf_ads_0000_0021;
 
1129
  ADS_PREFERENCES_ENUM = __MIDL___MIDL_itf_ads_0000_0022;
 
1130
  ADSI_DIALECT_ENUM = __MIDL___MIDL_itf_ads_0000_0023;
 
1131
  ADS_CHASE_REFERRALS_ENUM = __MIDL___MIDL_itf_ads_0000_0024;
 
1132
  ADS_SEARCHPREF_ENUM = __MIDL___MIDL_itf_ads_0000_0025;
 
1133
 
 
1134
  _adsvalue = packed record
 
1135
    dwType: ADSTYPEENUM;
 
1136
    __MIDL_0010: __MIDL___MIDL_itf_ads_0000_0017;
 
1137
  end;
 
1138
 
 
1139
  ads_search_column = packed record
 
1140
    pszAttrName: PWideChar;
 
1141
    dwADsType: ADSTYPEENUM;
 
1142
    pADsValues: ^_adsvalue;
 
1143
    dwNumValues: LongWord;
 
1144
    hReserved: Pointer;
 
1145
  end;
 
1146
 
 
1147
  _ads_attr_def = packed record
 
1148
    pszAttrName: PWideChar;
 
1149
    dwADsType: ADSTYPEENUM;
 
1150
    dwMinRange: LongWord;
 
1151
    dwMaxRange: LongWord;
 
1152
    fMultiValued: Integer;
 
1153
  end;
 
1154
 
 
1155
  _ads_sortkey = packed record
 
1156
    pszAttrType: PWideChar;
 
1157
    pszReserved: PWideChar;
 
1158
    fReverseorder: Shortint;
 
1159
  end;
 
1160
 
 
1161
  ADS_PROPERTY_OPERATION_ENUM = __MIDL___MIDL_itf_ads_0000_0026;
 
1162
 
 
1163
  __MIDL_IOleAutomationTypes_0005 = record
 
1164
    case Integer of
 
1165
      0: (lptdesc: PUserType8);
 
1166
      1: (lpadesc: PUserType9);
 
1167
      2: (hreftype: LongWord);
 
1168
  end;
 
1169
 
 
1170
  tagTYPEDESC = packed record
 
1171
    __MIDL_0008: __MIDL_IOleAutomationTypes_0005;
 
1172
    vt: Word;
 
1173
  end;
 
1174
 
 
1175
  tagSAFEARRAYBOUND = packed record
 
1176
    cElements: LongWord;
 
1177
    lLbound: Integer;
 
1178
  end;
 
1179
 
 
1180
  ULONG_PTR = LongWord;
 
1181
 
 
1182
  tagIDLDESC = packed record
 
1183
    dwReserved: ULONG_PTR;
 
1184
    wIDLFlags: Word;
 
1185
  end;
 
1186
 
 
1187
  DWORD = LongWord;
 
1188
 
 
1189
  tagPARAMDESCEX = packed record
 
1190
    cBytes: LongWord;
 
1191
    varDefaultValue: OleVariant;
 
1192
  end;
 
1193
 
 
1194
  tagPARAMDESC = packed record
 
1195
    pparamdescex: ^tagPARAMDESCEX;
 
1196
    wParamFlags: Word;
 
1197
  end;
 
1198
 
 
1199
  tagELEMDESC = packed record
 
1200
    tdesc: tagTYPEDESC;
 
1201
    paramdesc: tagPARAMDESC;
 
1202
  end;
 
1203
 
 
1204
  tagFUNCDESC = packed record
 
1205
    memid: Integer;
 
1206
    lprgscode: ^SCODE;
 
1207
    lprgelemdescParam: ^tagELEMDESC;
 
1208
    funckind: tagFUNCKIND;
 
1209
    invkind: tagINVOKEKIND;
 
1210
    callconv: tagCALLCONV;
 
1211
    cParams: Smallint;
 
1212
    cParamsOpt: Smallint;
 
1213
    oVft: Smallint;
 
1214
    cScodes: Smallint;
 
1215
    elemdescFunc: tagELEMDESC;
 
1216
    wFuncFlags: Word;
 
1217
  end;
 
1218
 
 
1219
  __MIDL_IOleAutomationTypes_0006 = record
 
1220
    case Integer of
 
1221
      0: (oInst: LongWord);
 
1222
      1: (lpvarValue: ^OleVariant);
 
1223
  end;
 
1224
 
 
1225
  tagVARDESC = packed record
 
1226
    memid: Integer;
 
1227
    lpstrSchema: PWideChar;
 
1228
    __MIDL_0009: __MIDL_IOleAutomationTypes_0006;
 
1229
    elemdescVar: tagELEMDESC;
 
1230
    wVarFlags: Word;
 
1231
    varkind: tagVARKIND;
 
1232
  end;
 
1233
 
 
1234
  tagTLIBATTR = packed record
 
1235
    GUID: TGUID;
 
1236
    lcid: LongWord;
 
1237
    syskind: tagSYSKIND;
 
1238
    wMajorVerNum: Word;
 
1239
    wMinorVerNum: Word;
 
1240
    wLibFlags: Word;
 
1241
  end;
 
1242
 
 
1243
  ADS_SYSTEMFLAG_ENUM = __MIDL___MIDL_itf_ads_0120_0001;
 
1244
  ADS_GROUP_TYPE_ENUM = __MIDL___MIDL_itf_ads_0126_0001;
 
1245
  ADS_RIGHTS_ENUM = __MIDL___MIDL_itf_ads_0148_0001;
 
1246
  ADS_ACETYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0002;
 
1247
  ADS_ACEFLAG_ENUM = __MIDL___MIDL_itf_ads_0148_0003;
 
1248
  ADS_FLAGTYPE_ENUM = __MIDL___MIDL_itf_ads_0148_0004;
 
1249
  ADS_SD_CONTROL_ENUM = __MIDL___MIDL_itf_ads_0148_0005;
 
1250
  ADS_SD_REVISION_ENUM = __MIDL___MIDL_itf_ads_0148_0006;
 
1251
  ADS_NAME_TYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0001;
 
1252
  ADS_NAME_INITTYPE_ENUM = __MIDL___MIDL_itf_ads_0149_0002;
 
1253
  ADS_OPTION_ENUM = __MIDL___MIDL_itf_ads_0163_0001;
 
1254
  ADS_SECURITY_INFO_ENUM = __MIDL___MIDL_itf_ads_0163_0002;
 
1255
  ADS_SETTYPE_ENUM = __MIDL___MIDL_itf_ads_0164_0001;
 
1256
  ADS_FORMAT_ENUM = __MIDL___MIDL_itf_ads_0164_0002;
 
1257
  ADS_DISPLAY_ENUM = __MIDL___MIDL_itf_ads_0164_0003;
 
1258
  ADS_ESCAPE_MODE_ENUM = __MIDL___MIDL_itf_ads_0164_0004;
 
1259
 
 
1260
  _ads_attr_info = packed record
 
1261
    pszAttrName: PWideChar;
 
1262
    dwControlCode: LongWord;
 
1263
    dwADsType: ADSTYPEENUM;
 
1264
    pADsValues: ^_adsvalue;
 
1265
    dwNumValues: LongWord;
 
1266
  end;
 
1267
 
 
1268
  ads_searchpref_info = packed record
 
1269
    dwSearchPref: ADS_SEARCHPREF_ENUM;
 
1270
    vValue: _adsvalue;
 
1271
    dwStatus: ADS_STATUSENUM;
 
1272
  end;
 
1273
 
 
1274
  _ads_class_def = packed record
 
1275
    pszClassName: PWideChar;
 
1276
    dwMandatoryAttrs: LongWord;
 
1277
    ppszMandatoryAttrs: ^PWideChar;
 
1278
    optionalAttrs: LongWord;
 
1279
    ppszOptionalAttrs: ^PPWideChar1;
 
1280
    dwNamingAttrs: LongWord;
 
1281
    ppszNamingAttrs: ^PPWideChar1;
 
1282
    dwSuperClasses: LongWord;
 
1283
    ppszSuperClasses: ^PPWideChar1;
 
1284
    fIsContainer: Integer;
 
1285
  end;
 
1286
 
 
1287
  tagTYPEATTR = packed record
 
1288
    GUID: TGUID;
 
1289
    lcid: LongWord;
 
1290
    dwReserved: LongWord;
 
1291
    memidConstructor: Integer;
 
1292
    memidDestructor: Integer;
 
1293
    lpstrSchema: PWideChar;
 
1294
    cbSizeInstance: LongWord;
 
1295
    typekind: tagTYPEKIND;
 
1296
    cFuncs: Word;
 
1297
    cVars: Word;
 
1298
    cImplTypes: Word;
 
1299
    cbSizeVft: Word;
 
1300
    cbAlignment: Word;
 
1301
    wTypeFlags: Word;
 
1302
    wMajorVerNum: Word;
 
1303
    wMinorVerNum: Word;
 
1304
    tdescAlias: tagTYPEDESC;
 
1305
    idldescType: tagIDLDESC;
 
1306
  end;
 
1307
 
 
1308
  tagARRAYDESC = packed record
 
1309
    tdescElem: tagTYPEDESC;
 
1310
    cDims: Word;
 
1311
    rgbounds: ^tagSAFEARRAYBOUND;
 
1312
  end;
 
1313
 
 
1314
// *********************************************************************//
 
1315
// Interface: IADs
 
1316
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1317
// GUID:      {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
 
1318
// *********************************************************************//
 
1319
  IADs = interface(IDispatch)
 
1320
    ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
 
1321
    function  Get_Name: WideString; safecall;
 
1322
    function  Get_Class_: WideString; safecall;
 
1323
    function  Get_GUID: WideString; safecall;
 
1324
    function  Get_ADsPath: WideString; safecall;
 
1325
    function  Get_Parent: WideString; safecall;
 
1326
    function  Get_Schema: WideString; safecall;
 
1327
    procedure GetInfo; safecall;
 
1328
    procedure SetInfo; safecall;
 
1329
    function  Get(const bstrName: WideString): OleVariant; safecall;
 
1330
    procedure Put(const bstrName: WideString; vProp: OleVariant); safecall;
 
1331
    function  GetEx(const bstrName: WideString): OleVariant; safecall;
 
1332
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); safecall;
 
1333
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); safecall;
 
1334
    property Name: WideString read Get_Name;
 
1335
    property Class_: WideString read Get_Class_;
 
1336
    property GUID: WideString read Get_GUID;
 
1337
    property ADsPath: WideString read Get_ADsPath;
 
1338
    property Parent: WideString read Get_Parent;
 
1339
    property Schema: WideString read Get_Schema;
 
1340
  end;
 
1341
 
 
1342
// *********************************************************************//
 
1343
// DispIntf:  IADsDisp
 
1344
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1345
// GUID:      {FD8256D0-FD15-11CE-ABC4-02608C9E7553}
 
1346
// *********************************************************************//
 
1347
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1348
  IADsDisp = dispinterface
 
1349
    ['{FD8256D0-FD15-11CE-ABC4-02608C9E7553}']
 
1350
    property Name: WideString readonly dispid 2;
 
1351
    property Class_: WideString readonly dispid 3;
 
1352
    property GUID: WideString readonly dispid 4;
 
1353
    property ADsPath: WideString readonly dispid 5;
 
1354
    property Parent: WideString readonly dispid 6;
 
1355
    property Schema: WideString readonly dispid 7;
 
1356
    procedure GetInfo; dispid 8;
 
1357
    procedure SetInfo; dispid 9;
 
1358
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
1359
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
1360
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
1361
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
1362
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
1363
  end;
 
1364
  {$endif}
 
1365
// *********************************************************************//
 
1366
// Interface: IADsContainer
 
1367
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1368
// GUID:      {001677D0-FD16-11CE-ABC4-02608C9E7553}
 
1369
// *********************************************************************//
 
1370
  IADsContainer = interface(IDispatch)
 
1371
    ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
 
1372
    function  Get_Count: Integer; safecall;
 
1373
    function  Get__NewEnum: IUnknown; safecall;
 
1374
    function  Get_Filter: OleVariant; safecall;
 
1375
    procedure Set_Filter(pVar: OleVariant); safecall;
 
1376
    function  Get_Hints: OleVariant; safecall;
 
1377
    procedure Set_Hints(pvFilter: OleVariant); safecall;
 
1378
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
 
1379
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; safecall;
 
1380
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); safecall;
 
1381
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
 
1382
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; safecall;
 
1383
    property Count: Integer read Get_Count;
 
1384
    property _NewEnum: IUnknown read Get__NewEnum;
 
1385
    property Filter: OleVariant read Get_Filter write Set_Filter;
 
1386
    property Hints: OleVariant read Get_Hints write Set_Hints;
 
1387
  end;
 
1388
 
 
1389
// *********************************************************************//
 
1390
// DispIntf:  IADsContainerDisp
 
1391
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1392
// GUID:      {001677D0-FD16-11CE-ABC4-02608C9E7553}
 
1393
// *********************************************************************//
 
1394
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1395
  IADsContainerDisp = dispinterface
 
1396
    ['{001677D0-FD16-11CE-ABC4-02608C9E7553}']
 
1397
    property Count: Integer readonly dispid 2;
 
1398
    property _NewEnum: IUnknown readonly dispid -4;
 
1399
    property Filter: OleVariant dispid 3;
 
1400
    property Hints: OleVariant dispid 4;
 
1401
    function  GetObject(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 5;
 
1402
    function  Create(const ClassName: WideString; const RelativeName: WideString): IDispatch; dispid 6;
 
1403
    procedure Delete(const bstrClassName: WideString; const bstrRelativeName: WideString); dispid 7;
 
1404
    function  CopyHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 8;
 
1405
    function  MoveHere(const SourceName: WideString; const NewName: WideString): IDispatch; dispid 9;
 
1406
  end;
 
1407
  {$endif}
 
1408
// *********************************************************************//
 
1409
// Interface: IADsCollection
 
1410
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1411
// GUID:      {72B945E0-253B-11CF-A988-00AA006BC149}
 
1412
// *********************************************************************//
 
1413
  IADsCollection = interface(IDispatch)
 
1414
    ['{72B945E0-253B-11CF-A988-00AA006BC149}']
 
1415
    function  Get__NewEnum: IUnknown; safecall;
 
1416
    procedure Add(const bstrName: WideString; vItem: OleVariant); safecall;
 
1417
    procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
 
1418
    function  GetObject(const bstrName: WideString): OleVariant; safecall;
 
1419
    property _NewEnum: IUnknown read Get__NewEnum;
 
1420
  end;
 
1421
 
 
1422
// *********************************************************************//
 
1423
// DispIntf:  IADsCollectionDisp
 
1424
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1425
// GUID:      {72B945E0-253B-11CF-A988-00AA006BC149}
 
1426
// *********************************************************************//
 
1427
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1428
  IADsCollectionDisp = dispinterface
 
1429
    ['{72B945E0-253B-11CF-A988-00AA006BC149}']
 
1430
    property _NewEnum: IUnknown readonly dispid -4;
 
1431
    procedure Add(const bstrName: WideString; vItem: OleVariant); dispid 4;
 
1432
    procedure Remove(const bstrItemToBeRemoved: WideString); dispid 5;
 
1433
    function  GetObject(const bstrName: WideString): OleVariant; dispid 6;
 
1434
  end;
 
1435
  {$endif}
 
1436
// *********************************************************************//
 
1437
// Interface: IADsMembers
 
1438
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1439
// GUID:      {451A0030-72EC-11CF-B03B-00AA006E0975}
 
1440
// *********************************************************************//
 
1441
  IADsMembers = interface(IDispatch)
 
1442
    ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
 
1443
    function  Get_Count: Integer; safecall;
 
1444
    function  Get__NewEnum: IUnknown; safecall;
 
1445
    function  Get_Filter: OleVariant; safecall;
 
1446
    procedure Set_Filter(pvFilter: OleVariant); safecall;
 
1447
    property Count: Integer read Get_Count;
 
1448
    property _NewEnum: IUnknown read Get__NewEnum;
 
1449
    property Filter: OleVariant read Get_Filter write Set_Filter;
 
1450
  end;
 
1451
 
 
1452
// *********************************************************************//
 
1453
// DispIntf:  IADsMembersDisp
 
1454
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1455
// GUID:      {451A0030-72EC-11CF-B03B-00AA006E0975}
 
1456
// *********************************************************************//
 
1457
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1458
  IADsMembersDisp = dispinterface
 
1459
    ['{451A0030-72EC-11CF-B03B-00AA006E0975}']
 
1460
    property Count: Integer readonly dispid 2;
 
1461
    property _NewEnum: IUnknown readonly dispid -4;
 
1462
    property Filter: OleVariant dispid 3;
 
1463
  end;
 
1464
  {$endif}
 
1465
// *********************************************************************//
 
1466
// Interface: IADsPropertyList
 
1467
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1468
// GUID:      {C6F602B6-8F69-11D0-8528-00C04FD8D503}
 
1469
// *********************************************************************//
 
1470
  IADsPropertyList = interface(IDispatch)
 
1471
    ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
 
1472
    function  Get_PropertyCount: Integer; safecall;
 
1473
    function  Next: OleVariant; safecall;
 
1474
    procedure Skip(cElements: Integer); safecall;
 
1475
    procedure Reset; safecall;
 
1476
    function  Item(varIndex: OleVariant): OleVariant; safecall;
 
1477
    function  GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; safecall;
 
1478
    procedure PutPropertyItem(varData: OleVariant); safecall;
 
1479
    procedure ResetPropertyItem(varEntry: OleVariant); safecall;
 
1480
    procedure PurgePropertyList; safecall;
 
1481
    property PropertyCount: Integer read Get_PropertyCount;
 
1482
  end;
 
1483
 
 
1484
// *********************************************************************//
 
1485
// DispIntf:  IADsPropertyListDisp
 
1486
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1487
// GUID:      {C6F602B6-8F69-11D0-8528-00C04FD8D503}
 
1488
// *********************************************************************//
 
1489
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1490
  IADsPropertyListDisp = dispinterface
 
1491
    ['{C6F602B6-8F69-11D0-8528-00C04FD8D503}']
 
1492
    property PropertyCount: Integer readonly dispid 2;
 
1493
    function  Next: OleVariant; dispid 3;
 
1494
    procedure Skip(cElements: Integer); dispid 4;
 
1495
    procedure Reset; dispid 5;
 
1496
    function  Item(varIndex: OleVariant): OleVariant; dispid 0;
 
1497
    function  GetPropertyItem(const bstrName: WideString; lnADsType: Integer): OleVariant; dispid 6;
 
1498
    procedure PutPropertyItem(varData: OleVariant); dispid 7;
 
1499
    procedure ResetPropertyItem(varEntry: OleVariant); dispid 8;
 
1500
    procedure PurgePropertyList; dispid 9;
 
1501
  end;
 
1502
  {$endif}
 
1503
// *********************************************************************//
 
1504
// Interface: IADsPropertyEntry
 
1505
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1506
// GUID:      {05792C8E-941F-11D0-8529-00C04FD8D503}
 
1507
// *********************************************************************//
 
1508
  IADsPropertyEntry = interface(IDispatch)
 
1509
    ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
 
1510
    procedure Clear; safecall;
 
1511
    function  Get_Name: WideString; safecall;
 
1512
    procedure Set_Name(const retval: WideString); safecall;
 
1513
    function  Get_ADsType: Integer; safecall;
 
1514
    procedure Set_ADsType(retval: Integer); safecall;
 
1515
    function  Get_ControlCode: Integer; safecall;
 
1516
    procedure Set_ControlCode(retval: Integer); safecall;
 
1517
    function  Get_Values: OleVariant; safecall;
 
1518
    procedure Set_Values(retval: OleVariant); safecall;
 
1519
    property Name: WideString read Get_Name write Set_Name;
 
1520
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
1521
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
 
1522
    property Values: OleVariant read Get_Values write Set_Values;
 
1523
  end;
 
1524
 
 
1525
// *********************************************************************//
 
1526
// DispIntf:  IADsPropertyEntryDisp
 
1527
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1528
// GUID:      {05792C8E-941F-11D0-8529-00C04FD8D503}
 
1529
// *********************************************************************//
 
1530
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1531
  IADsPropertyEntryDisp = dispinterface
 
1532
    ['{05792C8E-941F-11D0-8529-00C04FD8D503}']
 
1533
    procedure Clear; dispid 1;
 
1534
    property Name: WideString dispid 2;
 
1535
    property ADsType: Integer dispid 3;
 
1536
    property ControlCode: Integer dispid 4;
 
1537
    property Values: OleVariant dispid 5;
 
1538
  end;
 
1539
  {$endif}
 
1540
// *********************************************************************//
 
1541
// Interface: IADsPropertyValue
 
1542
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1543
// GUID:      {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
 
1544
// *********************************************************************//
 
1545
  IADsPropertyValue = interface(IDispatch)
 
1546
    ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
 
1547
    procedure Clear; safecall;
 
1548
    function  Get_ADsType: Integer; safecall;
 
1549
    procedure Set_ADsType(retval: Integer); safecall;
 
1550
    function  Get_DNString: WideString; safecall;
 
1551
    procedure Set_DNString(const retval: WideString); safecall;
 
1552
    function  Get_CaseExactString: WideString; safecall;
 
1553
    procedure Set_CaseExactString(const retval: WideString); safecall;
 
1554
    function  Get_CaseIgnoreString: WideString; safecall;
 
1555
    procedure Set_CaseIgnoreString(const retval: WideString); safecall;
 
1556
    function  Get_PrintableString: WideString; safecall;
 
1557
    procedure Set_PrintableString(const retval: WideString); safecall;
 
1558
    function  Get_NumericString: WideString; safecall;
 
1559
    procedure Set_NumericString(const retval: WideString); safecall;
 
1560
    function  Get_Boolean: Integer; safecall;
 
1561
    procedure Set_Boolean(retval: Integer); safecall;
 
1562
    function  Get_Integer: Integer; safecall;
 
1563
    procedure Set_Integer(retval: Integer); safecall;
 
1564
    function  Get_OctetString: OleVariant; safecall;
 
1565
    procedure Set_OctetString(retval: OleVariant); safecall;
 
1566
    function  Get_SecurityDescriptor: IDispatch; safecall;
 
1567
    procedure Set_SecurityDescriptor(const retval: IDispatch); safecall;
 
1568
    function  Get_LargeInteger: IDispatch; safecall;
 
1569
    procedure Set_LargeInteger(const retval: IDispatch); safecall;
 
1570
    function  Get_UTCTime: TDateTime; safecall;
 
1571
    procedure Set_UTCTime(retval: TDateTime); safecall;
 
1572
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
1573
    property DNString: WideString read Get_DNString write Set_DNString;
 
1574
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
 
1575
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
 
1576
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
 
1577
    property NumericString: WideString read Get_NumericString write Set_NumericString;
 
1578
    property Boolean: Integer read Get_Boolean write Set_Boolean;
 
1579
    property Integer: Integer read Get_Integer write Set_Integer;
 
1580
    property OctetString: OleVariant read Get_OctetString write Set_OctetString;
 
1581
    property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
 
1582
    property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
 
1583
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
 
1584
  end;
 
1585
 
 
1586
// *********************************************************************//
 
1587
// DispIntf:  IADsPropertyValueDisp
 
1588
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1589
// GUID:      {79FA9AD0-A97C-11D0-8534-00C04FD8D503}
 
1590
// *********************************************************************//
 
1591
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1592
  IADsPropertyValueDisp = dispinterface
 
1593
    ['{79FA9AD0-A97C-11D0-8534-00C04FD8D503}']
 
1594
    procedure Clear; dispid 1;
 
1595
    property ADsType: Integer dispid 2;
 
1596
    property DNString: WideString dispid 3;
 
1597
    property CaseExactString: WideString dispid 4;
 
1598
    property CaseIgnoreString: WideString dispid 5;
 
1599
    property PrintableString: WideString dispid 6;
 
1600
    property NumericString: WideString dispid 7;
 
1601
    property Boolean: Integer dispid 8;
 
1602
    property Integer: Integer dispid 9;
 
1603
    property OctetString: OleVariant dispid 10;
 
1604
    property SecurityDescriptor: IDispatch dispid 11;
 
1605
    property LargeInteger: IDispatch dispid 12;
 
1606
    property UTCTime: TDateTime dispid 13;
 
1607
  end;
 
1608
  {$endif}
 
1609
// *********************************************************************//
 
1610
// Interface: IADsPropertyValue2
 
1611
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1612
// GUID:      {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
 
1613
// *********************************************************************//
 
1614
  IADsPropertyValue2 = interface(IDispatch)
 
1615
    ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
 
1616
    function  GetObjectProperty(var lnADsType: Integer): OleVariant; safecall;
 
1617
    procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); safecall;
 
1618
  end;
 
1619
 
 
1620
// *********************************************************************//
 
1621
// DispIntf:  IADsPropertyValue2Disp
 
1622
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1623
// GUID:      {306E831C-5BC7-11D1-A3B8-00C04FB950DC}
 
1624
// *********************************************************************//
 
1625
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1626
  IADsPropertyValue2Disp = dispinterface
 
1627
    ['{306E831C-5BC7-11D1-A3B8-00C04FB950DC}']
 
1628
    function  GetObjectProperty(var lnADsType: Integer): OleVariant; dispid 1;
 
1629
    procedure PutObjectProperty(lnADsType: Integer; vProp: OleVariant); dispid 2;
 
1630
  end;
 
1631
  {$endif}
 
1632
 
 
1633
// *********************************************************************//
 
1634
// Interface: IPrivateDispatch
 
1635
// Flags:     (0)
 
1636
// GUID:      {86AB4BBE-65F6-11D1-8C13-00C04FD8D503}
 
1637
// *********************************************************************//
 
1638
  IPrivateDispatch = interface(IUnknown)
 
1639
    ['{86AB4BBE-65F6-11D1-8C13-00C04FD8D503}']
 
1640
    function  ADSIInitializeDispatchManager(dwExtensionId: Integer): HResult; stdcall;
 
1641
    function  ADSIGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
 
1642
    function  ADSIGetTypeInfo(itinfo: SYSUINT; lcid: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
 
1643
    function  ADSIGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
 
1644
                                lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
 
1645
    function  ADSIInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
 
1646
                         var pdispparams: TGUID; out pvarResult: OleVariant; out pexcepinfo: TGUID;
 
1647
                         out puArgErr: SYSUINT): HResult; stdcall;
 
1648
  end;
 
1649
 
 
1650
// *********************************************************************//
 
1651
// Interface: ITypeInfo
 
1652
// Flags:     (0)
 
1653
// GUID:      {00020401-0000-0000-C000-000000000046}
 
1654
// *********************************************************************//
 
1655
  ITypeInfo = interface(IUnknown)
 
1656
    ['{00020401-0000-0000-C000-000000000046}']
 
1657
    function  RemoteGetTypeAttr(out ppTypeAttr: PUserType5; out pDummy: DWORD): HResult; stdcall;
 
1658
    function  GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
 
1659
    function  RemoteGetFuncDesc(index: SYSUINT; out ppFuncDesc: PUserType6; out pDummy: DWORD): HResult; stdcall;
 
1660
    function  RemoteGetVarDesc(index: SYSUINT; out ppVarDesc: PUserType7; out pDummy: DWORD): HResult; stdcall;
 
1661
    function  RemoteGetNames(memid: Integer; out rgBstrNames: WideString; cMaxNames: SYSUINT;
 
1662
                             out pcNames: SYSUINT): HResult; stdcall;
 
1663
    function  GetRefTypeOfImplType(index: SYSUINT; out pRefType: LongWord): HResult; stdcall;
 
1664
    function  GetImplTypeFlags(index: SYSUINT; out pImplTypeFlags: SYSINT): HResult; stdcall;
 
1665
    function  LocalGetIDsOfNames: HResult; stdcall;
 
1666
    function  LocalInvoke: HResult; stdcall;
 
1667
    function  RemoteGetDocumentation(memid: Integer; refPtrFlags: LongWord;
 
1668
                                     out pBstrName: WideString; out pBstrDocString: WideString;
 
1669
                                     out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
 
1670
    function  RemoteGetDllEntry(memid: Integer; invkind: tagINVOKEKIND; refPtrFlags: LongWord;
 
1671
                                out pBstrDllName: WideString; out pBstrName: WideString;
 
1672
                                out pwOrdinal: Word): HResult; stdcall;
 
1673
    function  GetRefTypeInfo(hreftype: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
 
1674
    function  LocalAddressOfMember: HResult; stdcall;
 
1675
    function  RemoteCreateInstance(var riid: TGUID; out ppvObj: IUnknown): HResult; stdcall;
 
1676
    function  GetMops(memid: Integer; out pBstrMops: WideString): HResult; stdcall;
 
1677
    function  RemoteGetContainingTypeLib(out ppTLib: ITypeLib; out pIndex: SYSUINT): HResult; stdcall;
 
1678
    function  LocalReleaseTypeAttr: HResult; stdcall;
 
1679
    function  LocalReleaseFuncDesc: HResult; stdcall;
 
1680
    function  LocalReleaseVarDesc: HResult; stdcall;
 
1681
  end;
 
1682
 
 
1683
// *********************************************************************//
 
1684
// Interface: ITypeComp
 
1685
// Flags:     (0)
 
1686
// GUID:      {00020403-0000-0000-C000-000000000046}
 
1687
// *********************************************************************//
 
1688
  ITypeComp = interface(IUnknown)
 
1689
    ['{00020403-0000-0000-C000-000000000046}']
 
1690
    function  RemoteBind(szName: PWideChar; lHashVal: LongWord; wFlags: Word;
 
1691
                         out ppTInfo: ITypeInfo; out pDescKind: tagDESCKIND;
 
1692
                         out ppFuncDesc: PUserType6; out ppVarDesc: PUserType7;
 
1693
                         out ppTypeComp: ITypeComp; out pDummy: DWORD): HResult; stdcall;
 
1694
    function  RemoteBindType(szName: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
 
1695
  end;
 
1696
 
 
1697
// *********************************************************************//
 
1698
// Interface: ITypeLib
 
1699
// Flags:     (0)
 
1700
// GUID:      {00020402-0000-0000-C000-000000000046}
 
1701
// *********************************************************************//
 
1702
  ITypeLib = interface(IUnknown)
 
1703
    ['{00020402-0000-0000-C000-000000000046}']
 
1704
    function  RemoteGetTypeInfoCount(out pctinfo: SYSUINT): HResult; stdcall;
 
1705
    function  GetTypeInfo(index: SYSUINT; out ppTInfo: ITypeInfo): HResult; stdcall;
 
1706
    function  GetTypeInfoType(index: SYSUINT; out pTKind: tagTYPEKIND): HResult; stdcall;
 
1707
    function  GetTypeInfoOfGuid(var GUID: TGUID; out ppTInfo: ITypeInfo): HResult; stdcall;
 
1708
    function  RemoteGetLibAttr(out ppTLibAttr: PUserType10; out pDummy: DWORD): HResult; stdcall;
 
1709
    function  GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
 
1710
    function  RemoteGetDocumentation(index: SYSINT; refPtrFlags: LongWord;
 
1711
                                     out pBstrName: WideString; out pBstrDocString: WideString;
 
1712
                                     out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
 
1713
    function  RemoteIsName(szNameBuf: PWideChar; lHashVal: LongWord; out pfName: Integer;
 
1714
                           out pBstrLibName: WideString): HResult; stdcall;
 
1715
    function  RemoteFindName(szNameBuf: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo;
 
1716
                             out rgMemId: Integer; var pcFound: Word; out pBstrLibName: WideString): HResult; stdcall;
 
1717
    function  LocalReleaseTLibAttr: HResult; stdcall;
 
1718
  end;
 
1719
 
 
1720
// *********************************************************************//
 
1721
// Interface: IPrivateUnknown
 
1722
// Flags:     (0)
 
1723
// GUID:      {89126BAB-6EAD-11D1-8C18-00C04FD8D503}
 
1724
// *********************************************************************//
 
1725
  IPrivateUnknown = interface(IUnknown)
 
1726
    ['{89126BAB-6EAD-11D1-8C18-00C04FD8D503}']
 
1727
    function  ADSIInitializeObject(const lpszUserName: WideString; const lpszPassword: WideString;
 
1728
                                   lnReserved: Integer): HResult; stdcall;
 
1729
    function  ADSIReleaseObject: HResult; stdcall;
 
1730
  end;
 
1731
 
 
1732
// *********************************************************************//
 
1733
// Interface: IADsExtension
 
1734
// Flags:     (0)
 
1735
// GUID:      {3D35553C-D2B0-11D1-B17B-0000F87593A0}
 
1736
// *********************************************************************//
 
1737
  IADsExtension = interface(IUnknown)
 
1738
    ['{3D35553C-D2B0-11D1-B17B-0000F87593A0}']
 
1739
    function  Operate(dwCode: LongWord; varData1: OleVariant; varData2: OleVariant;
 
1740
                      varData3: OleVariant): HResult; stdcall;
 
1741
    function  PrivateGetIDsOfNames(var riid: TGUID; rgszNames: PPWord1; cNames: SYSUINT;
 
1742
                                   lcid: LongWord; out rgdispid: Integer): HResult; stdcall;
 
1743
    function  PrivateInvoke(dispidMember: Integer; var riid: TGUID; lcid: LongWord; wFlags: Word;
 
1744
                            var pdispparams: TGUID; out pvarResult: OleVariant;
 
1745
                            out pexcepinfo: TGUID; out puArgErr: SYSUINT): HResult; stdcall;
 
1746
  end;
 
1747
 
 
1748
// *********************************************************************//
 
1749
// Interface: IADsDeleteOps
 
1750
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1751
// GUID:      {B2BD0902-8878-11D1-8C21-00C04FD8D503}
 
1752
// *********************************************************************//
 
1753
  IADsDeleteOps = interface(IDispatch)
 
1754
    ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
 
1755
    procedure DeleteObject(lnFlags: Integer); safecall;
 
1756
  end;
 
1757
 
 
1758
// *********************************************************************//
 
1759
// DispIntf:  IADsDeleteOpsDisp
 
1760
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1761
// GUID:      {B2BD0902-8878-11D1-8C21-00C04FD8D503}
 
1762
// *********************************************************************//
 
1763
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1764
  IADsDeleteOpsDisp = dispinterface
 
1765
    ['{B2BD0902-8878-11D1-8C21-00C04FD8D503}']
 
1766
    procedure DeleteObject(lnFlags: Integer); dispid 2;
 
1767
  end;
 
1768
  {$endif}
 
1769
// *********************************************************************//
 
1770
// Interface: IADsNamespaces
 
1771
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1772
// GUID:      {28B96BA0-B330-11CF-A9AD-00AA006BC149}
 
1773
// *********************************************************************//
 
1774
  IADsNamespaces = interface(IADs)
 
1775
    ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
 
1776
    function  Get_DefaultContainer: WideString; safecall;
 
1777
    procedure Set_DefaultContainer(const retval: WideString); safecall;
 
1778
    property DefaultContainer: WideString read Get_DefaultContainer write Set_DefaultContainer;
 
1779
  end;
 
1780
 
 
1781
// *********************************************************************//
 
1782
// DispIntf:  IADsNamespacesDisp
 
1783
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1784
// GUID:      {28B96BA0-B330-11CF-A9AD-00AA006BC149}
 
1785
// *********************************************************************//
 
1786
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1787
  IADsNamespacesDisp = dispinterface
 
1788
    ['{28B96BA0-B330-11CF-A9AD-00AA006BC149}']
 
1789
    property DefaultContainer: WideString dispid 1;
 
1790
    property Name: WideString readonly dispid 2;
 
1791
    property Class_: WideString readonly dispid 3;
 
1792
    property GUID: WideString readonly dispid 4;
 
1793
    property ADsPath: WideString readonly dispid 5;
 
1794
    property Parent: WideString readonly dispid 6;
 
1795
    property Schema: WideString readonly dispid 7;
 
1796
    procedure GetInfo; dispid 8;
 
1797
    procedure SetInfo; dispid 9;
 
1798
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
1799
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
1800
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
1801
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
1802
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
1803
  end;
 
1804
  {$endif}
 
1805
 
 
1806
// *********************************************************************//
 
1807
// Interface: IADsClass
 
1808
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1809
// GUID:      {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
 
1810
// *********************************************************************//
 
1811
  IADsClass = interface(IADs)
 
1812
    ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
 
1813
    function  Get_PrimaryInterface: WideString; safecall;
 
1814
    function  Get_CLSID: WideString; safecall;
 
1815
    procedure Set_CLSID(const retval: WideString); safecall;
 
1816
    function  Get_OID: WideString; safecall;
 
1817
    procedure Set_OID(const retval: WideString); safecall;
 
1818
    function  Get_Abstract: WordBool; safecall;
 
1819
    procedure Set_Abstract(retval: WordBool); safecall;
 
1820
    function  Get_Auxiliary: WordBool; safecall;
 
1821
    procedure Set_Auxiliary(retval: WordBool); safecall;
 
1822
    function  Get_MandatoryProperties: OleVariant; safecall;
 
1823
    procedure Set_MandatoryProperties(retval: OleVariant); safecall;
 
1824
    function  Get_OptionalProperties: OleVariant; safecall;
 
1825
    procedure Set_OptionalProperties(retval: OleVariant); safecall;
 
1826
    function  Get_NamingProperties: OleVariant; safecall;
 
1827
    procedure Set_NamingProperties(retval: OleVariant); safecall;
 
1828
    function  Get_DerivedFrom: OleVariant; safecall;
 
1829
    procedure Set_DerivedFrom(retval: OleVariant); safecall;
 
1830
    function  Get_AuxDerivedFrom: OleVariant; safecall;
 
1831
    procedure Set_AuxDerivedFrom(retval: OleVariant); safecall;
 
1832
    function  Get_PossibleSuperiors: OleVariant; safecall;
 
1833
    procedure Set_PossibleSuperiors(retval: OleVariant); safecall;
 
1834
    function  Get_Containment: OleVariant; safecall;
 
1835
    procedure Set_Containment(retval: OleVariant); safecall;
 
1836
    function  Get_Container: WordBool; safecall;
 
1837
    procedure Set_Container(retval: WordBool); safecall;
 
1838
    function  Get_HelpFileName: WideString; safecall;
 
1839
    procedure Set_HelpFileName(const retval: WideString); safecall;
 
1840
    function  Get_HelpFileContext: Integer; safecall;
 
1841
    procedure Set_HelpFileContext(retval: Integer); safecall;
 
1842
    function  Qualifiers: IADsCollection; safecall;
 
1843
    property PrimaryInterface: WideString read Get_PrimaryInterface;
 
1844
    property CLSID: WideString read Get_CLSID write Set_CLSID;
 
1845
    property OID: WideString read Get_OID write Set_OID;
 
1846
    property Abstract: WordBool read Get_Abstract write Set_Abstract;
 
1847
    property Auxiliary: WordBool read Get_Auxiliary write Set_Auxiliary;
 
1848
    property MandatoryProperties: OleVariant read Get_MandatoryProperties write Set_MandatoryProperties;
 
1849
    property OptionalProperties: OleVariant read Get_OptionalProperties write Set_OptionalProperties;
 
1850
    property NamingProperties: OleVariant read Get_NamingProperties write Set_NamingProperties;
 
1851
    property DerivedFrom: OleVariant read Get_DerivedFrom write Set_DerivedFrom;
 
1852
    property AuxDerivedFrom: OleVariant read Get_AuxDerivedFrom write Set_AuxDerivedFrom;
 
1853
    property PossibleSuperiors: OleVariant read Get_PossibleSuperiors write Set_PossibleSuperiors;
 
1854
    property Containment: OleVariant read Get_Containment write Set_Containment;
 
1855
    property Container: WordBool read Get_Container write Set_Container;
 
1856
    property HelpFileName: WideString read Get_HelpFileName write Set_HelpFileName;
 
1857
    property HelpFileContext: Integer read Get_HelpFileContext write Set_HelpFileContext;
 
1858
  end;
 
1859
 
 
1860
// *********************************************************************//
 
1861
// DispIntf:  IADsClassDisp
 
1862
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1863
// GUID:      {C8F93DD0-4AE0-11CF-9E73-00AA004A5691}
 
1864
// *********************************************************************//
 
1865
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1866
  IADsClassDisp = dispinterface
 
1867
    ['{C8F93DD0-4AE0-11CF-9E73-00AA004A5691}']
 
1868
    property PrimaryInterface: WideString readonly dispid 15;
 
1869
    property CLSID: WideString dispid 16;
 
1870
    property OID: WideString dispid 17;
 
1871
    property Abstract: WordBool dispid 18;
 
1872
    property Auxiliary: WordBool dispid 26;
 
1873
    property MandatoryProperties: OleVariant dispid 19;
 
1874
    property OptionalProperties: OleVariant dispid 29;
 
1875
    property NamingProperties: OleVariant dispid 30;
 
1876
    property DerivedFrom: OleVariant dispid 20;
 
1877
    property AuxDerivedFrom: OleVariant dispid 27;
 
1878
    property PossibleSuperiors: OleVariant dispid 28;
 
1879
    property Containment: OleVariant dispid 21;
 
1880
    property Container: WordBool dispid 22;
 
1881
    property HelpFileName: WideString dispid 23;
 
1882
    property HelpFileContext: Integer dispid 24;
 
1883
    function  Qualifiers: IADsCollection; dispid 25;
 
1884
    property Name: WideString readonly dispid 2;
 
1885
    property Class_: WideString readonly dispid 3;
 
1886
    property GUID: WideString readonly dispid 4;
 
1887
    property ADsPath: WideString readonly dispid 5;
 
1888
    property Parent: WideString readonly dispid 6;
 
1889
    property Schema: WideString readonly dispid 7;
 
1890
    procedure GetInfo; dispid 8;
 
1891
    procedure SetInfo; dispid 9;
 
1892
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
1893
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
1894
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
1895
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
1896
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
1897
  end;
 
1898
  {$endif}
 
1899
// *********************************************************************//
 
1900
// Interface: IADsProperty
 
1901
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1902
// GUID:      {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
 
1903
// *********************************************************************//
 
1904
  IADsProperty = interface(IADs)
 
1905
    ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
 
1906
    function  Get_OID: WideString; safecall;
 
1907
    procedure Set_OID(const retval: WideString); safecall;
 
1908
    function  Get_Syntax: WideString; safecall;
 
1909
    procedure Set_Syntax(const retval: WideString); safecall;
 
1910
    function  Get_MaxRange: Integer; safecall;
 
1911
    procedure Set_MaxRange(retval: Integer); safecall;
 
1912
    function  Get_MinRange: Integer; safecall;
 
1913
    procedure Set_MinRange(retval: Integer); safecall;
 
1914
    function  Get_MultiValued: WordBool; safecall;
 
1915
    procedure Set_MultiValued(retval: WordBool); safecall;
 
1916
    function  Qualifiers: IADsCollection; safecall;
 
1917
    property OID: WideString read Get_OID write Set_OID;
 
1918
    property Syntax: WideString read Get_Syntax write Set_Syntax;
 
1919
    property MaxRange: Integer read Get_MaxRange write Set_MaxRange;
 
1920
    property MinRange: Integer read Get_MinRange write Set_MinRange;
 
1921
    property MultiValued: WordBool read Get_MultiValued write Set_MultiValued;
 
1922
  end;
 
1923
 
 
1924
// *********************************************************************//
 
1925
// DispIntf:  IADsPropertyDisp
 
1926
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1927
// GUID:      {C8F93DD3-4AE0-11CF-9E73-00AA004A5691}
 
1928
// *********************************************************************//
 
1929
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1930
  IADsPropertyDisp = dispinterface
 
1931
    ['{C8F93DD3-4AE0-11CF-9E73-00AA004A5691}']
 
1932
    property OID: WideString dispid 17;
 
1933
    property Syntax: WideString dispid 18;
 
1934
    property MaxRange: Integer dispid 19;
 
1935
    property MinRange: Integer dispid 20;
 
1936
    property MultiValued: WordBool dispid 21;
 
1937
    function  Qualifiers: IADsCollection; dispid 22;
 
1938
    property Name: WideString readonly dispid 2;
 
1939
    property Class_: WideString readonly dispid 3;
 
1940
    property GUID: WideString readonly dispid 4;
 
1941
    property ADsPath: WideString readonly dispid 5;
 
1942
    property Parent: WideString readonly dispid 6;
 
1943
    property Schema: WideString readonly dispid 7;
 
1944
    procedure GetInfo; dispid 8;
 
1945
    procedure SetInfo; dispid 9;
 
1946
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
1947
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
1948
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
1949
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
1950
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
1951
  end;
 
1952
  {$endif}
 
1953
 
 
1954
// *********************************************************************//
 
1955
// Interface: IADsSyntax
 
1956
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1957
// GUID:      {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
 
1958
// *********************************************************************//
 
1959
  IADsSyntax = interface(IADs)
 
1960
    ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
 
1961
    function  Get_OleAutoDataType: Integer; safecall;
 
1962
    procedure Set_OleAutoDataType(retval: Integer); safecall;
 
1963
    property OleAutoDataType: Integer read Get_OleAutoDataType write Set_OleAutoDataType;
 
1964
  end;
 
1965
 
 
1966
// *********************************************************************//
 
1967
// DispIntf:  IADsSyntaxDisp
 
1968
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1969
// GUID:      {C8F93DD2-4AE0-11CF-9E73-00AA004A5691}
 
1970
// *********************************************************************//
 
1971
  {$ifdef SUPPORTS_DISPINTERFACE}
 
1972
  IADsSyntaxDisp = dispinterface
 
1973
    ['{C8F93DD2-4AE0-11CF-9E73-00AA004A5691}']
 
1974
    property OleAutoDataType: Integer dispid 15;
 
1975
    property Name: WideString readonly dispid 2;
 
1976
    property Class_: WideString readonly dispid 3;
 
1977
    property GUID: WideString readonly dispid 4;
 
1978
    property ADsPath: WideString readonly dispid 5;
 
1979
    property Parent: WideString readonly dispid 6;
 
1980
    property Schema: WideString readonly dispid 7;
 
1981
    procedure GetInfo; dispid 8;
 
1982
    procedure SetInfo; dispid 9;
 
1983
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
1984
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
1985
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
1986
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
1987
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
1988
  end;
 
1989
  {$endif}
 
1990
 
 
1991
// *********************************************************************//
 
1992
// Interface: IADsLocality
 
1993
// Flags:     (4416) Dual OleAutomation Dispatchable
 
1994
// GUID:      {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
 
1995
// *********************************************************************//
 
1996
  IADsLocality = interface(IADs)
 
1997
    ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
 
1998
    function  Get_Description: WideString; safecall;
 
1999
    procedure Set_Description(const retval: WideString); safecall;
 
2000
    function  Get_LocalityName: WideString; safecall;
 
2001
    procedure Set_LocalityName(const retval: WideString); safecall;
 
2002
    function  Get_PostalAddress: WideString; safecall;
 
2003
    procedure Set_PostalAddress(const retval: WideString); safecall;
 
2004
    function  Get_SeeAlso: OleVariant; safecall;
 
2005
    procedure Set_SeeAlso(retval: OleVariant); safecall;
 
2006
    property Description: WideString read Get_Description write Set_Description;
 
2007
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
 
2008
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
 
2009
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
 
2010
  end;
 
2011
 
 
2012
// *********************************************************************//
 
2013
// DispIntf:  IADsLocalityDisp
 
2014
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2015
// GUID:      {A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}
 
2016
// *********************************************************************//
 
2017
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2018
  IADsLocalityDisp = dispinterface
 
2019
    ['{A05E03A2-EFFE-11CF-8ABC-00C04FD8D503}']
 
2020
    property Description: WideString dispid 15;
 
2021
    property LocalityName: WideString dispid 16;
 
2022
    property PostalAddress: WideString dispid 17;
 
2023
    property SeeAlso: OleVariant dispid 18;
 
2024
    property Name: WideString readonly dispid 2;
 
2025
    property Class_: WideString readonly dispid 3;
 
2026
    property GUID: WideString readonly dispid 4;
 
2027
    property ADsPath: WideString readonly dispid 5;
 
2028
    property Parent: WideString readonly dispid 6;
 
2029
    property Schema: WideString readonly dispid 7;
 
2030
    procedure GetInfo; dispid 8;
 
2031
    procedure SetInfo; dispid 9;
 
2032
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2033
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2034
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2035
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2036
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2037
  end;
 
2038
  {$endif}
 
2039
 
 
2040
// *********************************************************************//
 
2041
// Interface: IADsO
 
2042
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2043
// GUID:      {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
 
2044
// *********************************************************************//
 
2045
  IADsO = interface(IADs)
 
2046
    ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
 
2047
    function  Get_Description: WideString; safecall;
 
2048
    procedure Set_Description(const retval: WideString); safecall;
 
2049
    function  Get_LocalityName: WideString; safecall;
 
2050
    procedure Set_LocalityName(const retval: WideString); safecall;
 
2051
    function  Get_PostalAddress: WideString; safecall;
 
2052
    procedure Set_PostalAddress(const retval: WideString); safecall;
 
2053
    function  Get_TelephoneNumber: WideString; safecall;
 
2054
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
 
2055
    function  Get_FaxNumber: WideString; safecall;
 
2056
    procedure Set_FaxNumber(const retval: WideString); safecall;
 
2057
    function  Get_SeeAlso: OleVariant; safecall;
 
2058
    procedure Set_SeeAlso(retval: OleVariant); safecall;
 
2059
    property Description: WideString read Get_Description write Set_Description;
 
2060
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
 
2061
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
 
2062
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
 
2063
    property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
 
2064
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
 
2065
  end;
 
2066
 
 
2067
// *********************************************************************//
 
2068
// DispIntf:  IADsODisp
 
2069
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2070
// GUID:      {A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}
 
2071
// *********************************************************************//
 
2072
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2073
  IADsODisp = dispinterface
 
2074
    ['{A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503}']
 
2075
    property Description: WideString dispid 15;
 
2076
    property LocalityName: WideString dispid 16;
 
2077
    property PostalAddress: WideString dispid 17;
 
2078
    property TelephoneNumber: WideString dispid 18;
 
2079
    property FaxNumber: WideString dispid 19;
 
2080
    property SeeAlso: OleVariant dispid 20;
 
2081
    property Name: WideString readonly dispid 2;
 
2082
    property Class_: WideString readonly dispid 3;
 
2083
    property GUID: WideString readonly dispid 4;
 
2084
    property ADsPath: WideString readonly dispid 5;
 
2085
    property Parent: WideString readonly dispid 6;
 
2086
    property Schema: WideString readonly dispid 7;
 
2087
    procedure GetInfo; dispid 8;
 
2088
    procedure SetInfo; dispid 9;
 
2089
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2090
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2091
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2092
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2093
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2094
  end;
 
2095
  {$endif}
 
2096
 
 
2097
// *********************************************************************//
 
2098
// Interface: IADsOU
 
2099
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2100
// GUID:      {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
 
2101
// *********************************************************************//
 
2102
  IADsOU = interface(IADs)
 
2103
    ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
 
2104
    function  Get_Description: WideString; safecall;
 
2105
    procedure Set_Description(const retval: WideString); safecall;
 
2106
    function  Get_LocalityName: WideString; safecall;
 
2107
    procedure Set_LocalityName(const retval: WideString); safecall;
 
2108
    function  Get_PostalAddress: WideString; safecall;
 
2109
    procedure Set_PostalAddress(const retval: WideString); safecall;
 
2110
    function  Get_TelephoneNumber: WideString; safecall;
 
2111
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
 
2112
    function  Get_FaxNumber: WideString; safecall;
 
2113
    procedure Set_FaxNumber(const retval: WideString); safecall;
 
2114
    function  Get_SeeAlso: OleVariant; safecall;
 
2115
    procedure Set_SeeAlso(retval: OleVariant); safecall;
 
2116
    function  Get_BusinessCategory: WideString; safecall;
 
2117
    procedure Set_BusinessCategory(const retval: WideString); safecall;
 
2118
    property Description: WideString read Get_Description write Set_Description;
 
2119
    property LocalityName: WideString read Get_LocalityName write Set_LocalityName;
 
2120
    property PostalAddress: WideString read Get_PostalAddress write Set_PostalAddress;
 
2121
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
 
2122
    property FaxNumber: WideString read Get_FaxNumber write Set_FaxNumber;
 
2123
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
 
2124
    property BusinessCategory: WideString read Get_BusinessCategory write Set_BusinessCategory;
 
2125
  end;
 
2126
 
 
2127
// *********************************************************************//
 
2128
// DispIntf:  IADsOUDisp
 
2129
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2130
// GUID:      {A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}
 
2131
// *********************************************************************//
 
2132
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2133
  IADsOUDisp = dispinterface
 
2134
    ['{A2F733B8-EFFE-11CF-8ABC-00C04FD8D503}']
 
2135
    property Description: WideString dispid 15;
 
2136
    property LocalityName: WideString dispid 16;
 
2137
    property PostalAddress: WideString dispid 17;
 
2138
    property TelephoneNumber: WideString dispid 18;
 
2139
    property FaxNumber: WideString dispid 19;
 
2140
    property SeeAlso: OleVariant dispid 20;
 
2141
    property BusinessCategory: WideString dispid 21;
 
2142
    property Name: WideString readonly dispid 2;
 
2143
    property Class_: WideString readonly dispid 3;
 
2144
    property GUID: WideString readonly dispid 4;
 
2145
    property ADsPath: WideString readonly dispid 5;
 
2146
    property Parent: WideString readonly dispid 6;
 
2147
    property Schema: WideString readonly dispid 7;
 
2148
    procedure GetInfo; dispid 8;
 
2149
    procedure SetInfo; dispid 9;
 
2150
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2151
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2152
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2153
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2154
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2155
  end;
 
2156
  {$endif}
 
2157
 
 
2158
// *********************************************************************//
 
2159
// Interface: IADsDomain
 
2160
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2161
// GUID:      {00E4C220-FD16-11CE-ABC4-02608C9E7553}
 
2162
// *********************************************************************//
 
2163
  IADsDomain = interface(IADs)
 
2164
    ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
 
2165
    function  Get_IsWorkgroup: WordBool; safecall;
 
2166
    function  Get_MinPasswordLength: Integer; safecall;
 
2167
    procedure Set_MinPasswordLength(retval: Integer); safecall;
 
2168
    function  Get_MinPasswordAge: Integer; safecall;
 
2169
    procedure Set_MinPasswordAge(retval: Integer); safecall;
 
2170
    function  Get_MaxPasswordAge: Integer; safecall;
 
2171
    procedure Set_MaxPasswordAge(retval: Integer); safecall;
 
2172
    function  Get_MaxBadPasswordsAllowed: Integer; safecall;
 
2173
    procedure Set_MaxBadPasswordsAllowed(retval: Integer); safecall;
 
2174
    function  Get_PasswordHistoryLength: Integer; safecall;
 
2175
    procedure Set_PasswordHistoryLength(retval: Integer); safecall;
 
2176
    function  Get_PasswordAttributes: Integer; safecall;
 
2177
    procedure Set_PasswordAttributes(retval: Integer); safecall;
 
2178
    function  Get_AutoUnlockInterval: Integer; safecall;
 
2179
    procedure Set_AutoUnlockInterval(retval: Integer); safecall;
 
2180
    function  Get_LockoutObservationInterval: Integer; safecall;
 
2181
    procedure Set_LockoutObservationInterval(retval: Integer); safecall;
 
2182
    property IsWorkgroup: WordBool read Get_IsWorkgroup;
 
2183
    property MinPasswordLength: Integer read Get_MinPasswordLength write Set_MinPasswordLength;
 
2184
    property MinPasswordAge: Integer read Get_MinPasswordAge write Set_MinPasswordAge;
 
2185
    property MaxPasswordAge: Integer read Get_MaxPasswordAge write Set_MaxPasswordAge;
 
2186
    property MaxBadPasswordsAllowed: Integer read Get_MaxBadPasswordsAllowed write Set_MaxBadPasswordsAllowed;
 
2187
    property PasswordHistoryLength: Integer read Get_PasswordHistoryLength write Set_PasswordHistoryLength;
 
2188
    property PasswordAttributes: Integer read Get_PasswordAttributes write Set_PasswordAttributes;
 
2189
    property AutoUnlockInterval: Integer read Get_AutoUnlockInterval write Set_AutoUnlockInterval;
 
2190
    property LockoutObservationInterval: Integer read Get_LockoutObservationInterval write Set_LockoutObservationInterval;
 
2191
  end;
 
2192
 
 
2193
// *********************************************************************//
 
2194
// DispIntf:  IADsDomainDisp
 
2195
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2196
// GUID:      {00E4C220-FD16-11CE-ABC4-02608C9E7553}
 
2197
// *********************************************************************//
 
2198
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2199
  IADsDomainDisp = dispinterface
 
2200
    ['{00E4C220-FD16-11CE-ABC4-02608C9E7553}']
 
2201
    property IsWorkgroup: WordBool readonly dispid 15;
 
2202
    property MinPasswordLength: Integer dispid 16;
 
2203
    property MinPasswordAge: Integer dispid 17;
 
2204
    property MaxPasswordAge: Integer dispid 18;
 
2205
    property MaxBadPasswordsAllowed: Integer dispid 19;
 
2206
    property PasswordHistoryLength: Integer dispid 20;
 
2207
    property PasswordAttributes: Integer dispid 21;
 
2208
    property AutoUnlockInterval: Integer dispid 22;
 
2209
    property LockoutObservationInterval: Integer dispid 23;
 
2210
    property Name: WideString readonly dispid 2;
 
2211
    property Class_: WideString readonly dispid 3;
 
2212
    property GUID: WideString readonly dispid 4;
 
2213
    property ADsPath: WideString readonly dispid 5;
 
2214
    property Parent: WideString readonly dispid 6;
 
2215
    property Schema: WideString readonly dispid 7;
 
2216
    procedure GetInfo; dispid 8;
 
2217
    procedure SetInfo; dispid 9;
 
2218
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2219
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2220
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2221
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2222
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2223
  end;
 
2224
   {$endif}
 
2225
// *********************************************************************//
 
2226
// Interface: IADsComputer
 
2227
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2228
// GUID:      {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
 
2229
// *********************************************************************//
 
2230
  IADsComputer = interface(IADs)
 
2231
    ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
 
2232
    function  Get_ComputerID: WideString; safecall;
 
2233
    function  Get_Site: WideString; safecall;
 
2234
    function  Get_Description: WideString; safecall;
 
2235
    procedure Set_Description(const retval: WideString); safecall;
 
2236
    function  Get_Location: WideString; safecall;
 
2237
    procedure Set_Location(const retval: WideString); safecall;
 
2238
    function  Get_PrimaryUser: WideString; safecall;
 
2239
    procedure Set_PrimaryUser(const retval: WideString); safecall;
 
2240
    function  Get_Owner: WideString; safecall;
 
2241
    procedure Set_Owner(const retval: WideString); safecall;
 
2242
    function  Get_Division: WideString; safecall;
 
2243
    procedure Set_Division(const retval: WideString); safecall;
 
2244
    function  Get_Department: WideString; safecall;
 
2245
    procedure Set_Department(const retval: WideString); safecall;
 
2246
    function  Get_Role: WideString; safecall;
 
2247
    procedure Set_Role(const retval: WideString); safecall;
 
2248
    function  Get_OperatingSystem: WideString; safecall;
 
2249
    procedure Set_OperatingSystem(const retval: WideString); safecall;
 
2250
    function  Get_OperatingSystemVersion: WideString; safecall;
 
2251
    procedure Set_OperatingSystemVersion(const retval: WideString); safecall;
 
2252
    function  Get_Model: WideString; safecall;
 
2253
    procedure Set_Model(const retval: WideString); safecall;
 
2254
    function  Get_Processor: WideString; safecall;
 
2255
    procedure Set_Processor(const retval: WideString); safecall;
 
2256
    function  Get_ProcessorCount: WideString; safecall;
 
2257
    procedure Set_ProcessorCount(const retval: WideString); safecall;
 
2258
    function  Get_MemorySize: WideString; safecall;
 
2259
    procedure Set_MemorySize(const retval: WideString); safecall;
 
2260
    function  Get_StorageCapacity: WideString; safecall;
 
2261
    procedure Set_StorageCapacity(const retval: WideString); safecall;
 
2262
    function  Get_NetAddresses: OleVariant; safecall;
 
2263
    procedure Set_NetAddresses(retval: OleVariant); safecall;
 
2264
    property ComputerID: WideString read Get_ComputerID;
 
2265
    property Site: WideString read Get_Site;
 
2266
    property Description: WideString read Get_Description write Set_Description;
 
2267
    property Location: WideString read Get_Location write Set_Location;
 
2268
    property PrimaryUser: WideString read Get_PrimaryUser write Set_PrimaryUser;
 
2269
    property Owner: WideString read Get_Owner write Set_Owner;
 
2270
    property Division: WideString read Get_Division write Set_Division;
 
2271
    property Department: WideString read Get_Department write Set_Department;
 
2272
    property Role: WideString read Get_Role write Set_Role;
 
2273
    property OperatingSystem: WideString read Get_OperatingSystem write Set_OperatingSystem;
 
2274
    property OperatingSystemVersion: WideString read Get_OperatingSystemVersion write Set_OperatingSystemVersion;
 
2275
    property Model: WideString read Get_Model write Set_Model;
 
2276
    property Processor: WideString read Get_Processor write Set_Processor;
 
2277
    property ProcessorCount: WideString read Get_ProcessorCount write Set_ProcessorCount;
 
2278
    property MemorySize: WideString read Get_MemorySize write Set_MemorySize;
 
2279
    property StorageCapacity: WideString read Get_StorageCapacity write Set_StorageCapacity;
 
2280
    property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
 
2281
  end;
 
2282
 
 
2283
// *********************************************************************//
 
2284
// DispIntf:  IADsComputerDisp
 
2285
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2286
// GUID:      {EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}
 
2287
// *********************************************************************//
 
2288
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2289
  IADsComputerDisp = dispinterface
 
2290
    ['{EFE3CC70-1D9F-11CF-B1F3-02608C9E7553}']
 
2291
    property ComputerID: WideString readonly dispid 16;
 
2292
    property Site: WideString readonly dispid 18;
 
2293
    property Description: WideString dispid 19;
 
2294
    property Location: WideString dispid 20;
 
2295
    property PrimaryUser: WideString dispid 21;
 
2296
    property Owner: WideString dispid 22;
 
2297
    property Division: WideString dispid 23;
 
2298
    property Department: WideString dispid 24;
 
2299
    property Role: WideString dispid 25;
 
2300
    property OperatingSystem: WideString dispid 26;
 
2301
    property OperatingSystemVersion: WideString dispid 27;
 
2302
    property Model: WideString dispid 28;
 
2303
    property Processor: WideString dispid 29;
 
2304
    property ProcessorCount: WideString dispid 30;
 
2305
    property MemorySize: WideString dispid 31;
 
2306
    property StorageCapacity: WideString dispid 32;
 
2307
    property NetAddresses: OleVariant dispid 17;
 
2308
    property Name: WideString readonly dispid 2;
 
2309
    property Class_: WideString readonly dispid 3;
 
2310
    property GUID: WideString readonly dispid 4;
 
2311
    property ADsPath: WideString readonly dispid 5;
 
2312
    property Parent: WideString readonly dispid 6;
 
2313
    property Schema: WideString readonly dispid 7;
 
2314
    procedure GetInfo; dispid 8;
 
2315
    procedure SetInfo; dispid 9;
 
2316
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2317
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2318
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2319
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2320
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2321
  end;
 
2322
  {$endif}
 
2323
// *********************************************************************//
 
2324
// Interface: IADsComputerOperations
 
2325
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2326
// GUID:      {EF497680-1D9F-11CF-B1F3-02608C9E7553}
 
2327
// *********************************************************************//
 
2328
  IADsComputerOperations = interface(IADs)
 
2329
    ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
 
2330
    function  Status: IDispatch; safecall;
 
2331
    procedure Shutdown(bReboot: WordBool); safecall;
 
2332
  end;
 
2333
 
 
2334
// *********************************************************************//
 
2335
// DispIntf:  IADsComputerOperationsDisp
 
2336
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2337
// GUID:      {EF497680-1D9F-11CF-B1F3-02608C9E7553}
 
2338
// *********************************************************************//
 
2339
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2340
  IADsComputerOperationsDisp = dispinterface
 
2341
    ['{EF497680-1D9F-11CF-B1F3-02608C9E7553}']
 
2342
    function  Status: IDispatch; dispid 33;
 
2343
    procedure Shutdown(bReboot: WordBool); dispid 34;
 
2344
    property Name: WideString readonly dispid 2;
 
2345
    property Class_: WideString readonly dispid 3;
 
2346
    property GUID: WideString readonly dispid 4;
 
2347
    property ADsPath: WideString readonly dispid 5;
 
2348
    property Parent: WideString readonly dispid 6;
 
2349
    property Schema: WideString readonly dispid 7;
 
2350
    procedure GetInfo; dispid 8;
 
2351
    procedure SetInfo; dispid 9;
 
2352
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2353
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2354
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2355
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2356
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2357
  end;
 
2358
  {$endif}
 
2359
// *********************************************************************//
 
2360
// Interface: IADsGroup
 
2361
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2362
// GUID:      {27636B00-410F-11CF-B1FF-02608C9E7553}
 
2363
// *********************************************************************//
 
2364
  IADsGroup = interface(IADs)
 
2365
    ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
 
2366
    function  Get_Description: WideString; safecall;
 
2367
    procedure Set_Description(const retval: WideString); safecall;
 
2368
    function  Members: IADsMembers; safecall;
 
2369
    function  IsMember(const bstrMember: WideString): WordBool; safecall;
 
2370
    procedure Add(const bstrNewItem: WideString); safecall;
 
2371
    procedure Remove(const bstrItemToBeRemoved: WideString); safecall;
 
2372
    property Description: WideString read Get_Description write Set_Description;
 
2373
  end;
 
2374
 
 
2375
// *********************************************************************//
 
2376
// DispIntf:  IADsGroupDisp
 
2377
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2378
// GUID:      {27636B00-410F-11CF-B1FF-02608C9E7553}
 
2379
// *********************************************************************//
 
2380
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2381
  IADsGroupDisp = dispinterface
 
2382
    ['{27636B00-410F-11CF-B1FF-02608C9E7553}']
 
2383
    property Description: WideString dispid 15;
 
2384
    function  Members: IADsMembers; dispid 16;
 
2385
    function  IsMember(const bstrMember: WideString): WordBool; dispid 17;
 
2386
    procedure Add(const bstrNewItem: WideString); dispid 18;
 
2387
    procedure Remove(const bstrItemToBeRemoved: WideString); dispid 19;
 
2388
    property Name: WideString readonly dispid 2;
 
2389
    property Class_: WideString readonly dispid 3;
 
2390
    property GUID: WideString readonly dispid 4;
 
2391
    property ADsPath: WideString readonly dispid 5;
 
2392
    property Parent: WideString readonly dispid 6;
 
2393
    property Schema: WideString readonly dispid 7;
 
2394
    procedure GetInfo; dispid 8;
 
2395
    procedure SetInfo; dispid 9;
 
2396
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2397
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2398
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2399
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2400
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2401
  end;
 
2402
  {$endif}
 
2403
// *********************************************************************//
 
2404
// Interface: IADsUser
 
2405
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2406
// GUID:      {3E37E320-17E2-11CF-ABC4-02608C9E7553}
 
2407
// *********************************************************************//
 
2408
  IADsUser = interface(IADs)
 
2409
    ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
 
2410
    function  Get_BadLoginAddress: WideString; safecall;
 
2411
    function  Get_BadLoginCount: Integer; safecall;
 
2412
    function  Get_LastLogin: TDateTime; safecall;
 
2413
    function  Get_LastLogoff: TDateTime; safecall;
 
2414
    function  Get_LastFailedLogin: TDateTime; safecall;
 
2415
    function  Get_PasswordLastChanged: TDateTime; safecall;
 
2416
    function  Get_Description: WideString; safecall;
 
2417
    procedure Set_Description(const retval: WideString); safecall;
 
2418
    function  Get_Division: WideString; safecall;
 
2419
    procedure Set_Division(const retval: WideString); safecall;
 
2420
    function  Get_Department: WideString; safecall;
 
2421
    procedure Set_Department(const retval: WideString); safecall;
 
2422
    function  Get_EmployeeID: WideString; safecall;
 
2423
    procedure Set_EmployeeID(const retval: WideString); safecall;
 
2424
    function  Get_FullName: WideString; safecall;
 
2425
    procedure Set_FullName(const retval: WideString); safecall;
 
2426
    function  Get_FirstName: WideString; safecall;
 
2427
    procedure Set_FirstName(const retval: WideString); safecall;
 
2428
    function  Get_LastName: WideString; safecall;
 
2429
    procedure Set_LastName(const retval: WideString); safecall;
 
2430
    function  Get_OtherName: WideString; safecall;
 
2431
    procedure Set_OtherName(const retval: WideString); safecall;
 
2432
    function  Get_NamePrefix: WideString; safecall;
 
2433
    procedure Set_NamePrefix(const retval: WideString); safecall;
 
2434
    function  Get_NameSuffix: WideString; safecall;
 
2435
    procedure Set_NameSuffix(const retval: WideString); safecall;
 
2436
    function  Get_Title: WideString; safecall;
 
2437
    procedure Set_Title(const retval: WideString); safecall;
 
2438
    function  Get_Manager: WideString; safecall;
 
2439
    procedure Set_Manager(const retval: WideString); safecall;
 
2440
    function  Get_TelephoneHome: OleVariant; safecall;
 
2441
    procedure Set_TelephoneHome(retval: OleVariant); safecall;
 
2442
    function  Get_TelephoneMobile: OleVariant; safecall;
 
2443
    procedure Set_TelephoneMobile(retval: OleVariant); safecall;
 
2444
    function  Get_TelephoneNumber: OleVariant; safecall;
 
2445
    procedure Set_TelephoneNumber(retval: OleVariant); safecall;
 
2446
    function  Get_TelephonePager: OleVariant; safecall;
 
2447
    procedure Set_TelephonePager(retval: OleVariant); safecall;
 
2448
    function  Get_FaxNumber: OleVariant; safecall;
 
2449
    procedure Set_FaxNumber(retval: OleVariant); safecall;
 
2450
    function  Get_OfficeLocations: OleVariant; safecall;
 
2451
    procedure Set_OfficeLocations(retval: OleVariant); safecall;
 
2452
    function  Get_PostalAddresses: OleVariant; safecall;
 
2453
    procedure Set_PostalAddresses(retval: OleVariant); safecall;
 
2454
    function  Get_PostalCodes: OleVariant; safecall;
 
2455
    procedure Set_PostalCodes(retval: OleVariant); safecall;
 
2456
    function  Get_SeeAlso: OleVariant; safecall;
 
2457
    procedure Set_SeeAlso(retval: OleVariant); safecall;
 
2458
    function  Get_AccountDisabled: WordBool; safecall;
 
2459
    procedure Set_AccountDisabled(retval: WordBool); safecall;
 
2460
    function  Get_AccountExpirationDate: TDateTime; safecall;
 
2461
    procedure Set_AccountExpirationDate(retval: TDateTime); safecall;
 
2462
    function  Get_GraceLoginsAllowed: Integer; safecall;
 
2463
    procedure Set_GraceLoginsAllowed(retval: Integer); safecall;
 
2464
    function  Get_GraceLoginsRemaining: Integer; safecall;
 
2465
    procedure Set_GraceLoginsRemaining(retval: Integer); safecall;
 
2466
    function  Get_IsAccountLocked: WordBool; safecall;
 
2467
    procedure Set_IsAccountLocked(retval: WordBool); safecall;
 
2468
    function  Get_LoginHours: OleVariant; safecall;
 
2469
    procedure Set_LoginHours(retval: OleVariant); safecall;
 
2470
    function  Get_LoginWorkstations: OleVariant; safecall;
 
2471
    procedure Set_LoginWorkstations(retval: OleVariant); safecall;
 
2472
    function  Get_MaxLogins: Integer; safecall;
 
2473
    procedure Set_MaxLogins(retval: Integer); safecall;
 
2474
    function  Get_MaxStorage: Integer; safecall;
 
2475
    procedure Set_MaxStorage(retval: Integer); safecall;
 
2476
    function  Get_PasswordExpirationDate: TDateTime; safecall;
 
2477
    procedure Set_PasswordExpirationDate(retval: TDateTime); safecall;
 
2478
    function  Get_PasswordMinimumLength: Integer; safecall;
 
2479
    procedure Set_PasswordMinimumLength(retval: Integer); safecall;
 
2480
    function  Get_PasswordRequired: WordBool; safecall;
 
2481
    procedure Set_PasswordRequired(retval: WordBool); safecall;
 
2482
    function  Get_RequireUniquePassword: WordBool; safecall;
 
2483
    procedure Set_RequireUniquePassword(retval: WordBool); safecall;
 
2484
    function  Get_EmailAddress: WideString; safecall;
 
2485
    procedure Set_EmailAddress(const retval: WideString); safecall;
 
2486
    function  Get_HomeDirectory: WideString; safecall;
 
2487
    procedure Set_HomeDirectory(const retval: WideString); safecall;
 
2488
    function  Get_Languages: OleVariant; safecall;
 
2489
    procedure Set_Languages(retval: OleVariant); safecall;
 
2490
    function  Get_Profile: WideString; safecall;
 
2491
    procedure Set_Profile(const retval: WideString); safecall;
 
2492
    function  Get_LoginScript: WideString; safecall;
 
2493
    procedure Set_LoginScript(const retval: WideString); safecall;
 
2494
    function  Get_Picture: OleVariant; safecall;
 
2495
    procedure Set_Picture(retval: OleVariant); safecall;
 
2496
    function  Get_HomePage: WideString; safecall;
 
2497
    procedure Set_HomePage(const retval: WideString); safecall;
 
2498
    function  Groups: IADsMembers; safecall;
 
2499
    procedure SetPassword(const NewPassword: WideString); safecall;
 
2500
    procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); safecall;
 
2501
    property BadLoginAddress: WideString read Get_BadLoginAddress;
 
2502
    property BadLoginCount: Integer read Get_BadLoginCount;
 
2503
    property LastLogin: TDateTime read Get_LastLogin;
 
2504
    property LastLogoff: TDateTime read Get_LastLogoff;
 
2505
    property LastFailedLogin: TDateTime read Get_LastFailedLogin;
 
2506
    property PasswordLastChanged: TDateTime read Get_PasswordLastChanged;
 
2507
    property Description: WideString read Get_Description write Set_Description;
 
2508
    property Division: WideString read Get_Division write Set_Division;
 
2509
    property Department: WideString read Get_Department write Set_Department;
 
2510
    property EmployeeID: WideString read Get_EmployeeID write Set_EmployeeID;
 
2511
    property FullName: WideString read Get_FullName write Set_FullName;
 
2512
    property FirstName: WideString read Get_FirstName write Set_FirstName;
 
2513
    property LastName: WideString read Get_LastName write Set_LastName;
 
2514
    property OtherName: WideString read Get_OtherName write Set_OtherName;
 
2515
    property NamePrefix: WideString read Get_NamePrefix write Set_NamePrefix;
 
2516
    property NameSuffix: WideString read Get_NameSuffix write Set_NameSuffix;
 
2517
    property Title: WideString read Get_Title write Set_Title;
 
2518
    property Manager: WideString read Get_Manager write Set_Manager;
 
2519
    property TelephoneHome: OleVariant read Get_TelephoneHome write Set_TelephoneHome;
 
2520
    property TelephoneMobile: OleVariant read Get_TelephoneMobile write Set_TelephoneMobile;
 
2521
    property TelephoneNumber: OleVariant read Get_TelephoneNumber write Set_TelephoneNumber;
 
2522
    property TelephonePager: OleVariant read Get_TelephonePager write Set_TelephonePager;
 
2523
    property FaxNumber: OleVariant read Get_FaxNumber write Set_FaxNumber;
 
2524
    property OfficeLocations: OleVariant read Get_OfficeLocations write Set_OfficeLocations;
 
2525
    property PostalAddresses: OleVariant read Get_PostalAddresses write Set_PostalAddresses;
 
2526
    property PostalCodes: OleVariant read Get_PostalCodes write Set_PostalCodes;
 
2527
    property SeeAlso: OleVariant read Get_SeeAlso write Set_SeeAlso;
 
2528
    property AccountDisabled: WordBool read Get_AccountDisabled write Set_AccountDisabled;
 
2529
    property AccountExpirationDate: TDateTime read Get_AccountExpirationDate write Set_AccountExpirationDate;
 
2530
    property GraceLoginsAllowed: Integer read Get_GraceLoginsAllowed write Set_GraceLoginsAllowed;
 
2531
    property GraceLoginsRemaining: Integer read Get_GraceLoginsRemaining write Set_GraceLoginsRemaining;
 
2532
    property IsAccountLocked: WordBool read Get_IsAccountLocked write Set_IsAccountLocked;
 
2533
    property LoginHours: OleVariant read Get_LoginHours write Set_LoginHours;
 
2534
    property LoginWorkstations: OleVariant read Get_LoginWorkstations write Set_LoginWorkstations;
 
2535
    property MaxLogins: Integer read Get_MaxLogins write Set_MaxLogins;
 
2536
    property MaxStorage: Integer read Get_MaxStorage write Set_MaxStorage;
 
2537
    property PasswordExpirationDate: TDateTime read Get_PasswordExpirationDate write Set_PasswordExpirationDate;
 
2538
    property PasswordMinimumLength: Integer read Get_PasswordMinimumLength write Set_PasswordMinimumLength;
 
2539
    property PasswordRequired: WordBool read Get_PasswordRequired write Set_PasswordRequired;
 
2540
    property RequireUniquePassword: WordBool read Get_RequireUniquePassword write Set_RequireUniquePassword;
 
2541
    property EmailAddress: WideString read Get_EmailAddress write Set_EmailAddress;
 
2542
    property HomeDirectory: WideString read Get_HomeDirectory write Set_HomeDirectory;
 
2543
    property Languages: OleVariant read Get_Languages write Set_Languages;
 
2544
    property Profile: WideString read Get_Profile write Set_Profile;
 
2545
    property LoginScript: WideString read Get_LoginScript write Set_LoginScript;
 
2546
    property Picture: OleVariant read Get_Picture write Set_Picture;
 
2547
    property HomePage: WideString read Get_HomePage write Set_HomePage;
 
2548
  end;
 
2549
 
 
2550
// *********************************************************************//
 
2551
// DispIntf:  IADsUserDisp
 
2552
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2553
// GUID:      {3E37E320-17E2-11CF-ABC4-02608C9E7553}
 
2554
// *********************************************************************//
 
2555
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2556
  IADsUserDisp = dispinterface
 
2557
    ['{3E37E320-17E2-11CF-ABC4-02608C9E7553}']
 
2558
    property BadLoginAddress: WideString readonly dispid 53;
 
2559
    property BadLoginCount: Integer readonly dispid 54;
 
2560
    property LastLogin: TDateTime readonly dispid 56;
 
2561
    property LastLogoff: TDateTime readonly dispid 57;
 
2562
    property LastFailedLogin: TDateTime readonly dispid 58;
 
2563
    property PasswordLastChanged: TDateTime readonly dispid 59;
 
2564
    property Description: WideString dispid 15;
 
2565
    property Division: WideString dispid 19;
 
2566
    property Department: WideString dispid 122;
 
2567
    property EmployeeID: WideString dispid 20;
 
2568
    property FullName: WideString dispid 23;
 
2569
    property FirstName: WideString dispid 22;
 
2570
    property LastName: WideString dispid 25;
 
2571
    property OtherName: WideString dispid 27;
 
2572
    property NamePrefix: WideString dispid 114;
 
2573
    property NameSuffix: WideString dispid 115;
 
2574
    property Title: WideString dispid 36;
 
2575
    property Manager: WideString dispid 26;
 
2576
    property TelephoneHome: OleVariant dispid 32;
 
2577
    property TelephoneMobile: OleVariant dispid 33;
 
2578
    property TelephoneNumber: OleVariant dispid 34;
 
2579
    property TelephonePager: OleVariant dispid 17;
 
2580
    property FaxNumber: OleVariant dispid 16;
 
2581
    property OfficeLocations: OleVariant dispid 28;
 
2582
    property PostalAddresses: OleVariant dispid 30;
 
2583
    property PostalCodes: OleVariant dispid 31;
 
2584
    property SeeAlso: OleVariant dispid 117;
 
2585
    property AccountDisabled: WordBool dispid 37;
 
2586
    property AccountExpirationDate: TDateTime dispid 38;
 
2587
    property GraceLoginsAllowed: Integer dispid 41;
 
2588
    property GraceLoginsRemaining: Integer dispid 42;
 
2589
    property IsAccountLocked: WordBool dispid 43;
 
2590
    property LoginHours: OleVariant dispid 45;
 
2591
    property LoginWorkstations: OleVariant dispid 46;
 
2592
    property MaxLogins: Integer dispid 47;
 
2593
    property MaxStorage: Integer dispid 48;
 
2594
    property PasswordExpirationDate: TDateTime dispid 49;
 
2595
    property PasswordMinimumLength: Integer dispid 50;
 
2596
    property PasswordRequired: WordBool dispid 51;
 
2597
    property RequireUniquePassword: WordBool dispid 52;
 
2598
    property EmailAddress: WideString dispid 60;
 
2599
    property HomeDirectory: WideString dispid 61;
 
2600
    property Languages: OleVariant dispid 62;
 
2601
    property Profile: WideString dispid 63;
 
2602
    property LoginScript: WideString dispid 64;
 
2603
    property Picture: OleVariant dispid 65;
 
2604
    property HomePage: WideString dispid 120;
 
2605
    function  Groups: IADsMembers; dispid 66;
 
2606
    procedure SetPassword(const NewPassword: WideString); dispid 67;
 
2607
    procedure ChangePassword(const bstrOldPassword: WideString; const bstrNewPassword: WideString); dispid 68;
 
2608
    property Name: WideString readonly dispid 2;
 
2609
    property Class_: WideString readonly dispid 3;
 
2610
    property GUID: WideString readonly dispid 4;
 
2611
    property ADsPath: WideString readonly dispid 5;
 
2612
    property Parent: WideString readonly dispid 6;
 
2613
    property Schema: WideString readonly dispid 7;
 
2614
    procedure GetInfo; dispid 8;
 
2615
    procedure SetInfo; dispid 9;
 
2616
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2617
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2618
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2619
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2620
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2621
  end;
 
2622
  {$endif}
 
2623
// *********************************************************************//
 
2624
// Interface: IADsPrintQueue
 
2625
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2626
// GUID:      {B15160D0-1226-11CF-A985-00AA006BC149}
 
2627
// *********************************************************************//
 
2628
  IADsPrintQueue = interface(IADs)
 
2629
    ['{B15160D0-1226-11CF-A985-00AA006BC149}']
 
2630
    function  Get_PrinterPath: WideString; safecall;
 
2631
    procedure Set_PrinterPath(const retval: WideString); safecall;
 
2632
    function  Get_Model: WideString; safecall;
 
2633
    procedure Set_Model(const retval: WideString); safecall;
 
2634
    function  Get_Datatype: WideString; safecall;
 
2635
    procedure Set_Datatype(const retval: WideString); safecall;
 
2636
    function  Get_PrintProcessor: WideString; safecall;
 
2637
    procedure Set_PrintProcessor(const retval: WideString); safecall;
 
2638
    function  Get_Description: WideString; safecall;
 
2639
    procedure Set_Description(const retval: WideString); safecall;
 
2640
    function  Get_Location: WideString; safecall;
 
2641
    procedure Set_Location(const retval: WideString); safecall;
 
2642
    function  Get_StartTime: TDateTime; safecall;
 
2643
    procedure Set_StartTime(retval: TDateTime); safecall;
 
2644
    function  Get_UntilTime: TDateTime; safecall;
 
2645
    procedure Set_UntilTime(retval: TDateTime); safecall;
 
2646
    function  Get_DefaultJobPriority: Integer; safecall;
 
2647
    procedure Set_DefaultJobPriority(retval: Integer); safecall;
 
2648
    function  Get_Priority: Integer; safecall;
 
2649
    procedure Set_Priority(retval: Integer); safecall;
 
2650
    function  Get_BannerPage: WideString; safecall;
 
2651
    procedure Set_BannerPage(const retval: WideString); safecall;
 
2652
    function  Get_PrintDevices: OleVariant; safecall;
 
2653
    procedure Set_PrintDevices(retval: OleVariant); safecall;
 
2654
    function  Get_NetAddresses: OleVariant; safecall;
 
2655
    procedure Set_NetAddresses(retval: OleVariant); safecall;
 
2656
    property PrinterPath: WideString read Get_PrinterPath write Set_PrinterPath;
 
2657
    property Model: WideString read Get_Model write Set_Model;
 
2658
    property Datatype: WideString read Get_Datatype write Set_Datatype;
 
2659
    property PrintProcessor: WideString read Get_PrintProcessor write Set_PrintProcessor;
 
2660
    property Description: WideString read Get_Description write Set_Description;
 
2661
    property Location: WideString read Get_Location write Set_Location;
 
2662
    property StartTime: TDateTime read Get_StartTime write Set_StartTime;
 
2663
    property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
 
2664
    property DefaultJobPriority: Integer read Get_DefaultJobPriority write Set_DefaultJobPriority;
 
2665
    property Priority: Integer read Get_Priority write Set_Priority;
 
2666
    property BannerPage: WideString read Get_BannerPage write Set_BannerPage;
 
2667
    property PrintDevices: OleVariant read Get_PrintDevices write Set_PrintDevices;
 
2668
    property NetAddresses: OleVariant read Get_NetAddresses write Set_NetAddresses;
 
2669
  end;
 
2670
 
 
2671
// *********************************************************************//
 
2672
// DispIntf:  IADsPrintQueueDisp
 
2673
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2674
// GUID:      {B15160D0-1226-11CF-A985-00AA006BC149}
 
2675
// *********************************************************************//
 
2676
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2677
  IADsPrintQueueDisp = dispinterface
 
2678
    ['{B15160D0-1226-11CF-A985-00AA006BC149}']
 
2679
    property PrinterPath: WideString dispid 15;
 
2680
    property Model: WideString dispid 16;
 
2681
    property Datatype: WideString dispid 17;
 
2682
    property PrintProcessor: WideString dispid 18;
 
2683
    property Description: WideString dispid 19;
 
2684
    property Location: WideString dispid 20;
 
2685
    property StartTime: TDateTime dispid 21;
 
2686
    property UntilTime: TDateTime dispid 22;
 
2687
    property DefaultJobPriority: Integer dispid 23;
 
2688
    property Priority: Integer dispid 24;
 
2689
    property BannerPage: WideString dispid 25;
 
2690
    property PrintDevices: OleVariant dispid 26;
 
2691
    property NetAddresses: OleVariant dispid 27;
 
2692
    property Name: WideString readonly dispid 2;
 
2693
    property Class_: WideString readonly dispid 3;
 
2694
    property GUID: WideString readonly dispid 4;
 
2695
    property ADsPath: WideString readonly dispid 5;
 
2696
    property Parent: WideString readonly dispid 6;
 
2697
    property Schema: WideString readonly dispid 7;
 
2698
    procedure GetInfo; dispid 8;
 
2699
    procedure SetInfo; dispid 9;
 
2700
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2701
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2702
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2703
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2704
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2705
  end;
 
2706
  {$endif}
 
2707
// *********************************************************************//
 
2708
// Interface: IADsPrintQueueOperations
 
2709
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2710
// GUID:      {124BE5C0-156E-11CF-A986-00AA006BC149}
 
2711
// *********************************************************************//
 
2712
  IADsPrintQueueOperations = interface(IADs)
 
2713
    ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
 
2714
    function  Get_Status: Integer; safecall;
 
2715
    function  PrintJobs: IADsCollection; safecall;
 
2716
    procedure Pause; safecall;
 
2717
    procedure Resume; safecall;
 
2718
    procedure Purge; safecall;
 
2719
    property Status: Integer read Get_Status;
 
2720
  end;
 
2721
 
 
2722
// *********************************************************************//
 
2723
// DispIntf:  IADsPrintQueueOperationsDisp
 
2724
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2725
// GUID:      {124BE5C0-156E-11CF-A986-00AA006BC149}
 
2726
// *********************************************************************//
 
2727
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2728
  IADsPrintQueueOperationsDisp = dispinterface
 
2729
    ['{124BE5C0-156E-11CF-A986-00AA006BC149}']
 
2730
    property Status: Integer readonly dispid 27;
 
2731
    function  PrintJobs: IADsCollection; dispid 28;
 
2732
    procedure Pause; dispid 29;
 
2733
    procedure Resume; dispid 30;
 
2734
    procedure Purge; dispid 31;
 
2735
    property Name: WideString readonly dispid 2;
 
2736
    property Class_: WideString readonly dispid 3;
 
2737
    property GUID: WideString readonly dispid 4;
 
2738
    property ADsPath: WideString readonly dispid 5;
 
2739
    property Parent: WideString readonly dispid 6;
 
2740
    property Schema: WideString readonly dispid 7;
 
2741
    procedure GetInfo; dispid 8;
 
2742
    procedure SetInfo; dispid 9;
 
2743
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2744
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2745
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2746
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2747
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2748
  end;
 
2749
  {$endif}
 
2750
// *********************************************************************//
 
2751
// Interface: IADsPrintJob
 
2752
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2753
// GUID:      {32FB6780-1ED0-11CF-A988-00AA006BC149}
 
2754
// *********************************************************************//
 
2755
  IADsPrintJob = interface(IADs)
 
2756
    ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
 
2757
    function  Get_HostPrintQueue: WideString; safecall;
 
2758
    function  Get_User: WideString; safecall;
 
2759
    function  Get_UserPath: WideString; safecall;
 
2760
    function  Get_TimeSubmitted: TDateTime; safecall;
 
2761
    function  Get_TotalPages: Integer; safecall;
 
2762
    function  Get_Size: Integer; safecall;
 
2763
    function  Get_Description: WideString; safecall;
 
2764
    procedure Set_Description(const retval: WideString); safecall;
 
2765
    function  Get_Priority: Integer; safecall;
 
2766
    procedure Set_Priority(retval: Integer); safecall;
 
2767
    function  Get_StartTime: TDateTime; safecall;
 
2768
    procedure Set_StartTime(retval: TDateTime); safecall;
 
2769
    function  Get_UntilTime: TDateTime; safecall;
 
2770
    procedure Set_UntilTime(retval: TDateTime); safecall;
 
2771
    function  Get_Notify: WideString; safecall;
 
2772
    procedure Set_Notify(const retval: WideString); safecall;
 
2773
    function  Get_NotifyPath: WideString; safecall;
 
2774
    procedure Set_NotifyPath(const retval: WideString); safecall;
 
2775
    property HostPrintQueue: WideString read Get_HostPrintQueue;
 
2776
    property User: WideString read Get_User;
 
2777
    property UserPath: WideString read Get_UserPath;
 
2778
    property TimeSubmitted: TDateTime read Get_TimeSubmitted;
 
2779
    property TotalPages: Integer read Get_TotalPages;
 
2780
    property Size: Integer read Get_Size;
 
2781
    property Description: WideString read Get_Description write Set_Description;
 
2782
    property Priority: Integer read Get_Priority write Set_Priority;
 
2783
    property StartTime: TDateTime read Get_StartTime write Set_StartTime;
 
2784
    property UntilTime: TDateTime read Get_UntilTime write Set_UntilTime;
 
2785
    property Notify: WideString read Get_Notify write Set_Notify;
 
2786
    property NotifyPath: WideString read Get_NotifyPath write Set_NotifyPath;
 
2787
  end;
 
2788
 
 
2789
// *********************************************************************//
 
2790
// DispIntf:  IADsPrintJobDisp
 
2791
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2792
// GUID:      {32FB6780-1ED0-11CF-A988-00AA006BC149}
 
2793
// *********************************************************************//
 
2794
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2795
  IADsPrintJobDisp = dispinterface
 
2796
    ['{32FB6780-1ED0-11CF-A988-00AA006BC149}']
 
2797
    property HostPrintQueue: WideString readonly dispid 15;
 
2798
    property User: WideString readonly dispid 16;
 
2799
    property UserPath: WideString readonly dispid 17;
 
2800
    property TimeSubmitted: TDateTime readonly dispid 18;
 
2801
    property TotalPages: Integer readonly dispid 19;
 
2802
    property Size: Integer readonly dispid 234;
 
2803
    property Description: WideString dispid 20;
 
2804
    property Priority: Integer dispid 21;
 
2805
    property StartTime: TDateTime dispid 22;
 
2806
    property UntilTime: TDateTime dispid 23;
 
2807
    property Notify: WideString dispid 24;
 
2808
    property NotifyPath: WideString dispid 25;
 
2809
    property Name: WideString readonly dispid 2;
 
2810
    property Class_: WideString readonly dispid 3;
 
2811
    property GUID: WideString readonly dispid 4;
 
2812
    property ADsPath: WideString readonly dispid 5;
 
2813
    property Parent: WideString readonly dispid 6;
 
2814
    property Schema: WideString readonly dispid 7;
 
2815
    procedure GetInfo; dispid 8;
 
2816
    procedure SetInfo; dispid 9;
 
2817
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2818
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2819
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2820
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2821
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2822
  end;
 
2823
  {$endif}
 
2824
// *********************************************************************//
 
2825
// Interface: IADsPrintJobOperations
 
2826
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2827
// GUID:      {9A52DB30-1ECF-11CF-A988-00AA006BC149}
 
2828
// *********************************************************************//
 
2829
  IADsPrintJobOperations = interface(IADs)
 
2830
    ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
 
2831
    function  Get_Status: Integer; safecall;
 
2832
    function  Get_TimeElapsed: Integer; safecall;
 
2833
    function  Get_PagesPrinted: Integer; safecall;
 
2834
    function  Get_Position: Integer; safecall;
 
2835
    procedure Set_Position(retval: Integer); safecall;
 
2836
    procedure Pause; safecall;
 
2837
    procedure Resume; safecall;
 
2838
    property Status: Integer read Get_Status;
 
2839
    property TimeElapsed: Integer read Get_TimeElapsed;
 
2840
    property PagesPrinted: Integer read Get_PagesPrinted;
 
2841
    property Position: Integer read Get_Position write Set_Position;
 
2842
  end;
 
2843
 
 
2844
// *********************************************************************//
 
2845
// DispIntf:  IADsPrintJobOperationsDisp
 
2846
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2847
// GUID:      {9A52DB30-1ECF-11CF-A988-00AA006BC149}
 
2848
// *********************************************************************//
 
2849
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2850
  IADsPrintJobOperationsDisp = dispinterface
 
2851
    ['{9A52DB30-1ECF-11CF-A988-00AA006BC149}']
 
2852
    property Status: Integer readonly dispid 26;
 
2853
    property TimeElapsed: Integer readonly dispid 27;
 
2854
    property PagesPrinted: Integer readonly dispid 28;
 
2855
    property Position: Integer dispid 29;
 
2856
    procedure Pause; dispid 30;
 
2857
    procedure Resume; dispid 31;
 
2858
    property Name: WideString readonly dispid 2;
 
2859
    property Class_: WideString readonly dispid 3;
 
2860
    property GUID: WideString readonly dispid 4;
 
2861
    property ADsPath: WideString readonly dispid 5;
 
2862
    property Parent: WideString readonly dispid 6;
 
2863
    property Schema: WideString readonly dispid 7;
 
2864
    procedure GetInfo; dispid 8;
 
2865
    procedure SetInfo; dispid 9;
 
2866
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2867
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2868
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2869
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2870
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2871
  end;
 
2872
  {$endif}
 
2873
// *********************************************************************//
 
2874
// Interface: IADsService
 
2875
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2876
// GUID:      {68AF66E0-31CA-11CF-A98A-00AA006BC149}
 
2877
// *********************************************************************//
 
2878
  IADsService = interface(IADs)
 
2879
    ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
 
2880
    function  Get_HostComputer: WideString; safecall;
 
2881
    procedure Set_HostComputer(const retval: WideString); safecall;
 
2882
    function  Get_DisplayName: WideString; safecall;
 
2883
    procedure Set_DisplayName(const retval: WideString); safecall;
 
2884
    function  Get_Version: WideString; safecall;
 
2885
    procedure Set_Version(const retval: WideString); safecall;
 
2886
    function  Get_ServiceType: Integer; safecall;
 
2887
    procedure Set_ServiceType(retval: Integer); safecall;
 
2888
    function  Get_StartType: Integer; safecall;
 
2889
    procedure Set_StartType(retval: Integer); safecall;
 
2890
    function  Get_Path: WideString; safecall;
 
2891
    procedure Set_Path(const retval: WideString); safecall;
 
2892
    function  Get_StartupParameters: WideString; safecall;
 
2893
    procedure Set_StartupParameters(const retval: WideString); safecall;
 
2894
    function  Get_ErrorControl: Integer; safecall;
 
2895
    procedure Set_ErrorControl(retval: Integer); safecall;
 
2896
    function  Get_LoadOrderGroup: WideString; safecall;
 
2897
    procedure Set_LoadOrderGroup(const retval: WideString); safecall;
 
2898
    function  Get_ServiceAccountName: WideString; safecall;
 
2899
    procedure Set_ServiceAccountName(const retval: WideString); safecall;
 
2900
    function  Get_ServiceAccountPath: WideString; safecall;
 
2901
    procedure Set_ServiceAccountPath(const retval: WideString); safecall;
 
2902
    function  Get_Dependencies: OleVariant; safecall;
 
2903
    procedure Set_Dependencies(retval: OleVariant); safecall;
 
2904
    property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
 
2905
    property DisplayName: WideString read Get_DisplayName write Set_DisplayName;
 
2906
    property Version: WideString read Get_Version write Set_Version;
 
2907
    property ServiceType: Integer read Get_ServiceType write Set_ServiceType;
 
2908
    property StartType: Integer read Get_StartType write Set_StartType;
 
2909
    property Path: WideString read Get_Path write Set_Path;
 
2910
    property StartupParameters: WideString read Get_StartupParameters write Set_StartupParameters;
 
2911
    property ErrorControl: Integer read Get_ErrorControl write Set_ErrorControl;
 
2912
    property LoadOrderGroup: WideString read Get_LoadOrderGroup write Set_LoadOrderGroup;
 
2913
    property ServiceAccountName: WideString read Get_ServiceAccountName write Set_ServiceAccountName;
 
2914
    property ServiceAccountPath: WideString read Get_ServiceAccountPath write Set_ServiceAccountPath;
 
2915
    property Dependencies: OleVariant read Get_Dependencies write Set_Dependencies;
 
2916
  end;
 
2917
 
 
2918
// *********************************************************************//
 
2919
// DispIntf:  IADsServiceDisp
 
2920
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2921
// GUID:      {68AF66E0-31CA-11CF-A98A-00AA006BC149}
 
2922
// *********************************************************************//
 
2923
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2924
  IADsServiceDisp = dispinterface
 
2925
    ['{68AF66E0-31CA-11CF-A98A-00AA006BC149}']
 
2926
    property HostComputer: WideString dispid 15;
 
2927
    property DisplayName: WideString dispid 16;
 
2928
    property Version: WideString dispid 17;
 
2929
    property ServiceType: Integer dispid 18;
 
2930
    property StartType: Integer dispid 19;
 
2931
    property Path: WideString dispid 20;
 
2932
    property StartupParameters: WideString dispid 21;
 
2933
    property ErrorControl: Integer dispid 22;
 
2934
    property LoadOrderGroup: WideString dispid 23;
 
2935
    property ServiceAccountName: WideString dispid 24;
 
2936
    property ServiceAccountPath: WideString dispid 25;
 
2937
    property Dependencies: OleVariant dispid 26;
 
2938
    property Name: WideString readonly dispid 2;
 
2939
    property Class_: WideString readonly dispid 3;
 
2940
    property GUID: WideString readonly dispid 4;
 
2941
    property ADsPath: WideString readonly dispid 5;
 
2942
    property Parent: WideString readonly dispid 6;
 
2943
    property Schema: WideString readonly dispid 7;
 
2944
    procedure GetInfo; dispid 8;
 
2945
    procedure SetInfo; dispid 9;
 
2946
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2947
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2948
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2949
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2950
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2951
  end;
 
2952
  {$endif}
 
2953
// *********************************************************************//
 
2954
// Interface: IADsServiceOperations
 
2955
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2956
// GUID:      {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
 
2957
// *********************************************************************//
 
2958
  IADsServiceOperations = interface(IADs)
 
2959
    ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
 
2960
    function  Get_Status: Integer; safecall;
 
2961
    procedure Start; safecall;
 
2962
    procedure Stop; safecall;
 
2963
    procedure Pause; safecall;
 
2964
    procedure Continue; safecall;
 
2965
    procedure SetPassword(const bstrNewPassword: WideString); safecall;
 
2966
    property Status: Integer read Get_Status;
 
2967
  end;
 
2968
 
 
2969
// *********************************************************************//
 
2970
// DispIntf:  IADsServiceOperationsDisp
 
2971
// Flags:     (4416) Dual OleAutomation Dispatchable
 
2972
// GUID:      {5D7B33F0-31CA-11CF-A98A-00AA006BC149}
 
2973
// *********************************************************************//
 
2974
  {$ifdef SUPPORTS_DISPINTERFACE}
 
2975
  IADsServiceOperationsDisp = dispinterface
 
2976
    ['{5D7B33F0-31CA-11CF-A98A-00AA006BC149}']
 
2977
    property Status: Integer readonly dispid 27;
 
2978
    procedure Start; dispid 28;
 
2979
    procedure Stop; dispid 29;
 
2980
    procedure Pause; dispid 30;
 
2981
    procedure Continue; dispid 31;
 
2982
    procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
 
2983
    property Name: WideString readonly dispid 2;
 
2984
    property Class_: WideString readonly dispid 3;
 
2985
    property GUID: WideString readonly dispid 4;
 
2986
    property ADsPath: WideString readonly dispid 5;
 
2987
    property Parent: WideString readonly dispid 6;
 
2988
    property Schema: WideString readonly dispid 7;
 
2989
    procedure GetInfo; dispid 8;
 
2990
    procedure SetInfo; dispid 9;
 
2991
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
2992
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
2993
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
2994
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
2995
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
2996
  end;
 
2997
  {$endif}
 
2998
 
 
2999
// *********************************************************************//
 
3000
// Interface: IADsFileService
 
3001
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3002
// GUID:      {A89D1900-31CA-11CF-A98A-00AA006BC149}
 
3003
// *********************************************************************//
 
3004
  IADsFileService = interface(IADsService)
 
3005
    ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
 
3006
    function  Get_Description: WideString; safecall;
 
3007
    procedure Set_Description(const retval: WideString); safecall;
 
3008
    function  Get_MaxUserCount: Integer; safecall;
 
3009
    procedure Set_MaxUserCount(retval: Integer); safecall;
 
3010
    property Description: WideString read Get_Description write Set_Description;
 
3011
    property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
 
3012
  end;
 
3013
 
 
3014
// *********************************************************************//
 
3015
// DispIntf:  IADsFileServiceDisp
 
3016
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3017
// GUID:      {A89D1900-31CA-11CF-A98A-00AA006BC149}
 
3018
// *********************************************************************//
 
3019
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3020
  IADsFileServiceDisp = dispinterface
 
3021
    ['{A89D1900-31CA-11CF-A98A-00AA006BC149}']
 
3022
    property Description: WideString dispid 33;
 
3023
    property MaxUserCount: Integer dispid 34;
 
3024
    property HostComputer: WideString dispid 15;
 
3025
    property DisplayName: WideString dispid 16;
 
3026
    property Version: WideString dispid 17;
 
3027
    property ServiceType: Integer dispid 18;
 
3028
    property StartType: Integer dispid 19;
 
3029
    property Path: WideString dispid 20;
 
3030
    property StartupParameters: WideString dispid 21;
 
3031
    property ErrorControl: Integer dispid 22;
 
3032
    property LoadOrderGroup: WideString dispid 23;
 
3033
    property ServiceAccountName: WideString dispid 24;
 
3034
    property ServiceAccountPath: WideString dispid 25;
 
3035
    property Dependencies: OleVariant dispid 26;
 
3036
    property Name: WideString readonly dispid 2;
 
3037
    property Class_: WideString readonly dispid 3;
 
3038
    property GUID: WideString readonly dispid 4;
 
3039
    property ADsPath: WideString readonly dispid 5;
 
3040
    property Parent: WideString readonly dispid 6;
 
3041
    property Schema: WideString readonly dispid 7;
 
3042
    procedure GetInfo; dispid 8;
 
3043
    procedure SetInfo; dispid 9;
 
3044
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
3045
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
3046
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
3047
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
3048
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
3049
  end;
 
3050
  {$endif}
 
3051
// *********************************************************************//
 
3052
// Interface: IADsFileServiceOperations
 
3053
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3054
// GUID:      {A02DED10-31CA-11CF-A98A-00AA006BC149}
 
3055
// *********************************************************************//
 
3056
  IADsFileServiceOperations = interface(IADsServiceOperations)
 
3057
    ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
 
3058
    function  Sessions: IADsCollection; safecall;
 
3059
    function  Resources: IADsCollection; safecall;
 
3060
  end;
 
3061
 
 
3062
// *********************************************************************//
 
3063
// DispIntf:  IADsFileServiceOperationsDisp
 
3064
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3065
// GUID:      {A02DED10-31CA-11CF-A98A-00AA006BC149}
 
3066
// *********************************************************************//
 
3067
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3068
  IADsFileServiceOperationsDisp = dispinterface
 
3069
    ['{A02DED10-31CA-11CF-A98A-00AA006BC149}']
 
3070
    function  Sessions: IADsCollection; dispid 35;
 
3071
    function  Resources: IADsCollection; dispid 36;
 
3072
    property Status: Integer readonly dispid 27;
 
3073
    procedure Start; dispid 28;
 
3074
    procedure Stop; dispid 29;
 
3075
    procedure Pause; dispid 30;
 
3076
    procedure Continue; dispid 31;
 
3077
    procedure SetPassword(const bstrNewPassword: WideString); dispid 32;
 
3078
    property Name: WideString readonly dispid 2;
 
3079
    property Class_: WideString readonly dispid 3;
 
3080
    property GUID: WideString readonly dispid 4;
 
3081
    property ADsPath: WideString readonly dispid 5;
 
3082
    property Parent: WideString readonly dispid 6;
 
3083
    property Schema: WideString readonly dispid 7;
 
3084
    procedure GetInfo; dispid 8;
 
3085
    procedure SetInfo; dispid 9;
 
3086
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
3087
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
3088
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
3089
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
3090
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
3091
  end;
 
3092
  {$endif}
 
3093
// *********************************************************************//
 
3094
// Interface: IADsFileShare
 
3095
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3096
// GUID:      {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
 
3097
// *********************************************************************//
 
3098
  IADsFileShare = interface(IADs)
 
3099
    ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
 
3100
    function  Get_CurrentUserCount: Integer; safecall;
 
3101
    function  Get_Description: WideString; safecall;
 
3102
    procedure Set_Description(const retval: WideString); safecall;
 
3103
    function  Get_HostComputer: WideString; safecall;
 
3104
    procedure Set_HostComputer(const retval: WideString); safecall;
 
3105
    function  Get_Path: WideString; safecall;
 
3106
    procedure Set_Path(const retval: WideString); safecall;
 
3107
    function  Get_MaxUserCount: Integer; safecall;
 
3108
    procedure Set_MaxUserCount(retval: Integer); safecall;
 
3109
    property CurrentUserCount: Integer read Get_CurrentUserCount;
 
3110
    property Description: WideString read Get_Description write Set_Description;
 
3111
    property HostComputer: WideString read Get_HostComputer write Set_HostComputer;
 
3112
    property Path: WideString read Get_Path write Set_Path;
 
3113
    property MaxUserCount: Integer read Get_MaxUserCount write Set_MaxUserCount;
 
3114
  end;
 
3115
 
 
3116
// *********************************************************************//
 
3117
// DispIntf:  IADsFileShareDisp
 
3118
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3119
// GUID:      {EB6DCAF0-4B83-11CF-A995-00AA006BC149}
 
3120
// *********************************************************************//
 
3121
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3122
  IADsFileShareDisp = dispinterface
 
3123
    ['{EB6DCAF0-4B83-11CF-A995-00AA006BC149}']
 
3124
    property CurrentUserCount: Integer readonly dispid 15;
 
3125
    property Description: WideString dispid 16;
 
3126
    property HostComputer: WideString dispid 17;
 
3127
    property Path: WideString dispid 18;
 
3128
    property MaxUserCount: Integer dispid 19;
 
3129
    property Name: WideString readonly dispid 2;
 
3130
    property Class_: WideString readonly dispid 3;
 
3131
    property GUID: WideString readonly dispid 4;
 
3132
    property ADsPath: WideString readonly dispid 5;
 
3133
    property Parent: WideString readonly dispid 6;
 
3134
    property Schema: WideString readonly dispid 7;
 
3135
    procedure GetInfo; dispid 8;
 
3136
    procedure SetInfo; dispid 9;
 
3137
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
3138
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
3139
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
3140
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
3141
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
3142
  end;
 
3143
  {$endif}
 
3144
 
 
3145
// *********************************************************************//
 
3146
// Interface: IADsSession
 
3147
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3148
// GUID:      {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
 
3149
// *********************************************************************//
 
3150
  IADsSession = interface(IADs)
 
3151
    ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
 
3152
    function  Get_User: WideString; safecall;
 
3153
    function  Get_UserPath: WideString; safecall;
 
3154
    function  Get_Computer: WideString; safecall;
 
3155
    function  Get_ComputerPath: WideString; safecall;
 
3156
    function  Get_ConnectTime: Integer; safecall;
 
3157
    function  Get_IdleTime: Integer; safecall;
 
3158
    property User: WideString read Get_User;
 
3159
    property UserPath: WideString read Get_UserPath;
 
3160
    property Computer: WideString read Get_Computer;
 
3161
    property ComputerPath: WideString read Get_ComputerPath;
 
3162
    property ConnectTime: Integer read Get_ConnectTime;
 
3163
    property IdleTime: Integer read Get_IdleTime;
 
3164
  end;
 
3165
 
 
3166
// *********************************************************************//
 
3167
// DispIntf:  IADsSessionDisp
 
3168
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3169
// GUID:      {398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}
 
3170
// *********************************************************************//
 
3171
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3172
  IADsSessionDisp = dispinterface
 
3173
    ['{398B7DA0-4AAB-11CF-AE2C-00AA006EBFB9}']
 
3174
    property User: WideString readonly dispid 15;
 
3175
    property UserPath: WideString readonly dispid 16;
 
3176
    property Computer: WideString readonly dispid 17;
 
3177
    property ComputerPath: WideString readonly dispid 18;
 
3178
    property ConnectTime: Integer readonly dispid 19;
 
3179
    property IdleTime: Integer readonly dispid 20;
 
3180
    property Name: WideString readonly dispid 2;
 
3181
    property Class_: WideString readonly dispid 3;
 
3182
    property GUID: WideString readonly dispid 4;
 
3183
    property ADsPath: WideString readonly dispid 5;
 
3184
    property Parent: WideString readonly dispid 6;
 
3185
    property Schema: WideString readonly dispid 7;
 
3186
    procedure GetInfo; dispid 8;
 
3187
    procedure SetInfo; dispid 9;
 
3188
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
3189
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
3190
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
3191
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
3192
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
3193
  end;
 
3194
  {$endif}
 
3195
// *********************************************************************//
 
3196
// Interface: IADsResource
 
3197
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3198
// GUID:      {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
 
3199
// *********************************************************************//
 
3200
  IADsResource = interface(IADs)
 
3201
    ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
 
3202
    function  Get_User: WideString; safecall;
 
3203
    function  Get_UserPath: WideString; safecall;
 
3204
    function  Get_Path: WideString; safecall;
 
3205
    function  Get_LockCount: Integer; safecall;
 
3206
    property User: WideString read Get_User;
 
3207
    property UserPath: WideString read Get_UserPath;
 
3208
    property Path: WideString read Get_Path;
 
3209
    property LockCount: Integer read Get_LockCount;
 
3210
  end;
 
3211
 
 
3212
// *********************************************************************//
 
3213
// DispIntf:  IADsResourceDisp
 
3214
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3215
// GUID:      {34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}
 
3216
// *********************************************************************//
 
3217
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3218
  IADsResourceDisp = dispinterface
 
3219
    ['{34A05B20-4AAB-11CF-AE2C-00AA006EBFB9}']
 
3220
    property User: WideString readonly dispid 15;
 
3221
    property UserPath: WideString readonly dispid 16;
 
3222
    property Path: WideString readonly dispid 17;
 
3223
    property LockCount: Integer readonly dispid 18;
 
3224
    property Name: WideString readonly dispid 2;
 
3225
    property Class_: WideString readonly dispid 3;
 
3226
    property GUID: WideString readonly dispid 4;
 
3227
    property ADsPath: WideString readonly dispid 5;
 
3228
    property Parent: WideString readonly dispid 6;
 
3229
    property Schema: WideString readonly dispid 7;
 
3230
    procedure GetInfo; dispid 8;
 
3231
    procedure SetInfo; dispid 9;
 
3232
    function  Get(const bstrName: WideString): OleVariant; dispid 10;
 
3233
    procedure Put(const bstrName: WideString; vProp: OleVariant); dispid 11;
 
3234
    function  GetEx(const bstrName: WideString): OleVariant; dispid 12;
 
3235
    procedure PutEx(lnControlCode: Integer; const bstrName: WideString; vProp: OleVariant); dispid 13;
 
3236
    procedure GetInfoEx(vProperties: OleVariant; lnReserved: Integer); dispid 14;
 
3237
  end;
 
3238
  {$endif}
 
3239
// *********************************************************************//
 
3240
// Interface: IADsOpenDSObject
 
3241
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3242
// GUID:      {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
 
3243
// *********************************************************************//
 
3244
  IADsOpenDSObject = interface(IDispatch)
 
3245
    ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
 
3246
    function  OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
 
3247
                           const lpszPassword: WideString; lnReserved: Integer): IDispatch; safecall;
 
3248
  end;
 
3249
 
 
3250
// *********************************************************************//
 
3251
// DispIntf:  IADsOpenDSObjectDisp
 
3252
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3253
// GUID:      {DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}
 
3254
// *********************************************************************//
 
3255
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3256
  IADsOpenDSObjectDisp = dispinterface
 
3257
    ['{DDF2891E-0F9C-11D0-8AD4-00C04FD8D503}']
 
3258
    function  OpenDSObject(const lpszDNName: WideString; const lpszUserName: WideString;
 
3259
                           const lpszPassword: WideString; lnReserved: Integer): IDispatch; dispid 1;
 
3260
  end;
 
3261
  {$endif}
 
3262
// *********************************************************************//
 
3263
// Interface: IDirectoryObject
 
3264
// Flags:     (0)
 
3265
// GUID:      {E798DE2C-22E4-11D0-84FE-00C04FD8D503}
 
3266
// *********************************************************************//
 
3267
  IDirectoryObject = interface(IUnknown)
 
3268
    ['{E798DE2C-22E4-11D0-84FE-00C04FD8D503}']
 
3269
    function  GetObjectInformation(out ppObjInfo: PUserType11): HResult; stdcall;
 
3270
    function  GetObjectAttributes(var pAttributeNames: PWideChar; dwNumberAttributes: LongWord;
 
3271
                                  out ppAttributeEntries: PUserType12;
 
3272
                                  out pdwNumAttributesReturned: LongWord): HResult; stdcall;
 
3273
    function  SetObjectAttributes(var pAttributeEntries: _ads_attr_info; dwNumAttributes: LongWord;
 
3274
                                  out pdwNumAttributesModified: LongWord): HResult; stdcall;
 
3275
    function  CreateDSObject(pszRDNName: PWideChar; var pAttributeEntries: _ads_attr_info;
 
3276
                             dwNumAttributes: LongWord; out ppObject: IDispatch): HResult; stdcall;
 
3277
    function  DeleteDSObject(pszRDNName: PWideChar): HResult; stdcall;
 
3278
  end;
 
3279
 
 
3280
// *********************************************************************//
 
3281
// Interface: IDirectorySearch
 
3282
// Flags:     (0)
 
3283
// GUID:      {109BA8EC-92F0-11D0-A790-00C04FD8D5A8}
 
3284
// *********************************************************************//
 
3285
  IDirectorySearch = interface(IUnknown)
 
3286
    ['{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}']
 
3287
    function  SetSearchPreference(var pSearchPrefs: ads_searchpref_info; dwNumPrefs: LongWord): HResult; stdcall;
 
3288
    function  ExecuteSearch(pszSearchFilter: PWideChar; var pAttributeNames: PWideChar;
 
3289
                            dwNumberAttributes: LongWord; out phSearchResult: Pointer): HResult; stdcall;
 
3290
    function  AbandonSearch(var phSearchResult: Pointer): HResult; stdcall;
 
3291
    function  GetFirstRow(var hSearchResult: Pointer): HResult; stdcall;
 
3292
    function  GetNextRow(var hSearchResult: Pointer): HResult; stdcall;
 
3293
    function  GetPreviousRow(var hSearchResult: Pointer): HResult; stdcall;
 
3294
    function  GetNextColumnName(var hSearchHandle: Pointer; out ppszColumnName: PWideChar): HResult; stdcall;
 
3295
    function  GetColumn(var hSearchResult: Pointer; szColumnName: PWideChar;
 
3296
                        out pSearchColumn: ads_search_column): HResult; stdcall;
 
3297
    function  FreeColumn(var pSearchColumn: ads_search_column): HResult; stdcall;
 
3298
    function  CloseSearchHandle(var hSearchResult: Pointer): HResult; stdcall;
 
3299
  end;
 
3300
 
 
3301
// *********************************************************************//
 
3302
// Interface: IDirectorySchemaMgmt
 
3303
// Flags:     (0)
 
3304
// GUID:      {75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}
 
3305
// *********************************************************************//
 
3306
  IDirectorySchemaMgmt = interface(IUnknown)
 
3307
    ['{75DB3B9C-A4D8-11D0-A79C-00C04FD8D5A8}']
 
3308
    function  EnumAttributes(var ppszAttrNames: PWideChar; dwNumAttributes: LongWord;
 
3309
                             ppAttrDefinition: PPUserType1; var pdwNumAttributes: LongWord): HResult; stdcall;
 
3310
    function  CreateAttributeDefinition(pszAttributeName: PWideChar;
 
3311
                                        var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
 
3312
    function  WriteAttributeDefinition(pszAttributeName: PWideChar;
 
3313
                                       var pAttributeDefinition: _ads_attr_def): HResult; stdcall;
 
3314
    function  DeleteAttributeDefinition(pszAttributeName: PWideChar): HResult; stdcall;
 
3315
    function  EnumClasses(var ppszClassNames: PWideChar; dwNumClasses: LongWord;
 
3316
                          ppClassDefinition: PPUserType2; var pdwNumClasses: LongWord): HResult; stdcall;
 
3317
    function  WriteClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
 
3318
    function  CreateClassDefinition(pszClassName: PWideChar; var pClassDefinition: _ads_class_def): HResult; stdcall;
 
3319
    function  DeleteClassDefinition(pszClassName: PWideChar): HResult; stdcall;
 
3320
  end;
 
3321
 
 
3322
// *********************************************************************//
 
3323
// Interface: IADsAggregatee
 
3324
// Flags:     (0)
 
3325
// GUID:      {1346CE8C-9039-11D0-8528-00C04FD8D503}
 
3326
// *********************************************************************//
 
3327
  IADsAggregatee = interface(IUnknown)
 
3328
    ['{1346CE8C-9039-11D0-8528-00C04FD8D503}']
 
3329
    function  ConnectAsAggregatee(const pOuterUnknown: IUnknown): HResult; stdcall;
 
3330
    function  DisconnectAsAggregatee: HResult; stdcall;
 
3331
    function  RelinquishInterface(var riid: TGUID): HResult; stdcall;
 
3332
    function  RestoreInterface(var riid: TGUID): HResult; stdcall;
 
3333
  end;
 
3334
 
 
3335
// *********************************************************************//
 
3336
// Interface: IADsAggregator
 
3337
// Flags:     (0)
 
3338
// GUID:      {52DB5FB0-941F-11D0-8529-00C04FD8D503}
 
3339
// *********************************************************************//
 
3340
  IADsAggregator = interface(IUnknown)
 
3341
    ['{52DB5FB0-941F-11D0-8529-00C04FD8D503}']
 
3342
    function  ConnectAsAggregator(const pAggregatee: IUnknown): HResult; stdcall;
 
3343
    function  DisconnectAsAggregator: HResult; stdcall;
 
3344
  end;
 
3345
 
 
3346
// *********************************************************************//
 
3347
// Interface: IADsAccessControlEntry
 
3348
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3349
// GUID:      {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
 
3350
// *********************************************************************//
 
3351
  IADsAccessControlEntry = interface(IDispatch)
 
3352
    ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
 
3353
    function  Get_AccessMask: Integer; safecall;
 
3354
    procedure Set_AccessMask(retval: Integer); safecall;
 
3355
    function  Get_AceType: Integer; safecall;
 
3356
    procedure Set_AceType(retval: Integer); safecall;
 
3357
    function  Get_AceFlags: Integer; safecall;
 
3358
    procedure Set_AceFlags(retval: Integer); safecall;
 
3359
    function  Get_Flags: Integer; safecall;
 
3360
    procedure Set_Flags(retval: Integer); safecall;
 
3361
    function  Get_ObjectType: WideString; safecall;
 
3362
    procedure Set_ObjectType(const retval: WideString); safecall;
 
3363
    function  Get_InheritedObjectType: WideString; safecall;
 
3364
    procedure Set_InheritedObjectType(const retval: WideString); safecall;
 
3365
    function  Get_Trustee: WideString; safecall;
 
3366
    procedure Set_Trustee(const retval: WideString); safecall;
 
3367
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
 
3368
    property AceType: Integer read Get_AceType write Set_AceType;
 
3369
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
 
3370
    property Flags: Integer read Get_Flags write Set_Flags;
 
3371
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
 
3372
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
 
3373
    property Trustee: WideString read Get_Trustee write Set_Trustee;
 
3374
  end;
 
3375
 
 
3376
// *********************************************************************//
 
3377
// DispIntf:  IADsAccessControlEntryDisp
 
3378
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3379
// GUID:      {B4F3A14C-9BDD-11D0-852C-00C04FD8D503}
 
3380
// *********************************************************************//
 
3381
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3382
  IADsAccessControlEntryDisp = dispinterface
 
3383
    ['{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}']
 
3384
    property AccessMask: Integer dispid 2;
 
3385
    property AceType: Integer dispid 3;
 
3386
    property AceFlags: Integer dispid 4;
 
3387
    property Flags: Integer dispid 5;
 
3388
    property ObjectType: WideString dispid 6;
 
3389
    property InheritedObjectType: WideString dispid 7;
 
3390
    property Trustee: WideString dispid 8;
 
3391
  end;
 
3392
  {$endif}
 
3393
// *********************************************************************//
 
3394
// Interface: IADsAccessControlList
 
3395
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3396
// GUID:      {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
 
3397
// *********************************************************************//
 
3398
  IADsAccessControlList = interface(IDispatch)
 
3399
    ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
 
3400
    function  Get_AclRevision: Integer; safecall;
 
3401
    procedure Set_AclRevision(retval: Integer); safecall;
 
3402
    function  Get_AceCount: Integer; safecall;
 
3403
    procedure Set_AceCount(retval: Integer); safecall;
 
3404
    procedure AddAce(const pAccessControlEntry: IDispatch); safecall;
 
3405
    procedure RemoveAce(const pAccessControlEntry: IDispatch); safecall;
 
3406
    function  CopyAccessList: IDispatch; safecall;
 
3407
    function  Get__NewEnum: IUnknown; safecall;
 
3408
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
 
3409
    property AceCount: Integer read Get_AceCount write Set_AceCount;
 
3410
    property _NewEnum: IUnknown read Get__NewEnum;
 
3411
  end;
 
3412
 
 
3413
// *********************************************************************//
 
3414
// DispIntf:  IADsAccessControlListDisp
 
3415
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3416
// GUID:      {B7EE91CC-9BDD-11D0-852C-00C04FD8D503}
 
3417
// *********************************************************************//
 
3418
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3419
  IADsAccessControlListDisp = dispinterface
 
3420
    ['{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}']
 
3421
    property AclRevision: Integer dispid 3;
 
3422
    property AceCount: Integer dispid 4;
 
3423
    procedure AddAce(const pAccessControlEntry: IDispatch); dispid 5;
 
3424
    procedure RemoveAce(const pAccessControlEntry: IDispatch); dispid 6;
 
3425
    function  CopyAccessList: IDispatch; dispid 7;
 
3426
    property _NewEnum: IUnknown readonly dispid -4;
 
3427
  end;
 
3428
  {$endif}
 
3429
// *********************************************************************//
 
3430
// Interface: IADsSecurityDescriptor
 
3431
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3432
// GUID:      {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
 
3433
// *********************************************************************//
 
3434
  IADsSecurityDescriptor = interface(IDispatch)
 
3435
    ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
 
3436
    function  Get_Revision: Integer; safecall;
 
3437
    procedure Set_Revision(retval: Integer); safecall;
 
3438
    function  Get_Control: Integer; safecall;
 
3439
    procedure Set_Control(retval: Integer); safecall;
 
3440
    function  Get_Owner: WideString; safecall;
 
3441
    procedure Set_Owner(const retval: WideString); safecall;
 
3442
    function  Get_OwnerDefaulted: WordBool; safecall;
 
3443
    procedure Set_OwnerDefaulted(retval: WordBool); safecall;
 
3444
    function  Get_Group: WideString; safecall;
 
3445
    procedure Set_Group(const retval: WideString); safecall;
 
3446
    function  Get_GroupDefaulted: WordBool; safecall;
 
3447
    procedure Set_GroupDefaulted(retval: WordBool); safecall;
 
3448
    function  Get_DiscretionaryAcl: IDispatch; safecall;
 
3449
    procedure Set_DiscretionaryAcl(const retval: IDispatch); safecall;
 
3450
    function  Get_DaclDefaulted: WordBool; safecall;
 
3451
    procedure Set_DaclDefaulted(retval: WordBool); safecall;
 
3452
    function  Get_SystemAcl: IDispatch; safecall;
 
3453
    procedure Set_SystemAcl(const retval: IDispatch); safecall;
 
3454
    function  Get_SaclDefaulted: WordBool; safecall;
 
3455
    procedure Set_SaclDefaulted(retval: WordBool); safecall;
 
3456
    function  CopySecurityDescriptor: IDispatch; safecall;
 
3457
    property Revision: Integer read Get_Revision write Set_Revision;
 
3458
    property Control: Integer read Get_Control write Set_Control;
 
3459
    property Owner: WideString read Get_Owner write Set_Owner;
 
3460
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
 
3461
    property Group: WideString read Get_Group write Set_Group;
 
3462
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
 
3463
    property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
 
3464
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
 
3465
    property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
 
3466
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
 
3467
  end;
 
3468
 
 
3469
// *********************************************************************//
 
3470
// DispIntf:  IADsSecurityDescriptorDisp
 
3471
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3472
// GUID:      {B8C787CA-9BDD-11D0-852C-00C04FD8D503}
 
3473
// *********************************************************************//
 
3474
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3475
  IADsSecurityDescriptorDisp = dispinterface
 
3476
    ['{B8C787CA-9BDD-11D0-852C-00C04FD8D503}']
 
3477
    property Revision: Integer dispid 2;
 
3478
    property Control: Integer dispid 3;
 
3479
    property Owner: WideString dispid 4;
 
3480
    property OwnerDefaulted: WordBool dispid 5;
 
3481
    property Group: WideString dispid 6;
 
3482
    property GroupDefaulted: WordBool dispid 7;
 
3483
    property DiscretionaryAcl: IDispatch dispid 8;
 
3484
    property DaclDefaulted: WordBool dispid 9;
 
3485
    property SystemAcl: IDispatch dispid 10;
 
3486
    property SaclDefaulted: WordBool dispid 11;
 
3487
    function  CopySecurityDescriptor: IDispatch; dispid 12;
 
3488
  end;
 
3489
  {$endif}
 
3490
// *********************************************************************//
 
3491
// Interface: IADsLargeInteger
 
3492
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3493
// GUID:      {9068270B-0939-11D1-8BE1-00C04FD8D503}
 
3494
// *********************************************************************//
 
3495
  IADsLargeInteger = interface(IDispatch)
 
3496
    ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
 
3497
    function  Get_HighPart: Integer; safecall;
 
3498
    procedure Set_HighPart(retval: Integer); safecall;
 
3499
    function  Get_LowPart: Integer; safecall;
 
3500
    procedure Set_LowPart(retval: Integer); safecall;
 
3501
    property HighPart: Integer read Get_HighPart write Set_HighPart;
 
3502
    property LowPart: Integer read Get_LowPart write Set_LowPart;
 
3503
  end;
 
3504
 
 
3505
// *********************************************************************//
 
3506
// DispIntf:  IADsLargeIntegerDisp
 
3507
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3508
// GUID:      {9068270B-0939-11D1-8BE1-00C04FD8D503}
 
3509
// *********************************************************************//
 
3510
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3511
  IADsLargeIntegerDisp = dispinterface
 
3512
    ['{9068270B-0939-11D1-8BE1-00C04FD8D503}']
 
3513
    property HighPart: Integer dispid 2;
 
3514
    property LowPart: Integer dispid 3;
 
3515
  end;
 
3516
  {$endif}
 
3517
// *********************************************************************//
 
3518
// Interface: IADsNameTranslate
 
3519
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3520
// GUID:      {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
 
3521
// *********************************************************************//
 
3522
  IADsNameTranslate = interface(IDispatch)
 
3523
    ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
 
3524
    procedure Set_ChaseReferral(Param1: Integer); safecall;
 
3525
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString); safecall;
 
3526
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
 
3527
                     const bstrUserID: WideString; const bstrDomain: WideString;
 
3528
                     const bstrPassword: WideString); safecall;
 
3529
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); safecall;
 
3530
    function  Get(lnFormatType: Integer): WideString; safecall;
 
3531
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant); safecall;
 
3532
    function  GetEx(lnFormatType: Integer): OleVariant; safecall;
 
3533
    property ChaseReferral: Integer write Set_ChaseReferral;
 
3534
  end;
 
3535
 
 
3536
// *********************************************************************//
 
3537
// DispIntf:  IADsNameTranslateDisp
 
3538
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3539
// GUID:      {B1B272A3-3625-11D1-A3A4-00C04FB950DC}
 
3540
// *********************************************************************//
 
3541
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3542
  IADsNameTranslateDisp = dispinterface
 
3543
    ['{B1B272A3-3625-11D1-A3A4-00C04FB950DC}']
 
3544
    property ChaseReferral: Integer writeonly dispid 1;
 
3545
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString); dispid 2;
 
3546
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
 
3547
                     const bstrUserID: WideString; const bstrDomain: WideString;
 
3548
                     const bstrPassword: WideString); dispid 3;
 
3549
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString); dispid 4;
 
3550
    function  Get(lnFormatType: Integer): WideString; dispid 5;
 
3551
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant); dispid 6;
 
3552
    function  GetEx(lnFormatType: Integer): OleVariant; dispid 7;
 
3553
  end;
 
3554
  {$endif}
 
3555
// *********************************************************************//
 
3556
// Interface: IADsCaseIgnoreList
 
3557
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3558
// GUID:      {7B66B533-4680-11D1-A3B4-00C04FB950DC}
 
3559
// *********************************************************************//
 
3560
  IADsCaseIgnoreList = interface(IDispatch)
 
3561
    ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
 
3562
    function  Get_CaseIgnoreList: OleVariant; safecall;
 
3563
    procedure Set_CaseIgnoreList(retval: OleVariant); safecall;
 
3564
    property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
 
3565
  end;
 
3566
 
 
3567
// *********************************************************************//
 
3568
// DispIntf:  IADsCaseIgnoreListDisp
 
3569
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3570
// GUID:      {7B66B533-4680-11D1-A3B4-00C04FB950DC}
 
3571
// *********************************************************************//
 
3572
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3573
  IADsCaseIgnoreListDisp = dispinterface
 
3574
    ['{7B66B533-4680-11D1-A3B4-00C04FB950DC}']
 
3575
    property CaseIgnoreList: OleVariant dispid 2;
 
3576
  end;
 
3577
  {$endif}
 
3578
// *********************************************************************//
 
3579
// Interface: IADsFaxNumber
 
3580
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3581
// GUID:      {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
 
3582
// *********************************************************************//
 
3583
  IADsFaxNumber = interface(IDispatch)
 
3584
    ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
 
3585
    function  Get_TelephoneNumber: WideString; safecall;
 
3586
    procedure Set_TelephoneNumber(const retval: WideString); safecall;
 
3587
    function  Get_Parameters: OleVariant; safecall;
 
3588
    procedure Set_Parameters(retval: OleVariant); safecall;
 
3589
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
 
3590
    property Parameters: OleVariant read Get_Parameters write Set_Parameters;
 
3591
  end;
 
3592
 
 
3593
// *********************************************************************//
 
3594
// DispIntf:  IADsFaxNumberDisp
 
3595
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3596
// GUID:      {A910DEA9-4680-11D1-A3B4-00C04FB950DC}
 
3597
// *********************************************************************//
 
3598
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3599
  IADsFaxNumberDisp = dispinterface
 
3600
    ['{A910DEA9-4680-11D1-A3B4-00C04FB950DC}']
 
3601
    property TelephoneNumber: WideString dispid 2;
 
3602
    property Parameters: OleVariant dispid 3;
 
3603
  end;
 
3604
  {$endif}
 
3605
// *********************************************************************//
 
3606
// Interface: IADsNetAddress
 
3607
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3608
// GUID:      {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
 
3609
// *********************************************************************//
 
3610
  IADsNetAddress = interface(IDispatch)
 
3611
    ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
 
3612
    function  Get_AddressType: Integer; safecall;
 
3613
    procedure Set_AddressType(retval: Integer); safecall;
 
3614
    function  Get_Address: OleVariant; safecall;
 
3615
    procedure Set_Address(retval: OleVariant); safecall;
 
3616
    property AddressType: Integer read Get_AddressType write Set_AddressType;
 
3617
    property Address: OleVariant read Get_Address write Set_Address;
 
3618
  end;
 
3619
 
 
3620
// *********************************************************************//
 
3621
// DispIntf:  IADsNetAddressDisp
 
3622
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3623
// GUID:      {B21A50A9-4080-11D1-A3AC-00C04FB950DC}
 
3624
// *********************************************************************//
 
3625
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3626
  IADsNetAddressDisp = dispinterface
 
3627
    ['{B21A50A9-4080-11D1-A3AC-00C04FB950DC}']
 
3628
    property AddressType: Integer dispid 2;
 
3629
    property Address: OleVariant dispid 3;
 
3630
  end;
 
3631
  {$endif}
 
3632
// *********************************************************************//
 
3633
// Interface: IADsOctetList
 
3634
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3635
// GUID:      {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
 
3636
// *********************************************************************//
 
3637
  IADsOctetList = interface(IDispatch)
 
3638
    ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
 
3639
    function  Get_OctetList: OleVariant; safecall;
 
3640
    procedure Set_OctetList(retval: OleVariant); safecall;
 
3641
    property OctetList: OleVariant read Get_OctetList write Set_OctetList;
 
3642
  end;
 
3643
 
 
3644
// *********************************************************************//
 
3645
// DispIntf:  IADsOctetListDisp
 
3646
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3647
// GUID:      {7B28B80F-4680-11D1-A3B4-00C04FB950DC}
 
3648
// *********************************************************************//
 
3649
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3650
  IADsOctetListDisp = dispinterface
 
3651
    ['{7B28B80F-4680-11D1-A3B4-00C04FB950DC}']
 
3652
    property OctetList: OleVariant dispid 2;
 
3653
  end;
 
3654
  {$endif}
 
3655
// *********************************************************************//
 
3656
// Interface: IADsEmail
 
3657
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3658
// GUID:      {97AF011A-478E-11D1-A3B4-00C04FB950DC}
 
3659
// *********************************************************************//
 
3660
  IADsEmail = interface(IDispatch)
 
3661
    ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
 
3662
    function  Get_Type_: Integer; safecall;
 
3663
    procedure Set_Type_(retval: Integer); safecall;
 
3664
    function  Get_Address: WideString; safecall;
 
3665
    procedure Set_Address(const retval: WideString); safecall;
 
3666
    property Type_: Integer read Get_Type_ write Set_Type_;
 
3667
    property Address: WideString read Get_Address write Set_Address;
 
3668
  end;
 
3669
 
 
3670
// *********************************************************************//
 
3671
// DispIntf:  IADsEmailDisp
 
3672
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3673
// GUID:      {97AF011A-478E-11D1-A3B4-00C04FB950DC}
 
3674
// *********************************************************************//
 
3675
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3676
  IADsEmailDisp = dispinterface
 
3677
    ['{97AF011A-478E-11D1-A3B4-00C04FB950DC}']
 
3678
    property Type_: Integer dispid 2;
 
3679
    property Address: WideString dispid 3;
 
3680
  end;
 
3681
  {$endif}
 
3682
// *********************************************************************//
 
3683
// Interface: IADsPath
 
3684
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3685
// GUID:      {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
 
3686
// *********************************************************************//
 
3687
  IADsPath = interface(IDispatch)
 
3688
    ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
 
3689
    function  Get_Type_: Integer; safecall;
 
3690
    procedure Set_Type_(retval: Integer); safecall;
 
3691
    function  Get_VolumeName: WideString; safecall;
 
3692
    procedure Set_VolumeName(const retval: WideString); safecall;
 
3693
    function  Get_Path: WideString; safecall;
 
3694
    procedure Set_Path(const retval: WideString); safecall;
 
3695
    property Type_: Integer read Get_Type_ write Set_Type_;
 
3696
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
 
3697
    property Path: WideString read Get_Path write Set_Path;
 
3698
  end;
 
3699
 
 
3700
// *********************************************************************//
 
3701
// DispIntf:  IADsPathDisp
 
3702
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3703
// GUID:      {B287FCD5-4080-11D1-A3AC-00C04FB950DC}
 
3704
// *********************************************************************//
 
3705
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3706
  IADsPathDisp = dispinterface
 
3707
    ['{B287FCD5-4080-11D1-A3AC-00C04FB950DC}']
 
3708
    property Type_: Integer dispid 2;
 
3709
    property VolumeName: WideString dispid 3;
 
3710
    property Path: WideString dispid 4;
 
3711
  end;
 
3712
  {$endif}
 
3713
// *********************************************************************//
 
3714
// Interface: IADsReplicaPointer
 
3715
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3716
// GUID:      {F60FB803-4080-11D1-A3AC-00C04FB950DC}
 
3717
// *********************************************************************//
 
3718
  IADsReplicaPointer = interface(IDispatch)
 
3719
    ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
 
3720
    function  Get_ServerName: WideString; safecall;
 
3721
    procedure Set_ServerName(const retval: WideString); safecall;
 
3722
    function  Get_ReplicaType: Integer; safecall;
 
3723
    procedure Set_ReplicaType(retval: Integer); safecall;
 
3724
    function  Get_ReplicaNumber: Integer; safecall;
 
3725
    procedure Set_ReplicaNumber(retval: Integer); safecall;
 
3726
    function  Get_Count: Integer; safecall;
 
3727
    procedure Set_Count(retval: Integer); safecall;
 
3728
    function  Get_ReplicaAddressHints: OleVariant; safecall;
 
3729
    procedure Set_ReplicaAddressHints(retval: OleVariant); safecall;
 
3730
    property ServerName: WideString read Get_ServerName write Set_ServerName;
 
3731
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
 
3732
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
 
3733
    property Count: Integer read Get_Count write Set_Count;
 
3734
    property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
 
3735
  end;
 
3736
 
 
3737
// *********************************************************************//
 
3738
// DispIntf:  IADsReplicaPointerDisp
 
3739
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3740
// GUID:      {F60FB803-4080-11D1-A3AC-00C04FB950DC}
 
3741
// *********************************************************************//
 
3742
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3743
  IADsReplicaPointerDisp = dispinterface
 
3744
    ['{F60FB803-4080-11D1-A3AC-00C04FB950DC}']
 
3745
    property ServerName: WideString dispid 2;
 
3746
    property ReplicaType: Integer dispid 3;
 
3747
    property ReplicaNumber: Integer dispid 4;
 
3748
    property Count: Integer dispid 5;
 
3749
    property ReplicaAddressHints: OleVariant dispid 6;
 
3750
  end;
 
3751
  {$endif}
 
3752
// *********************************************************************//
 
3753
// Interface: IADsAcl
 
3754
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3755
// GUID:      {8452D3AB-0869-11D1-A377-00C04FB950DC}
 
3756
// *********************************************************************//
 
3757
  IADsAcl = interface(IDispatch)
 
3758
    ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
 
3759
    function  Get_ProtectedAttrName: WideString; safecall;
 
3760
    procedure Set_ProtectedAttrName(const retval: WideString); safecall;
 
3761
    function  Get_SubjectName: WideString; safecall;
 
3762
    procedure Set_SubjectName(const retval: WideString); safecall;
 
3763
    function  Get_Privileges: Integer; safecall;
 
3764
    procedure Set_Privileges(retval: Integer); safecall;
 
3765
    function  CopyAcl: IDispatch; safecall;
 
3766
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
 
3767
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
 
3768
    property Privileges: Integer read Get_Privileges write Set_Privileges;
 
3769
  end;
 
3770
 
 
3771
// *********************************************************************//
 
3772
// DispIntf:  IADsAclDisp
 
3773
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3774
// GUID:      {8452D3AB-0869-11D1-A377-00C04FB950DC}
 
3775
// *********************************************************************//
 
3776
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3777
  IADsAclDisp = dispinterface
 
3778
    ['{8452D3AB-0869-11D1-A377-00C04FB950DC}']
 
3779
    property ProtectedAttrName: WideString dispid 2;
 
3780
    property SubjectName: WideString dispid 3;
 
3781
    property Privileges: Integer dispid 4;
 
3782
    function  CopyAcl: IDispatch; dispid 5;
 
3783
  end;
 
3784
  {$endif}
 
3785
// *********************************************************************//
 
3786
// Interface: IADsTimestamp
 
3787
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3788
// GUID:      {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
 
3789
// *********************************************************************//
 
3790
  IADsTimestamp = interface(IDispatch)
 
3791
    ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
 
3792
    function  Get_WholeSeconds: Integer; safecall;
 
3793
    procedure Set_WholeSeconds(retval: Integer); safecall;
 
3794
    function  Get_EventID: Integer; safecall;
 
3795
    procedure Set_EventID(retval: Integer); safecall;
 
3796
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
 
3797
    property EventID: Integer read Get_EventID write Set_EventID;
 
3798
  end;
 
3799
 
 
3800
// *********************************************************************//
 
3801
// DispIntf:  IADsTimestampDisp
 
3802
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3803
// GUID:      {B2F5A901-4080-11D1-A3AC-00C04FB950DC}
 
3804
// *********************************************************************//
 
3805
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3806
  IADsTimestampDisp = dispinterface
 
3807
    ['{B2F5A901-4080-11D1-A3AC-00C04FB950DC}']
 
3808
    property WholeSeconds: Integer dispid 2;
 
3809
    property EventID: Integer dispid 3;
 
3810
  end;
 
3811
  {$endif}
 
3812
// *********************************************************************//
 
3813
// Interface: IADsPostalAddress
 
3814
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3815
// GUID:      {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
 
3816
// *********************************************************************//
 
3817
  IADsPostalAddress = interface(IDispatch)
 
3818
    ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
 
3819
    function  Get_PostalAddress: OleVariant; safecall;
 
3820
    procedure Set_PostalAddress(retval: OleVariant); safecall;
 
3821
    property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
 
3822
  end;
 
3823
 
 
3824
// *********************************************************************//
 
3825
// DispIntf:  IADsPostalAddressDisp
 
3826
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3827
// GUID:      {7ADECF29-4680-11D1-A3B4-00C04FB950DC}
 
3828
// *********************************************************************//
 
3829
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3830
  IADsPostalAddressDisp = dispinterface
 
3831
    ['{7ADECF29-4680-11D1-A3B4-00C04FB950DC}']
 
3832
    property PostalAddress: OleVariant dispid 2;
 
3833
  end;
 
3834
  {$endif}
 
3835
// *********************************************************************//
 
3836
// Interface: IADsBackLink
 
3837
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3838
// GUID:      {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
 
3839
// *********************************************************************//
 
3840
  IADsBackLink = interface(IDispatch)
 
3841
    ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
 
3842
    function  Get_RemoteID: Integer; safecall;
 
3843
    procedure Set_RemoteID(retval: Integer); safecall;
 
3844
    function  Get_ObjectName: WideString; safecall;
 
3845
    procedure Set_ObjectName(const retval: WideString); safecall;
 
3846
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
 
3847
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
3848
  end;
 
3849
 
 
3850
// *********************************************************************//
 
3851
// DispIntf:  IADsBackLinkDisp
 
3852
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3853
// GUID:      {FD1302BD-4080-11D1-A3AC-00C04FB950DC}
 
3854
// *********************************************************************//
 
3855
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3856
  IADsBackLinkDisp = dispinterface
 
3857
    ['{FD1302BD-4080-11D1-A3AC-00C04FB950DC}']
 
3858
    property RemoteID: Integer dispid 2;
 
3859
    property ObjectName: WideString dispid 3;
 
3860
  end;
 
3861
  {$endif}
 
3862
// *********************************************************************//
 
3863
// Interface: IADsTypedName
 
3864
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3865
// GUID:      {B371A349-4080-11D1-A3AC-00C04FB950DC}
 
3866
// *********************************************************************//
 
3867
  IADsTypedName = interface(IDispatch)
 
3868
    ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
 
3869
    function  Get_ObjectName: WideString; safecall;
 
3870
    procedure Set_ObjectName(const retval: WideString); safecall;
 
3871
    function  Get_Level: Integer; safecall;
 
3872
    procedure Set_Level(retval: Integer); safecall;
 
3873
    function  Get_Interval: Integer; safecall;
 
3874
    procedure Set_Interval(retval: Integer); safecall;
 
3875
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
3876
    property Level: Integer read Get_Level write Set_Level;
 
3877
    property Interval: Integer read Get_Interval write Set_Interval;
 
3878
  end;
 
3879
 
 
3880
// *********************************************************************//
 
3881
// DispIntf:  IADsTypedNameDisp
 
3882
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3883
// GUID:      {B371A349-4080-11D1-A3AC-00C04FB950DC}
 
3884
// *********************************************************************//
 
3885
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3886
  IADsTypedNameDisp = dispinterface
 
3887
    ['{B371A349-4080-11D1-A3AC-00C04FB950DC}']
 
3888
    property ObjectName: WideString dispid 2;
 
3889
    property Level: Integer dispid 3;
 
3890
    property Interval: Integer dispid 4;
 
3891
  end;
 
3892
  {$endif}
 
3893
// *********************************************************************//
 
3894
// Interface: IADsHold
 
3895
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3896
// GUID:      {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
 
3897
// *********************************************************************//
 
3898
  IADsHold = interface(IDispatch)
 
3899
    ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
 
3900
    function  Get_ObjectName: WideString; safecall;
 
3901
    procedure Set_ObjectName(const retval: WideString); safecall;
 
3902
    function  Get_Amount: Integer; safecall;
 
3903
    procedure Set_Amount(retval: Integer); safecall;
 
3904
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
3905
    property Amount: Integer read Get_Amount write Set_Amount;
 
3906
  end;
 
3907
 
 
3908
// *********************************************************************//
 
3909
// DispIntf:  IADsHoldDisp
 
3910
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3911
// GUID:      {B3EB3B37-4080-11D1-A3AC-00C04FB950DC}
 
3912
// *********************************************************************//
 
3913
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3914
  IADsHoldDisp = dispinterface
 
3915
    ['{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}']
 
3916
    property ObjectName: WideString dispid 2;
 
3917
    property Amount: Integer dispid 3;
 
3918
  end;
 
3919
  {$endif}
 
3920
// *********************************************************************//
 
3921
// Interface: IADsObjectOptions
 
3922
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3923
// GUID:      {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
 
3924
// *********************************************************************//
 
3925
  IADsObjectOptions = interface(IDispatch)
 
3926
    ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
 
3927
    function  GetOption(lnOption: Integer): OleVariant; safecall;
 
3928
    procedure SetOption(lnOption: Integer; vValue: OleVariant); safecall;
 
3929
  end;
 
3930
 
 
3931
// *********************************************************************//
 
3932
// DispIntf:  IADsObjectOptionsDisp
 
3933
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3934
// GUID:      {46F14FDA-232B-11D1-A808-00C04FD8D5A8}
 
3935
// *********************************************************************//
 
3936
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3937
  IADsObjectOptionsDisp = dispinterface
 
3938
    ['{46F14FDA-232B-11D1-A808-00C04FD8D5A8}']
 
3939
    function  GetOption(lnOption: Integer): OleVariant; dispid 2;
 
3940
    procedure SetOption(lnOption: Integer; vValue: OleVariant); dispid 3;
 
3941
  end;
 
3942
  {$endif}
 
3943
// *********************************************************************//
 
3944
// Interface: IADsPathname
 
3945
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3946
// GUID:      {D592AED4-F420-11D0-A36E-00C04FB950DC}
 
3947
// *********************************************************************//
 
3948
  IADsPathname = interface(IDispatch)
 
3949
    ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
 
3950
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); safecall;
 
3951
    procedure SetDisplayType(lnDisplayType: Integer); safecall;
 
3952
    function  Retrieve(lnFormatType: Integer): WideString; safecall;
 
3953
    function  GetNumElements: Integer; safecall;
 
3954
    function  GetElement(lnElementIndex: Integer): WideString; safecall;
 
3955
    procedure AddLeafElement(const bstrLeafElement: WideString); safecall;
 
3956
    procedure RemoveLeafElement; safecall;
 
3957
    function  CopyPath: IDispatch; safecall;
 
3958
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; safecall;
 
3959
    function  Get_EscapedMode: Integer; safecall;
 
3960
    procedure Set_EscapedMode(retval: Integer); safecall;
 
3961
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
 
3962
  end;
 
3963
 
 
3964
// *********************************************************************//
 
3965
// DispIntf:  IADsPathnameDisp
 
3966
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3967
// GUID:      {D592AED4-F420-11D0-A36E-00C04FB950DC}
 
3968
// *********************************************************************//
 
3969
  {$ifdef SUPPORTS_DISPINTERFACE}
 
3970
  IADsPathnameDisp = dispinterface
 
3971
    ['{D592AED4-F420-11D0-A36E-00C04FB950DC}']
 
3972
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer); dispid 2;
 
3973
    procedure SetDisplayType(lnDisplayType: Integer); dispid 3;
 
3974
    function  Retrieve(lnFormatType: Integer): WideString; dispid 4;
 
3975
    function  GetNumElements: Integer; dispid 5;
 
3976
    function  GetElement(lnElementIndex: Integer): WideString; dispid 6;
 
3977
    procedure AddLeafElement(const bstrLeafElement: WideString); dispid 7;
 
3978
    procedure RemoveLeafElement; dispid 8;
 
3979
    function  CopyPath: IDispatch; dispid 9;
 
3980
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString; dispid 10;
 
3981
    property EscapedMode: Integer dispid 11;
 
3982
  end;
 
3983
  {$endif}
 
3984
// *********************************************************************//
 
3985
// Interface: IADsADSystemInfo
 
3986
// Flags:     (4416) Dual OleAutomation Dispatchable
 
3987
// GUID:      {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
 
3988
// *********************************************************************//
 
3989
  IADsADSystemInfo = interface(IDispatch)
 
3990
    ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
 
3991
    function  Get_UserName: WideString; safecall;
 
3992
    function  Get_ComputerName: WideString; safecall;
 
3993
    function  Get_SiteName: WideString; safecall;
 
3994
    function  Get_DomainShortName: WideString; safecall;
 
3995
    function  Get_DomainDNSName: WideString; safecall;
 
3996
    function  Get_ForestDNSName: WideString; safecall;
 
3997
    function  Get_PDCRoleOwner: WideString; safecall;
 
3998
    function  Get_SchemaRoleOwner: WideString; safecall;
 
3999
    function  Get_IsNativeMode: WordBool; safecall;
 
4000
    function  GetAnyDCName: WideString; safecall;
 
4001
    function  GetDCSiteName(const szServer: WideString): WideString; safecall;
 
4002
    procedure RefreshSchemaCache; safecall;
 
4003
    function  GetTrees: OleVariant; safecall;
 
4004
    property UserName: WideString read Get_UserName;
 
4005
    property ComputerName: WideString read Get_ComputerName;
 
4006
    property SiteName: WideString read Get_SiteName;
 
4007
    property DomainShortName: WideString read Get_DomainShortName;
 
4008
    property DomainDNSName: WideString read Get_DomainDNSName;
 
4009
    property ForestDNSName: WideString read Get_ForestDNSName;
 
4010
    property PDCRoleOwner: WideString read Get_PDCRoleOwner;
 
4011
    property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
 
4012
    property IsNativeMode: WordBool read Get_IsNativeMode;
 
4013
  end;
 
4014
 
 
4015
// *********************************************************************//
 
4016
// DispIntf:  IADsADSystemInfoDisp
 
4017
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4018
// GUID:      {5BB11929-AFD1-11D2-9CB9-0000F87A369E}
 
4019
// *********************************************************************//
 
4020
  {$ifdef SUPPORTS_DISPINTERFACE}
 
4021
  IADsADSystemInfoDisp = dispinterface
 
4022
    ['{5BB11929-AFD1-11D2-9CB9-0000F87A369E}']
 
4023
    property UserName: WideString readonly dispid 2;
 
4024
    property ComputerName: WideString readonly dispid 3;
 
4025
    property SiteName: WideString readonly dispid 4;
 
4026
    property DomainShortName: WideString readonly dispid 5;
 
4027
    property DomainDNSName: WideString readonly dispid 6;
 
4028
    property ForestDNSName: WideString readonly dispid 7;
 
4029
    property PDCRoleOwner: WideString readonly dispid 8;
 
4030
    property SchemaRoleOwner: WideString readonly dispid 9;
 
4031
    property IsNativeMode: WordBool readonly dispid 10;
 
4032
    function  GetAnyDCName: WideString; dispid 11;
 
4033
    function  GetDCSiteName(const szServer: WideString): WideString; dispid 12;
 
4034
    procedure RefreshSchemaCache; dispid 13;
 
4035
    function  GetTrees: OleVariant; dispid 14;
 
4036
  end;
 
4037
  {$endif}
 
4038
// *********************************************************************//
 
4039
// Interface: IADsWinNTSystemInfo
 
4040
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4041
// GUID:      {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
 
4042
// *********************************************************************//
 
4043
  IADsWinNTSystemInfo = interface(IDispatch)
 
4044
    ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
 
4045
    function  Get_UserName: WideString; safecall;
 
4046
    function  Get_ComputerName: WideString; safecall;
 
4047
    function  Get_DomainName: WideString; safecall;
 
4048
    function  Get_PDC: WideString; safecall;
 
4049
    property UserName: WideString read Get_UserName;
 
4050
    property ComputerName: WideString read Get_ComputerName;
 
4051
    property DomainName: WideString read Get_DomainName;
 
4052
    property PDC: WideString read Get_PDC;
 
4053
  end;
 
4054
 
 
4055
// *********************************************************************//
 
4056
// DispIntf:  IADsWinNTSystemInfoDisp
 
4057
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4058
// GUID:      {6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}
 
4059
// *********************************************************************//
 
4060
  {$ifdef SUPPORTS_DISPINTERFACE}
 
4061
  IADsWinNTSystemInfoDisp = dispinterface
 
4062
    ['{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}']
 
4063
    property UserName: WideString readonly dispid 2;
 
4064
    property ComputerName: WideString readonly dispid 3;
 
4065
    property DomainName: WideString readonly dispid 4;
 
4066
    property PDC: WideString readonly dispid 5;
 
4067
  end;
 
4068
  {$endif}
 
4069
// *********************************************************************//
 
4070
// Interface: IADsDNWithBinary
 
4071
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4072
// GUID:      {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
 
4073
// *********************************************************************//
 
4074
  IADsDNWithBinary = interface(IDispatch)
 
4075
    ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
 
4076
    function  Get_BinaryValue: OleVariant; safecall;
 
4077
    procedure Set_BinaryValue(retval: OleVariant); safecall;
 
4078
    function  Get_DNString: WideString; safecall;
 
4079
    procedure Set_DNString(const retval: WideString); safecall;
 
4080
    property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
 
4081
    property DNString: WideString read Get_DNString write Set_DNString;
 
4082
  end;
 
4083
 
 
4084
// *********************************************************************//
 
4085
// DispIntf:  IADsDNWithBinaryDisp
 
4086
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4087
// GUID:      {7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}
 
4088
// *********************************************************************//
 
4089
  {$ifdef SUPPORTS_DISPINTERFACE}
 
4090
  IADsDNWithBinaryDisp = dispinterface
 
4091
    ['{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}']
 
4092
    property BinaryValue: OleVariant dispid 2;
 
4093
    property DNString: WideString dispid 3;
 
4094
  end;
 
4095
  {$endif}
 
4096
 
 
4097
// *********************************************************************//
 
4098
// Interface: IADsDNWithString
 
4099
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4100
// GUID:      {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
 
4101
// *********************************************************************//
 
4102
  IADsDNWithString = interface(IDispatch)
 
4103
    ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
 
4104
    function  Get_StringValue: WideString; safecall;
 
4105
    procedure Set_StringValue(const retval: WideString); safecall;
 
4106
    function  Get_DNString: WideString; safecall;
 
4107
    procedure Set_DNString(const retval: WideString); safecall;
 
4108
    property StringValue: WideString read Get_StringValue write Set_StringValue;
 
4109
    property DNString: WideString read Get_DNString write Set_DNString;
 
4110
  end;
 
4111
 
 
4112
// *********************************************************************//
 
4113
// DispIntf:  IADsDNWithStringDisp
 
4114
// Flags:     (4416) Dual OleAutomation Dispatchable
 
4115
// GUID:      {370DF02E-F934-11D2-BA96-00C04FB6D0D1}
 
4116
// *********************************************************************//
 
4117
  {$ifdef SUPPORTS_DISPINTERFACE}
 
4118
  IADsDNWithStringDisp = dispinterface
 
4119
    ['{370DF02E-F934-11D2-BA96-00C04FB6D0D1}']
 
4120
    property StringValue: WideString dispid 2;
 
4121
    property DNString: WideString dispid 3;
 
4122
  end;
 
4123
  {$endif}
 
4124
// *********************************************************************//
 
4125
// The Class CoPropertyEntry provides a Create and CreateRemote method to
 
4126
// create instances of the default interface IADsPropertyEntry exposed by
 
4127
// the CoClass PropertyEntry. The functions are intended to be used by
 
4128
// clients wishing to automate the CoClass objects exposed by the
 
4129
// server of this typelibrary.
 
4130
// *********************************************************************//
 
4131
  CoPropertyEntry = class
 
4132
    class function Create: IADsPropertyEntry;
 
4133
    class function CreateRemote(const MachineName: string): IADsPropertyEntry;
 
4134
  end;
 
4135
 
 
4136
// *********************************************************************//
 
4137
// OLE Server Proxy class declaration
 
4138
// Server Object    : TPropertyEntry
 
4139
// Help String      :
 
4140
// Default Interface: IADsPropertyEntry
 
4141
// Def. Intf. DISP? : No
 
4142
// Event   Interface:
 
4143
// TypeFlags        : (2) CanCreate
 
4144
// *********************************************************************//
 
4145
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4146
  TPropertyEntryProperties= class;
 
4147
{$ENDIF}
 
4148
  TPropertyEntry = class(TOleServer)
 
4149
  private
 
4150
    FIntf:        IADsPropertyEntry;
 
4151
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4152
    FProps:       TPropertyEntryProperties;
 
4153
    function      GetServerProperties: TPropertyEntryProperties;
 
4154
{$ENDIF}
 
4155
    function      GetDefaultInterface: IADsPropertyEntry;
 
4156
  protected
 
4157
    procedure InitServerData; override;
 
4158
    function  Get_Name: WideString;
 
4159
    procedure Set_Name(const retval: WideString);
 
4160
    function  Get_ADsType: Integer;
 
4161
    procedure Set_ADsType(retval: Integer);
 
4162
    function  Get_ControlCode: Integer;
 
4163
    procedure Set_ControlCode(retval: Integer);
 
4164
    function  Get_Values: OleVariant;
 
4165
    procedure Set_Values(retval: OleVariant);
 
4166
  public
 
4167
    constructor Create(AOwner: TComponent); override;
 
4168
    destructor  Destroy; override;
 
4169
    procedure Connect; override;
 
4170
    procedure ConnectTo(svrIntf: IADsPropertyEntry);
 
4171
    procedure Disconnect; override;
 
4172
    procedure Clear;
 
4173
    property  DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
 
4174
    property Values: OleVariant read Get_Values write Set_Values;
 
4175
    property Name: WideString read Get_Name write Set_Name;
 
4176
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
4177
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
 
4178
  published
 
4179
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4180
    property Server: TPropertyEntryProperties read GetServerProperties;
 
4181
{$ENDIF}
 
4182
  end;
 
4183
 
 
4184
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4185
// *********************************************************************//
 
4186
// OLE Server Properties Proxy Class
 
4187
// Server Object    : TPropertyEntry
 
4188
// (This object is used by the IDE's Property Inspector to allow editing
 
4189
//  of the properties of this server)
 
4190
// *********************************************************************//
 
4191
 TPropertyEntryProperties = class(TPersistent)
 
4192
  private
 
4193
    FServer:    TPropertyEntry;
 
4194
    function    GetDefaultInterface: IADsPropertyEntry;
 
4195
    constructor Create(AServer: TPropertyEntry);
 
4196
  protected
 
4197
    function  Get_Name: WideString;
 
4198
    procedure Set_Name(const retval: WideString);
 
4199
    function  Get_ADsType: Integer;
 
4200
    procedure Set_ADsType(retval: Integer);
 
4201
    function  Get_ControlCode: Integer;
 
4202
    procedure Set_ControlCode(retval: Integer);
 
4203
    function  Get_Values: OleVariant;
 
4204
    procedure Set_Values(retval: OleVariant);
 
4205
  public
 
4206
    property DefaultInterface: IADsPropertyEntry read GetDefaultInterface;
 
4207
  published
 
4208
    property Name: WideString read Get_Name write Set_Name;
 
4209
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
4210
    property ControlCode: Integer read Get_ControlCode write Set_ControlCode;
 
4211
  end;
 
4212
{$ENDIF}
 
4213
 
 
4214
// *********************************************************************//
 
4215
// The Class CoPropertyValue provides a Create and CreateRemote method to
 
4216
// create instances of the default interface IADsPropertyValue exposed by
 
4217
// the CoClass PropertyValue. The functions are intended to be used by
 
4218
// clients wishing to automate the CoClass objects exposed by the
 
4219
// server of this typelibrary.
 
4220
// *********************************************************************//
 
4221
  CoPropertyValue = class
 
4222
    class function Create: IADsPropertyValue;
 
4223
    class function CreateRemote(const MachineName: string): IADsPropertyValue;
 
4224
  end;
 
4225
 
 
4226
// *********************************************************************//
 
4227
// OLE Server Proxy class declaration
 
4228
// Server Object    : TPropertyValue
 
4229
// Help String      :
 
4230
// Default Interface: IADsPropertyValue
 
4231
// Def. Intf. DISP? : No
 
4232
// Event   Interface:
 
4233
// TypeFlags        : (2) CanCreate
 
4234
// *********************************************************************//
 
4235
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4236
  TPropertyValueProperties= class;
 
4237
{$ENDIF}
 
4238
  TPropertyValue = class(TOleServer)
 
4239
  private
 
4240
    FIntf:        IADsPropertyValue;
 
4241
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4242
    FProps:       TPropertyValueProperties;
 
4243
    function      GetServerProperties: TPropertyValueProperties;
 
4244
{$ENDIF}
 
4245
    function      GetDefaultInterface: IADsPropertyValue;
 
4246
  protected
 
4247
    procedure InitServerData; override;
 
4248
    function  Get_ADsType: Integer;
 
4249
    procedure Set_ADsType(retval: Integer);
 
4250
    function  Get_DNString: WideString;
 
4251
    procedure Set_DNString(const retval: WideString);
 
4252
    function  Get_CaseExactString: WideString;
 
4253
    procedure Set_CaseExactString(const retval: WideString);
 
4254
    function  Get_CaseIgnoreString: WideString;
 
4255
    procedure Set_CaseIgnoreString(const retval: WideString);
 
4256
    function  Get_PrintableString: WideString;
 
4257
    procedure Set_PrintableString(const retval: WideString);
 
4258
    function  Get_NumericString: WideString;
 
4259
    procedure Set_NumericString(const retval: WideString);
 
4260
    function  Get_Boolean: Integer;
 
4261
    procedure Set_Boolean(retval: Integer);
 
4262
    function  Get_Integer: Integer;
 
4263
    procedure Set_Integer(retval: Integer);
 
4264
    function  Get_OctetString: OleVariant;
 
4265
    procedure Set_OctetString(retval: OleVariant);
 
4266
    function  Get_SecurityDescriptor: IDispatch;
 
4267
    procedure Set_SecurityDescriptor(const retval: IDispatch);
 
4268
    function  Get_LargeInteger: IDispatch;
 
4269
    procedure Set_LargeInteger(const retval: IDispatch);
 
4270
    function  Get_UTCTime: TDateTime;
 
4271
    procedure Set_UTCTime(retval: TDateTime);
 
4272
  public
 
4273
    constructor Create(AOwner: TComponent); override;
 
4274
    destructor  Destroy; override;
 
4275
    procedure Connect; override;
 
4276
    procedure ConnectTo(svrIntf: IADsPropertyValue);
 
4277
    procedure Disconnect; override;
 
4278
    procedure Clear;
 
4279
    property  DefaultInterface: IADsPropertyValue read GetDefaultInterface;
 
4280
    property OctetString: OleVariant read Get_OctetString write Set_OctetString;
 
4281
    property SecurityDescriptor: IDispatch read Get_SecurityDescriptor write Set_SecurityDescriptor;
 
4282
    property LargeInteger: IDispatch read Get_LargeInteger write Set_LargeInteger;
 
4283
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
4284
    property DNString: WideString read Get_DNString write Set_DNString;
 
4285
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
 
4286
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
 
4287
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
 
4288
    property NumericString: WideString read Get_NumericString write Set_NumericString;
 
4289
    property Boolean: Integer read Get_Boolean write Set_Boolean;
 
4290
    property Integer: Integer read Get_Integer write Set_Integer;
 
4291
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
 
4292
  published
 
4293
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4294
    property Server: TPropertyValueProperties read GetServerProperties;
 
4295
{$ENDIF}
 
4296
  end;
 
4297
 
 
4298
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4299
// *********************************************************************//
 
4300
// OLE Server Properties Proxy Class
 
4301
// Server Object    : TPropertyValue
 
4302
// (This object is used by the IDE's Property Inspector to allow editing
 
4303
//  of the properties of this server)
 
4304
// *********************************************************************//
 
4305
 TPropertyValueProperties = class(TPersistent)
 
4306
  private
 
4307
    FServer:    TPropertyValue;
 
4308
    function    GetDefaultInterface: IADsPropertyValue;
 
4309
    constructor Create(AServer: TPropertyValue);
 
4310
  protected
 
4311
    function  Get_ADsType: Integer;
 
4312
    procedure Set_ADsType(retval: Integer);
 
4313
    function  Get_DNString: WideString;
 
4314
    procedure Set_DNString(const retval: WideString);
 
4315
    function  Get_CaseExactString: WideString;
 
4316
    procedure Set_CaseExactString(const retval: WideString);
 
4317
    function  Get_CaseIgnoreString: WideString;
 
4318
    procedure Set_CaseIgnoreString(const retval: WideString);
 
4319
    function  Get_PrintableString: WideString;
 
4320
    procedure Set_PrintableString(const retval: WideString);
 
4321
    function  Get_NumericString: WideString;
 
4322
    procedure Set_NumericString(const retval: WideString);
 
4323
    function  Get_Boolean: Integer;
 
4324
    procedure Set_Boolean(retval: Integer);
 
4325
    function  Get_Integer: Integer;
 
4326
    procedure Set_Integer(retval: Integer);
 
4327
    function  Get_OctetString: OleVariant;
 
4328
    procedure Set_OctetString(retval: OleVariant);
 
4329
    function  Get_SecurityDescriptor: IDispatch;
 
4330
    procedure Set_SecurityDescriptor(const retval: IDispatch);
 
4331
    function  Get_LargeInteger: IDispatch;
 
4332
    procedure Set_LargeInteger(const retval: IDispatch);
 
4333
    function  Get_UTCTime: TDateTime;
 
4334
    procedure Set_UTCTime(retval: TDateTime);
 
4335
  public
 
4336
    property DefaultInterface: IADsPropertyValue read GetDefaultInterface;
 
4337
  published
 
4338
    property ADsType: Integer read Get_ADsType write Set_ADsType;
 
4339
    property DNString: WideString read Get_DNString write Set_DNString;
 
4340
    property CaseExactString: WideString read Get_CaseExactString write Set_CaseExactString;
 
4341
    property CaseIgnoreString: WideString read Get_CaseIgnoreString write Set_CaseIgnoreString;
 
4342
    property PrintableString: WideString read Get_PrintableString write Set_PrintableString;
 
4343
    property NumericString: WideString read Get_NumericString write Set_NumericString;
 
4344
    property Boolean: Integer read Get_Boolean write Set_Boolean;
 
4345
    property Integer: Integer read Get_Integer write Set_Integer;
 
4346
    property UTCTime: TDateTime read Get_UTCTime write Set_UTCTime;
 
4347
  end;
 
4348
{$ENDIF}
 
4349
 
 
4350
// *********************************************************************//
 
4351
// The Class CoAccessControlEntry provides a Create and CreateRemote method to
 
4352
// create instances of the default interface IADsAccessControlEntry exposed by
 
4353
// the CoClass AccessControlEntry. The functions are intended to be used by
 
4354
// clients wishing to automate the CoClass objects exposed by the
 
4355
// server of this typelibrary.
 
4356
// *********************************************************************//
 
4357
  CoAccessControlEntry = class
 
4358
    class function Create: IADsAccessControlEntry;
 
4359
    class function CreateRemote(const MachineName: string): IADsAccessControlEntry;
 
4360
  end;
 
4361
 
 
4362
// *********************************************************************//
 
4363
// OLE Server Proxy class declaration
 
4364
// Server Object    : TAccessControlEntry
 
4365
// Help String      :
 
4366
// Default Interface: IADsAccessControlEntry
 
4367
// Def. Intf. DISP? : No
 
4368
// Event   Interface:
 
4369
// TypeFlags        : (2) CanCreate
 
4370
// *********************************************************************//
 
4371
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4372
  TAccessControlEntryProperties= class;
 
4373
{$ENDIF}
 
4374
  TAccessControlEntry = class(TOleServer)
 
4375
  private
 
4376
    FIntf:        IADsAccessControlEntry;
 
4377
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4378
    FProps:       TAccessControlEntryProperties;
 
4379
    function      GetServerProperties: TAccessControlEntryProperties;
 
4380
{$ENDIF}
 
4381
    function      GetDefaultInterface: IADsAccessControlEntry;
 
4382
  protected
 
4383
    procedure InitServerData; override;
 
4384
    function  Get_AccessMask: Integer;
 
4385
    procedure Set_AccessMask(retval: Integer);
 
4386
    function  Get_AceType: Integer;
 
4387
    procedure Set_AceType(retval: Integer);
 
4388
    function  Get_AceFlags: Integer;
 
4389
    procedure Set_AceFlags(retval: Integer);
 
4390
    function  Get_Flags: Integer;
 
4391
    procedure Set_Flags(retval: Integer);
 
4392
    function  Get_ObjectType: WideString;
 
4393
    procedure Set_ObjectType(const retval: WideString);
 
4394
    function  Get_InheritedObjectType: WideString;
 
4395
    procedure Set_InheritedObjectType(const retval: WideString);
 
4396
    function  Get_Trustee: WideString;
 
4397
    procedure Set_Trustee(const retval: WideString);
 
4398
  public
 
4399
    constructor Create(AOwner: TComponent); override;
 
4400
    destructor  Destroy; override;
 
4401
    procedure Connect; override;
 
4402
    procedure ConnectTo(svrIntf: IADsAccessControlEntry);
 
4403
    procedure Disconnect; override;
 
4404
    property  DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
 
4405
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
 
4406
    property AceType: Integer read Get_AceType write Set_AceType;
 
4407
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
 
4408
    property Flags: Integer read Get_Flags write Set_Flags;
 
4409
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
 
4410
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
 
4411
    property Trustee: WideString read Get_Trustee write Set_Trustee;
 
4412
  published
 
4413
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4414
    property Server: TAccessControlEntryProperties read GetServerProperties;
 
4415
{$ENDIF}
 
4416
  end;
 
4417
 
 
4418
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4419
// *********************************************************************//
 
4420
// OLE Server Properties Proxy Class
 
4421
// Server Object    : TAccessControlEntry
 
4422
// (This object is used by the IDE's Property Inspector to allow editing
 
4423
//  of the properties of this server)
 
4424
// *********************************************************************//
 
4425
 TAccessControlEntryProperties = class(TPersistent)
 
4426
  private
 
4427
    FServer:    TAccessControlEntry;
 
4428
    function    GetDefaultInterface: IADsAccessControlEntry;
 
4429
    constructor Create(AServer: TAccessControlEntry);
 
4430
  protected
 
4431
    function  Get_AccessMask: Integer;
 
4432
    procedure Set_AccessMask(retval: Integer);
 
4433
    function  Get_AceType: Integer;
 
4434
    procedure Set_AceType(retval: Integer);
 
4435
    function  Get_AceFlags: Integer;
 
4436
    procedure Set_AceFlags(retval: Integer);
 
4437
    function  Get_Flags: Integer;
 
4438
    procedure Set_Flags(retval: Integer);
 
4439
    function  Get_ObjectType: WideString;
 
4440
    procedure Set_ObjectType(const retval: WideString);
 
4441
    function  Get_InheritedObjectType: WideString;
 
4442
    procedure Set_InheritedObjectType(const retval: WideString);
 
4443
    function  Get_Trustee: WideString;
 
4444
    procedure Set_Trustee(const retval: WideString);
 
4445
  public
 
4446
    property DefaultInterface: IADsAccessControlEntry read GetDefaultInterface;
 
4447
  published
 
4448
    property AccessMask: Integer read Get_AccessMask write Set_AccessMask;
 
4449
    property AceType: Integer read Get_AceType write Set_AceType;
 
4450
    property AceFlags: Integer read Get_AceFlags write Set_AceFlags;
 
4451
    property Flags: Integer read Get_Flags write Set_Flags;
 
4452
    property ObjectType: WideString read Get_ObjectType write Set_ObjectType;
 
4453
    property InheritedObjectType: WideString read Get_InheritedObjectType write Set_InheritedObjectType;
 
4454
    property Trustee: WideString read Get_Trustee write Set_Trustee;
 
4455
  end;
 
4456
{$ENDIF}
 
4457
 
 
4458
// *********************************************************************//
 
4459
// The Class CoAccessControlList provides a Create and CreateRemote method to
 
4460
// create instances of the default interface IADsAccessControlList exposed by
 
4461
// the CoClass AccessControlList. The functions are intended to be used by
 
4462
// clients wishing to automate the CoClass objects exposed by the
 
4463
// server of this typelibrary.
 
4464
// *********************************************************************//
 
4465
  CoAccessControlList = class
 
4466
    class function Create: IADsAccessControlList;
 
4467
    class function CreateRemote(const MachineName: string): IADsAccessControlList;
 
4468
  end;
 
4469
 
 
4470
// *********************************************************************//
 
4471
// OLE Server Proxy class declaration
 
4472
// Server Object    : TAccessControlList
 
4473
// Help String      :
 
4474
// Default Interface: IADsAccessControlList
 
4475
// Def. Intf. DISP? : No
 
4476
// Event   Interface:
 
4477
// TypeFlags        : (2) CanCreate
 
4478
// *********************************************************************//
 
4479
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4480
  TAccessControlListProperties= class;
 
4481
{$ENDIF}
 
4482
  TAccessControlList = class(TOleServer)
 
4483
  private
 
4484
    FIntf:        IADsAccessControlList;
 
4485
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4486
    FProps:       TAccessControlListProperties;
 
4487
    function      GetServerProperties: TAccessControlListProperties;
 
4488
{$ENDIF}
 
4489
    function      GetDefaultInterface: IADsAccessControlList;
 
4490
  protected
 
4491
    procedure InitServerData; override;
 
4492
    function  Get_AclRevision: Integer;
 
4493
    procedure Set_AclRevision(retval: Integer);
 
4494
    function  Get_AceCount: Integer;
 
4495
    procedure Set_AceCount(retval: Integer);
 
4496
  public
 
4497
    constructor Create(AOwner: TComponent); override;
 
4498
    destructor  Destroy; override;
 
4499
    procedure Connect; override;
 
4500
    procedure ConnectTo(svrIntf: IADsAccessControlList);
 
4501
    procedure Disconnect; override;
 
4502
    procedure AddAce(const pAccessControlEntry: IDispatch);
 
4503
    procedure RemoveAce(const pAccessControlEntry: IDispatch);
 
4504
    function  CopyAccessList: IDispatch;
 
4505
    property  DefaultInterface: IADsAccessControlList read GetDefaultInterface;
 
4506
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
 
4507
    property AceCount: Integer read Get_AceCount write Set_AceCount;
 
4508
  published
 
4509
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4510
    property Server: TAccessControlListProperties read GetServerProperties;
 
4511
{$ENDIF}
 
4512
  end;
 
4513
 
 
4514
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4515
// *********************************************************************//
 
4516
// OLE Server Properties Proxy Class
 
4517
// Server Object    : TAccessControlList
 
4518
// (This object is used by the IDE's Property Inspector to allow editing
 
4519
//  of the properties of this server)
 
4520
// *********************************************************************//
 
4521
 TAccessControlListProperties = class(TPersistent)
 
4522
  private
 
4523
    FServer:    TAccessControlList;
 
4524
    function    GetDefaultInterface: IADsAccessControlList;
 
4525
    constructor Create(AServer: TAccessControlList);
 
4526
  protected
 
4527
    function  Get_AclRevision: Integer;
 
4528
    procedure Set_AclRevision(retval: Integer);
 
4529
    function  Get_AceCount: Integer;
 
4530
    procedure Set_AceCount(retval: Integer);
 
4531
  public
 
4532
    property DefaultInterface: IADsAccessControlList read GetDefaultInterface;
 
4533
  published
 
4534
    property AclRevision: Integer read Get_AclRevision write Set_AclRevision;
 
4535
    property AceCount: Integer read Get_AceCount write Set_AceCount;
 
4536
  end;
 
4537
{$ENDIF}
 
4538
 
 
4539
// *********************************************************************//
 
4540
// The Class CoSecurityDescriptor provides a Create and CreateRemote method to
 
4541
// create instances of the default interface IADsSecurityDescriptor exposed by
 
4542
// the CoClass SecurityDescriptor. The functions are intended to be used by
 
4543
// clients wishing to automate the CoClass objects exposed by the
 
4544
// server of this typelibrary.
 
4545
// *********************************************************************//
 
4546
  CoSecurityDescriptor = class
 
4547
    class function Create: IADsSecurityDescriptor;
 
4548
    class function CreateRemote(const MachineName: string): IADsSecurityDescriptor;
 
4549
  end;
 
4550
 
 
4551
// *********************************************************************//
 
4552
// OLE Server Proxy class declaration
 
4553
// Server Object    : TSecurityDescriptor
 
4554
// Help String      :
 
4555
// Default Interface: IADsSecurityDescriptor
 
4556
// Def. Intf. DISP? : No
 
4557
// Event   Interface:
 
4558
// TypeFlags        : (2) CanCreate
 
4559
// *********************************************************************//
 
4560
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4561
  TSecurityDescriptorProperties= class;
 
4562
{$ENDIF}
 
4563
  TSecurityDescriptor = class(TOleServer)
 
4564
  private
 
4565
    FIntf:        IADsSecurityDescriptor;
 
4566
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4567
    FProps:       TSecurityDescriptorProperties;
 
4568
    function      GetServerProperties: TSecurityDescriptorProperties;
 
4569
{$ENDIF}
 
4570
    function      GetDefaultInterface: IADsSecurityDescriptor;
 
4571
  protected
 
4572
    procedure InitServerData; override;
 
4573
    function  Get_Revision: Integer;
 
4574
    procedure Set_Revision(retval: Integer);
 
4575
    function  Get_Control: Integer;
 
4576
    procedure Set_Control(retval: Integer);
 
4577
    function  Get_Owner: WideString;
 
4578
    procedure Set_Owner(const retval: WideString);
 
4579
    function  Get_OwnerDefaulted: WordBool;
 
4580
    procedure Set_OwnerDefaulted(retval: WordBool);
 
4581
    function  Get_Group: WideString;
 
4582
    procedure Set_Group(const retval: WideString);
 
4583
    function  Get_GroupDefaulted: WordBool;
 
4584
    procedure Set_GroupDefaulted(retval: WordBool);
 
4585
    function  Get_DiscretionaryAcl: IDispatch;
 
4586
    procedure Set_DiscretionaryAcl(const retval: IDispatch);
 
4587
    function  Get_DaclDefaulted: WordBool;
 
4588
    procedure Set_DaclDefaulted(retval: WordBool);
 
4589
    function  Get_SystemAcl: IDispatch;
 
4590
    procedure Set_SystemAcl(const retval: IDispatch);
 
4591
    function  Get_SaclDefaulted: WordBool;
 
4592
    procedure Set_SaclDefaulted(retval: WordBool);
 
4593
  public
 
4594
    constructor Create(AOwner: TComponent); override;
 
4595
    destructor  Destroy; override;
 
4596
    procedure Connect; override;
 
4597
    procedure ConnectTo(svrIntf: IADsSecurityDescriptor);
 
4598
    procedure Disconnect; override;
 
4599
    function  CopySecurityDescriptor: IDispatch;
 
4600
    property  DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
 
4601
    property DiscretionaryAcl: IDispatch read Get_DiscretionaryAcl write Set_DiscretionaryAcl;
 
4602
    property SystemAcl: IDispatch read Get_SystemAcl write Set_SystemAcl;
 
4603
    property Revision: Integer read Get_Revision write Set_Revision;
 
4604
    property Control: Integer read Get_Control write Set_Control;
 
4605
    property Owner: WideString read Get_Owner write Set_Owner;
 
4606
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
 
4607
    property Group: WideString read Get_Group write Set_Group;
 
4608
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
 
4609
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
 
4610
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
 
4611
  published
 
4612
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4613
    property Server: TSecurityDescriptorProperties read GetServerProperties;
 
4614
{$ENDIF}
 
4615
  end;
 
4616
 
 
4617
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4618
// *********************************************************************//
 
4619
// OLE Server Properties Proxy Class
 
4620
// Server Object    : TSecurityDescriptor
 
4621
// (This object is used by the IDE's Property Inspector to allow editing
 
4622
//  of the properties of this server)
 
4623
// *********************************************************************//
 
4624
 TSecurityDescriptorProperties = class(TPersistent)
 
4625
  private
 
4626
    FServer:    TSecurityDescriptor;
 
4627
    function    GetDefaultInterface: IADsSecurityDescriptor;
 
4628
    constructor Create(AServer: TSecurityDescriptor);
 
4629
  protected
 
4630
    function  Get_Revision: Integer;
 
4631
    procedure Set_Revision(retval: Integer);
 
4632
    function  Get_Control: Integer;
 
4633
    procedure Set_Control(retval: Integer);
 
4634
    function  Get_Owner: WideString;
 
4635
    procedure Set_Owner(const retval: WideString);
 
4636
    function  Get_OwnerDefaulted: WordBool;
 
4637
    procedure Set_OwnerDefaulted(retval: WordBool);
 
4638
    function  Get_Group: WideString;
 
4639
    procedure Set_Group(const retval: WideString);
 
4640
    function  Get_GroupDefaulted: WordBool;
 
4641
    procedure Set_GroupDefaulted(retval: WordBool);
 
4642
    function  Get_DiscretionaryAcl: IDispatch;
 
4643
    procedure Set_DiscretionaryAcl(const retval: IDispatch);
 
4644
    function  Get_DaclDefaulted: WordBool;
 
4645
    procedure Set_DaclDefaulted(retval: WordBool);
 
4646
    function  Get_SystemAcl: IDispatch;
 
4647
    procedure Set_SystemAcl(const retval: IDispatch);
 
4648
    function  Get_SaclDefaulted: WordBool;
 
4649
    procedure Set_SaclDefaulted(retval: WordBool);
 
4650
  public
 
4651
    property DefaultInterface: IADsSecurityDescriptor read GetDefaultInterface;
 
4652
  published
 
4653
    property Revision: Integer read Get_Revision write Set_Revision;
 
4654
    property Control: Integer read Get_Control write Set_Control;
 
4655
    property Owner: WideString read Get_Owner write Set_Owner;
 
4656
    property OwnerDefaulted: WordBool read Get_OwnerDefaulted write Set_OwnerDefaulted;
 
4657
    property Group: WideString read Get_Group write Set_Group;
 
4658
    property GroupDefaulted: WordBool read Get_GroupDefaulted write Set_GroupDefaulted;
 
4659
    property DaclDefaulted: WordBool read Get_DaclDefaulted write Set_DaclDefaulted;
 
4660
    property SaclDefaulted: WordBool read Get_SaclDefaulted write Set_SaclDefaulted;
 
4661
  end;
 
4662
{$ENDIF}
 
4663
 
 
4664
// *********************************************************************//
 
4665
// The Class CoLargeInteger provides a Create and CreateRemote method to
 
4666
// create instances of the default interface IADsLargeInteger exposed by
 
4667
// the CoClass LargeInteger. The functions are intended to be used by
 
4668
// clients wishing to automate the CoClass objects exposed by the
 
4669
// server of this typelibrary.
 
4670
// *********************************************************************//
 
4671
  CoLargeInteger = class
 
4672
    class function Create: IADsLargeInteger;
 
4673
    class function CreateRemote(const MachineName: string): IADsLargeInteger;
 
4674
  end;
 
4675
 
 
4676
// *********************************************************************//
 
4677
// OLE Server Proxy class declaration
 
4678
// Server Object    : TLargeInteger
 
4679
// Help String      :
 
4680
// Default Interface: IADsLargeInteger
 
4681
// Def. Intf. DISP? : No
 
4682
// Event   Interface:
 
4683
// TypeFlags        : (2) CanCreate
 
4684
// *********************************************************************//
 
4685
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4686
  TLargeIntegerProperties= class;
 
4687
{$ENDIF}
 
4688
  TLargeInteger = class(TOleServer)
 
4689
  private
 
4690
    FIntf:        IADsLargeInteger;
 
4691
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4692
    FProps:       TLargeIntegerProperties;
 
4693
    function      GetServerProperties: TLargeIntegerProperties;
 
4694
{$ENDIF}
 
4695
    function      GetDefaultInterface: IADsLargeInteger;
 
4696
  protected
 
4697
    procedure InitServerData; override;
 
4698
    function  Get_HighPart: Integer;
 
4699
    procedure Set_HighPart(retval: Integer);
 
4700
    function  Get_LowPart: Integer;
 
4701
    procedure Set_LowPart(retval: Integer);
 
4702
  public
 
4703
    constructor Create(AOwner: TComponent); override;
 
4704
    destructor  Destroy; override;
 
4705
    procedure Connect; override;
 
4706
    procedure ConnectTo(svrIntf: IADsLargeInteger);
 
4707
    procedure Disconnect; override;
 
4708
    property  DefaultInterface: IADsLargeInteger read GetDefaultInterface;
 
4709
    property HighPart: Integer read Get_HighPart write Set_HighPart;
 
4710
    property LowPart: Integer read Get_LowPart write Set_LowPart;
 
4711
  published
 
4712
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4713
    property Server: TLargeIntegerProperties read GetServerProperties;
 
4714
{$ENDIF}
 
4715
  end;
 
4716
 
 
4717
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4718
// *********************************************************************//
 
4719
// OLE Server Properties Proxy Class
 
4720
// Server Object    : TLargeInteger
 
4721
// (This object is used by the IDE's Property Inspector to allow editing
 
4722
//  of the properties of this server)
 
4723
// *********************************************************************//
 
4724
 TLargeIntegerProperties = class(TPersistent)
 
4725
  private
 
4726
    FServer:    TLargeInteger;
 
4727
    function    GetDefaultInterface: IADsLargeInteger;
 
4728
    constructor Create(AServer: TLargeInteger);
 
4729
  protected
 
4730
    function  Get_HighPart: Integer;
 
4731
    procedure Set_HighPart(retval: Integer);
 
4732
    function  Get_LowPart: Integer;
 
4733
    procedure Set_LowPart(retval: Integer);
 
4734
  public
 
4735
    property DefaultInterface: IADsLargeInteger read GetDefaultInterface;
 
4736
  published
 
4737
    property HighPart: Integer read Get_HighPart write Set_HighPart;
 
4738
    property LowPart: Integer read Get_LowPart write Set_LowPart;
 
4739
  end;
 
4740
{$ENDIF}
 
4741
 
 
4742
// *********************************************************************//
 
4743
// The Class CoNameTranslate provides a Create and CreateRemote method to
 
4744
// create instances of the default interface IADsNameTranslate exposed by
 
4745
// the CoClass NameTranslate. The functions are intended to be used by
 
4746
// clients wishing to automate the CoClass objects exposed by the
 
4747
// server of this typelibrary.
 
4748
// *********************************************************************//
 
4749
  CoNameTranslate = class
 
4750
    class function Create: IADsNameTranslate;
 
4751
    class function CreateRemote(const MachineName: string): IADsNameTranslate;
 
4752
  end;
 
4753
 
 
4754
// *********************************************************************//
 
4755
// OLE Server Proxy class declaration
 
4756
// Server Object    : TNameTranslate
 
4757
// Help String      :
 
4758
// Default Interface: IADsNameTranslate
 
4759
// Def. Intf. DISP? : No
 
4760
// Event   Interface:
 
4761
// TypeFlags        : (2) CanCreate
 
4762
// *********************************************************************//
 
4763
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4764
  TNameTranslateProperties= class;
 
4765
{$ENDIF}
 
4766
  TNameTranslate = class(TOleServer)
 
4767
  private
 
4768
    FIntf:        IADsNameTranslate;
 
4769
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4770
    FProps:       TNameTranslateProperties;
 
4771
    function      GetServerProperties: TNameTranslateProperties;
 
4772
{$ENDIF}
 
4773
    function      GetDefaultInterface: IADsNameTranslate;
 
4774
  protected
 
4775
    procedure InitServerData; override;
 
4776
    procedure Set_ChaseReferral(Param1: Integer);
 
4777
  public
 
4778
    constructor Create(AOwner: TComponent); override;
 
4779
    destructor  Destroy; override;
 
4780
    procedure Connect; override;
 
4781
    procedure ConnectTo(svrIntf: IADsNameTranslate);
 
4782
    procedure Disconnect; override;
 
4783
    procedure Init(lnSetType: Integer; const bstrADsPath: WideString);
 
4784
    procedure InitEx(lnSetType: Integer; const bstrADsPath: WideString;
 
4785
                     const bstrUserID: WideString; const bstrDomain: WideString;
 
4786
                     const bstrPassword: WideString);
 
4787
    procedure Set_(lnSetType: Integer; const bstrADsPath: WideString);
 
4788
    function  Get(lnFormatType: Integer): WideString;
 
4789
    procedure SetEx(lnFormatType: Integer; pVar: OleVariant);
 
4790
    function  GetEx(lnFormatType: Integer): OleVariant;
 
4791
    property  DefaultInterface: IADsNameTranslate read GetDefaultInterface;
 
4792
    property ChaseReferral: Integer write Set_ChaseReferral;
 
4793
  published
 
4794
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4795
    property Server: TNameTranslateProperties read GetServerProperties;
 
4796
{$ENDIF}
 
4797
  end;
 
4798
 
 
4799
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4800
// *********************************************************************//
 
4801
// OLE Server Properties Proxy Class
 
4802
// Server Object    : TNameTranslate
 
4803
// (This object is used by the IDE's Property Inspector to allow editing
 
4804
//  of the properties of this server)
 
4805
// *********************************************************************//
 
4806
 TNameTranslateProperties = class(TPersistent)
 
4807
  private
 
4808
    FServer:    TNameTranslate;
 
4809
    function    GetDefaultInterface: IADsNameTranslate;
 
4810
    constructor Create(AServer: TNameTranslate);
 
4811
  protected
 
4812
    procedure Set_ChaseReferral(Param1: Integer);
 
4813
  public
 
4814
    property DefaultInterface: IADsNameTranslate read GetDefaultInterface;
 
4815
  published
 
4816
  end;
 
4817
{$ENDIF}
 
4818
 
 
4819
// *********************************************************************//
 
4820
// The Class CoCaseIgnoreList provides a Create and CreateRemote method to
 
4821
// create instances of the default interface IADsCaseIgnoreList exposed by
 
4822
// the CoClass CaseIgnoreList. The functions are intended to be used by
 
4823
// clients wishing to automate the CoClass objects exposed by the
 
4824
// server of this typelibrary.
 
4825
// *********************************************************************//
 
4826
  CoCaseIgnoreList = class
 
4827
    class function Create: IADsCaseIgnoreList;
 
4828
    class function CreateRemote(const MachineName: string): IADsCaseIgnoreList;
 
4829
  end;
 
4830
 
 
4831
// *********************************************************************//
 
4832
// OLE Server Proxy class declaration
 
4833
// Server Object    : TCaseIgnoreList
 
4834
// Help String      :
 
4835
// Default Interface: IADsCaseIgnoreList
 
4836
// Def. Intf. DISP? : No
 
4837
// Event   Interface:
 
4838
// TypeFlags        : (2) CanCreate
 
4839
// *********************************************************************//
 
4840
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4841
  TCaseIgnoreListProperties= class;
 
4842
{$ENDIF}
 
4843
  TCaseIgnoreList = class(TOleServer)
 
4844
  private
 
4845
    FIntf:        IADsCaseIgnoreList;
 
4846
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4847
    FProps:       TCaseIgnoreListProperties;
 
4848
    function      GetServerProperties: TCaseIgnoreListProperties;
 
4849
{$ENDIF}
 
4850
    function      GetDefaultInterface: IADsCaseIgnoreList;
 
4851
  protected
 
4852
    procedure InitServerData; override;
 
4853
    function  Get_CaseIgnoreList: OleVariant;
 
4854
    procedure Set_CaseIgnoreList(retval: OleVariant);
 
4855
  public
 
4856
    constructor Create(AOwner: TComponent); override;
 
4857
    destructor  Destroy; override;
 
4858
    procedure Connect; override;
 
4859
    procedure ConnectTo(svrIntf: IADsCaseIgnoreList);
 
4860
    procedure Disconnect; override;
 
4861
    property  DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
 
4862
    property CaseIgnoreList: OleVariant read Get_CaseIgnoreList write Set_CaseIgnoreList;
 
4863
  published
 
4864
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4865
    property Server: TCaseIgnoreListProperties read GetServerProperties;
 
4866
{$ENDIF}
 
4867
  end;
 
4868
 
 
4869
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4870
// *********************************************************************//
 
4871
// OLE Server Properties Proxy Class
 
4872
// Server Object    : TCaseIgnoreList
 
4873
// (This object is used by the IDE's Property Inspector to allow editing
 
4874
//  of the properties of this server)
 
4875
// *********************************************************************//
 
4876
 TCaseIgnoreListProperties = class(TPersistent)
 
4877
  private
 
4878
    FServer:    TCaseIgnoreList;
 
4879
    function    GetDefaultInterface: IADsCaseIgnoreList;
 
4880
    constructor Create(AServer: TCaseIgnoreList);
 
4881
  protected
 
4882
    function  Get_CaseIgnoreList: OleVariant;
 
4883
    procedure Set_CaseIgnoreList(retval: OleVariant);
 
4884
  public
 
4885
    property DefaultInterface: IADsCaseIgnoreList read GetDefaultInterface;
 
4886
  published
 
4887
  end;
 
4888
{$ENDIF}
 
4889
 
 
4890
// *********************************************************************//
 
4891
// The Class CoFaxNumber provides a Create and CreateRemote method to
 
4892
// create instances of the default interface IADsFaxNumber exposed by
 
4893
// the CoClass FaxNumber. The functions are intended to be used by
 
4894
// clients wishing to automate the CoClass objects exposed by the
 
4895
// server of this typelibrary.
 
4896
// *********************************************************************//
 
4897
  CoFaxNumber = class
 
4898
    class function Create: IADsFaxNumber;
 
4899
    class function CreateRemote(const MachineName: string): IADsFaxNumber;
 
4900
  end;
 
4901
 
 
4902
// *********************************************************************//
 
4903
// OLE Server Proxy class declaration
 
4904
// Server Object    : TFaxNumber
 
4905
// Help String      :
 
4906
// Default Interface: IADsFaxNumber
 
4907
// Def. Intf. DISP? : No
 
4908
// Event   Interface:
 
4909
// TypeFlags        : (2) CanCreate
 
4910
// *********************************************************************//
 
4911
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4912
  TFaxNumberProperties= class;
 
4913
{$ENDIF}
 
4914
  TFaxNumber = class(TOleServer)
 
4915
  private
 
4916
    FIntf:        IADsFaxNumber;
 
4917
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4918
    FProps:       TFaxNumberProperties;
 
4919
    function      GetServerProperties: TFaxNumberProperties;
 
4920
{$ENDIF}
 
4921
    function      GetDefaultInterface: IADsFaxNumber;
 
4922
  protected
 
4923
    procedure InitServerData; override;
 
4924
    function  Get_TelephoneNumber: WideString;
 
4925
    procedure Set_TelephoneNumber(const retval: WideString);
 
4926
    function  Get_Parameters: OleVariant;
 
4927
    procedure Set_Parameters(retval: OleVariant);
 
4928
  public
 
4929
    constructor Create(AOwner: TComponent); override;
 
4930
    destructor  Destroy; override;
 
4931
    procedure Connect; override;
 
4932
    procedure ConnectTo(svrIntf: IADsFaxNumber);
 
4933
    procedure Disconnect; override;
 
4934
    property  DefaultInterface: IADsFaxNumber read GetDefaultInterface;
 
4935
    property Parameters: OleVariant read Get_Parameters write Set_Parameters;
 
4936
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
 
4937
  published
 
4938
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4939
    property Server: TFaxNumberProperties read GetServerProperties;
 
4940
{$ENDIF}
 
4941
  end;
 
4942
 
 
4943
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4944
// *********************************************************************//
 
4945
// OLE Server Properties Proxy Class
 
4946
// Server Object    : TFaxNumber
 
4947
// (This object is used by the IDE's Property Inspector to allow editing
 
4948
//  of the properties of this server)
 
4949
// *********************************************************************//
 
4950
 TFaxNumberProperties = class(TPersistent)
 
4951
  private
 
4952
    FServer:    TFaxNumber;
 
4953
    function    GetDefaultInterface: IADsFaxNumber;
 
4954
    constructor Create(AServer: TFaxNumber);
 
4955
  protected
 
4956
    function  Get_TelephoneNumber: WideString;
 
4957
    procedure Set_TelephoneNumber(const retval: WideString);
 
4958
    function  Get_Parameters: OleVariant;
 
4959
    procedure Set_Parameters(retval: OleVariant);
 
4960
  public
 
4961
    property DefaultInterface: IADsFaxNumber read GetDefaultInterface;
 
4962
  published
 
4963
    property TelephoneNumber: WideString read Get_TelephoneNumber write Set_TelephoneNumber;
 
4964
  end;
 
4965
{$ENDIF}
 
4966
 
 
4967
// *********************************************************************//
 
4968
// The Class CoNetAddress provides a Create and CreateRemote method to
 
4969
// create instances of the default interface IADsNetAddress exposed by
 
4970
// the CoClass NetAddress. The functions are intended to be used by
 
4971
// clients wishing to automate the CoClass objects exposed by the
 
4972
// server of this typelibrary.
 
4973
// *********************************************************************//
 
4974
  CoNetAddress = class
 
4975
    class function Create: IADsNetAddress;
 
4976
    class function CreateRemote(const MachineName: string): IADsNetAddress;
 
4977
  end;
 
4978
 
 
4979
// *********************************************************************//
 
4980
// OLE Server Proxy class declaration
 
4981
// Server Object    : TNetAddress
 
4982
// Help String      :
 
4983
// Default Interface: IADsNetAddress
 
4984
// Def. Intf. DISP? : No
 
4985
// Event   Interface:
 
4986
// TypeFlags        : (2) CanCreate
 
4987
// *********************************************************************//
 
4988
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4989
  TNetAddressProperties= class;
 
4990
{$ENDIF}
 
4991
  TNetAddress = class(TOleServer)
 
4992
  private
 
4993
    FIntf:        IADsNetAddress;
 
4994
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
4995
    FProps:       TNetAddressProperties;
 
4996
    function      GetServerProperties: TNetAddressProperties;
 
4997
{$ENDIF}
 
4998
    function      GetDefaultInterface: IADsNetAddress;
 
4999
  protected
 
5000
    procedure InitServerData; override;
 
5001
    function  Get_AddressType: Integer;
 
5002
    procedure Set_AddressType(retval: Integer);
 
5003
    function  Get_Address: OleVariant;
 
5004
    procedure Set_Address(retval: OleVariant);
 
5005
  public
 
5006
    constructor Create(AOwner: TComponent); override;
 
5007
    destructor  Destroy; override;
 
5008
    procedure Connect; override;
 
5009
    procedure ConnectTo(svrIntf: IADsNetAddress);
 
5010
    procedure Disconnect; override;
 
5011
    property  DefaultInterface: IADsNetAddress read GetDefaultInterface;
 
5012
    property Address: OleVariant read Get_Address write Set_Address;
 
5013
    property AddressType: Integer read Get_AddressType write Set_AddressType;
 
5014
  published
 
5015
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5016
    property Server: TNetAddressProperties read GetServerProperties;
 
5017
{$ENDIF}
 
5018
  end;
 
5019
 
 
5020
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5021
// *********************************************************************//
 
5022
// OLE Server Properties Proxy Class
 
5023
// Server Object    : TNetAddress
 
5024
// (This object is used by the IDE's Property Inspector to allow editing
 
5025
//  of the properties of this server)
 
5026
// *********************************************************************//
 
5027
 TNetAddressProperties = class(TPersistent)
 
5028
  private
 
5029
    FServer:    TNetAddress;
 
5030
    function    GetDefaultInterface: IADsNetAddress;
 
5031
    constructor Create(AServer: TNetAddress);
 
5032
  protected
 
5033
    function  Get_AddressType: Integer;
 
5034
    procedure Set_AddressType(retval: Integer);
 
5035
    function  Get_Address: OleVariant;
 
5036
    procedure Set_Address(retval: OleVariant);
 
5037
  public
 
5038
    property DefaultInterface: IADsNetAddress read GetDefaultInterface;
 
5039
  published
 
5040
    property AddressType: Integer read Get_AddressType write Set_AddressType;
 
5041
  end;
 
5042
{$ENDIF}
 
5043
 
 
5044
// *********************************************************************//
 
5045
// The Class CoOctetList provides a Create and CreateRemote method to
 
5046
// create instances of the default interface IADsOctetList exposed by
 
5047
// the CoClass OctetList. The functions are intended to be used by
 
5048
// clients wishing to automate the CoClass objects exposed by the
 
5049
// server of this typelibrary.
 
5050
// *********************************************************************//
 
5051
  CoOctetList = class
 
5052
    class function Create: IADsOctetList;
 
5053
    class function CreateRemote(const MachineName: string): IADsOctetList;
 
5054
  end;
 
5055
 
 
5056
// *********************************************************************//
 
5057
// OLE Server Proxy class declaration
 
5058
// Server Object    : TOctetList
 
5059
// Help String      :
 
5060
// Default Interface: IADsOctetList
 
5061
// Def. Intf. DISP? : No
 
5062
// Event   Interface:
 
5063
// TypeFlags        : (2) CanCreate
 
5064
// *********************************************************************//
 
5065
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5066
  TOctetListProperties= class;
 
5067
{$ENDIF}
 
5068
  TOctetList = class(TOleServer)
 
5069
  private
 
5070
    FIntf:        IADsOctetList;
 
5071
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5072
    FProps:       TOctetListProperties;
 
5073
    function      GetServerProperties: TOctetListProperties;
 
5074
{$ENDIF}
 
5075
    function      GetDefaultInterface: IADsOctetList;
 
5076
  protected
 
5077
    procedure InitServerData; override;
 
5078
    function  Get_OctetList: OleVariant;
 
5079
    procedure Set_OctetList(retval: OleVariant);
 
5080
  public
 
5081
    constructor Create(AOwner: TComponent); override;
 
5082
    destructor  Destroy; override;
 
5083
    procedure Connect; override;
 
5084
    procedure ConnectTo(svrIntf: IADsOctetList);
 
5085
    procedure Disconnect; override;
 
5086
    property  DefaultInterface: IADsOctetList read GetDefaultInterface;
 
5087
    property OctetList: OleVariant read Get_OctetList write Set_OctetList;
 
5088
  published
 
5089
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5090
    property Server: TOctetListProperties read GetServerProperties;
 
5091
{$ENDIF}
 
5092
  end;
 
5093
 
 
5094
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5095
// *********************************************************************//
 
5096
// OLE Server Properties Proxy Class
 
5097
// Server Object    : TOctetList
 
5098
// (This object is used by the IDE's Property Inspector to allow editing
 
5099
//  of the properties of this server)
 
5100
// *********************************************************************//
 
5101
 TOctetListProperties = class(TPersistent)
 
5102
  private
 
5103
    FServer:    TOctetList;
 
5104
    function    GetDefaultInterface: IADsOctetList;
 
5105
    constructor Create(AServer: TOctetList);
 
5106
  protected
 
5107
    function  Get_OctetList: OleVariant;
 
5108
    procedure Set_OctetList(retval: OleVariant);
 
5109
  public
 
5110
    property DefaultInterface: IADsOctetList read GetDefaultInterface;
 
5111
  published
 
5112
  end;
 
5113
{$ENDIF}
 
5114
 
 
5115
// *********************************************************************//
 
5116
// The Class CoEmail provides a Create and CreateRemote method to
 
5117
// create instances of the default interface IADsEmail exposed by
 
5118
// the CoClass Email. The functions are intended to be used by
 
5119
// clients wishing to automate the CoClass objects exposed by the
 
5120
// server of this typelibrary.
 
5121
// *********************************************************************//
 
5122
  CoEmail = class
 
5123
    class function Create: IADsEmail;
 
5124
    class function CreateRemote(const MachineName: string): IADsEmail;
 
5125
  end;
 
5126
 
 
5127
// *********************************************************************//
 
5128
// OLE Server Proxy class declaration
 
5129
// Server Object    : TEmail
 
5130
// Help String      :
 
5131
// Default Interface: IADsEmail
 
5132
// Def. Intf. DISP? : No
 
5133
// Event   Interface:
 
5134
// TypeFlags        : (2) CanCreate
 
5135
// *********************************************************************//
 
5136
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5137
  TEmailProperties= class;
 
5138
{$ENDIF}
 
5139
  TEmail = class(TOleServer)
 
5140
  private
 
5141
    FIntf:        IADsEmail;
 
5142
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5143
    FProps:       TEmailProperties;
 
5144
    function      GetServerProperties: TEmailProperties;
 
5145
{$ENDIF}
 
5146
    function      GetDefaultInterface: IADsEmail;
 
5147
  protected
 
5148
    procedure InitServerData; override;
 
5149
    function  Get_Type_: Integer;
 
5150
    procedure Set_Type_(retval: Integer);
 
5151
    function  Get_Address: WideString;
 
5152
    procedure Set_Address(const retval: WideString);
 
5153
  public
 
5154
    constructor Create(AOwner: TComponent); override;
 
5155
    destructor  Destroy; override;
 
5156
    procedure Connect; override;
 
5157
    procedure ConnectTo(svrIntf: IADsEmail);
 
5158
    procedure Disconnect; override;
 
5159
    property  DefaultInterface: IADsEmail read GetDefaultInterface;
 
5160
    property Type_: Integer read Get_Type_ write Set_Type_;
 
5161
    property Address: WideString read Get_Address write Set_Address;
 
5162
  published
 
5163
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5164
    property Server: TEmailProperties read GetServerProperties;
 
5165
{$ENDIF}
 
5166
  end;
 
5167
 
 
5168
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5169
// *********************************************************************//
 
5170
// OLE Server Properties Proxy Class
 
5171
// Server Object    : TEmail
 
5172
// (This object is used by the IDE's Property Inspector to allow editing
 
5173
//  of the properties of this server)
 
5174
// *********************************************************************//
 
5175
 TEmailProperties = class(TPersistent)
 
5176
  private
 
5177
    FServer:    TEmail;
 
5178
    function    GetDefaultInterface: IADsEmail;
 
5179
    constructor Create(AServer: TEmail);
 
5180
  protected
 
5181
    function  Get_Type_: Integer;
 
5182
    procedure Set_Type_(retval: Integer);
 
5183
    function  Get_Address: WideString;
 
5184
    procedure Set_Address(const retval: WideString);
 
5185
  public
 
5186
    property DefaultInterface: IADsEmail read GetDefaultInterface;
 
5187
  published
 
5188
    property Type_: Integer read Get_Type_ write Set_Type_;
 
5189
    property Address: WideString read Get_Address write Set_Address;
 
5190
  end;
 
5191
{$ENDIF}
 
5192
 
 
5193
// *********************************************************************//
 
5194
// The Class CoPath provides a Create and CreateRemote method to
 
5195
// create instances of the default interface IADsPath exposed by
 
5196
// the CoClass Path. The functions are intended to be used by
 
5197
// clients wishing to automate the CoClass objects exposed by the
 
5198
// server of this typelibrary.
 
5199
// *********************************************************************//
 
5200
  CoPath = class
 
5201
    class function Create: IADsPath;
 
5202
    class function CreateRemote(const MachineName: string): IADsPath;
 
5203
  end;
 
5204
 
 
5205
// *********************************************************************//
 
5206
// OLE Server Proxy class declaration
 
5207
// Server Object    : TPath
 
5208
// Help String      :
 
5209
// Default Interface: IADsPath
 
5210
// Def. Intf. DISP? : No
 
5211
// Event   Interface:
 
5212
// TypeFlags        : (2) CanCreate
 
5213
// *********************************************************************//
 
5214
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5215
  TPathProperties= class;
 
5216
{$ENDIF}
 
5217
  TPath = class(TOleServer)
 
5218
  private
 
5219
    FIntf:        IADsPath;
 
5220
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5221
    FProps:       TPathProperties;
 
5222
    function      GetServerProperties: TPathProperties;
 
5223
{$ENDIF}
 
5224
    function      GetDefaultInterface: IADsPath;
 
5225
  protected
 
5226
    procedure InitServerData; override;
 
5227
    function  Get_Type_: Integer;
 
5228
    procedure Set_Type_(retval: Integer);
 
5229
    function  Get_VolumeName: WideString;
 
5230
    procedure Set_VolumeName(const retval: WideString);
 
5231
    function  Get_Path: WideString;
 
5232
    procedure Set_Path(const retval: WideString);
 
5233
  public
 
5234
    constructor Create(AOwner: TComponent); override;
 
5235
    destructor  Destroy; override;
 
5236
    procedure Connect; override;
 
5237
    procedure ConnectTo(svrIntf: IADsPath);
 
5238
    procedure Disconnect; override;
 
5239
    property  DefaultInterface: IADsPath read GetDefaultInterface;
 
5240
    property Type_: Integer read Get_Type_ write Set_Type_;
 
5241
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
 
5242
    property Path: WideString read Get_Path write Set_Path;
 
5243
  published
 
5244
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5245
    property Server: TPathProperties read GetServerProperties;
 
5246
{$ENDIF}
 
5247
  end;
 
5248
 
 
5249
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5250
// *********************************************************************//
 
5251
// OLE Server Properties Proxy Class
 
5252
// Server Object    : TPath
 
5253
// (This object is used by the IDE's Property Inspector to allow editing
 
5254
//  of the properties of this server)
 
5255
// *********************************************************************//
 
5256
 TPathProperties = class(TPersistent)
 
5257
  private
 
5258
    FServer:    TPath;
 
5259
    function    GetDefaultInterface: IADsPath;
 
5260
    constructor Create(AServer: TPath);
 
5261
  protected
 
5262
    function  Get_Type_: Integer;
 
5263
    procedure Set_Type_(retval: Integer);
 
5264
    function  Get_VolumeName: WideString;
 
5265
    procedure Set_VolumeName(const retval: WideString);
 
5266
    function  Get_Path: WideString;
 
5267
    procedure Set_Path(const retval: WideString);
 
5268
  public
 
5269
    property DefaultInterface: IADsPath read GetDefaultInterface;
 
5270
  published
 
5271
    property Type_: Integer read Get_Type_ write Set_Type_;
 
5272
    property VolumeName: WideString read Get_VolumeName write Set_VolumeName;
 
5273
    property Path: WideString read Get_Path write Set_Path;
 
5274
  end;
 
5275
{$ENDIF}
 
5276
 
 
5277
// *********************************************************************//
 
5278
// The Class CoReplicaPointer provides a Create and CreateRemote method to
 
5279
// create instances of the default interface IADsReplicaPointer exposed by
 
5280
// the CoClass ReplicaPointer. The functions are intended to be used by
 
5281
// clients wishing to automate the CoClass objects exposed by the
 
5282
// server of this typelibrary.
 
5283
// *********************************************************************//
 
5284
  CoReplicaPointer = class
 
5285
    class function Create: IADsReplicaPointer;
 
5286
    class function CreateRemote(const MachineName: string): IADsReplicaPointer;
 
5287
  end;
 
5288
 
 
5289
// *********************************************************************//
 
5290
// OLE Server Proxy class declaration
 
5291
// Server Object    : TReplicaPointer
 
5292
// Help String      :
 
5293
// Default Interface: IADsReplicaPointer
 
5294
// Def. Intf. DISP? : No
 
5295
// Event   Interface:
 
5296
// TypeFlags        : (2) CanCreate
 
5297
// *********************************************************************//
 
5298
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5299
  TReplicaPointerProperties= class;
 
5300
{$ENDIF}
 
5301
  TReplicaPointer = class(TOleServer)
 
5302
  private
 
5303
    FIntf:        IADsReplicaPointer;
 
5304
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5305
    FProps:       TReplicaPointerProperties;
 
5306
    function      GetServerProperties: TReplicaPointerProperties;
 
5307
{$ENDIF}
 
5308
    function      GetDefaultInterface: IADsReplicaPointer;
 
5309
  protected
 
5310
    procedure InitServerData; override;
 
5311
    function  Get_ServerName: WideString;
 
5312
    procedure Set_ServerName(const retval: WideString);
 
5313
    function  Get_ReplicaType: Integer;
 
5314
    procedure Set_ReplicaType(retval: Integer);
 
5315
    function  Get_ReplicaNumber: Integer;
 
5316
    procedure Set_ReplicaNumber(retval: Integer);
 
5317
    function  Get_Count: Integer;
 
5318
    procedure Set_Count(retval: Integer);
 
5319
    function  Get_ReplicaAddressHints: OleVariant;
 
5320
    procedure Set_ReplicaAddressHints(retval: OleVariant);
 
5321
  public
 
5322
    constructor Create(AOwner: TComponent); override;
 
5323
    destructor  Destroy; override;
 
5324
    procedure Connect; override;
 
5325
    procedure ConnectTo(svrIntf: IADsReplicaPointer);
 
5326
    procedure Disconnect; override;
 
5327
    property  DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
 
5328
    property ReplicaAddressHints: OleVariant read Get_ReplicaAddressHints write Set_ReplicaAddressHints;
 
5329
    property ServerName: WideString read Get_ServerName write Set_ServerName;
 
5330
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
 
5331
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
 
5332
    property Count: Integer read Get_Count write Set_Count;
 
5333
  published
 
5334
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5335
    property Server: TReplicaPointerProperties read GetServerProperties;
 
5336
{$ENDIF}
 
5337
  end;
 
5338
 
 
5339
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5340
// *********************************************************************//
 
5341
// OLE Server Properties Proxy Class
 
5342
// Server Object    : TReplicaPointer
 
5343
// (This object is used by the IDE's Property Inspector to allow editing
 
5344
//  of the properties of this server)
 
5345
// *********************************************************************//
 
5346
 TReplicaPointerProperties = class(TPersistent)
 
5347
  private
 
5348
    FServer:    TReplicaPointer;
 
5349
    function    GetDefaultInterface: IADsReplicaPointer;
 
5350
    constructor Create(AServer: TReplicaPointer);
 
5351
  protected
 
5352
    function  Get_ServerName: WideString;
 
5353
    procedure Set_ServerName(const retval: WideString);
 
5354
    function  Get_ReplicaType: Integer;
 
5355
    procedure Set_ReplicaType(retval: Integer);
 
5356
    function  Get_ReplicaNumber: Integer;
 
5357
    procedure Set_ReplicaNumber(retval: Integer);
 
5358
    function  Get_Count: Integer;
 
5359
    procedure Set_Count(retval: Integer);
 
5360
    function  Get_ReplicaAddressHints: OleVariant;
 
5361
    procedure Set_ReplicaAddressHints(retval: OleVariant);
 
5362
  public
 
5363
    property DefaultInterface: IADsReplicaPointer read GetDefaultInterface;
 
5364
  published
 
5365
    property ServerName: WideString read Get_ServerName write Set_ServerName;
 
5366
    property ReplicaType: Integer read Get_ReplicaType write Set_ReplicaType;
 
5367
    property ReplicaNumber: Integer read Get_ReplicaNumber write Set_ReplicaNumber;
 
5368
    property Count: Integer read Get_Count write Set_Count;
 
5369
  end;
 
5370
{$ENDIF}
 
5371
 
 
5372
// *********************************************************************//
 
5373
// The Class CoAcl provides a Create and CreateRemote method to
 
5374
// create instances of the default interface IADsAcl exposed by
 
5375
// the CoClass Acl. The functions are intended to be used by
 
5376
// clients wishing to automate the CoClass objects exposed by the
 
5377
// server of this typelibrary.
 
5378
// *********************************************************************//
 
5379
  CoAcl = class
 
5380
    class function Create: IADsAcl;
 
5381
    class function CreateRemote(const MachineName: string): IADsAcl;
 
5382
  end;
 
5383
 
 
5384
// *********************************************************************//
 
5385
// OLE Server Proxy class declaration
 
5386
// Server Object    : TAcl
 
5387
// Help String      :
 
5388
// Default Interface: IADsAcl
 
5389
// Def. Intf. DISP? : No
 
5390
// Event   Interface:
 
5391
// TypeFlags        : (2) CanCreate
 
5392
// *********************************************************************//
 
5393
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5394
  TAclProperties= class;
 
5395
{$ENDIF}
 
5396
  TAcl = class(TOleServer)
 
5397
  private
 
5398
    FIntf:        IADsAcl;
 
5399
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5400
    FProps:       TAclProperties;
 
5401
    function      GetServerProperties: TAclProperties;
 
5402
{$ENDIF}
 
5403
    function      GetDefaultInterface: IADsAcl;
 
5404
  protected
 
5405
    procedure InitServerData; override;
 
5406
    function  Get_ProtectedAttrName: WideString;
 
5407
    procedure Set_ProtectedAttrName(const retval: WideString);
 
5408
    function  Get_SubjectName: WideString;
 
5409
    procedure Set_SubjectName(const retval: WideString);
 
5410
    function  Get_Privileges: Integer;
 
5411
    procedure Set_Privileges(retval: Integer);
 
5412
  public
 
5413
    constructor Create(AOwner: TComponent); override;
 
5414
    destructor  Destroy; override;
 
5415
    procedure Connect; override;
 
5416
    procedure ConnectTo(svrIntf: IADsAcl);
 
5417
    procedure Disconnect; override;
 
5418
    function  CopyAcl: IDispatch;
 
5419
    property  DefaultInterface: IADsAcl read GetDefaultInterface;
 
5420
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
 
5421
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
 
5422
    property Privileges: Integer read Get_Privileges write Set_Privileges;
 
5423
  published
 
5424
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5425
    property Server: TAclProperties read GetServerProperties;
 
5426
{$ENDIF}
 
5427
  end;
 
5428
 
 
5429
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5430
// *********************************************************************//
 
5431
// OLE Server Properties Proxy Class
 
5432
// Server Object    : TAcl
 
5433
// (This object is used by the IDE's Property Inspector to allow editing
 
5434
//  of the properties of this server)
 
5435
// *********************************************************************//
 
5436
 TAclProperties = class(TPersistent)
 
5437
  private
 
5438
    FServer:    TAcl;
 
5439
    function    GetDefaultInterface: IADsAcl;
 
5440
    constructor Create(AServer: TAcl);
 
5441
  protected
 
5442
    function  Get_ProtectedAttrName: WideString;
 
5443
    procedure Set_ProtectedAttrName(const retval: WideString);
 
5444
    function  Get_SubjectName: WideString;
 
5445
    procedure Set_SubjectName(const retval: WideString);
 
5446
    function  Get_Privileges: Integer;
 
5447
    procedure Set_Privileges(retval: Integer);
 
5448
  public
 
5449
    property DefaultInterface: IADsAcl read GetDefaultInterface;
 
5450
  published
 
5451
    property ProtectedAttrName: WideString read Get_ProtectedAttrName write Set_ProtectedAttrName;
 
5452
    property SubjectName: WideString read Get_SubjectName write Set_SubjectName;
 
5453
    property Privileges: Integer read Get_Privileges write Set_Privileges;
 
5454
  end;
 
5455
{$ENDIF}
 
5456
 
 
5457
// *********************************************************************//
 
5458
// The Class CoTimestamp provides a Create and CreateRemote method to
 
5459
// create instances of the default interface IADsTimestamp exposed by
 
5460
// the CoClass Timestamp. The functions are intended to be used by
 
5461
// clients wishing to automate the CoClass objects exposed by the
 
5462
// server of this typelibrary.
 
5463
// *********************************************************************//
 
5464
  CoTimestamp = class
 
5465
    class function Create: IADsTimestamp;
 
5466
    class function CreateRemote(const MachineName: string): IADsTimestamp;
 
5467
  end;
 
5468
 
 
5469
// *********************************************************************//
 
5470
// OLE Server Proxy class declaration
 
5471
// Server Object    : TTimestamp
 
5472
// Help String      :
 
5473
// Default Interface: IADsTimestamp
 
5474
// Def. Intf. DISP? : No
 
5475
// Event   Interface:
 
5476
// TypeFlags        : (2) CanCreate
 
5477
// *********************************************************************//
 
5478
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5479
  TTimestampProperties= class;
 
5480
{$ENDIF}
 
5481
  TTimestamp = class(TOleServer)
 
5482
  private
 
5483
    FIntf:        IADsTimestamp;
 
5484
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5485
    FProps:       TTimestampProperties;
 
5486
    function      GetServerProperties: TTimestampProperties;
 
5487
{$ENDIF}
 
5488
    function      GetDefaultInterface: IADsTimestamp;
 
5489
  protected
 
5490
    procedure InitServerData; override;
 
5491
    function  Get_WholeSeconds: Integer;
 
5492
    procedure Set_WholeSeconds(retval: Integer);
 
5493
    function  Get_EventID: Integer;
 
5494
    procedure Set_EventID(retval: Integer);
 
5495
  public
 
5496
    constructor Create(AOwner: TComponent); override;
 
5497
    destructor  Destroy; override;
 
5498
    procedure Connect; override;
 
5499
    procedure ConnectTo(svrIntf: IADsTimestamp);
 
5500
    procedure Disconnect; override;
 
5501
    property  DefaultInterface: IADsTimestamp read GetDefaultInterface;
 
5502
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
 
5503
    property EventID: Integer read Get_EventID write Set_EventID;
 
5504
  published
 
5505
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5506
    property Server: TTimestampProperties read GetServerProperties;
 
5507
{$ENDIF}
 
5508
  end;
 
5509
 
 
5510
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5511
// *********************************************************************//
 
5512
// OLE Server Properties Proxy Class
 
5513
// Server Object    : TTimestamp
 
5514
// (This object is used by the IDE's Property Inspector to allow editing
 
5515
//  of the properties of this server)
 
5516
// *********************************************************************//
 
5517
 TTimestampProperties = class(TPersistent)
 
5518
  private
 
5519
    FServer:    TTimestamp;
 
5520
    function    GetDefaultInterface: IADsTimestamp;
 
5521
    constructor Create(AServer: TTimestamp);
 
5522
  protected
 
5523
    function  Get_WholeSeconds: Integer;
 
5524
    procedure Set_WholeSeconds(retval: Integer);
 
5525
    function  Get_EventID: Integer;
 
5526
    procedure Set_EventID(retval: Integer);
 
5527
  public
 
5528
    property DefaultInterface: IADsTimestamp read GetDefaultInterface;
 
5529
  published
 
5530
    property WholeSeconds: Integer read Get_WholeSeconds write Set_WholeSeconds;
 
5531
    property EventID: Integer read Get_EventID write Set_EventID;
 
5532
  end;
 
5533
{$ENDIF}
 
5534
 
 
5535
// *********************************************************************//
 
5536
// The Class CoPostalAddress provides a Create and CreateRemote method to
 
5537
// create instances of the default interface IADsPostalAddress exposed by
 
5538
// the CoClass PostalAddress. The functions are intended to be used by
 
5539
// clients wishing to automate the CoClass objects exposed by the
 
5540
// server of this typelibrary.
 
5541
// *********************************************************************//
 
5542
  CoPostalAddress = class
 
5543
    class function Create: IADsPostalAddress;
 
5544
    class function CreateRemote(const MachineName: string): IADsPostalAddress;
 
5545
  end;
 
5546
 
 
5547
// *********************************************************************//
 
5548
// OLE Server Proxy class declaration
 
5549
// Server Object    : TPostalAddress
 
5550
// Help String      :
 
5551
// Default Interface: IADsPostalAddress
 
5552
// Def. Intf. DISP? : No
 
5553
// Event   Interface:
 
5554
// TypeFlags        : (2) CanCreate
 
5555
// *********************************************************************//
 
5556
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5557
  TPostalAddressProperties= class;
 
5558
{$ENDIF}
 
5559
  TPostalAddress = class(TOleServer)
 
5560
  private
 
5561
    FIntf:        IADsPostalAddress;
 
5562
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5563
    FProps:       TPostalAddressProperties;
 
5564
    function      GetServerProperties: TPostalAddressProperties;
 
5565
{$ENDIF}
 
5566
    function      GetDefaultInterface: IADsPostalAddress;
 
5567
  protected
 
5568
    procedure InitServerData; override;
 
5569
    function  Get_PostalAddress: OleVariant;
 
5570
    procedure Set_PostalAddress(retval: OleVariant);
 
5571
  public
 
5572
    constructor Create(AOwner: TComponent); override;
 
5573
    destructor  Destroy; override;
 
5574
    procedure Connect; override;
 
5575
    procedure ConnectTo(svrIntf: IADsPostalAddress);
 
5576
    procedure Disconnect; override;
 
5577
    property  DefaultInterface: IADsPostalAddress read GetDefaultInterface;
 
5578
    property PostalAddress: OleVariant read Get_PostalAddress write Set_PostalAddress;
 
5579
  published
 
5580
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5581
    property Server: TPostalAddressProperties read GetServerProperties;
 
5582
{$ENDIF}
 
5583
  end;
 
5584
 
 
5585
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5586
// *********************************************************************//
 
5587
// OLE Server Properties Proxy Class
 
5588
// Server Object    : TPostalAddress
 
5589
// (This object is used by the IDE's Property Inspector to allow editing
 
5590
//  of the properties of this server)
 
5591
// *********************************************************************//
 
5592
 TPostalAddressProperties = class(TPersistent)
 
5593
  private
 
5594
    FServer:    TPostalAddress;
 
5595
    function    GetDefaultInterface: IADsPostalAddress;
 
5596
    constructor Create(AServer: TPostalAddress);
 
5597
  protected
 
5598
    function  Get_PostalAddress: OleVariant;
 
5599
    procedure Set_PostalAddress(retval: OleVariant);
 
5600
  public
 
5601
    property DefaultInterface: IADsPostalAddress read GetDefaultInterface;
 
5602
  published
 
5603
  end;
 
5604
{$ENDIF}
 
5605
 
 
5606
// *********************************************************************//
 
5607
// The Class CoBackLink provides a Create and CreateRemote method to
 
5608
// create instances of the default interface IADsBackLink exposed by
 
5609
// the CoClass BackLink. The functions are intended to be used by
 
5610
// clients wishing to automate the CoClass objects exposed by the
 
5611
// server of this typelibrary.
 
5612
// *********************************************************************//
 
5613
  CoBackLink = class
 
5614
    class function Create: IADsBackLink;
 
5615
    class function CreateRemote(const MachineName: string): IADsBackLink;
 
5616
  end;
 
5617
 
 
5618
// *********************************************************************//
 
5619
// OLE Server Proxy class declaration
 
5620
// Server Object    : TBackLink
 
5621
// Help String      :
 
5622
// Default Interface: IADsBackLink
 
5623
// Def. Intf. DISP? : No
 
5624
// Event   Interface:
 
5625
// TypeFlags        : (2) CanCreate
 
5626
// *********************************************************************//
 
5627
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5628
  TBackLinkProperties= class;
 
5629
{$ENDIF}
 
5630
  TBackLink = class(TOleServer)
 
5631
  private
 
5632
    FIntf:        IADsBackLink;
 
5633
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5634
    FProps:       TBackLinkProperties;
 
5635
    function      GetServerProperties: TBackLinkProperties;
 
5636
{$ENDIF}
 
5637
    function      GetDefaultInterface: IADsBackLink;
 
5638
  protected
 
5639
    procedure InitServerData; override;
 
5640
    function  Get_RemoteID: Integer;
 
5641
    procedure Set_RemoteID(retval: Integer);
 
5642
    function  Get_ObjectName: WideString;
 
5643
    procedure Set_ObjectName(const retval: WideString);
 
5644
  public
 
5645
    constructor Create(AOwner: TComponent); override;
 
5646
    destructor  Destroy; override;
 
5647
    procedure Connect; override;
 
5648
    procedure ConnectTo(svrIntf: IADsBackLink);
 
5649
    procedure Disconnect; override;
 
5650
    property  DefaultInterface: IADsBackLink read GetDefaultInterface;
 
5651
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
 
5652
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5653
  published
 
5654
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5655
    property Server: TBackLinkProperties read GetServerProperties;
 
5656
{$ENDIF}
 
5657
  end;
 
5658
 
 
5659
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5660
// *********************************************************************//
 
5661
// OLE Server Properties Proxy Class
 
5662
// Server Object    : TBackLink
 
5663
// (This object is used by the IDE's Property Inspector to allow editing
 
5664
//  of the properties of this server)
 
5665
// *********************************************************************//
 
5666
 TBackLinkProperties = class(TPersistent)
 
5667
  private
 
5668
    FServer:    TBackLink;
 
5669
    function    GetDefaultInterface: IADsBackLink;
 
5670
    constructor Create(AServer: TBackLink);
 
5671
  protected
 
5672
    function  Get_RemoteID: Integer;
 
5673
    procedure Set_RemoteID(retval: Integer);
 
5674
    function  Get_ObjectName: WideString;
 
5675
    procedure Set_ObjectName(const retval: WideString);
 
5676
  public
 
5677
    property DefaultInterface: IADsBackLink read GetDefaultInterface;
 
5678
  published
 
5679
    property RemoteID: Integer read Get_RemoteID write Set_RemoteID;
 
5680
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5681
  end;
 
5682
{$ENDIF}
 
5683
 
 
5684
// *********************************************************************//
 
5685
// The Class CoTypedName provides a Create and CreateRemote method to
 
5686
// create instances of the default interface IADsTypedName exposed by
 
5687
// the CoClass TypedName. The functions are intended to be used by
 
5688
// clients wishing to automate the CoClass objects exposed by the
 
5689
// server of this typelibrary.
 
5690
// *********************************************************************//
 
5691
  CoTypedName = class
 
5692
    class function Create: IADsTypedName;
 
5693
    class function CreateRemote(const MachineName: string): IADsTypedName;
 
5694
  end;
 
5695
 
 
5696
// *********************************************************************//
 
5697
// OLE Server Proxy class declaration
 
5698
// Server Object    : TTypedName
 
5699
// Help String      :
 
5700
// Default Interface: IADsTypedName
 
5701
// Def. Intf. DISP? : No
 
5702
// Event   Interface:
 
5703
// TypeFlags        : (2) CanCreate
 
5704
// *********************************************************************//
 
5705
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5706
  TTypedNameProperties= class;
 
5707
{$ENDIF}
 
5708
  TTypedName = class(TOleServer)
 
5709
  private
 
5710
    FIntf:        IADsTypedName;
 
5711
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5712
    FProps:       TTypedNameProperties;
 
5713
    function      GetServerProperties: TTypedNameProperties;
 
5714
{$ENDIF}
 
5715
    function      GetDefaultInterface: IADsTypedName;
 
5716
  protected
 
5717
    procedure InitServerData; override;
 
5718
    function  Get_ObjectName: WideString;
 
5719
    procedure Set_ObjectName(const retval: WideString);
 
5720
    function  Get_Level: Integer;
 
5721
    procedure Set_Level(retval: Integer);
 
5722
    function  Get_Interval: Integer;
 
5723
    procedure Set_Interval(retval: Integer);
 
5724
  public
 
5725
    constructor Create(AOwner: TComponent); override;
 
5726
    destructor  Destroy; override;
 
5727
    procedure Connect; override;
 
5728
    procedure ConnectTo(svrIntf: IADsTypedName);
 
5729
    procedure Disconnect; override;
 
5730
    property  DefaultInterface: IADsTypedName read GetDefaultInterface;
 
5731
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5732
    property Level: Integer read Get_Level write Set_Level;
 
5733
    property Interval: Integer read Get_Interval write Set_Interval;
 
5734
  published
 
5735
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5736
    property Server: TTypedNameProperties read GetServerProperties;
 
5737
{$ENDIF}
 
5738
  end;
 
5739
 
 
5740
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5741
// *********************************************************************//
 
5742
// OLE Server Properties Proxy Class
 
5743
// Server Object    : TTypedName
 
5744
// (This object is used by the IDE's Property Inspector to allow editing
 
5745
//  of the properties of this server)
 
5746
// *********************************************************************//
 
5747
 TTypedNameProperties = class(TPersistent)
 
5748
  private
 
5749
    FServer:    TTypedName;
 
5750
    function    GetDefaultInterface: IADsTypedName;
 
5751
    constructor Create(AServer: TTypedName);
 
5752
  protected
 
5753
    function  Get_ObjectName: WideString;
 
5754
    procedure Set_ObjectName(const retval: WideString);
 
5755
    function  Get_Level: Integer;
 
5756
    procedure Set_Level(retval: Integer);
 
5757
    function  Get_Interval: Integer;
 
5758
    procedure Set_Interval(retval: Integer);
 
5759
  public
 
5760
    property DefaultInterface: IADsTypedName read GetDefaultInterface;
 
5761
  published
 
5762
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5763
    property Level: Integer read Get_Level write Set_Level;
 
5764
    property Interval: Integer read Get_Interval write Set_Interval;
 
5765
  end;
 
5766
{$ENDIF}
 
5767
 
 
5768
// *********************************************************************//
 
5769
// The Class CoHold provides a Create and CreateRemote method to
 
5770
// create instances of the default interface IADsHold exposed by
 
5771
// the CoClass Hold. The functions are intended to be used by
 
5772
// clients wishing to automate the CoClass objects exposed by the
 
5773
// server of this typelibrary.
 
5774
// *********************************************************************//
 
5775
  CoHold = class
 
5776
    class function Create: IADsHold;
 
5777
    class function CreateRemote(const MachineName: string): IADsHold;
 
5778
  end;
 
5779
 
 
5780
// *********************************************************************//
 
5781
// OLE Server Proxy class declaration
 
5782
// Server Object    : THold
 
5783
// Help String      :
 
5784
// Default Interface: IADsHold
 
5785
// Def. Intf. DISP? : No
 
5786
// Event   Interface:
 
5787
// TypeFlags        : (2) CanCreate
 
5788
// *********************************************************************//
 
5789
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5790
  THoldProperties= class;
 
5791
{$ENDIF}
 
5792
  THold = class(TOleServer)
 
5793
  private
 
5794
    FIntf:        IADsHold;
 
5795
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5796
    FProps:       THoldProperties;
 
5797
    function      GetServerProperties: THoldProperties;
 
5798
{$ENDIF}
 
5799
    function      GetDefaultInterface: IADsHold;
 
5800
  protected
 
5801
    procedure InitServerData; override;
 
5802
    function  Get_ObjectName: WideString;
 
5803
    procedure Set_ObjectName(const retval: WideString);
 
5804
    function  Get_Amount: Integer;
 
5805
    procedure Set_Amount(retval: Integer);
 
5806
  public
 
5807
    constructor Create(AOwner: TComponent); override;
 
5808
    destructor  Destroy; override;
 
5809
    procedure Connect; override;
 
5810
    procedure ConnectTo(svrIntf: IADsHold);
 
5811
    procedure Disconnect; override;
 
5812
    property  DefaultInterface: IADsHold read GetDefaultInterface;
 
5813
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5814
    property Amount: Integer read Get_Amount write Set_Amount;
 
5815
  published
 
5816
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5817
    property Server: THoldProperties read GetServerProperties;
 
5818
{$ENDIF}
 
5819
  end;
 
5820
 
 
5821
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5822
// *********************************************************************//
 
5823
// OLE Server Properties Proxy Class
 
5824
// Server Object    : THold
 
5825
// (This object is used by the IDE's Property Inspector to allow editing
 
5826
//  of the properties of this server)
 
5827
// *********************************************************************//
 
5828
 THoldProperties = class(TPersistent)
 
5829
  private
 
5830
    FServer:    THold;
 
5831
    function    GetDefaultInterface: IADsHold;
 
5832
    constructor Create(AServer: THold);
 
5833
  protected
 
5834
    function  Get_ObjectName: WideString;
 
5835
    procedure Set_ObjectName(const retval: WideString);
 
5836
    function  Get_Amount: Integer;
 
5837
    procedure Set_Amount(retval: Integer);
 
5838
  public
 
5839
    property DefaultInterface: IADsHold read GetDefaultInterface;
 
5840
  published
 
5841
    property ObjectName: WideString read Get_ObjectName write Set_ObjectName;
 
5842
    property Amount: Integer read Get_Amount write Set_Amount;
 
5843
  end;
 
5844
{$ENDIF}
 
5845
 
 
5846
// *********************************************************************//
 
5847
// The Class CoPathname provides a Create and CreateRemote method to
 
5848
// create instances of the default interface IADsPathname exposed by
 
5849
// the CoClass Pathname. The functions are intended to be used by
 
5850
// clients wishing to automate the CoClass objects exposed by the
 
5851
// server of this typelibrary.
 
5852
// *********************************************************************//
 
5853
  CoPathname = class
 
5854
    class function Create: IADsPathname;
 
5855
    class function CreateRemote(const MachineName: string): IADsPathname;
 
5856
  end;
 
5857
 
 
5858
// *********************************************************************//
 
5859
// OLE Server Proxy class declaration
 
5860
// Server Object    : TPathname
 
5861
// Help String      :
 
5862
// Default Interface: IADsPathname
 
5863
// Def. Intf. DISP? : No
 
5864
// Event   Interface:
 
5865
// TypeFlags        : (2) CanCreate
 
5866
// *********************************************************************//
 
5867
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5868
  TPathnameProperties= class;
 
5869
{$ENDIF}
 
5870
  TPathname = class(TOleServer)
 
5871
  private
 
5872
    FIntf:        IADsPathname;
 
5873
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5874
    FProps:       TPathnameProperties;
 
5875
    function      GetServerProperties: TPathnameProperties;
 
5876
{$ENDIF}
 
5877
    function      GetDefaultInterface: IADsPathname;
 
5878
  protected
 
5879
    procedure InitServerData; override;
 
5880
    function  Get_EscapedMode: Integer;
 
5881
    procedure Set_EscapedMode(retval: Integer);
 
5882
  public
 
5883
    constructor Create(AOwner: TComponent); override;
 
5884
    destructor  Destroy; override;
 
5885
    procedure Connect; override;
 
5886
    procedure ConnectTo(svrIntf: IADsPathname);
 
5887
    procedure Disconnect; override;
 
5888
    procedure Set_(const bstrADsPath: WideString; lnSetType: Integer);
 
5889
    procedure SetDisplayType(lnDisplayType: Integer);
 
5890
    function  Retrieve(lnFormatType: Integer): WideString;
 
5891
    function  GetNumElements: Integer;
 
5892
    function  GetElement(lnElementIndex: Integer): WideString;
 
5893
    procedure AddLeafElement(const bstrLeafElement: WideString);
 
5894
    procedure RemoveLeafElement;
 
5895
    function  CopyPath: IDispatch;
 
5896
    function  GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
 
5897
    property  DefaultInterface: IADsPathname read GetDefaultInterface;
 
5898
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
 
5899
  published
 
5900
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5901
    property Server: TPathnameProperties read GetServerProperties;
 
5902
{$ENDIF}
 
5903
  end;
 
5904
 
 
5905
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5906
// *********************************************************************//
 
5907
// OLE Server Properties Proxy Class
 
5908
// Server Object    : TPathname
 
5909
// (This object is used by the IDE's Property Inspector to allow editing
 
5910
//  of the properties of this server)
 
5911
// *********************************************************************//
 
5912
 TPathnameProperties = class(TPersistent)
 
5913
  private
 
5914
    FServer:    TPathname;
 
5915
    function    GetDefaultInterface: IADsPathname;
 
5916
    constructor Create(AServer: TPathname);
 
5917
  protected
 
5918
    function  Get_EscapedMode: Integer;
 
5919
    procedure Set_EscapedMode(retval: Integer);
 
5920
  public
 
5921
    property DefaultInterface: IADsPathname read GetDefaultInterface;
 
5922
  published
 
5923
    property EscapedMode: Integer read Get_EscapedMode write Set_EscapedMode;
 
5924
  end;
 
5925
{$ENDIF}
 
5926
 
 
5927
// *********************************************************************//
 
5928
// The Class CoADSystemInfo provides a Create and CreateRemote method to
 
5929
// create instances of the default interface IADsADSystemInfo exposed by
 
5930
// the CoClass ADSystemInfo. The functions are intended to be used by
 
5931
// clients wishing to automate the CoClass objects exposed by the
 
5932
// server of this typelibrary.
 
5933
// *********************************************************************//
 
5934
  CoADSystemInfo = class
 
5935
    class function Create: IADsADSystemInfo;
 
5936
    class function CreateRemote(const MachineName: string): IADsADSystemInfo;
 
5937
  end;
 
5938
 
 
5939
// *********************************************************************//
 
5940
// OLE Server Proxy class declaration
 
5941
// Server Object    : TADSystemInfo
 
5942
// Help String      :
 
5943
// Default Interface: IADsADSystemInfo
 
5944
// Def. Intf. DISP? : No
 
5945
// Event   Interface:
 
5946
// TypeFlags        : (2) CanCreate
 
5947
// *********************************************************************//
 
5948
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5949
  TADSystemInfoProperties= class;
 
5950
{$ENDIF}
 
5951
  TADSystemInfo = class(TOleServer)
 
5952
  private
 
5953
    FIntf:        IADsADSystemInfo;
 
5954
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5955
    FProps:       TADSystemInfoProperties;
 
5956
    function      GetServerProperties: TADSystemInfoProperties;
 
5957
{$ENDIF}
 
5958
    function      GetDefaultInterface: IADsADSystemInfo;
 
5959
  protected
 
5960
    procedure InitServerData; override;
 
5961
    function  Get_UserName: WideString;
 
5962
    function  Get_ComputerName: WideString;
 
5963
    function  Get_SiteName: WideString;
 
5964
    function  Get_DomainShortName: WideString;
 
5965
    function  Get_DomainDNSName: WideString;
 
5966
    function  Get_ForestDNSName: WideString;
 
5967
    function  Get_PDCRoleOwner: WideString;
 
5968
    function  Get_SchemaRoleOwner: WideString;
 
5969
    function  Get_IsNativeMode: WordBool;
 
5970
  public
 
5971
    constructor Create(AOwner: TComponent); override;
 
5972
    destructor  Destroy; override;
 
5973
    procedure Connect; override;
 
5974
    procedure ConnectTo(svrIntf: IADsADSystemInfo);
 
5975
    procedure Disconnect; override;
 
5976
    function  GetAnyDCName: WideString;
 
5977
    function  GetDCSiteName(const szServer: WideString): WideString;
 
5978
    procedure RefreshSchemaCache;
 
5979
    function  GetTrees: OleVariant;
 
5980
    property  DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
 
5981
    property UserName: WideString read Get_UserName;
 
5982
    property ComputerName: WideString read Get_ComputerName;
 
5983
    property SiteName: WideString read Get_SiteName;
 
5984
    property DomainShortName: WideString read Get_DomainShortName;
 
5985
    property DomainDNSName: WideString read Get_DomainDNSName;
 
5986
    property ForestDNSName: WideString read Get_ForestDNSName;
 
5987
    property PDCRoleOwner: WideString read Get_PDCRoleOwner;
 
5988
    property SchemaRoleOwner: WideString read Get_SchemaRoleOwner;
 
5989
    property IsNativeMode: WordBool read Get_IsNativeMode;
 
5990
  published
 
5991
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5992
    property Server: TADSystemInfoProperties read GetServerProperties;
 
5993
{$ENDIF}
 
5994
  end;
 
5995
 
 
5996
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
5997
// *********************************************************************//
 
5998
// OLE Server Properties Proxy Class
 
5999
// Server Object    : TADSystemInfo
 
6000
// (This object is used by the IDE's Property Inspector to allow editing
 
6001
//  of the properties of this server)
 
6002
// *********************************************************************//
 
6003
 TADSystemInfoProperties = class(TPersistent)
 
6004
  private
 
6005
    FServer:    TADSystemInfo;
 
6006
    function    GetDefaultInterface: IADsADSystemInfo;
 
6007
    constructor Create(AServer: TADSystemInfo);
 
6008
  protected
 
6009
    function  Get_UserName: WideString;
 
6010
    function  Get_ComputerName: WideString;
 
6011
    function  Get_SiteName: WideString;
 
6012
    function  Get_DomainShortName: WideString;
 
6013
    function  Get_DomainDNSName: WideString;
 
6014
    function  Get_ForestDNSName: WideString;
 
6015
    function  Get_PDCRoleOwner: WideString;
 
6016
    function  Get_SchemaRoleOwner: WideString;
 
6017
    function  Get_IsNativeMode: WordBool;
 
6018
  public
 
6019
    property DefaultInterface: IADsADSystemInfo read GetDefaultInterface;
 
6020
  published
 
6021
  end;
 
6022
{$ENDIF}
 
6023
 
 
6024
// *********************************************************************//
 
6025
// The Class CoWinNTSystemInfo provides a Create and CreateRemote method to
 
6026
// create instances of the default interface IADsWinNTSystemInfo exposed by
 
6027
// the CoClass WinNTSystemInfo. The functions are intended to be used by
 
6028
// clients wishing to automate the CoClass objects exposed by the
 
6029
// server of this typelibrary.
 
6030
// *********************************************************************//
 
6031
  CoWinNTSystemInfo = class
 
6032
    class function Create: IADsWinNTSystemInfo;
 
6033
    class function CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
 
6034
  end;
 
6035
 
 
6036
// *********************************************************************//
 
6037
// OLE Server Proxy class declaration
 
6038
// Server Object    : TWinNTSystemInfo
 
6039
// Help String      :
 
6040
// Default Interface: IADsWinNTSystemInfo
 
6041
// Def. Intf. DISP? : No
 
6042
// Event   Interface:
 
6043
// TypeFlags        : (2) CanCreate
 
6044
// *********************************************************************//
 
6045
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6046
  TWinNTSystemInfoProperties= class;
 
6047
{$ENDIF}
 
6048
  TWinNTSystemInfo = class(TOleServer)
 
6049
  private
 
6050
    FIntf:        IADsWinNTSystemInfo;
 
6051
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6052
    FProps:       TWinNTSystemInfoProperties;
 
6053
    function      GetServerProperties: TWinNTSystemInfoProperties;
 
6054
{$ENDIF}
 
6055
    function      GetDefaultInterface: IADsWinNTSystemInfo;
 
6056
  protected
 
6057
    procedure InitServerData; override;
 
6058
    function  Get_UserName: WideString;
 
6059
    function  Get_ComputerName: WideString;
 
6060
    function  Get_DomainName: WideString;
 
6061
    function  Get_PDC: WideString;
 
6062
  public
 
6063
    constructor Create(AOwner: TComponent); override;
 
6064
    destructor  Destroy; override;
 
6065
    procedure Connect; override;
 
6066
    procedure ConnectTo(svrIntf: IADsWinNTSystemInfo);
 
6067
    procedure Disconnect; override;
 
6068
    property  DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
 
6069
    property UserName: WideString read Get_UserName;
 
6070
    property ComputerName: WideString read Get_ComputerName;
 
6071
    property DomainName: WideString read Get_DomainName;
 
6072
    property PDC: WideString read Get_PDC;
 
6073
  published
 
6074
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6075
    property Server: TWinNTSystemInfoProperties read GetServerProperties;
 
6076
{$ENDIF}
 
6077
  end;
 
6078
 
 
6079
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6080
// *********************************************************************//
 
6081
// OLE Server Properties Proxy Class
 
6082
// Server Object    : TWinNTSystemInfo
 
6083
// (This object is used by the IDE's Property Inspector to allow editing
 
6084
//  of the properties of this server)
 
6085
// *********************************************************************//
 
6086
 TWinNTSystemInfoProperties = class(TPersistent)
 
6087
  private
 
6088
    FServer:    TWinNTSystemInfo;
 
6089
    function    GetDefaultInterface: IADsWinNTSystemInfo;
 
6090
    constructor Create(AServer: TWinNTSystemInfo);
 
6091
  protected
 
6092
    function  Get_UserName: WideString;
 
6093
    function  Get_ComputerName: WideString;
 
6094
    function  Get_DomainName: WideString;
 
6095
    function  Get_PDC: WideString;
 
6096
  public
 
6097
    property DefaultInterface: IADsWinNTSystemInfo read GetDefaultInterface;
 
6098
  published
 
6099
  end;
 
6100
{$ENDIF}
 
6101
 
 
6102
// *********************************************************************//
 
6103
// The Class CoDNWithBinary provides a Create and CreateRemote method to
 
6104
// create instances of the default interface IADsDNWithBinary exposed by
 
6105
// the CoClass DNWithBinary. The functions are intended to be used by
 
6106
// clients wishing to automate the CoClass objects exposed by the
 
6107
// server of this typelibrary.
 
6108
// *********************************************************************//
 
6109
  CoDNWithBinary = class
 
6110
    class function Create: IADsDNWithBinary;
 
6111
    class function CreateRemote(const MachineName: string): IADsDNWithBinary;
 
6112
  end;
 
6113
 
 
6114
// *********************************************************************//
 
6115
// OLE Server Proxy class declaration
 
6116
// Server Object    : TDNWithBinary
 
6117
// Help String      :
 
6118
// Default Interface: IADsDNWithBinary
 
6119
// Def. Intf. DISP? : No
 
6120
// Event   Interface:
 
6121
// TypeFlags        : (2) CanCreate
 
6122
// *********************************************************************//
 
6123
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6124
  TDNWithBinaryProperties= class;
 
6125
{$ENDIF}
 
6126
  TDNWithBinary = class(TOleServer)
 
6127
  private
 
6128
    FIntf:        IADsDNWithBinary;
 
6129
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6130
    FProps:       TDNWithBinaryProperties;
 
6131
    function      GetServerProperties: TDNWithBinaryProperties;
 
6132
{$ENDIF}
 
6133
    function      GetDefaultInterface: IADsDNWithBinary;
 
6134
  protected
 
6135
    procedure InitServerData; override;
 
6136
    function  Get_BinaryValue: OleVariant;
 
6137
    procedure Set_BinaryValue(retval: OleVariant);
 
6138
    function  Get_DNString: WideString;
 
6139
    procedure Set_DNString(const retval: WideString);
 
6140
  public
 
6141
    constructor Create(AOwner: TComponent); override;
 
6142
    destructor  Destroy; override;
 
6143
    procedure Connect; override;
 
6144
    procedure ConnectTo(svrIntf: IADsDNWithBinary);
 
6145
    procedure Disconnect; override;
 
6146
    property  DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
 
6147
    property BinaryValue: OleVariant read Get_BinaryValue write Set_BinaryValue;
 
6148
    property DNString: WideString read Get_DNString write Set_DNString;
 
6149
  published
 
6150
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6151
    property Server: TDNWithBinaryProperties read GetServerProperties;
 
6152
{$ENDIF}
 
6153
  end;
 
6154
 
 
6155
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6156
// *********************************************************************//
 
6157
// OLE Server Properties Proxy Class
 
6158
// Server Object    : TDNWithBinary
 
6159
// (This object is used by the IDE's Property Inspector to allow editing
 
6160
//  of the properties of this server)
 
6161
// *********************************************************************//
 
6162
 TDNWithBinaryProperties = class(TPersistent)
 
6163
  private
 
6164
    FServer:    TDNWithBinary;
 
6165
    function    GetDefaultInterface: IADsDNWithBinary;
 
6166
    constructor Create(AServer: TDNWithBinary);
 
6167
  protected
 
6168
    function  Get_BinaryValue: OleVariant;
 
6169
    procedure Set_BinaryValue(retval: OleVariant);
 
6170
    function  Get_DNString: WideString;
 
6171
    procedure Set_DNString(const retval: WideString);
 
6172
  public
 
6173
    property DefaultInterface: IADsDNWithBinary read GetDefaultInterface;
 
6174
  published
 
6175
    property DNString: WideString read Get_DNString write Set_DNString;
 
6176
  end;
 
6177
{$ENDIF}
 
6178
 
 
6179
// *********************************************************************//
 
6180
// The Class CoDNWithString provides a Create and CreateRemote method to
 
6181
// create instances of the default interface IADsDNWithString exposed by
 
6182
// the CoClass DNWithString. The functions are intended to be used by
 
6183
// clients wishing to automate the CoClass objects exposed by the
 
6184
// server of this typelibrary.
 
6185
// *********************************************************************//
 
6186
  CoDNWithString = class
 
6187
    class function Create: IADsDNWithString;
 
6188
    class function CreateRemote(const MachineName: string): IADsDNWithString;
 
6189
  end;
 
6190
 
 
6191
// *********************************************************************//
 
6192
// OLE Server Proxy class declaration
 
6193
// Server Object    : TDNWithString
 
6194
// Help String      :
 
6195
// Default Interface: IADsDNWithString
 
6196
// Def. Intf. DISP? : No
 
6197
// Event   Interface:
 
6198
// TypeFlags        : (2) CanCreate
 
6199
// *********************************************************************//
 
6200
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6201
  TDNWithStringProperties= class;
 
6202
{$ENDIF}
 
6203
  TDNWithString = class(TOleServer)
 
6204
  private
 
6205
    FIntf:        IADsDNWithString;
 
6206
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6207
    FProps:       TDNWithStringProperties;
 
6208
    function      GetServerProperties: TDNWithStringProperties;
 
6209
{$ENDIF}
 
6210
    function      GetDefaultInterface: IADsDNWithString;
 
6211
  protected
 
6212
    procedure InitServerData; override;
 
6213
    function  Get_StringValue: WideString;
 
6214
    procedure Set_StringValue(const retval: WideString);
 
6215
    function  Get_DNString: WideString;
 
6216
    procedure Set_DNString(const retval: WideString);
 
6217
  public
 
6218
    constructor Create(AOwner: TComponent); override;
 
6219
    destructor  Destroy; override;
 
6220
    procedure Connect; override;
 
6221
    procedure ConnectTo(svrIntf: IADsDNWithString);
 
6222
    procedure Disconnect; override;
 
6223
    property  DefaultInterface: IADsDNWithString read GetDefaultInterface;
 
6224
    property StringValue: WideString read Get_StringValue write Set_StringValue;
 
6225
    property DNString: WideString read Get_DNString write Set_DNString;
 
6226
  published
 
6227
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6228
    property Server: TDNWithStringProperties read GetServerProperties;
 
6229
{$ENDIF}
 
6230
  end;
 
6231
 
 
6232
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6233
// *********************************************************************//
 
6234
// OLE Server Properties Proxy Class
 
6235
// Server Object    : TDNWithString
 
6236
// (This object is used by the IDE's Property Inspector to allow editing
 
6237
//  of the properties of this server)
 
6238
// *********************************************************************//
 
6239
 TDNWithStringProperties = class(TPersistent)
 
6240
  private
 
6241
    FServer:    TDNWithString;
 
6242
    function    GetDefaultInterface: IADsDNWithString;
 
6243
    constructor Create(AServer: TDNWithString);
 
6244
  protected
 
6245
    function  Get_StringValue: WideString;
 
6246
    procedure Set_StringValue(const retval: WideString);
 
6247
    function  Get_DNString: WideString;
 
6248
    procedure Set_DNString(const retval: WideString);
 
6249
  public
 
6250
    property DefaultInterface: IADsDNWithString read GetDefaultInterface;
 
6251
  published
 
6252
    property StringValue: WideString read Get_StringValue write Set_StringValue;
 
6253
    property DNString: WideString read Get_DNString write Set_DNString;
 
6254
  end;
 
6255
{$ENDIF}
 
6256
 
 
6257
procedure Register;
 
6258
 
 
6259
implementation
 
6260
 
 
6261
uses ComObj;
 
6262
 
 
6263
class function CoPropertyEntry.Create: IADsPropertyEntry;
 
6264
begin
 
6265
  Result := CreateComObject(CLASS_PropertyEntry) as IADsPropertyEntry;
 
6266
end;
 
6267
 
 
6268
class function CoPropertyEntry.CreateRemote(const MachineName: string): IADsPropertyEntry;
 
6269
begin
 
6270
  Result := CreateRemoteComObject(MachineName, CLASS_PropertyEntry) as IADsPropertyEntry;
 
6271
end;
 
6272
 
 
6273
procedure TPropertyEntry.InitServerData;
 
6274
const
 
6275
  CServerData: TServerData = (
 
6276
    ClassID:   '{72D3EDC2-A4C4-11D0-8533-00C04FD8D503}';
 
6277
    IntfIID:   '{05792C8E-941F-11D0-8529-00C04FD8D503}';
 
6278
    EventIID:  '';
 
6279
    LicenseKey: nil;
 
6280
    Version: 500);
 
6281
begin
 
6282
  ServerData := @CServerData;
 
6283
end;
 
6284
 
 
6285
procedure TPropertyEntry.Connect;
 
6286
var
 
6287
  punk: IUnknown;
 
6288
begin
 
6289
  if FIntf = nil then
 
6290
  begin
 
6291
    punk := GetServer;
 
6292
    Fintf:= punk as IADsPropertyEntry;
 
6293
  end;
 
6294
end;
 
6295
 
 
6296
procedure TPropertyEntry.ConnectTo(svrIntf: IADsPropertyEntry);
 
6297
begin
 
6298
  Disconnect;
 
6299
  FIntf := svrIntf;
 
6300
end;
 
6301
 
 
6302
procedure TPropertyEntry.DisConnect;
 
6303
begin
 
6304
  if Fintf <> nil then
 
6305
  begin
 
6306
    FIntf := nil;
 
6307
  end;
 
6308
end;
 
6309
 
 
6310
function TPropertyEntry.GetDefaultInterface: IADsPropertyEntry;
 
6311
begin
 
6312
  if FIntf = nil then
 
6313
    Connect;
 
6314
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
6315
  Result := FIntf;
 
6316
end;
 
6317
 
 
6318
constructor TPropertyEntry.Create(AOwner: TComponent);
 
6319
begin
 
6320
  inherited Create(AOwner);
 
6321
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6322
  FProps := TPropertyEntryProperties.Create(Self);
 
6323
{$ENDIF}
 
6324
end;
 
6325
 
 
6326
destructor TPropertyEntry.Destroy;
 
6327
begin
 
6328
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6329
  FProps.Free;
 
6330
{$ENDIF}
 
6331
  inherited Destroy;
 
6332
end;
 
6333
 
 
6334
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6335
function TPropertyEntry.GetServerProperties: TPropertyEntryProperties;
 
6336
begin
 
6337
  Result := FProps;
 
6338
end;
 
6339
{$ENDIF}
 
6340
 
 
6341
function  TPropertyEntry.Get_Name: WideString;
 
6342
begin
 
6343
  Result := DefaultInterface.Get_Name;
 
6344
end;
 
6345
 
 
6346
procedure TPropertyEntry.Set_Name(const retval: WideString);
 
6347
begin
 
6348
  DefaultInterface.Set_Name(retval);
 
6349
end;
 
6350
 
 
6351
function  TPropertyEntry.Get_ADsType: Integer;
 
6352
begin
 
6353
  Result := DefaultInterface.Get_ADsType;
 
6354
end;
 
6355
 
 
6356
procedure TPropertyEntry.Set_ADsType(retval: Integer);
 
6357
begin
 
6358
  DefaultInterface.Set_ADsType(retval);
 
6359
end;
 
6360
 
 
6361
function  TPropertyEntry.Get_ControlCode: Integer;
 
6362
begin
 
6363
  Result := DefaultInterface.Get_ControlCode;
 
6364
end;
 
6365
 
 
6366
procedure TPropertyEntry.Set_ControlCode(retval: Integer);
 
6367
begin
 
6368
  DefaultInterface.Set_ControlCode(retval);
 
6369
end;
 
6370
 
 
6371
function  TPropertyEntry.Get_Values: OleVariant;
 
6372
begin
 
6373
  Result := DefaultInterface.Get_Values;
 
6374
end;
 
6375
 
 
6376
procedure TPropertyEntry.Set_Values(retval: OleVariant);
 
6377
begin
 
6378
  DefaultInterface.Set_Values(retval);
 
6379
end;
 
6380
 
 
6381
procedure TPropertyEntry.Clear;
 
6382
begin
 
6383
  DefaultInterface.Clear;
 
6384
end;
 
6385
 
 
6386
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6387
constructor TPropertyEntryProperties.Create(AServer: TPropertyEntry);
 
6388
begin
 
6389
  inherited Create;
 
6390
  FServer := AServer;
 
6391
end;
 
6392
 
 
6393
function TPropertyEntryProperties.GetDefaultInterface: IADsPropertyEntry;
 
6394
begin
 
6395
  Result := FServer.DefaultInterface;
 
6396
end;
 
6397
 
 
6398
function  TPropertyEntryProperties.Get_Name: WideString;
 
6399
begin
 
6400
  Result := DefaultInterface.Get_Name;
 
6401
end;
 
6402
 
 
6403
procedure TPropertyEntryProperties.Set_Name(const retval: WideString);
 
6404
begin
 
6405
  DefaultInterface.Set_Name(retval);
 
6406
end;
 
6407
 
 
6408
function  TPropertyEntryProperties.Get_ADsType: Integer;
 
6409
begin
 
6410
  Result := DefaultInterface.Get_ADsType;
 
6411
end;
 
6412
 
 
6413
procedure TPropertyEntryProperties.Set_ADsType(retval: Integer);
 
6414
begin
 
6415
  DefaultInterface.Set_ADsType(retval);
 
6416
end;
 
6417
 
 
6418
function  TPropertyEntryProperties.Get_ControlCode: Integer;
 
6419
begin
 
6420
  Result := DefaultInterface.Get_ControlCode;
 
6421
end;
 
6422
 
 
6423
procedure TPropertyEntryProperties.Set_ControlCode(retval: Integer);
 
6424
begin
 
6425
  DefaultInterface.Set_ControlCode(retval);
 
6426
end;
 
6427
 
 
6428
function  TPropertyEntryProperties.Get_Values: OleVariant;
 
6429
begin
 
6430
  Result := DefaultInterface.Get_Values;
 
6431
end;
 
6432
 
 
6433
procedure TPropertyEntryProperties.Set_Values(retval: OleVariant);
 
6434
begin
 
6435
  DefaultInterface.Set_Values(retval);
 
6436
end;
 
6437
 
 
6438
{$ENDIF}
 
6439
 
 
6440
class function CoPropertyValue.Create: IADsPropertyValue;
 
6441
begin
 
6442
  Result := CreateComObject(CLASS_PropertyValue) as IADsPropertyValue;
 
6443
end;
 
6444
 
 
6445
class function CoPropertyValue.CreateRemote(const MachineName: string): IADsPropertyValue;
 
6446
begin
 
6447
  Result := CreateRemoteComObject(MachineName, CLASS_PropertyValue) as IADsPropertyValue;
 
6448
end;
 
6449
 
 
6450
procedure TPropertyValue.InitServerData;
 
6451
const
 
6452
  CServerData: TServerData = (
 
6453
    ClassID:   '{7B9E38B0-A97C-11D0-8534-00C04FD8D503}';
 
6454
    IntfIID:   '{79FA9AD0-A97C-11D0-8534-00C04FD8D503}';
 
6455
    EventIID:  '';
 
6456
    LicenseKey: nil;
 
6457
    Version: 500);
 
6458
begin
 
6459
  ServerData := @CServerData;
 
6460
end;
 
6461
 
 
6462
procedure TPropertyValue.Connect;
 
6463
var
 
6464
  punk: IUnknown;
 
6465
begin
 
6466
  if FIntf = nil then
 
6467
  begin
 
6468
    punk := GetServer;
 
6469
    Fintf:= punk as IADsPropertyValue;
 
6470
  end;
 
6471
end;
 
6472
 
 
6473
procedure TPropertyValue.ConnectTo(svrIntf: IADsPropertyValue);
 
6474
begin
 
6475
  Disconnect;
 
6476
  FIntf := svrIntf;
 
6477
end;
 
6478
 
 
6479
procedure TPropertyValue.DisConnect;
 
6480
begin
 
6481
  if Fintf <> nil then
 
6482
  begin
 
6483
    FIntf := nil;
 
6484
  end;
 
6485
end;
 
6486
 
 
6487
function TPropertyValue.GetDefaultInterface: IADsPropertyValue;
 
6488
begin
 
6489
  if FIntf = nil then
 
6490
    Connect;
 
6491
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
6492
  Result := FIntf;
 
6493
end;
 
6494
 
 
6495
constructor TPropertyValue.Create(AOwner: TComponent);
 
6496
begin
 
6497
  inherited Create(AOwner);
 
6498
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6499
  FProps := TPropertyValueProperties.Create(Self);
 
6500
{$ENDIF}
 
6501
end;
 
6502
 
 
6503
destructor TPropertyValue.Destroy;
 
6504
begin
 
6505
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6506
  FProps.Free;
 
6507
{$ENDIF}
 
6508
  inherited Destroy;
 
6509
end;
 
6510
 
 
6511
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6512
function TPropertyValue.GetServerProperties: TPropertyValueProperties;
 
6513
begin
 
6514
  Result := FProps;
 
6515
end;
 
6516
{$ENDIF}
 
6517
 
 
6518
function  TPropertyValue.Get_ADsType: Integer;
 
6519
begin
 
6520
  Result := DefaultInterface.Get_ADsType;
 
6521
end;
 
6522
 
 
6523
procedure TPropertyValue.Set_ADsType(retval: Integer);
 
6524
begin
 
6525
  DefaultInterface.Set_ADsType(retval);
 
6526
end;
 
6527
 
 
6528
function  TPropertyValue.Get_DNString: WideString;
 
6529
begin
 
6530
  Result := DefaultInterface.Get_DNString;
 
6531
end;
 
6532
 
 
6533
procedure TPropertyValue.Set_DNString(const retval: WideString);
 
6534
begin
 
6535
  DefaultInterface.Set_DNString(retval);
 
6536
end;
 
6537
 
 
6538
function  TPropertyValue.Get_CaseExactString: WideString;
 
6539
begin
 
6540
  Result := DefaultInterface.Get_CaseExactString;
 
6541
end;
 
6542
 
 
6543
procedure TPropertyValue.Set_CaseExactString(const retval: WideString);
 
6544
begin
 
6545
  DefaultInterface.Set_CaseExactString(retval);
 
6546
end;
 
6547
 
 
6548
function  TPropertyValue.Get_CaseIgnoreString: WideString;
 
6549
begin
 
6550
  Result := DefaultInterface.Get_CaseIgnoreString;
 
6551
end;
 
6552
 
 
6553
procedure TPropertyValue.Set_CaseIgnoreString(const retval: WideString);
 
6554
begin
 
6555
  DefaultInterface.Set_CaseIgnoreString(retval);
 
6556
end;
 
6557
 
 
6558
function  TPropertyValue.Get_PrintableString: WideString;
 
6559
begin
 
6560
  Result := DefaultInterface.Get_PrintableString;
 
6561
end;
 
6562
 
 
6563
procedure TPropertyValue.Set_PrintableString(const retval: WideString);
 
6564
begin
 
6565
  DefaultInterface.Set_PrintableString(retval);
 
6566
end;
 
6567
 
 
6568
function  TPropertyValue.Get_NumericString: WideString;
 
6569
begin
 
6570
  Result := DefaultInterface.Get_NumericString;
 
6571
end;
 
6572
 
 
6573
procedure TPropertyValue.Set_NumericString(const retval: WideString);
 
6574
begin
 
6575
  DefaultInterface.Set_NumericString(retval);
 
6576
end;
 
6577
 
 
6578
function  TPropertyValue.Get_Boolean: Integer;
 
6579
begin
 
6580
  Result := DefaultInterface.Get_Boolean;
 
6581
end;
 
6582
 
 
6583
procedure TPropertyValue.Set_Boolean(retval: Integer);
 
6584
begin
 
6585
  DefaultInterface.Set_Boolean(retval);
 
6586
end;
 
6587
 
 
6588
function  TPropertyValue.Get_Integer: Integer;
 
6589
begin
 
6590
  Result := DefaultInterface.Get_Integer;
 
6591
end;
 
6592
 
 
6593
procedure TPropertyValue.Set_Integer(retval: Integer);
 
6594
begin
 
6595
  DefaultInterface.Set_Integer(retval);
 
6596
end;
 
6597
 
 
6598
function  TPropertyValue.Get_OctetString: OleVariant;
 
6599
begin
 
6600
  Result := DefaultInterface.Get_OctetString;
 
6601
end;
 
6602
 
 
6603
procedure TPropertyValue.Set_OctetString(retval: OleVariant);
 
6604
begin
 
6605
  DefaultInterface.Set_OctetString(retval);
 
6606
end;
 
6607
 
 
6608
function  TPropertyValue.Get_SecurityDescriptor: IDispatch;
 
6609
begin
 
6610
  Result := DefaultInterface.Get_SecurityDescriptor;
 
6611
end;
 
6612
 
 
6613
procedure TPropertyValue.Set_SecurityDescriptor(const retval: IDispatch);
 
6614
begin
 
6615
  DefaultInterface.Set_SecurityDescriptor(retval);
 
6616
end;
 
6617
 
 
6618
function  TPropertyValue.Get_LargeInteger: IDispatch;
 
6619
begin
 
6620
  Result := DefaultInterface.Get_LargeInteger;
 
6621
end;
 
6622
 
 
6623
procedure TPropertyValue.Set_LargeInteger(const retval: IDispatch);
 
6624
begin
 
6625
  DefaultInterface.Set_LargeInteger(retval);
 
6626
end;
 
6627
 
 
6628
function  TPropertyValue.Get_UTCTime: TDateTime;
 
6629
begin
 
6630
  Result := DefaultInterface.Get_UTCTime;
 
6631
end;
 
6632
 
 
6633
procedure TPropertyValue.Set_UTCTime(retval: TDateTime);
 
6634
begin
 
6635
  DefaultInterface.Set_UTCTime(retval);
 
6636
end;
 
6637
 
 
6638
procedure TPropertyValue.Clear;
 
6639
begin
 
6640
  DefaultInterface.Clear;
 
6641
end;
 
6642
 
 
6643
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6644
constructor TPropertyValueProperties.Create(AServer: TPropertyValue);
 
6645
begin
 
6646
  inherited Create;
 
6647
  FServer := AServer;
 
6648
end;
 
6649
 
 
6650
function TPropertyValueProperties.GetDefaultInterface: IADsPropertyValue;
 
6651
begin
 
6652
  Result := FServer.DefaultInterface;
 
6653
end;
 
6654
 
 
6655
function  TPropertyValueProperties.Get_ADsType: Integer;
 
6656
begin
 
6657
  Result := DefaultInterface.Get_ADsType;
 
6658
end;
 
6659
 
 
6660
procedure TPropertyValueProperties.Set_ADsType(retval: Integer);
 
6661
begin
 
6662
  DefaultInterface.Set_ADsType(retval);
 
6663
end;
 
6664
 
 
6665
function  TPropertyValueProperties.Get_DNString: WideString;
 
6666
begin
 
6667
  Result := DefaultInterface.Get_DNString;
 
6668
end;
 
6669
 
 
6670
procedure TPropertyValueProperties.Set_DNString(const retval: WideString);
 
6671
begin
 
6672
  DefaultInterface.Set_DNString(retval);
 
6673
end;
 
6674
 
 
6675
function  TPropertyValueProperties.Get_CaseExactString: WideString;
 
6676
begin
 
6677
  Result := DefaultInterface.Get_CaseExactString;
 
6678
end;
 
6679
 
 
6680
procedure TPropertyValueProperties.Set_CaseExactString(const retval: WideString);
 
6681
begin
 
6682
  DefaultInterface.Set_CaseExactString(retval);
 
6683
end;
 
6684
 
 
6685
function  TPropertyValueProperties.Get_CaseIgnoreString: WideString;
 
6686
begin
 
6687
  Result := DefaultInterface.Get_CaseIgnoreString;
 
6688
end;
 
6689
 
 
6690
procedure TPropertyValueProperties.Set_CaseIgnoreString(const retval: WideString);
 
6691
begin
 
6692
  DefaultInterface.Set_CaseIgnoreString(retval);
 
6693
end;
 
6694
 
 
6695
function  TPropertyValueProperties.Get_PrintableString: WideString;
 
6696
begin
 
6697
  Result := DefaultInterface.Get_PrintableString;
 
6698
end;
 
6699
 
 
6700
procedure TPropertyValueProperties.Set_PrintableString(const retval: WideString);
 
6701
begin
 
6702
  DefaultInterface.Set_PrintableString(retval);
 
6703
end;
 
6704
 
 
6705
function  TPropertyValueProperties.Get_NumericString: WideString;
 
6706
begin
 
6707
  Result := DefaultInterface.Get_NumericString;
 
6708
end;
 
6709
 
 
6710
procedure TPropertyValueProperties.Set_NumericString(const retval: WideString);
 
6711
begin
 
6712
  DefaultInterface.Set_NumericString(retval);
 
6713
end;
 
6714
 
 
6715
function  TPropertyValueProperties.Get_Boolean: Integer;
 
6716
begin
 
6717
  Result := DefaultInterface.Get_Boolean;
 
6718
end;
 
6719
 
 
6720
procedure TPropertyValueProperties.Set_Boolean(retval: Integer);
 
6721
begin
 
6722
  DefaultInterface.Set_Boolean(retval);
 
6723
end;
 
6724
 
 
6725
function  TPropertyValueProperties.Get_Integer: Integer;
 
6726
begin
 
6727
  Result := DefaultInterface.Get_Integer;
 
6728
end;
 
6729
 
 
6730
procedure TPropertyValueProperties.Set_Integer(retval: Integer);
 
6731
begin
 
6732
  DefaultInterface.Set_Integer(retval);
 
6733
end;
 
6734
 
 
6735
function  TPropertyValueProperties.Get_OctetString: OleVariant;
 
6736
begin
 
6737
  Result := DefaultInterface.Get_OctetString;
 
6738
end;
 
6739
 
 
6740
procedure TPropertyValueProperties.Set_OctetString(retval: OleVariant);
 
6741
begin
 
6742
  DefaultInterface.Set_OctetString(retval);
 
6743
end;
 
6744
 
 
6745
function  TPropertyValueProperties.Get_SecurityDescriptor: IDispatch;
 
6746
begin
 
6747
  Result := DefaultInterface.Get_SecurityDescriptor;
 
6748
end;
 
6749
 
 
6750
procedure TPropertyValueProperties.Set_SecurityDescriptor(const retval: IDispatch);
 
6751
begin
 
6752
  DefaultInterface.Set_SecurityDescriptor(retval);
 
6753
end;
 
6754
 
 
6755
function  TPropertyValueProperties.Get_LargeInteger: IDispatch;
 
6756
begin
 
6757
  Result := DefaultInterface.Get_LargeInteger;
 
6758
end;
 
6759
 
 
6760
procedure TPropertyValueProperties.Set_LargeInteger(const retval: IDispatch);
 
6761
begin
 
6762
  DefaultInterface.Set_LargeInteger(retval);
 
6763
end;
 
6764
 
 
6765
function  TPropertyValueProperties.Get_UTCTime: TDateTime;
 
6766
begin
 
6767
  Result := DefaultInterface.Get_UTCTime;
 
6768
end;
 
6769
 
 
6770
procedure TPropertyValueProperties.Set_UTCTime(retval: TDateTime);
 
6771
begin
 
6772
  DefaultInterface.Set_UTCTime(retval);
 
6773
end;
 
6774
 
 
6775
{$ENDIF}
 
6776
 
 
6777
class function CoAccessControlEntry.Create: IADsAccessControlEntry;
 
6778
begin
 
6779
  Result := CreateComObject(CLASS_AccessControlEntry) as IADsAccessControlEntry;
 
6780
end;
 
6781
 
 
6782
class function CoAccessControlEntry.CreateRemote(const MachineName: string): IADsAccessControlEntry;
 
6783
begin
 
6784
  Result := CreateRemoteComObject(MachineName, CLASS_AccessControlEntry) as IADsAccessControlEntry;
 
6785
end;
 
6786
 
 
6787
procedure TAccessControlEntry.InitServerData;
 
6788
const
 
6789
  CServerData: TServerData = (
 
6790
    ClassID:   '{B75AC000-9BDD-11D0-852C-00C04FD8D503}';
 
6791
    IntfIID:   '{B4F3A14C-9BDD-11D0-852C-00C04FD8D503}';
 
6792
    EventIID:  '';
 
6793
    LicenseKey: nil;
 
6794
    Version: 500);
 
6795
begin
 
6796
  ServerData := @CServerData;
 
6797
end;
 
6798
 
 
6799
procedure TAccessControlEntry.Connect;
 
6800
var
 
6801
  punk: IUnknown;
 
6802
begin
 
6803
  if FIntf = nil then
 
6804
  begin
 
6805
    punk := GetServer;
 
6806
    Fintf:= punk as IADsAccessControlEntry;
 
6807
  end;
 
6808
end;
 
6809
 
 
6810
procedure TAccessControlEntry.ConnectTo(svrIntf: IADsAccessControlEntry);
 
6811
begin
 
6812
  Disconnect;
 
6813
  FIntf := svrIntf;
 
6814
end;
 
6815
 
 
6816
procedure TAccessControlEntry.DisConnect;
 
6817
begin
 
6818
  if Fintf <> nil then
 
6819
  begin
 
6820
    FIntf := nil;
 
6821
  end;
 
6822
end;
 
6823
 
 
6824
function TAccessControlEntry.GetDefaultInterface: IADsAccessControlEntry;
 
6825
begin
 
6826
  if FIntf = nil then
 
6827
    Connect;
 
6828
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
6829
  Result := FIntf;
 
6830
end;
 
6831
 
 
6832
constructor TAccessControlEntry.Create(AOwner: TComponent);
 
6833
begin
 
6834
  inherited Create(AOwner);
 
6835
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6836
  FProps := TAccessControlEntryProperties.Create(Self);
 
6837
{$ENDIF}
 
6838
end;
 
6839
 
 
6840
destructor TAccessControlEntry.Destroy;
 
6841
begin
 
6842
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6843
  FProps.Free;
 
6844
{$ENDIF}
 
6845
  inherited Destroy;
 
6846
end;
 
6847
 
 
6848
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6849
function TAccessControlEntry.GetServerProperties: TAccessControlEntryProperties;
 
6850
begin
 
6851
  Result := FProps;
 
6852
end;
 
6853
{$ENDIF}
 
6854
 
 
6855
function  TAccessControlEntry.Get_AccessMask: Integer;
 
6856
begin
 
6857
  Result := DefaultInterface.Get_AccessMask;
 
6858
end;
 
6859
 
 
6860
procedure TAccessControlEntry.Set_AccessMask(retval: Integer);
 
6861
begin
 
6862
  DefaultInterface.Set_AccessMask(retval);
 
6863
end;
 
6864
 
 
6865
function  TAccessControlEntry.Get_AceType: Integer;
 
6866
begin
 
6867
  Result := DefaultInterface.Get_AceType;
 
6868
end;
 
6869
 
 
6870
procedure TAccessControlEntry.Set_AceType(retval: Integer);
 
6871
begin
 
6872
  DefaultInterface.Set_AceType(retval);
 
6873
end;
 
6874
 
 
6875
function  TAccessControlEntry.Get_AceFlags: Integer;
 
6876
begin
 
6877
  Result := DefaultInterface.Get_AceFlags;
 
6878
end;
 
6879
 
 
6880
procedure TAccessControlEntry.Set_AceFlags(retval: Integer);
 
6881
begin
 
6882
  DefaultInterface.Set_AceFlags(retval);
 
6883
end;
 
6884
 
 
6885
function  TAccessControlEntry.Get_Flags: Integer;
 
6886
begin
 
6887
  Result := DefaultInterface.Get_Flags;
 
6888
end;
 
6889
 
 
6890
procedure TAccessControlEntry.Set_Flags(retval: Integer);
 
6891
begin
 
6892
  DefaultInterface.Set_Flags(retval);
 
6893
end;
 
6894
 
 
6895
function  TAccessControlEntry.Get_ObjectType: WideString;
 
6896
begin
 
6897
  Result := DefaultInterface.Get_ObjectType;
 
6898
end;
 
6899
 
 
6900
procedure TAccessControlEntry.Set_ObjectType(const retval: WideString);
 
6901
begin
 
6902
  DefaultInterface.Set_ObjectType(retval);
 
6903
end;
 
6904
 
 
6905
function  TAccessControlEntry.Get_InheritedObjectType: WideString;
 
6906
begin
 
6907
  Result := DefaultInterface.Get_InheritedObjectType;
 
6908
end;
 
6909
 
 
6910
procedure TAccessControlEntry.Set_InheritedObjectType(const retval: WideString);
 
6911
begin
 
6912
  DefaultInterface.Set_InheritedObjectType(retval);
 
6913
end;
 
6914
 
 
6915
function  TAccessControlEntry.Get_Trustee: WideString;
 
6916
begin
 
6917
  Result := DefaultInterface.Get_Trustee;
 
6918
end;
 
6919
 
 
6920
procedure TAccessControlEntry.Set_Trustee(const retval: WideString);
 
6921
begin
 
6922
  DefaultInterface.Set_Trustee(retval);
 
6923
end;
 
6924
 
 
6925
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
6926
constructor TAccessControlEntryProperties.Create(AServer: TAccessControlEntry);
 
6927
begin
 
6928
  inherited Create;
 
6929
  FServer := AServer;
 
6930
end;
 
6931
 
 
6932
function TAccessControlEntryProperties.GetDefaultInterface: IADsAccessControlEntry;
 
6933
begin
 
6934
  Result := FServer.DefaultInterface;
 
6935
end;
 
6936
 
 
6937
function  TAccessControlEntryProperties.Get_AccessMask: Integer;
 
6938
begin
 
6939
  Result := DefaultInterface.Get_AccessMask;
 
6940
end;
 
6941
 
 
6942
procedure TAccessControlEntryProperties.Set_AccessMask(retval: Integer);
 
6943
begin
 
6944
  DefaultInterface.Set_AccessMask(retval);
 
6945
end;
 
6946
 
 
6947
function  TAccessControlEntryProperties.Get_AceType: Integer;
 
6948
begin
 
6949
  Result := DefaultInterface.Get_AceType;
 
6950
end;
 
6951
 
 
6952
procedure TAccessControlEntryProperties.Set_AceType(retval: Integer);
 
6953
begin
 
6954
  DefaultInterface.Set_AceType(retval);
 
6955
end;
 
6956
 
 
6957
function  TAccessControlEntryProperties.Get_AceFlags: Integer;
 
6958
begin
 
6959
  Result := DefaultInterface.Get_AceFlags;
 
6960
end;
 
6961
 
 
6962
procedure TAccessControlEntryProperties.Set_AceFlags(retval: Integer);
 
6963
begin
 
6964
  DefaultInterface.Set_AceFlags(retval);
 
6965
end;
 
6966
 
 
6967
function  TAccessControlEntryProperties.Get_Flags: Integer;
 
6968
begin
 
6969
  Result := DefaultInterface.Get_Flags;
 
6970
end;
 
6971
 
 
6972
procedure TAccessControlEntryProperties.Set_Flags(retval: Integer);
 
6973
begin
 
6974
  DefaultInterface.Set_Flags(retval);
 
6975
end;
 
6976
 
 
6977
function  TAccessControlEntryProperties.Get_ObjectType: WideString;
 
6978
begin
 
6979
  Result := DefaultInterface.Get_ObjectType;
 
6980
end;
 
6981
 
 
6982
procedure TAccessControlEntryProperties.Set_ObjectType(const retval: WideString);
 
6983
begin
 
6984
  DefaultInterface.Set_ObjectType(retval);
 
6985
end;
 
6986
 
 
6987
function  TAccessControlEntryProperties.Get_InheritedObjectType: WideString;
 
6988
begin
 
6989
  Result := DefaultInterface.Get_InheritedObjectType;
 
6990
end;
 
6991
 
 
6992
procedure TAccessControlEntryProperties.Set_InheritedObjectType(const retval: WideString);
 
6993
begin
 
6994
  DefaultInterface.Set_InheritedObjectType(retval);
 
6995
end;
 
6996
 
 
6997
function  TAccessControlEntryProperties.Get_Trustee: WideString;
 
6998
begin
 
6999
  Result := DefaultInterface.Get_Trustee;
 
7000
end;
 
7001
 
 
7002
procedure TAccessControlEntryProperties.Set_Trustee(const retval: WideString);
 
7003
begin
 
7004
  DefaultInterface.Set_Trustee(retval);
 
7005
end;
 
7006
 
 
7007
{$ENDIF}
 
7008
 
 
7009
class function CoAccessControlList.Create: IADsAccessControlList;
 
7010
begin
 
7011
  Result := CreateComObject(CLASS_AccessControlList) as IADsAccessControlList;
 
7012
end;
 
7013
 
 
7014
class function CoAccessControlList.CreateRemote(const MachineName: string): IADsAccessControlList;
 
7015
begin
 
7016
  Result := CreateRemoteComObject(MachineName, CLASS_AccessControlList) as IADsAccessControlList;
 
7017
end;
 
7018
 
 
7019
procedure TAccessControlList.InitServerData;
 
7020
const
 
7021
  CServerData: TServerData = (
 
7022
    ClassID:   '{B85EA052-9BDD-11D0-852C-00C04FD8D503}';
 
7023
    IntfIID:   '{B7EE91CC-9BDD-11D0-852C-00C04FD8D503}';
 
7024
    EventIID:  '';
 
7025
    LicenseKey: nil;
 
7026
    Version: 500);
 
7027
begin
 
7028
  ServerData := @CServerData;
 
7029
end;
 
7030
 
 
7031
procedure TAccessControlList.Connect;
 
7032
var
 
7033
  punk: IUnknown;
 
7034
begin
 
7035
  if FIntf = nil then
 
7036
  begin
 
7037
    punk := GetServer;
 
7038
    Fintf:= punk as IADsAccessControlList;
 
7039
  end;
 
7040
end;
 
7041
 
 
7042
procedure TAccessControlList.ConnectTo(svrIntf: IADsAccessControlList);
 
7043
begin
 
7044
  Disconnect;
 
7045
  FIntf := svrIntf;
 
7046
end;
 
7047
 
 
7048
procedure TAccessControlList.DisConnect;
 
7049
begin
 
7050
  if Fintf <> nil then
 
7051
  begin
 
7052
    FIntf := nil;
 
7053
  end;
 
7054
end;
 
7055
 
 
7056
function TAccessControlList.GetDefaultInterface: IADsAccessControlList;
 
7057
begin
 
7058
  if FIntf = nil then
 
7059
    Connect;
 
7060
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7061
  Result := FIntf;
 
7062
end;
 
7063
 
 
7064
constructor TAccessControlList.Create(AOwner: TComponent);
 
7065
begin
 
7066
  inherited Create(AOwner);
 
7067
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7068
  FProps := TAccessControlListProperties.Create(Self);
 
7069
{$ENDIF}
 
7070
end;
 
7071
 
 
7072
destructor TAccessControlList.Destroy;
 
7073
begin
 
7074
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7075
  FProps.Free;
 
7076
{$ENDIF}
 
7077
  inherited Destroy;
 
7078
end;
 
7079
 
 
7080
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7081
function TAccessControlList.GetServerProperties: TAccessControlListProperties;
 
7082
begin
 
7083
  Result := FProps;
 
7084
end;
 
7085
{$ENDIF}
 
7086
 
 
7087
function  TAccessControlList.Get_AclRevision: Integer;
 
7088
begin
 
7089
  Result := DefaultInterface.Get_AclRevision;
 
7090
end;
 
7091
 
 
7092
procedure TAccessControlList.Set_AclRevision(retval: Integer);
 
7093
begin
 
7094
  DefaultInterface.Set_AclRevision(retval);
 
7095
end;
 
7096
 
 
7097
function  TAccessControlList.Get_AceCount: Integer;
 
7098
begin
 
7099
  Result := DefaultInterface.Get_AceCount;
 
7100
end;
 
7101
 
 
7102
procedure TAccessControlList.Set_AceCount(retval: Integer);
 
7103
begin
 
7104
  DefaultInterface.Set_AceCount(retval);
 
7105
end;
 
7106
 
 
7107
procedure TAccessControlList.AddAce(const pAccessControlEntry: IDispatch);
 
7108
begin
 
7109
  DefaultInterface.AddAce(pAccessControlEntry);
 
7110
end;
 
7111
 
 
7112
procedure TAccessControlList.RemoveAce(const pAccessControlEntry: IDispatch);
 
7113
begin
 
7114
  DefaultInterface.RemoveAce(pAccessControlEntry);
 
7115
end;
 
7116
 
 
7117
function  TAccessControlList.CopyAccessList: IDispatch;
 
7118
begin
 
7119
  Result := DefaultInterface.CopyAccessList;
 
7120
end;
 
7121
 
 
7122
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7123
constructor TAccessControlListProperties.Create(AServer: TAccessControlList);
 
7124
begin
 
7125
  inherited Create;
 
7126
  FServer := AServer;
 
7127
end;
 
7128
 
 
7129
function TAccessControlListProperties.GetDefaultInterface: IADsAccessControlList;
 
7130
begin
 
7131
  Result := FServer.DefaultInterface;
 
7132
end;
 
7133
 
 
7134
function  TAccessControlListProperties.Get_AclRevision: Integer;
 
7135
begin
 
7136
  Result := DefaultInterface.Get_AclRevision;
 
7137
end;
 
7138
 
 
7139
procedure TAccessControlListProperties.Set_AclRevision(retval: Integer);
 
7140
begin
 
7141
  DefaultInterface.Set_AclRevision(retval);
 
7142
end;
 
7143
 
 
7144
function  TAccessControlListProperties.Get_AceCount: Integer;
 
7145
begin
 
7146
  Result := DefaultInterface.Get_AceCount;
 
7147
end;
 
7148
 
 
7149
procedure TAccessControlListProperties.Set_AceCount(retval: Integer);
 
7150
begin
 
7151
  DefaultInterface.Set_AceCount(retval);
 
7152
end;
 
7153
 
 
7154
{$ENDIF}
 
7155
 
 
7156
class function CoSecurityDescriptor.Create: IADsSecurityDescriptor;
 
7157
begin
 
7158
  Result := CreateComObject(CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
 
7159
end;
 
7160
 
 
7161
class function CoSecurityDescriptor.CreateRemote(const MachineName: string): IADsSecurityDescriptor;
 
7162
begin
 
7163
  Result := CreateRemoteComObject(MachineName, CLASS_SecurityDescriptor) as IADsSecurityDescriptor;
 
7164
end;
 
7165
 
 
7166
procedure TSecurityDescriptor.InitServerData;
 
7167
const
 
7168
  CServerData: TServerData = (
 
7169
    ClassID:   '{B958F73C-9BDD-11D0-852C-00C04FD8D503}';
 
7170
    IntfIID:   '{B8C787CA-9BDD-11D0-852C-00C04FD8D503}';
 
7171
    EventIID:  '';
 
7172
    LicenseKey: nil;
 
7173
    Version: 500);
 
7174
begin
 
7175
  ServerData := @CServerData;
 
7176
end;
 
7177
 
 
7178
procedure TSecurityDescriptor.Connect;
 
7179
var
 
7180
  punk: IUnknown;
 
7181
begin
 
7182
  if FIntf = nil then
 
7183
  begin
 
7184
    punk := GetServer;
 
7185
    Fintf:= punk as IADsSecurityDescriptor;
 
7186
  end;
 
7187
end;
 
7188
 
 
7189
procedure TSecurityDescriptor.ConnectTo(svrIntf: IADsSecurityDescriptor);
 
7190
begin
 
7191
  Disconnect;
 
7192
  FIntf := svrIntf;
 
7193
end;
 
7194
 
 
7195
procedure TSecurityDescriptor.DisConnect;
 
7196
begin
 
7197
  if Fintf <> nil then
 
7198
  begin
 
7199
    FIntf := nil;
 
7200
  end;
 
7201
end;
 
7202
 
 
7203
function TSecurityDescriptor.GetDefaultInterface: IADsSecurityDescriptor;
 
7204
begin
 
7205
  if FIntf = nil then
 
7206
    Connect;
 
7207
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7208
  Result := FIntf;
 
7209
end;
 
7210
 
 
7211
constructor TSecurityDescriptor.Create(AOwner: TComponent);
 
7212
begin
 
7213
  inherited Create(AOwner);
 
7214
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7215
  FProps := TSecurityDescriptorProperties.Create(Self);
 
7216
{$ENDIF}
 
7217
end;
 
7218
 
 
7219
destructor TSecurityDescriptor.Destroy;
 
7220
begin
 
7221
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7222
  FProps.Free;
 
7223
{$ENDIF}
 
7224
  inherited Destroy;
 
7225
end;
 
7226
 
 
7227
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7228
function TSecurityDescriptor.GetServerProperties: TSecurityDescriptorProperties;
 
7229
begin
 
7230
  Result := FProps;
 
7231
end;
 
7232
{$ENDIF}
 
7233
 
 
7234
function  TSecurityDescriptor.Get_Revision: Integer;
 
7235
begin
 
7236
  Result := DefaultInterface.Get_Revision;
 
7237
end;
 
7238
 
 
7239
procedure TSecurityDescriptor.Set_Revision(retval: Integer);
 
7240
begin
 
7241
  DefaultInterface.Set_Revision(retval);
 
7242
end;
 
7243
 
 
7244
function  TSecurityDescriptor.Get_Control: Integer;
 
7245
begin
 
7246
  Result := DefaultInterface.Get_Control;
 
7247
end;
 
7248
 
 
7249
procedure TSecurityDescriptor.Set_Control(retval: Integer);
 
7250
begin
 
7251
  DefaultInterface.Set_Control(retval);
 
7252
end;
 
7253
 
 
7254
function  TSecurityDescriptor.Get_Owner: WideString;
 
7255
begin
 
7256
  Result := DefaultInterface.Get_Owner;
 
7257
end;
 
7258
 
 
7259
procedure TSecurityDescriptor.Set_Owner(const retval: WideString);
 
7260
begin
 
7261
  DefaultInterface.Set_Owner(retval);
 
7262
end;
 
7263
 
 
7264
function  TSecurityDescriptor.Get_OwnerDefaulted: WordBool;
 
7265
begin
 
7266
  Result := DefaultInterface.Get_OwnerDefaulted;
 
7267
end;
 
7268
 
 
7269
procedure TSecurityDescriptor.Set_OwnerDefaulted(retval: WordBool);
 
7270
begin
 
7271
  DefaultInterface.Set_OwnerDefaulted(retval);
 
7272
end;
 
7273
 
 
7274
function  TSecurityDescriptor.Get_Group: WideString;
 
7275
begin
 
7276
  Result := DefaultInterface.Get_Group;
 
7277
end;
 
7278
 
 
7279
procedure TSecurityDescriptor.Set_Group(const retval: WideString);
 
7280
begin
 
7281
  DefaultInterface.Set_Group(retval);
 
7282
end;
 
7283
 
 
7284
function  TSecurityDescriptor.Get_GroupDefaulted: WordBool;
 
7285
begin
 
7286
  Result := DefaultInterface.Get_GroupDefaulted;
 
7287
end;
 
7288
 
 
7289
procedure TSecurityDescriptor.Set_GroupDefaulted(retval: WordBool);
 
7290
begin
 
7291
  DefaultInterface.Set_GroupDefaulted(retval);
 
7292
end;
 
7293
 
 
7294
function  TSecurityDescriptor.Get_DiscretionaryAcl: IDispatch;
 
7295
begin
 
7296
  Result := DefaultInterface.Get_DiscretionaryAcl;
 
7297
end;
 
7298
 
 
7299
procedure TSecurityDescriptor.Set_DiscretionaryAcl(const retval: IDispatch);
 
7300
begin
 
7301
  DefaultInterface.Set_DiscretionaryAcl(retval);
 
7302
end;
 
7303
 
 
7304
function  TSecurityDescriptor.Get_DaclDefaulted: WordBool;
 
7305
begin
 
7306
  Result := DefaultInterface.Get_DaclDefaulted;
 
7307
end;
 
7308
 
 
7309
procedure TSecurityDescriptor.Set_DaclDefaulted(retval: WordBool);
 
7310
begin
 
7311
  DefaultInterface.Set_DaclDefaulted(retval);
 
7312
end;
 
7313
 
 
7314
function  TSecurityDescriptor.Get_SystemAcl: IDispatch;
 
7315
begin
 
7316
  Result := DefaultInterface.Get_SystemAcl;
 
7317
end;
 
7318
 
 
7319
procedure TSecurityDescriptor.Set_SystemAcl(const retval: IDispatch);
 
7320
begin
 
7321
  DefaultInterface.Set_SystemAcl(retval);
 
7322
end;
 
7323
 
 
7324
function  TSecurityDescriptor.Get_SaclDefaulted: WordBool;
 
7325
begin
 
7326
  Result := DefaultInterface.Get_SaclDefaulted;
 
7327
end;
 
7328
 
 
7329
procedure TSecurityDescriptor.Set_SaclDefaulted(retval: WordBool);
 
7330
begin
 
7331
  DefaultInterface.Set_SaclDefaulted(retval);
 
7332
end;
 
7333
 
 
7334
function  TSecurityDescriptor.CopySecurityDescriptor: IDispatch;
 
7335
begin
 
7336
  Result := DefaultInterface.CopySecurityDescriptor;
 
7337
end;
 
7338
 
 
7339
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7340
constructor TSecurityDescriptorProperties.Create(AServer: TSecurityDescriptor);
 
7341
begin
 
7342
  inherited Create;
 
7343
  FServer := AServer;
 
7344
end;
 
7345
 
 
7346
function TSecurityDescriptorProperties.GetDefaultInterface: IADsSecurityDescriptor;
 
7347
begin
 
7348
  Result := FServer.DefaultInterface;
 
7349
end;
 
7350
 
 
7351
function  TSecurityDescriptorProperties.Get_Revision: Integer;
 
7352
begin
 
7353
  Result := DefaultInterface.Get_Revision;
 
7354
end;
 
7355
 
 
7356
procedure TSecurityDescriptorProperties.Set_Revision(retval: Integer);
 
7357
begin
 
7358
  DefaultInterface.Set_Revision(retval);
 
7359
end;
 
7360
 
 
7361
function  TSecurityDescriptorProperties.Get_Control: Integer;
 
7362
begin
 
7363
  Result := DefaultInterface.Get_Control;
 
7364
end;
 
7365
 
 
7366
procedure TSecurityDescriptorProperties.Set_Control(retval: Integer);
 
7367
begin
 
7368
  DefaultInterface.Set_Control(retval);
 
7369
end;
 
7370
 
 
7371
function  TSecurityDescriptorProperties.Get_Owner: WideString;
 
7372
begin
 
7373
  Result := DefaultInterface.Get_Owner;
 
7374
end;
 
7375
 
 
7376
procedure TSecurityDescriptorProperties.Set_Owner(const retval: WideString);
 
7377
begin
 
7378
  DefaultInterface.Set_Owner(retval);
 
7379
end;
 
7380
 
 
7381
function  TSecurityDescriptorProperties.Get_OwnerDefaulted: WordBool;
 
7382
begin
 
7383
  Result := DefaultInterface.Get_OwnerDefaulted;
 
7384
end;
 
7385
 
 
7386
procedure TSecurityDescriptorProperties.Set_OwnerDefaulted(retval: WordBool);
 
7387
begin
 
7388
  DefaultInterface.Set_OwnerDefaulted(retval);
 
7389
end;
 
7390
 
 
7391
function  TSecurityDescriptorProperties.Get_Group: WideString;
 
7392
begin
 
7393
  Result := DefaultInterface.Get_Group;
 
7394
end;
 
7395
 
 
7396
procedure TSecurityDescriptorProperties.Set_Group(const retval: WideString);
 
7397
begin
 
7398
  DefaultInterface.Set_Group(retval);
 
7399
end;
 
7400
 
 
7401
function  TSecurityDescriptorProperties.Get_GroupDefaulted: WordBool;
 
7402
begin
 
7403
  Result := DefaultInterface.Get_GroupDefaulted;
 
7404
end;
 
7405
 
 
7406
procedure TSecurityDescriptorProperties.Set_GroupDefaulted(retval: WordBool);
 
7407
begin
 
7408
  DefaultInterface.Set_GroupDefaulted(retval);
 
7409
end;
 
7410
 
 
7411
function  TSecurityDescriptorProperties.Get_DiscretionaryAcl: IDispatch;
 
7412
begin
 
7413
  Result := DefaultInterface.Get_DiscretionaryAcl;
 
7414
end;
 
7415
 
 
7416
procedure TSecurityDescriptorProperties.Set_DiscretionaryAcl(const retval: IDispatch);
 
7417
begin
 
7418
  DefaultInterface.Set_DiscretionaryAcl(retval);
 
7419
end;
 
7420
 
 
7421
function  TSecurityDescriptorProperties.Get_DaclDefaulted: WordBool;
 
7422
begin
 
7423
  Result := DefaultInterface.Get_DaclDefaulted;
 
7424
end;
 
7425
 
 
7426
procedure TSecurityDescriptorProperties.Set_DaclDefaulted(retval: WordBool);
 
7427
begin
 
7428
  DefaultInterface.Set_DaclDefaulted(retval);
 
7429
end;
 
7430
 
 
7431
function  TSecurityDescriptorProperties.Get_SystemAcl: IDispatch;
 
7432
begin
 
7433
  Result := DefaultInterface.Get_SystemAcl;
 
7434
end;
 
7435
 
 
7436
procedure TSecurityDescriptorProperties.Set_SystemAcl(const retval: IDispatch);
 
7437
begin
 
7438
  DefaultInterface.Set_SystemAcl(retval);
 
7439
end;
 
7440
 
 
7441
function  TSecurityDescriptorProperties.Get_SaclDefaulted: WordBool;
 
7442
begin
 
7443
  Result := DefaultInterface.Get_SaclDefaulted;
 
7444
end;
 
7445
 
 
7446
procedure TSecurityDescriptorProperties.Set_SaclDefaulted(retval: WordBool);
 
7447
begin
 
7448
  DefaultInterface.Set_SaclDefaulted(retval);
 
7449
end;
 
7450
 
 
7451
{$ENDIF}
 
7452
 
 
7453
class function CoLargeInteger.Create: IADsLargeInteger;
 
7454
begin
 
7455
  Result := CreateComObject(CLASS_LargeInteger) as IADsLargeInteger;
 
7456
end;
 
7457
 
 
7458
class function CoLargeInteger.CreateRemote(const MachineName: string): IADsLargeInteger;
 
7459
begin
 
7460
  Result := CreateRemoteComObject(MachineName, CLASS_LargeInteger) as IADsLargeInteger;
 
7461
end;
 
7462
 
 
7463
procedure TLargeInteger.InitServerData;
 
7464
const
 
7465
  CServerData: TServerData = (
 
7466
    ClassID:   '{927971F5-0939-11D1-8BE1-00C04FD8D503}';
 
7467
    IntfIID:   '{9068270B-0939-11D1-8BE1-00C04FD8D503}';
 
7468
    EventIID:  '';
 
7469
    LicenseKey: nil;
 
7470
    Version: 500);
 
7471
begin
 
7472
  ServerData := @CServerData;
 
7473
end;
 
7474
 
 
7475
procedure TLargeInteger.Connect;
 
7476
var
 
7477
  punk: IUnknown;
 
7478
begin
 
7479
  if FIntf = nil then
 
7480
  begin
 
7481
    punk := GetServer;
 
7482
    Fintf:= punk as IADsLargeInteger;
 
7483
  end;
 
7484
end;
 
7485
 
 
7486
procedure TLargeInteger.ConnectTo(svrIntf: IADsLargeInteger);
 
7487
begin
 
7488
  Disconnect;
 
7489
  FIntf := svrIntf;
 
7490
end;
 
7491
 
 
7492
procedure TLargeInteger.DisConnect;
 
7493
begin
 
7494
  if Fintf <> nil then
 
7495
  begin
 
7496
    FIntf := nil;
 
7497
  end;
 
7498
end;
 
7499
 
 
7500
function TLargeInteger.GetDefaultInterface: IADsLargeInteger;
 
7501
begin
 
7502
  if FIntf = nil then
 
7503
    Connect;
 
7504
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7505
  Result := FIntf;
 
7506
end;
 
7507
 
 
7508
constructor TLargeInteger.Create(AOwner: TComponent);
 
7509
begin
 
7510
  inherited Create(AOwner);
 
7511
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7512
  FProps := TLargeIntegerProperties.Create(Self);
 
7513
{$ENDIF}
 
7514
end;
 
7515
 
 
7516
destructor TLargeInteger.Destroy;
 
7517
begin
 
7518
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7519
  FProps.Free;
 
7520
{$ENDIF}
 
7521
  inherited Destroy;
 
7522
end;
 
7523
 
 
7524
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7525
function TLargeInteger.GetServerProperties: TLargeIntegerProperties;
 
7526
begin
 
7527
  Result := FProps;
 
7528
end;
 
7529
{$ENDIF}
 
7530
 
 
7531
function  TLargeInteger.Get_HighPart: Integer;
 
7532
begin
 
7533
  Result := DefaultInterface.Get_HighPart;
 
7534
end;
 
7535
 
 
7536
procedure TLargeInteger.Set_HighPart(retval: Integer);
 
7537
begin
 
7538
  DefaultInterface.Set_HighPart(retval);
 
7539
end;
 
7540
 
 
7541
function  TLargeInteger.Get_LowPart: Integer;
 
7542
begin
 
7543
  Result := DefaultInterface.Get_LowPart;
 
7544
end;
 
7545
 
 
7546
procedure TLargeInteger.Set_LowPart(retval: Integer);
 
7547
begin
 
7548
  DefaultInterface.Set_LowPart(retval);
 
7549
end;
 
7550
 
 
7551
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7552
constructor TLargeIntegerProperties.Create(AServer: TLargeInteger);
 
7553
begin
 
7554
  inherited Create;
 
7555
  FServer := AServer;
 
7556
end;
 
7557
 
 
7558
function TLargeIntegerProperties.GetDefaultInterface: IADsLargeInteger;
 
7559
begin
 
7560
  Result := FServer.DefaultInterface;
 
7561
end;
 
7562
 
 
7563
function  TLargeIntegerProperties.Get_HighPart: Integer;
 
7564
begin
 
7565
  Result := DefaultInterface.Get_HighPart;
 
7566
end;
 
7567
 
 
7568
procedure TLargeIntegerProperties.Set_HighPart(retval: Integer);
 
7569
begin
 
7570
  DefaultInterface.Set_HighPart(retval);
 
7571
end;
 
7572
 
 
7573
function  TLargeIntegerProperties.Get_LowPart: Integer;
 
7574
begin
 
7575
  Result := DefaultInterface.Get_LowPart;
 
7576
end;
 
7577
 
 
7578
procedure TLargeIntegerProperties.Set_LowPart(retval: Integer);
 
7579
begin
 
7580
  DefaultInterface.Set_LowPart(retval);
 
7581
end;
 
7582
 
 
7583
{$ENDIF}
 
7584
 
 
7585
class function CoNameTranslate.Create: IADsNameTranslate;
 
7586
begin
 
7587
  Result := CreateComObject(CLASS_NameTranslate) as IADsNameTranslate;
 
7588
end;
 
7589
 
 
7590
class function CoNameTranslate.CreateRemote(const MachineName: string): IADsNameTranslate;
 
7591
begin
 
7592
  Result := CreateRemoteComObject(MachineName, CLASS_NameTranslate) as IADsNameTranslate;
 
7593
end;
 
7594
 
 
7595
procedure TNameTranslate.InitServerData;
 
7596
const
 
7597
  CServerData: TServerData = (
 
7598
    ClassID:   '{274FAE1F-3626-11D1-A3A4-00C04FB950DC}';
 
7599
    IntfIID:   '{B1B272A3-3625-11D1-A3A4-00C04FB950DC}';
 
7600
    EventIID:  '';
 
7601
    LicenseKey: nil;
 
7602
    Version: 500);
 
7603
begin
 
7604
  ServerData := @CServerData;
 
7605
end;
 
7606
 
 
7607
procedure TNameTranslate.Connect;
 
7608
var
 
7609
  punk: IUnknown;
 
7610
begin
 
7611
  if FIntf = nil then
 
7612
  begin
 
7613
    punk := GetServer;
 
7614
    Fintf:= punk as IADsNameTranslate;
 
7615
  end;
 
7616
end;
 
7617
 
 
7618
procedure TNameTranslate.ConnectTo(svrIntf: IADsNameTranslate);
 
7619
begin
 
7620
  Disconnect;
 
7621
  FIntf := svrIntf;
 
7622
end;
 
7623
 
 
7624
procedure TNameTranslate.DisConnect;
 
7625
begin
 
7626
  if Fintf <> nil then
 
7627
  begin
 
7628
    FIntf := nil;
 
7629
  end;
 
7630
end;
 
7631
 
 
7632
function TNameTranslate.GetDefaultInterface: IADsNameTranslate;
 
7633
begin
 
7634
  if FIntf = nil then
 
7635
    Connect;
 
7636
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7637
  Result := FIntf;
 
7638
end;
 
7639
 
 
7640
constructor TNameTranslate.Create(AOwner: TComponent);
 
7641
begin
 
7642
  inherited Create(AOwner);
 
7643
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7644
  FProps := TNameTranslateProperties.Create(Self);
 
7645
{$ENDIF}
 
7646
end;
 
7647
 
 
7648
destructor TNameTranslate.Destroy;
 
7649
begin
 
7650
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7651
  FProps.Free;
 
7652
{$ENDIF}
 
7653
  inherited Destroy;
 
7654
end;
 
7655
 
 
7656
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7657
function TNameTranslate.GetServerProperties: TNameTranslateProperties;
 
7658
begin
 
7659
  Result := FProps;
 
7660
end;
 
7661
{$ENDIF}
 
7662
 
 
7663
procedure TNameTranslate.Set_ChaseReferral(Param1: Integer);
 
7664
begin
 
7665
  DefaultInterface.Set_ChaseReferral(Param1);
 
7666
end;
 
7667
 
 
7668
procedure TNameTranslate.Init(lnSetType: Integer; const bstrADsPath: WideString);
 
7669
begin
 
7670
  DefaultInterface.Init(lnSetType, bstrADsPath);
 
7671
end;
 
7672
 
 
7673
procedure TNameTranslate.InitEx(lnSetType: Integer; const bstrADsPath: WideString;
 
7674
                                const bstrUserID: WideString; const bstrDomain: WideString;
 
7675
                                const bstrPassword: WideString);
 
7676
begin
 
7677
  DefaultInterface.InitEx(lnSetType, bstrADsPath, bstrUserID, bstrDomain, bstrPassword);
 
7678
end;
 
7679
 
 
7680
procedure TNameTranslate.Set_(lnSetType: Integer; const bstrADsPath: WideString);
 
7681
begin
 
7682
  DefaultInterface.Set_(lnSetType, bstrADsPath);
 
7683
end;
 
7684
 
 
7685
function  TNameTranslate.Get(lnFormatType: Integer): WideString;
 
7686
begin
 
7687
  Result := DefaultInterface.Get(lnFormatType);
 
7688
end;
 
7689
 
 
7690
procedure TNameTranslate.SetEx(lnFormatType: Integer; pVar: OleVariant);
 
7691
begin
 
7692
  DefaultInterface.SetEx(lnFormatType, pVar);
 
7693
end;
 
7694
 
 
7695
function  TNameTranslate.GetEx(lnFormatType: Integer): OleVariant;
 
7696
begin
 
7697
  Result := DefaultInterface.GetEx(lnFormatType);
 
7698
end;
 
7699
 
 
7700
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7701
constructor TNameTranslateProperties.Create(AServer: TNameTranslate);
 
7702
begin
 
7703
  inherited Create;
 
7704
  FServer := AServer;
 
7705
end;
 
7706
 
 
7707
function TNameTranslateProperties.GetDefaultInterface: IADsNameTranslate;
 
7708
begin
 
7709
  Result := FServer.DefaultInterface;
 
7710
end;
 
7711
 
 
7712
procedure TNameTranslateProperties.Set_ChaseReferral(Param1: Integer);
 
7713
begin
 
7714
  DefaultInterface.Set_ChaseReferral(Param1);
 
7715
end;
 
7716
 
 
7717
{$ENDIF}
 
7718
 
 
7719
class function CoCaseIgnoreList.Create: IADsCaseIgnoreList;
 
7720
begin
 
7721
  Result := CreateComObject(CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
 
7722
end;
 
7723
 
 
7724
class function CoCaseIgnoreList.CreateRemote(const MachineName: string): IADsCaseIgnoreList;
 
7725
begin
 
7726
  Result := CreateRemoteComObject(MachineName, CLASS_CaseIgnoreList) as IADsCaseIgnoreList;
 
7727
end;
 
7728
 
 
7729
procedure TCaseIgnoreList.InitServerData;
 
7730
const
 
7731
  CServerData: TServerData = (
 
7732
    ClassID:   '{15F88A55-4680-11D1-A3B4-00C04FB950DC}';
 
7733
    IntfIID:   '{7B66B533-4680-11D1-A3B4-00C04FB950DC}';
 
7734
    EventIID:  '';
 
7735
    LicenseKey: nil;
 
7736
    Version: 500);
 
7737
begin
 
7738
  ServerData := @CServerData;
 
7739
end;
 
7740
 
 
7741
procedure TCaseIgnoreList.Connect;
 
7742
var
 
7743
  punk: IUnknown;
 
7744
begin
 
7745
  if FIntf = nil then
 
7746
  begin
 
7747
    punk := GetServer;
 
7748
    Fintf:= punk as IADsCaseIgnoreList;
 
7749
  end;
 
7750
end;
 
7751
 
 
7752
procedure TCaseIgnoreList.ConnectTo(svrIntf: IADsCaseIgnoreList);
 
7753
begin
 
7754
  Disconnect;
 
7755
  FIntf := svrIntf;
 
7756
end;
 
7757
 
 
7758
procedure TCaseIgnoreList.DisConnect;
 
7759
begin
 
7760
  if Fintf <> nil then
 
7761
  begin
 
7762
    FIntf := nil;
 
7763
  end;
 
7764
end;
 
7765
 
 
7766
function TCaseIgnoreList.GetDefaultInterface: IADsCaseIgnoreList;
 
7767
begin
 
7768
  if FIntf = nil then
 
7769
    Connect;
 
7770
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7771
  Result := FIntf;
 
7772
end;
 
7773
 
 
7774
constructor TCaseIgnoreList.Create(AOwner: TComponent);
 
7775
begin
 
7776
  inherited Create(AOwner);
 
7777
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7778
  FProps := TCaseIgnoreListProperties.Create(Self);
 
7779
{$ENDIF}
 
7780
end;
 
7781
 
 
7782
destructor TCaseIgnoreList.Destroy;
 
7783
begin
 
7784
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7785
  FProps.Free;
 
7786
{$ENDIF}
 
7787
  inherited Destroy;
 
7788
end;
 
7789
 
 
7790
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7791
function TCaseIgnoreList.GetServerProperties: TCaseIgnoreListProperties;
 
7792
begin
 
7793
  Result := FProps;
 
7794
end;
 
7795
{$ENDIF}
 
7796
 
 
7797
function  TCaseIgnoreList.Get_CaseIgnoreList: OleVariant;
 
7798
begin
 
7799
  Result := DefaultInterface.Get_CaseIgnoreList;
 
7800
end;
 
7801
 
 
7802
procedure TCaseIgnoreList.Set_CaseIgnoreList(retval: OleVariant);
 
7803
begin
 
7804
  DefaultInterface.Set_CaseIgnoreList(retval);
 
7805
end;
 
7806
 
 
7807
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7808
constructor TCaseIgnoreListProperties.Create(AServer: TCaseIgnoreList);
 
7809
begin
 
7810
  inherited Create;
 
7811
  FServer := AServer;
 
7812
end;
 
7813
 
 
7814
function TCaseIgnoreListProperties.GetDefaultInterface: IADsCaseIgnoreList;
 
7815
begin
 
7816
  Result := FServer.DefaultInterface;
 
7817
end;
 
7818
 
 
7819
function  TCaseIgnoreListProperties.Get_CaseIgnoreList: OleVariant;
 
7820
begin
 
7821
  Result := DefaultInterface.Get_CaseIgnoreList;
 
7822
end;
 
7823
 
 
7824
procedure TCaseIgnoreListProperties.Set_CaseIgnoreList(retval: OleVariant);
 
7825
begin
 
7826
  DefaultInterface.Set_CaseIgnoreList(retval);
 
7827
end;
 
7828
 
 
7829
{$ENDIF}
 
7830
 
 
7831
class function CoFaxNumber.Create: IADsFaxNumber;
 
7832
begin
 
7833
  Result := CreateComObject(CLASS_FaxNumber) as IADsFaxNumber;
 
7834
end;
 
7835
 
 
7836
class function CoFaxNumber.CreateRemote(const MachineName: string): IADsFaxNumber;
 
7837
begin
 
7838
  Result := CreateRemoteComObject(MachineName, CLASS_FaxNumber) as IADsFaxNumber;
 
7839
end;
 
7840
 
 
7841
procedure TFaxNumber.InitServerData;
 
7842
const
 
7843
  CServerData: TServerData = (
 
7844
    ClassID:   '{A5062215-4681-11D1-A3B4-00C04FB950DC}';
 
7845
    IntfIID:   '{A910DEA9-4680-11D1-A3B4-00C04FB950DC}';
 
7846
    EventIID:  '';
 
7847
    LicenseKey: nil;
 
7848
    Version: 500);
 
7849
begin
 
7850
  ServerData := @CServerData;
 
7851
end;
 
7852
 
 
7853
procedure TFaxNumber.Connect;
 
7854
var
 
7855
  punk: IUnknown;
 
7856
begin
 
7857
  if FIntf = nil then
 
7858
  begin
 
7859
    punk := GetServer;
 
7860
    Fintf:= punk as IADsFaxNumber;
 
7861
  end;
 
7862
end;
 
7863
 
 
7864
procedure TFaxNumber.ConnectTo(svrIntf: IADsFaxNumber);
 
7865
begin
 
7866
  Disconnect;
 
7867
  FIntf := svrIntf;
 
7868
end;
 
7869
 
 
7870
procedure TFaxNumber.DisConnect;
 
7871
begin
 
7872
  if Fintf <> nil then
 
7873
  begin
 
7874
    FIntf := nil;
 
7875
  end;
 
7876
end;
 
7877
 
 
7878
function TFaxNumber.GetDefaultInterface: IADsFaxNumber;
 
7879
begin
 
7880
  if FIntf = nil then
 
7881
    Connect;
 
7882
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
7883
  Result := FIntf;
 
7884
end;
 
7885
 
 
7886
constructor TFaxNumber.Create(AOwner: TComponent);
 
7887
begin
 
7888
  inherited Create(AOwner);
 
7889
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7890
  FProps := TFaxNumberProperties.Create(Self);
 
7891
{$ENDIF}
 
7892
end;
 
7893
 
 
7894
destructor TFaxNumber.Destroy;
 
7895
begin
 
7896
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7897
  FProps.Free;
 
7898
{$ENDIF}
 
7899
  inherited Destroy;
 
7900
end;
 
7901
 
 
7902
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7903
function TFaxNumber.GetServerProperties: TFaxNumberProperties;
 
7904
begin
 
7905
  Result := FProps;
 
7906
end;
 
7907
{$ENDIF}
 
7908
 
 
7909
function  TFaxNumber.Get_TelephoneNumber: WideString;
 
7910
begin
 
7911
  Result := DefaultInterface.Get_TelephoneNumber;
 
7912
end;
 
7913
 
 
7914
procedure TFaxNumber.Set_TelephoneNumber(const retval: WideString);
 
7915
begin
 
7916
  DefaultInterface.Set_TelephoneNumber(retval);
 
7917
end;
 
7918
 
 
7919
function  TFaxNumber.Get_Parameters: OleVariant;
 
7920
begin
 
7921
  Result := DefaultInterface.Get_Parameters;
 
7922
end;
 
7923
 
 
7924
procedure TFaxNumber.Set_Parameters(retval: OleVariant);
 
7925
begin
 
7926
  DefaultInterface.Set_Parameters(retval);
 
7927
end;
 
7928
 
 
7929
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
7930
constructor TFaxNumberProperties.Create(AServer: TFaxNumber);
 
7931
begin
 
7932
  inherited Create;
 
7933
  FServer := AServer;
 
7934
end;
 
7935
 
 
7936
function TFaxNumberProperties.GetDefaultInterface: IADsFaxNumber;
 
7937
begin
 
7938
  Result := FServer.DefaultInterface;
 
7939
end;
 
7940
 
 
7941
function  TFaxNumberProperties.Get_TelephoneNumber: WideString;
 
7942
begin
 
7943
  Result := DefaultInterface.Get_TelephoneNumber;
 
7944
end;
 
7945
 
 
7946
procedure TFaxNumberProperties.Set_TelephoneNumber(const retval: WideString);
 
7947
begin
 
7948
  DefaultInterface.Set_TelephoneNumber(retval);
 
7949
end;
 
7950
 
 
7951
function  TFaxNumberProperties.Get_Parameters: OleVariant;
 
7952
begin
 
7953
  Result := DefaultInterface.Get_Parameters;
 
7954
end;
 
7955
 
 
7956
procedure TFaxNumberProperties.Set_Parameters(retval: OleVariant);
 
7957
begin
 
7958
  DefaultInterface.Set_Parameters(retval);
 
7959
end;
 
7960
 
 
7961
{$ENDIF}
 
7962
 
 
7963
class function CoNetAddress.Create: IADsNetAddress;
 
7964
begin
 
7965
  Result := CreateComObject(CLASS_NetAddress) as IADsNetAddress;
 
7966
end;
 
7967
 
 
7968
class function CoNetAddress.CreateRemote(const MachineName: string): IADsNetAddress;
 
7969
begin
 
7970
  Result := CreateRemoteComObject(MachineName, CLASS_NetAddress) as IADsNetAddress;
 
7971
end;
 
7972
 
 
7973
procedure TNetAddress.InitServerData;
 
7974
const
 
7975
  CServerData: TServerData = (
 
7976
    ClassID:   '{B0B71247-4080-11D1-A3AC-00C04FB950DC}';
 
7977
    IntfIID:   '{B21A50A9-4080-11D1-A3AC-00C04FB950DC}';
 
7978
    EventIID:  '';
 
7979
    LicenseKey: nil;
 
7980
    Version: 500);
 
7981
begin
 
7982
  ServerData := @CServerData;
 
7983
end;
 
7984
 
 
7985
procedure TNetAddress.Connect;
 
7986
var
 
7987
  punk: IUnknown;
 
7988
begin
 
7989
  if FIntf = nil then
 
7990
  begin
 
7991
    punk := GetServer;
 
7992
    Fintf:= punk as IADsNetAddress;
 
7993
  end;
 
7994
end;
 
7995
 
 
7996
procedure TNetAddress.ConnectTo(svrIntf: IADsNetAddress);
 
7997
begin
 
7998
  Disconnect;
 
7999
  FIntf := svrIntf;
 
8000
end;
 
8001
 
 
8002
procedure TNetAddress.DisConnect;
 
8003
begin
 
8004
  if Fintf <> nil then
 
8005
  begin
 
8006
    FIntf := nil;
 
8007
  end;
 
8008
end;
 
8009
 
 
8010
function TNetAddress.GetDefaultInterface: IADsNetAddress;
 
8011
begin
 
8012
  if FIntf = nil then
 
8013
    Connect;
 
8014
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8015
  Result := FIntf;
 
8016
end;
 
8017
 
 
8018
constructor TNetAddress.Create(AOwner: TComponent);
 
8019
begin
 
8020
  inherited Create(AOwner);
 
8021
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8022
  FProps := TNetAddressProperties.Create(Self);
 
8023
{$ENDIF}
 
8024
end;
 
8025
 
 
8026
destructor TNetAddress.Destroy;
 
8027
begin
 
8028
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8029
  FProps.Free;
 
8030
{$ENDIF}
 
8031
  inherited Destroy;
 
8032
end;
 
8033
 
 
8034
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8035
function TNetAddress.GetServerProperties: TNetAddressProperties;
 
8036
begin
 
8037
  Result := FProps;
 
8038
end;
 
8039
{$ENDIF}
 
8040
 
 
8041
function  TNetAddress.Get_AddressType: Integer;
 
8042
begin
 
8043
  Result := DefaultInterface.Get_AddressType;
 
8044
end;
 
8045
 
 
8046
procedure TNetAddress.Set_AddressType(retval: Integer);
 
8047
begin
 
8048
  DefaultInterface.Set_AddressType(retval);
 
8049
end;
 
8050
 
 
8051
function  TNetAddress.Get_Address: OleVariant;
 
8052
begin
 
8053
  Result := DefaultInterface.Get_Address;
 
8054
end;
 
8055
 
 
8056
procedure TNetAddress.Set_Address(retval: OleVariant);
 
8057
begin
 
8058
  DefaultInterface.Set_Address(retval);
 
8059
end;
 
8060
 
 
8061
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8062
constructor TNetAddressProperties.Create(AServer: TNetAddress);
 
8063
begin
 
8064
  inherited Create;
 
8065
  FServer := AServer;
 
8066
end;
 
8067
 
 
8068
function TNetAddressProperties.GetDefaultInterface: IADsNetAddress;
 
8069
begin
 
8070
  Result := FServer.DefaultInterface;
 
8071
end;
 
8072
 
 
8073
function  TNetAddressProperties.Get_AddressType: Integer;
 
8074
begin
 
8075
  Result := DefaultInterface.Get_AddressType;
 
8076
end;
 
8077
 
 
8078
procedure TNetAddressProperties.Set_AddressType(retval: Integer);
 
8079
begin
 
8080
  DefaultInterface.Set_AddressType(retval);
 
8081
end;
 
8082
 
 
8083
function  TNetAddressProperties.Get_Address: OleVariant;
 
8084
begin
 
8085
  Result := DefaultInterface.Get_Address;
 
8086
end;
 
8087
 
 
8088
procedure TNetAddressProperties.Set_Address(retval: OleVariant);
 
8089
begin
 
8090
  DefaultInterface.Set_Address(retval);
 
8091
end;
 
8092
 
 
8093
{$ENDIF}
 
8094
 
 
8095
class function CoOctetList.Create: IADsOctetList;
 
8096
begin
 
8097
  Result := CreateComObject(CLASS_OctetList) as IADsOctetList;
 
8098
end;
 
8099
 
 
8100
class function CoOctetList.CreateRemote(const MachineName: string): IADsOctetList;
 
8101
begin
 
8102
  Result := CreateRemoteComObject(MachineName, CLASS_OctetList) as IADsOctetList;
 
8103
end;
 
8104
 
 
8105
procedure TOctetList.InitServerData;
 
8106
const
 
8107
  CServerData: TServerData = (
 
8108
    ClassID:   '{1241400F-4680-11D1-A3B4-00C04FB950DC}';
 
8109
    IntfIID:   '{7B28B80F-4680-11D1-A3B4-00C04FB950DC}';
 
8110
    EventIID:  '';
 
8111
    LicenseKey: nil;
 
8112
    Version: 500);
 
8113
begin
 
8114
  ServerData := @CServerData;
 
8115
end;
 
8116
 
 
8117
procedure TOctetList.Connect;
 
8118
var
 
8119
  punk: IUnknown;
 
8120
begin
 
8121
  if FIntf = nil then
 
8122
  begin
 
8123
    punk := GetServer;
 
8124
    Fintf:= punk as IADsOctetList;
 
8125
  end;
 
8126
end;
 
8127
 
 
8128
procedure TOctetList.ConnectTo(svrIntf: IADsOctetList);
 
8129
begin
 
8130
  Disconnect;
 
8131
  FIntf := svrIntf;
 
8132
end;
 
8133
 
 
8134
procedure TOctetList.DisConnect;
 
8135
begin
 
8136
  if Fintf <> nil then
 
8137
  begin
 
8138
    FIntf := nil;
 
8139
  end;
 
8140
end;
 
8141
 
 
8142
function TOctetList.GetDefaultInterface: IADsOctetList;
 
8143
begin
 
8144
  if FIntf = nil then
 
8145
    Connect;
 
8146
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8147
  Result := FIntf;
 
8148
end;
 
8149
 
 
8150
constructor TOctetList.Create(AOwner: TComponent);
 
8151
begin
 
8152
  inherited Create(AOwner);
 
8153
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8154
  FProps := TOctetListProperties.Create(Self);
 
8155
{$ENDIF}
 
8156
end;
 
8157
 
 
8158
destructor TOctetList.Destroy;
 
8159
begin
 
8160
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8161
  FProps.Free;
 
8162
{$ENDIF}
 
8163
  inherited Destroy;
 
8164
end;
 
8165
 
 
8166
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8167
function TOctetList.GetServerProperties: TOctetListProperties;
 
8168
begin
 
8169
  Result := FProps;
 
8170
end;
 
8171
{$ENDIF}
 
8172
 
 
8173
function  TOctetList.Get_OctetList: OleVariant;
 
8174
begin
 
8175
  Result := DefaultInterface.Get_OctetList;
 
8176
end;
 
8177
 
 
8178
procedure TOctetList.Set_OctetList(retval: OleVariant);
 
8179
begin
 
8180
  DefaultInterface.Set_OctetList(retval);
 
8181
end;
 
8182
 
 
8183
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8184
constructor TOctetListProperties.Create(AServer: TOctetList);
 
8185
begin
 
8186
  inherited Create;
 
8187
  FServer := AServer;
 
8188
end;
 
8189
 
 
8190
function TOctetListProperties.GetDefaultInterface: IADsOctetList;
 
8191
begin
 
8192
  Result := FServer.DefaultInterface;
 
8193
end;
 
8194
 
 
8195
function  TOctetListProperties.Get_OctetList: OleVariant;
 
8196
begin
 
8197
  Result := DefaultInterface.Get_OctetList;
 
8198
end;
 
8199
 
 
8200
procedure TOctetListProperties.Set_OctetList(retval: OleVariant);
 
8201
begin
 
8202
  DefaultInterface.Set_OctetList(retval);
 
8203
end;
 
8204
 
 
8205
{$ENDIF}
 
8206
 
 
8207
class function CoEmail.Create: IADsEmail;
 
8208
begin
 
8209
  Result := CreateComObject(CLASS_Email) as IADsEmail;
 
8210
end;
 
8211
 
 
8212
class function CoEmail.CreateRemote(const MachineName: string): IADsEmail;
 
8213
begin
 
8214
  Result := CreateRemoteComObject(MachineName, CLASS_Email) as IADsEmail;
 
8215
end;
 
8216
 
 
8217
procedure TEmail.InitServerData;
 
8218
const
 
8219
  CServerData: TServerData = (
 
8220
    ClassID:   '{8F92A857-478E-11D1-A3B4-00C04FB950DC}';
 
8221
    IntfIID:   '{97AF011A-478E-11D1-A3B4-00C04FB950DC}';
 
8222
    EventIID:  '';
 
8223
    LicenseKey: nil;
 
8224
    Version: 500);
 
8225
begin
 
8226
  ServerData := @CServerData;
 
8227
end;
 
8228
 
 
8229
procedure TEmail.Connect;
 
8230
var
 
8231
  punk: IUnknown;
 
8232
begin
 
8233
  if FIntf = nil then
 
8234
  begin
 
8235
    punk := GetServer;
 
8236
    Fintf:= punk as IADsEmail;
 
8237
  end;
 
8238
end;
 
8239
 
 
8240
procedure TEmail.ConnectTo(svrIntf: IADsEmail);
 
8241
begin
 
8242
  Disconnect;
 
8243
  FIntf := svrIntf;
 
8244
end;
 
8245
 
 
8246
procedure TEmail.DisConnect;
 
8247
begin
 
8248
  if Fintf <> nil then
 
8249
  begin
 
8250
    FIntf := nil;
 
8251
  end;
 
8252
end;
 
8253
 
 
8254
function TEmail.GetDefaultInterface: IADsEmail;
 
8255
begin
 
8256
  if FIntf = nil then
 
8257
    Connect;
 
8258
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8259
  Result := FIntf;
 
8260
end;
 
8261
 
 
8262
constructor TEmail.Create(AOwner: TComponent);
 
8263
begin
 
8264
  inherited Create(AOwner);
 
8265
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8266
  FProps := TEmailProperties.Create(Self);
 
8267
{$ENDIF}
 
8268
end;
 
8269
 
 
8270
destructor TEmail.Destroy;
 
8271
begin
 
8272
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8273
  FProps.Free;
 
8274
{$ENDIF}
 
8275
  inherited Destroy;
 
8276
end;
 
8277
 
 
8278
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8279
function TEmail.GetServerProperties: TEmailProperties;
 
8280
begin
 
8281
  Result := FProps;
 
8282
end;
 
8283
{$ENDIF}
 
8284
 
 
8285
function  TEmail.Get_Type_: Integer;
 
8286
begin
 
8287
  Result := DefaultInterface.Get_Type_;
 
8288
end;
 
8289
 
 
8290
procedure TEmail.Set_Type_(retval: Integer);
 
8291
begin
 
8292
  DefaultInterface.Set_Type_(retval);
 
8293
end;
 
8294
 
 
8295
function  TEmail.Get_Address: WideString;
 
8296
begin
 
8297
  Result := DefaultInterface.Get_Address;
 
8298
end;
 
8299
 
 
8300
procedure TEmail.Set_Address(const retval: WideString);
 
8301
begin
 
8302
  DefaultInterface.Set_Address(retval);
 
8303
end;
 
8304
 
 
8305
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8306
constructor TEmailProperties.Create(AServer: TEmail);
 
8307
begin
 
8308
  inherited Create;
 
8309
  FServer := AServer;
 
8310
end;
 
8311
 
 
8312
function TEmailProperties.GetDefaultInterface: IADsEmail;
 
8313
begin
 
8314
  Result := FServer.DefaultInterface;
 
8315
end;
 
8316
 
 
8317
function  TEmailProperties.Get_Type_: Integer;
 
8318
begin
 
8319
  Result := DefaultInterface.Get_Type_;
 
8320
end;
 
8321
 
 
8322
procedure TEmailProperties.Set_Type_(retval: Integer);
 
8323
begin
 
8324
  DefaultInterface.Set_Type_(retval);
 
8325
end;
 
8326
 
 
8327
function  TEmailProperties.Get_Address: WideString;
 
8328
begin
 
8329
  Result := DefaultInterface.Get_Address;
 
8330
end;
 
8331
 
 
8332
procedure TEmailProperties.Set_Address(const retval: WideString);
 
8333
begin
 
8334
  DefaultInterface.Set_Address(retval);
 
8335
end;
 
8336
 
 
8337
{$ENDIF}
 
8338
 
 
8339
class function CoPath.Create: IADsPath;
 
8340
begin
 
8341
  Result := CreateComObject(CLASS_Path) as IADsPath;
 
8342
end;
 
8343
 
 
8344
class function CoPath.CreateRemote(const MachineName: string): IADsPath;
 
8345
begin
 
8346
  Result := CreateRemoteComObject(MachineName, CLASS_Path) as IADsPath;
 
8347
end;
 
8348
 
 
8349
procedure TPath.InitServerData;
 
8350
const
 
8351
  CServerData: TServerData = (
 
8352
    ClassID:   '{B2538919-4080-11D1-A3AC-00C04FB950DC}';
 
8353
    IntfIID:   '{B287FCD5-4080-11D1-A3AC-00C04FB950DC}';
 
8354
    EventIID:  '';
 
8355
    LicenseKey: nil;
 
8356
    Version: 500);
 
8357
begin
 
8358
  ServerData := @CServerData;
 
8359
end;
 
8360
 
 
8361
procedure TPath.Connect;
 
8362
var
 
8363
  punk: IUnknown;
 
8364
begin
 
8365
  if FIntf = nil then
 
8366
  begin
 
8367
    punk := GetServer;
 
8368
    Fintf:= punk as IADsPath;
 
8369
  end;
 
8370
end;
 
8371
 
 
8372
procedure TPath.ConnectTo(svrIntf: IADsPath);
 
8373
begin
 
8374
  Disconnect;
 
8375
  FIntf := svrIntf;
 
8376
end;
 
8377
 
 
8378
procedure TPath.DisConnect;
 
8379
begin
 
8380
  if Fintf <> nil then
 
8381
  begin
 
8382
    FIntf := nil;
 
8383
  end;
 
8384
end;
 
8385
 
 
8386
function TPath.GetDefaultInterface: IADsPath;
 
8387
begin
 
8388
  if FIntf = nil then
 
8389
    Connect;
 
8390
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8391
  Result := FIntf;
 
8392
end;
 
8393
 
 
8394
constructor TPath.Create(AOwner: TComponent);
 
8395
begin
 
8396
  inherited Create(AOwner);
 
8397
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8398
  FProps := TPathProperties.Create(Self);
 
8399
{$ENDIF}
 
8400
end;
 
8401
 
 
8402
destructor TPath.Destroy;
 
8403
begin
 
8404
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8405
  FProps.Free;
 
8406
{$ENDIF}
 
8407
  inherited Destroy;
 
8408
end;
 
8409
 
 
8410
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8411
function TPath.GetServerProperties: TPathProperties;
 
8412
begin
 
8413
  Result := FProps;
 
8414
end;
 
8415
{$ENDIF}
 
8416
 
 
8417
function  TPath.Get_Type_: Integer;
 
8418
begin
 
8419
  Result := DefaultInterface.Get_Type_;
 
8420
end;
 
8421
 
 
8422
procedure TPath.Set_Type_(retval: Integer);
 
8423
begin
 
8424
  DefaultInterface.Set_Type_(retval);
 
8425
end;
 
8426
 
 
8427
function  TPath.Get_VolumeName: WideString;
 
8428
begin
 
8429
  Result := DefaultInterface.Get_VolumeName;
 
8430
end;
 
8431
 
 
8432
procedure TPath.Set_VolumeName(const retval: WideString);
 
8433
begin
 
8434
  DefaultInterface.Set_VolumeName(retval);
 
8435
end;
 
8436
 
 
8437
function  TPath.Get_Path: WideString;
 
8438
begin
 
8439
  Result := DefaultInterface.Get_Path;
 
8440
end;
 
8441
 
 
8442
procedure TPath.Set_Path(const retval: WideString);
 
8443
begin
 
8444
  DefaultInterface.Set_Path(retval);
 
8445
end;
 
8446
 
 
8447
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8448
constructor TPathProperties.Create(AServer: TPath);
 
8449
begin
 
8450
  inherited Create;
 
8451
  FServer := AServer;
 
8452
end;
 
8453
 
 
8454
function TPathProperties.GetDefaultInterface: IADsPath;
 
8455
begin
 
8456
  Result := FServer.DefaultInterface;
 
8457
end;
 
8458
 
 
8459
function  TPathProperties.Get_Type_: Integer;
 
8460
begin
 
8461
  Result := DefaultInterface.Get_Type_;
 
8462
end;
 
8463
 
 
8464
procedure TPathProperties.Set_Type_(retval: Integer);
 
8465
begin
 
8466
  DefaultInterface.Set_Type_(retval);
 
8467
end;
 
8468
 
 
8469
function  TPathProperties.Get_VolumeName: WideString;
 
8470
begin
 
8471
  Result := DefaultInterface.Get_VolumeName;
 
8472
end;
 
8473
 
 
8474
procedure TPathProperties.Set_VolumeName(const retval: WideString);
 
8475
begin
 
8476
  DefaultInterface.Set_VolumeName(retval);
 
8477
end;
 
8478
 
 
8479
function  TPathProperties.Get_Path: WideString;
 
8480
begin
 
8481
  Result := DefaultInterface.Get_Path;
 
8482
end;
 
8483
 
 
8484
procedure TPathProperties.Set_Path(const retval: WideString);
 
8485
begin
 
8486
  DefaultInterface.Set_Path(retval);
 
8487
end;
 
8488
 
 
8489
{$ENDIF}
 
8490
 
 
8491
class function CoReplicaPointer.Create: IADsReplicaPointer;
 
8492
begin
 
8493
  Result := CreateComObject(CLASS_ReplicaPointer) as IADsReplicaPointer;
 
8494
end;
 
8495
 
 
8496
class function CoReplicaPointer.CreateRemote(const MachineName: string): IADsReplicaPointer;
 
8497
begin
 
8498
  Result := CreateRemoteComObject(MachineName, CLASS_ReplicaPointer) as IADsReplicaPointer;
 
8499
end;
 
8500
 
 
8501
procedure TReplicaPointer.InitServerData;
 
8502
const
 
8503
  CServerData: TServerData = (
 
8504
    ClassID:   '{F5D1BADF-4080-11D1-A3AC-00C04FB950DC}';
 
8505
    IntfIID:   '{F60FB803-4080-11D1-A3AC-00C04FB950DC}';
 
8506
    EventIID:  '';
 
8507
    LicenseKey: nil;
 
8508
    Version: 500);
 
8509
begin
 
8510
  ServerData := @CServerData;
 
8511
end;
 
8512
 
 
8513
procedure TReplicaPointer.Connect;
 
8514
var
 
8515
  punk: IUnknown;
 
8516
begin
 
8517
  if FIntf = nil then
 
8518
  begin
 
8519
    punk := GetServer;
 
8520
    Fintf:= punk as IADsReplicaPointer;
 
8521
  end;
 
8522
end;
 
8523
 
 
8524
procedure TReplicaPointer.ConnectTo(svrIntf: IADsReplicaPointer);
 
8525
begin
 
8526
  Disconnect;
 
8527
  FIntf := svrIntf;
 
8528
end;
 
8529
 
 
8530
procedure TReplicaPointer.DisConnect;
 
8531
begin
 
8532
  if Fintf <> nil then
 
8533
  begin
 
8534
    FIntf := nil;
 
8535
  end;
 
8536
end;
 
8537
 
 
8538
function TReplicaPointer.GetDefaultInterface: IADsReplicaPointer;
 
8539
begin
 
8540
  if FIntf = nil then
 
8541
    Connect;
 
8542
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8543
  Result := FIntf;
 
8544
end;
 
8545
 
 
8546
constructor TReplicaPointer.Create(AOwner: TComponent);
 
8547
begin
 
8548
  inherited Create(AOwner);
 
8549
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8550
  FProps := TReplicaPointerProperties.Create(Self);
 
8551
{$ENDIF}
 
8552
end;
 
8553
 
 
8554
destructor TReplicaPointer.Destroy;
 
8555
begin
 
8556
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8557
  FProps.Free;
 
8558
{$ENDIF}
 
8559
  inherited Destroy;
 
8560
end;
 
8561
 
 
8562
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8563
function TReplicaPointer.GetServerProperties: TReplicaPointerProperties;
 
8564
begin
 
8565
  Result := FProps;
 
8566
end;
 
8567
{$ENDIF}
 
8568
 
 
8569
function  TReplicaPointer.Get_ServerName: WideString;
 
8570
begin
 
8571
  Result := DefaultInterface.Get_ServerName;
 
8572
end;
 
8573
 
 
8574
procedure TReplicaPointer.Set_ServerName(const retval: WideString);
 
8575
begin
 
8576
  DefaultInterface.Set_ServerName(retval);
 
8577
end;
 
8578
 
 
8579
function  TReplicaPointer.Get_ReplicaType: Integer;
 
8580
begin
 
8581
  Result := DefaultInterface.Get_ReplicaType;
 
8582
end;
 
8583
 
 
8584
procedure TReplicaPointer.Set_ReplicaType(retval: Integer);
 
8585
begin
 
8586
  DefaultInterface.Set_ReplicaType(retval);
 
8587
end;
 
8588
 
 
8589
function  TReplicaPointer.Get_ReplicaNumber: Integer;
 
8590
begin
 
8591
  Result := DefaultInterface.Get_ReplicaNumber;
 
8592
end;
 
8593
 
 
8594
procedure TReplicaPointer.Set_ReplicaNumber(retval: Integer);
 
8595
begin
 
8596
  DefaultInterface.Set_ReplicaNumber(retval);
 
8597
end;
 
8598
 
 
8599
function  TReplicaPointer.Get_Count: Integer;
 
8600
begin
 
8601
  Result := DefaultInterface.Get_Count;
 
8602
end;
 
8603
 
 
8604
procedure TReplicaPointer.Set_Count(retval: Integer);
 
8605
begin
 
8606
  DefaultInterface.Set_Count(retval);
 
8607
end;
 
8608
 
 
8609
function  TReplicaPointer.Get_ReplicaAddressHints: OleVariant;
 
8610
begin
 
8611
  Result := DefaultInterface.Get_ReplicaAddressHints;
 
8612
end;
 
8613
 
 
8614
procedure TReplicaPointer.Set_ReplicaAddressHints(retval: OleVariant);
 
8615
begin
 
8616
  DefaultInterface.Set_ReplicaAddressHints(retval);
 
8617
end;
 
8618
 
 
8619
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8620
constructor TReplicaPointerProperties.Create(AServer: TReplicaPointer);
 
8621
begin
 
8622
  inherited Create;
 
8623
  FServer := AServer;
 
8624
end;
 
8625
 
 
8626
function TReplicaPointerProperties.GetDefaultInterface: IADsReplicaPointer;
 
8627
begin
 
8628
  Result := FServer.DefaultInterface;
 
8629
end;
 
8630
 
 
8631
function  TReplicaPointerProperties.Get_ServerName: WideString;
 
8632
begin
 
8633
  Result := DefaultInterface.Get_ServerName;
 
8634
end;
 
8635
 
 
8636
procedure TReplicaPointerProperties.Set_ServerName(const retval: WideString);
 
8637
begin
 
8638
  DefaultInterface.Set_ServerName(retval);
 
8639
end;
 
8640
 
 
8641
function  TReplicaPointerProperties.Get_ReplicaType: Integer;
 
8642
begin
 
8643
  Result := DefaultInterface.Get_ReplicaType;
 
8644
end;
 
8645
 
 
8646
procedure TReplicaPointerProperties.Set_ReplicaType(retval: Integer);
 
8647
begin
 
8648
  DefaultInterface.Set_ReplicaType(retval);
 
8649
end;
 
8650
 
 
8651
function  TReplicaPointerProperties.Get_ReplicaNumber: Integer;
 
8652
begin
 
8653
  Result := DefaultInterface.Get_ReplicaNumber;
 
8654
end;
 
8655
 
 
8656
procedure TReplicaPointerProperties.Set_ReplicaNumber(retval: Integer);
 
8657
begin
 
8658
  DefaultInterface.Set_ReplicaNumber(retval);
 
8659
end;
 
8660
 
 
8661
function  TReplicaPointerProperties.Get_Count: Integer;
 
8662
begin
 
8663
  Result := DefaultInterface.Get_Count;
 
8664
end;
 
8665
 
 
8666
procedure TReplicaPointerProperties.Set_Count(retval: Integer);
 
8667
begin
 
8668
  DefaultInterface.Set_Count(retval);
 
8669
end;
 
8670
 
 
8671
function  TReplicaPointerProperties.Get_ReplicaAddressHints: OleVariant;
 
8672
begin
 
8673
  Result := DefaultInterface.Get_ReplicaAddressHints;
 
8674
end;
 
8675
 
 
8676
procedure TReplicaPointerProperties.Set_ReplicaAddressHints(retval: OleVariant);
 
8677
begin
 
8678
  DefaultInterface.Set_ReplicaAddressHints(retval);
 
8679
end;
 
8680
 
 
8681
{$ENDIF}
 
8682
 
 
8683
class function CoAcl.Create: IADsAcl;
 
8684
begin
 
8685
  Result := CreateComObject(CLASS_Acl) as IADsAcl;
 
8686
end;
 
8687
 
 
8688
class function CoAcl.CreateRemote(const MachineName: string): IADsAcl;
 
8689
begin
 
8690
  Result := CreateRemoteComObject(MachineName, CLASS_Acl) as IADsAcl;
 
8691
end;
 
8692
 
 
8693
procedure TAcl.InitServerData;
 
8694
const
 
8695
  CServerData: TServerData = (
 
8696
    ClassID:   '{7AF1EFB6-0869-11D1-A377-00C04FB950DC}';
 
8697
    IntfIID:   '{8452D3AB-0869-11D1-A377-00C04FB950DC}';
 
8698
    EventIID:  '';
 
8699
    LicenseKey: nil;
 
8700
    Version: 500);
 
8701
begin
 
8702
  ServerData := @CServerData;
 
8703
end;
 
8704
 
 
8705
procedure TAcl.Connect;
 
8706
var
 
8707
  punk: IUnknown;
 
8708
begin
 
8709
  if FIntf = nil then
 
8710
  begin
 
8711
    punk := GetServer;
 
8712
    Fintf:= punk as IADsAcl;
 
8713
  end;
 
8714
end;
 
8715
 
 
8716
procedure TAcl.ConnectTo(svrIntf: IADsAcl);
 
8717
begin
 
8718
  Disconnect;
 
8719
  FIntf := svrIntf;
 
8720
end;
 
8721
 
 
8722
procedure TAcl.DisConnect;
 
8723
begin
 
8724
  if Fintf <> nil then
 
8725
  begin
 
8726
    FIntf := nil;
 
8727
  end;
 
8728
end;
 
8729
 
 
8730
function TAcl.GetDefaultInterface: IADsAcl;
 
8731
begin
 
8732
  if FIntf = nil then
 
8733
    Connect;
 
8734
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8735
  Result := FIntf;
 
8736
end;
 
8737
 
 
8738
constructor TAcl.Create(AOwner: TComponent);
 
8739
begin
 
8740
  inherited Create(AOwner);
 
8741
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8742
  FProps := TAclProperties.Create(Self);
 
8743
{$ENDIF}
 
8744
end;
 
8745
 
 
8746
destructor TAcl.Destroy;
 
8747
begin
 
8748
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8749
  FProps.Free;
 
8750
{$ENDIF}
 
8751
  inherited Destroy;
 
8752
end;
 
8753
 
 
8754
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8755
function TAcl.GetServerProperties: TAclProperties;
 
8756
begin
 
8757
  Result := FProps;
 
8758
end;
 
8759
{$ENDIF}
 
8760
 
 
8761
function  TAcl.Get_ProtectedAttrName: WideString;
 
8762
begin
 
8763
  Result := DefaultInterface.Get_ProtectedAttrName;
 
8764
end;
 
8765
 
 
8766
procedure TAcl.Set_ProtectedAttrName(const retval: WideString);
 
8767
begin
 
8768
  DefaultInterface.Set_ProtectedAttrName(retval);
 
8769
end;
 
8770
 
 
8771
function  TAcl.Get_SubjectName: WideString;
 
8772
begin
 
8773
  Result := DefaultInterface.Get_SubjectName;
 
8774
end;
 
8775
 
 
8776
procedure TAcl.Set_SubjectName(const retval: WideString);
 
8777
begin
 
8778
  DefaultInterface.Set_SubjectName(retval);
 
8779
end;
 
8780
 
 
8781
function  TAcl.Get_Privileges: Integer;
 
8782
begin
 
8783
  Result := DefaultInterface.Get_Privileges;
 
8784
end;
 
8785
 
 
8786
procedure TAcl.Set_Privileges(retval: Integer);
 
8787
begin
 
8788
  DefaultInterface.Set_Privileges(retval);
 
8789
end;
 
8790
 
 
8791
function  TAcl.CopyAcl: IDispatch;
 
8792
begin
 
8793
  Result := DefaultInterface.CopyAcl;
 
8794
end;
 
8795
 
 
8796
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8797
constructor TAclProperties.Create(AServer: TAcl);
 
8798
begin
 
8799
  inherited Create;
 
8800
  FServer := AServer;
 
8801
end;
 
8802
 
 
8803
function TAclProperties.GetDefaultInterface: IADsAcl;
 
8804
begin
 
8805
  Result := FServer.DefaultInterface;
 
8806
end;
 
8807
 
 
8808
function  TAclProperties.Get_ProtectedAttrName: WideString;
 
8809
begin
 
8810
  Result := DefaultInterface.Get_ProtectedAttrName;
 
8811
end;
 
8812
 
 
8813
procedure TAclProperties.Set_ProtectedAttrName(const retval: WideString);
 
8814
begin
 
8815
  DefaultInterface.Set_ProtectedAttrName(retval);
 
8816
end;
 
8817
 
 
8818
function  TAclProperties.Get_SubjectName: WideString;
 
8819
begin
 
8820
  Result := DefaultInterface.Get_SubjectName;
 
8821
end;
 
8822
 
 
8823
procedure TAclProperties.Set_SubjectName(const retval: WideString);
 
8824
begin
 
8825
  DefaultInterface.Set_SubjectName(retval);
 
8826
end;
 
8827
 
 
8828
function  TAclProperties.Get_Privileges: Integer;
 
8829
begin
 
8830
  Result := DefaultInterface.Get_Privileges;
 
8831
end;
 
8832
 
 
8833
procedure TAclProperties.Set_Privileges(retval: Integer);
 
8834
begin
 
8835
  DefaultInterface.Set_Privileges(retval);
 
8836
end;
 
8837
 
 
8838
{$ENDIF}
 
8839
 
 
8840
class function CoTimestamp.Create: IADsTimestamp;
 
8841
begin
 
8842
  Result := CreateComObject(CLASS_Timestamp) as IADsTimestamp;
 
8843
end;
 
8844
 
 
8845
class function CoTimestamp.CreateRemote(const MachineName: string): IADsTimestamp;
 
8846
begin
 
8847
  Result := CreateRemoteComObject(MachineName, CLASS_Timestamp) as IADsTimestamp;
 
8848
end;
 
8849
 
 
8850
procedure TTimestamp.InitServerData;
 
8851
const
 
8852
  CServerData: TServerData = (
 
8853
    ClassID:   '{B2BED2EB-4080-11D1-A3AC-00C04FB950DC}';
 
8854
    IntfIID:   '{B2F5A901-4080-11D1-A3AC-00C04FB950DC}';
 
8855
    EventIID:  '';
 
8856
    LicenseKey: nil;
 
8857
    Version: 500);
 
8858
begin
 
8859
  ServerData := @CServerData;
 
8860
end;
 
8861
 
 
8862
procedure TTimestamp.Connect;
 
8863
var
 
8864
  punk: IUnknown;
 
8865
begin
 
8866
  if FIntf = nil then
 
8867
  begin
 
8868
    punk := GetServer;
 
8869
    Fintf:= punk as IADsTimestamp;
 
8870
  end;
 
8871
end;
 
8872
 
 
8873
procedure TTimestamp.ConnectTo(svrIntf: IADsTimestamp);
 
8874
begin
 
8875
  Disconnect;
 
8876
  FIntf := svrIntf;
 
8877
end;
 
8878
 
 
8879
procedure TTimestamp.DisConnect;
 
8880
begin
 
8881
  if Fintf <> nil then
 
8882
  begin
 
8883
    FIntf := nil;
 
8884
  end;
 
8885
end;
 
8886
 
 
8887
function TTimestamp.GetDefaultInterface: IADsTimestamp;
 
8888
begin
 
8889
  if FIntf = nil then
 
8890
    Connect;
 
8891
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
8892
  Result := FIntf;
 
8893
end;
 
8894
 
 
8895
constructor TTimestamp.Create(AOwner: TComponent);
 
8896
begin
 
8897
  inherited Create(AOwner);
 
8898
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8899
  FProps := TTimestampProperties.Create(Self);
 
8900
{$ENDIF}
 
8901
end;
 
8902
 
 
8903
destructor TTimestamp.Destroy;
 
8904
begin
 
8905
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8906
  FProps.Free;
 
8907
{$ENDIF}
 
8908
  inherited Destroy;
 
8909
end;
 
8910
 
 
8911
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8912
function TTimestamp.GetServerProperties: TTimestampProperties;
 
8913
begin
 
8914
  Result := FProps;
 
8915
end;
 
8916
{$ENDIF}
 
8917
 
 
8918
function  TTimestamp.Get_WholeSeconds: Integer;
 
8919
begin
 
8920
  Result := DefaultInterface.Get_WholeSeconds;
 
8921
end;
 
8922
 
 
8923
procedure TTimestamp.Set_WholeSeconds(retval: Integer);
 
8924
begin
 
8925
  DefaultInterface.Set_WholeSeconds(retval);
 
8926
end;
 
8927
 
 
8928
function  TTimestamp.Get_EventID: Integer;
 
8929
begin
 
8930
  Result := DefaultInterface.Get_EventID;
 
8931
end;
 
8932
 
 
8933
procedure TTimestamp.Set_EventID(retval: Integer);
 
8934
begin
 
8935
  DefaultInterface.Set_EventID(retval);
 
8936
end;
 
8937
 
 
8938
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
8939
constructor TTimestampProperties.Create(AServer: TTimestamp);
 
8940
begin
 
8941
  inherited Create;
 
8942
  FServer := AServer;
 
8943
end;
 
8944
 
 
8945
function TTimestampProperties.GetDefaultInterface: IADsTimestamp;
 
8946
begin
 
8947
  Result := FServer.DefaultInterface;
 
8948
end;
 
8949
 
 
8950
function  TTimestampProperties.Get_WholeSeconds: Integer;
 
8951
begin
 
8952
  Result := DefaultInterface.Get_WholeSeconds;
 
8953
end;
 
8954
 
 
8955
procedure TTimestampProperties.Set_WholeSeconds(retval: Integer);
 
8956
begin
 
8957
  DefaultInterface.Set_WholeSeconds(retval);
 
8958
end;
 
8959
 
 
8960
function  TTimestampProperties.Get_EventID: Integer;
 
8961
begin
 
8962
  Result := DefaultInterface.Get_EventID;
 
8963
end;
 
8964
 
 
8965
procedure TTimestampProperties.Set_EventID(retval: Integer);
 
8966
begin
 
8967
  DefaultInterface.Set_EventID(retval);
 
8968
end;
 
8969
 
 
8970
{$ENDIF}
 
8971
 
 
8972
class function CoPostalAddress.Create: IADsPostalAddress;
 
8973
begin
 
8974
  Result := CreateComObject(CLASS_PostalAddress) as IADsPostalAddress;
 
8975
end;
 
8976
 
 
8977
class function CoPostalAddress.CreateRemote(const MachineName: string): IADsPostalAddress;
 
8978
begin
 
8979
  Result := CreateRemoteComObject(MachineName, CLASS_PostalAddress) as IADsPostalAddress;
 
8980
end;
 
8981
 
 
8982
procedure TPostalAddress.InitServerData;
 
8983
const
 
8984
  CServerData: TServerData = (
 
8985
    ClassID:   '{0A75AFCD-4680-11D1-A3B4-00C04FB950DC}';
 
8986
    IntfIID:   '{7ADECF29-4680-11D1-A3B4-00C04FB950DC}';
 
8987
    EventIID:  '';
 
8988
    LicenseKey: nil;
 
8989
    Version: 500);
 
8990
begin
 
8991
  ServerData := @CServerData;
 
8992
end;
 
8993
 
 
8994
procedure TPostalAddress.Connect;
 
8995
var
 
8996
  punk: IUnknown;
 
8997
begin
 
8998
  if FIntf = nil then
 
8999
  begin
 
9000
    punk := GetServer;
 
9001
    Fintf:= punk as IADsPostalAddress;
 
9002
  end;
 
9003
end;
 
9004
 
 
9005
procedure TPostalAddress.ConnectTo(svrIntf: IADsPostalAddress);
 
9006
begin
 
9007
  Disconnect;
 
9008
  FIntf := svrIntf;
 
9009
end;
 
9010
 
 
9011
procedure TPostalAddress.DisConnect;
 
9012
begin
 
9013
  if Fintf <> nil then
 
9014
  begin
 
9015
    FIntf := nil;
 
9016
  end;
 
9017
end;
 
9018
 
 
9019
function TPostalAddress.GetDefaultInterface: IADsPostalAddress;
 
9020
begin
 
9021
  if FIntf = nil then
 
9022
    Connect;
 
9023
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9024
  Result := FIntf;
 
9025
end;
 
9026
 
 
9027
constructor TPostalAddress.Create(AOwner: TComponent);
 
9028
begin
 
9029
  inherited Create(AOwner);
 
9030
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9031
  FProps := TPostalAddressProperties.Create(Self);
 
9032
{$ENDIF}
 
9033
end;
 
9034
 
 
9035
destructor TPostalAddress.Destroy;
 
9036
begin
 
9037
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9038
  FProps.Free;
 
9039
{$ENDIF}
 
9040
  inherited Destroy;
 
9041
end;
 
9042
 
 
9043
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9044
function TPostalAddress.GetServerProperties: TPostalAddressProperties;
 
9045
begin
 
9046
  Result := FProps;
 
9047
end;
 
9048
{$ENDIF}
 
9049
 
 
9050
function  TPostalAddress.Get_PostalAddress: OleVariant;
 
9051
begin
 
9052
  Result := DefaultInterface.Get_PostalAddress;
 
9053
end;
 
9054
 
 
9055
procedure TPostalAddress.Set_PostalAddress(retval: OleVariant);
 
9056
begin
 
9057
  DefaultInterface.Set_PostalAddress(retval);
 
9058
end;
 
9059
 
 
9060
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9061
constructor TPostalAddressProperties.Create(AServer: TPostalAddress);
 
9062
begin
 
9063
  inherited Create;
 
9064
  FServer := AServer;
 
9065
end;
 
9066
 
 
9067
function TPostalAddressProperties.GetDefaultInterface: IADsPostalAddress;
 
9068
begin
 
9069
  Result := FServer.DefaultInterface;
 
9070
end;
 
9071
 
 
9072
function  TPostalAddressProperties.Get_PostalAddress: OleVariant;
 
9073
begin
 
9074
  Result := DefaultInterface.Get_PostalAddress;
 
9075
end;
 
9076
 
 
9077
procedure TPostalAddressProperties.Set_PostalAddress(retval: OleVariant);
 
9078
begin
 
9079
  DefaultInterface.Set_PostalAddress(retval);
 
9080
end;
 
9081
 
 
9082
{$ENDIF}
 
9083
 
 
9084
class function CoBackLink.Create: IADsBackLink;
 
9085
begin
 
9086
  Result := CreateComObject(CLASS_BackLink) as IADsBackLink;
 
9087
end;
 
9088
 
 
9089
class function CoBackLink.CreateRemote(const MachineName: string): IADsBackLink;
 
9090
begin
 
9091
  Result := CreateRemoteComObject(MachineName, CLASS_BackLink) as IADsBackLink;
 
9092
end;
 
9093
 
 
9094
procedure TBackLink.InitServerData;
 
9095
const
 
9096
  CServerData: TServerData = (
 
9097
    ClassID:   '{FCBF906F-4080-11D1-A3AC-00C04FB950DC}';
 
9098
    IntfIID:   '{FD1302BD-4080-11D1-A3AC-00C04FB950DC}';
 
9099
    EventIID:  '';
 
9100
    LicenseKey: nil;
 
9101
    Version: 500);
 
9102
begin
 
9103
  ServerData := @CServerData;
 
9104
end;
 
9105
 
 
9106
procedure TBackLink.Connect;
 
9107
var
 
9108
  punk: IUnknown;
 
9109
begin
 
9110
  if FIntf = nil then
 
9111
  begin
 
9112
    punk := GetServer;
 
9113
    Fintf:= punk as IADsBackLink;
 
9114
  end;
 
9115
end;
 
9116
 
 
9117
procedure TBackLink.ConnectTo(svrIntf: IADsBackLink);
 
9118
begin
 
9119
  Disconnect;
 
9120
  FIntf := svrIntf;
 
9121
end;
 
9122
 
 
9123
procedure TBackLink.DisConnect;
 
9124
begin
 
9125
  if Fintf <> nil then
 
9126
  begin
 
9127
    FIntf := nil;
 
9128
  end;
 
9129
end;
 
9130
 
 
9131
function TBackLink.GetDefaultInterface: IADsBackLink;
 
9132
begin
 
9133
  if FIntf = nil then
 
9134
    Connect;
 
9135
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9136
  Result := FIntf;
 
9137
end;
 
9138
 
 
9139
constructor TBackLink.Create(AOwner: TComponent);
 
9140
begin
 
9141
  inherited Create(AOwner);
 
9142
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9143
  FProps := TBackLinkProperties.Create(Self);
 
9144
{$ENDIF}
 
9145
end;
 
9146
 
 
9147
destructor TBackLink.Destroy;
 
9148
begin
 
9149
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9150
  FProps.Free;
 
9151
{$ENDIF}
 
9152
  inherited Destroy;
 
9153
end;
 
9154
 
 
9155
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9156
function TBackLink.GetServerProperties: TBackLinkProperties;
 
9157
begin
 
9158
  Result := FProps;
 
9159
end;
 
9160
{$ENDIF}
 
9161
 
 
9162
function  TBackLink.Get_RemoteID: Integer;
 
9163
begin
 
9164
  Result := DefaultInterface.Get_RemoteID;
 
9165
end;
 
9166
 
 
9167
procedure TBackLink.Set_RemoteID(retval: Integer);
 
9168
begin
 
9169
  DefaultInterface.Set_RemoteID(retval);
 
9170
end;
 
9171
 
 
9172
function  TBackLink.Get_ObjectName: WideString;
 
9173
begin
 
9174
  Result := DefaultInterface.Get_ObjectName;
 
9175
end;
 
9176
 
 
9177
procedure TBackLink.Set_ObjectName(const retval: WideString);
 
9178
begin
 
9179
  DefaultInterface.Set_ObjectName(retval);
 
9180
end;
 
9181
 
 
9182
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9183
constructor TBackLinkProperties.Create(AServer: TBackLink);
 
9184
begin
 
9185
  inherited Create;
 
9186
  FServer := AServer;
 
9187
end;
 
9188
 
 
9189
function TBackLinkProperties.GetDefaultInterface: IADsBackLink;
 
9190
begin
 
9191
  Result := FServer.DefaultInterface;
 
9192
end;
 
9193
 
 
9194
function  TBackLinkProperties.Get_RemoteID: Integer;
 
9195
begin
 
9196
  Result := DefaultInterface.Get_RemoteID;
 
9197
end;
 
9198
 
 
9199
procedure TBackLinkProperties.Set_RemoteID(retval: Integer);
 
9200
begin
 
9201
  DefaultInterface.Set_RemoteID(retval);
 
9202
end;
 
9203
 
 
9204
function  TBackLinkProperties.Get_ObjectName: WideString;
 
9205
begin
 
9206
  Result := DefaultInterface.Get_ObjectName;
 
9207
end;
 
9208
 
 
9209
procedure TBackLinkProperties.Set_ObjectName(const retval: WideString);
 
9210
begin
 
9211
  DefaultInterface.Set_ObjectName(retval);
 
9212
end;
 
9213
 
 
9214
{$ENDIF}
 
9215
 
 
9216
class function CoTypedName.Create: IADsTypedName;
 
9217
begin
 
9218
  Result := CreateComObject(CLASS_TypedName) as IADsTypedName;
 
9219
end;
 
9220
 
 
9221
class function CoTypedName.CreateRemote(const MachineName: string): IADsTypedName;
 
9222
begin
 
9223
  Result := CreateRemoteComObject(MachineName, CLASS_TypedName) as IADsTypedName;
 
9224
end;
 
9225
 
 
9226
procedure TTypedName.InitServerData;
 
9227
const
 
9228
  CServerData: TServerData = (
 
9229
    ClassID:   '{B33143CB-4080-11D1-A3AC-00C04FB950DC}';
 
9230
    IntfIID:   '{B371A349-4080-11D1-A3AC-00C04FB950DC}';
 
9231
    EventIID:  '';
 
9232
    LicenseKey: nil;
 
9233
    Version: 500);
 
9234
begin
 
9235
  ServerData := @CServerData;
 
9236
end;
 
9237
 
 
9238
procedure TTypedName.Connect;
 
9239
var
 
9240
  punk: IUnknown;
 
9241
begin
 
9242
  if FIntf = nil then
 
9243
  begin
 
9244
    punk := GetServer;
 
9245
    Fintf:= punk as IADsTypedName;
 
9246
  end;
 
9247
end;
 
9248
 
 
9249
procedure TTypedName.ConnectTo(svrIntf: IADsTypedName);
 
9250
begin
 
9251
  Disconnect;
 
9252
  FIntf := svrIntf;
 
9253
end;
 
9254
 
 
9255
procedure TTypedName.DisConnect;
 
9256
begin
 
9257
  if Fintf <> nil then
 
9258
  begin
 
9259
    FIntf := nil;
 
9260
  end;
 
9261
end;
 
9262
 
 
9263
function TTypedName.GetDefaultInterface: IADsTypedName;
 
9264
begin
 
9265
  if FIntf = nil then
 
9266
    Connect;
 
9267
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9268
  Result := FIntf;
 
9269
end;
 
9270
 
 
9271
constructor TTypedName.Create(AOwner: TComponent);
 
9272
begin
 
9273
  inherited Create(AOwner);
 
9274
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9275
  FProps := TTypedNameProperties.Create(Self);
 
9276
{$ENDIF}
 
9277
end;
 
9278
 
 
9279
destructor TTypedName.Destroy;
 
9280
begin
 
9281
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9282
  FProps.Free;
 
9283
{$ENDIF}
 
9284
  inherited Destroy;
 
9285
end;
 
9286
 
 
9287
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9288
function TTypedName.GetServerProperties: TTypedNameProperties;
 
9289
begin
 
9290
  Result := FProps;
 
9291
end;
 
9292
{$ENDIF}
 
9293
 
 
9294
function  TTypedName.Get_ObjectName: WideString;
 
9295
begin
 
9296
  Result := DefaultInterface.Get_ObjectName;
 
9297
end;
 
9298
 
 
9299
procedure TTypedName.Set_ObjectName(const retval: WideString);
 
9300
begin
 
9301
  DefaultInterface.Set_ObjectName(retval);
 
9302
end;
 
9303
 
 
9304
function  TTypedName.Get_Level: Integer;
 
9305
begin
 
9306
  Result := DefaultInterface.Get_Level;
 
9307
end;
 
9308
 
 
9309
procedure TTypedName.Set_Level(retval: Integer);
 
9310
begin
 
9311
  DefaultInterface.Set_Level(retval);
 
9312
end;
 
9313
 
 
9314
function  TTypedName.Get_Interval: Integer;
 
9315
begin
 
9316
  Result := DefaultInterface.Get_Interval;
 
9317
end;
 
9318
 
 
9319
procedure TTypedName.Set_Interval(retval: Integer);
 
9320
begin
 
9321
  DefaultInterface.Set_Interval(retval);
 
9322
end;
 
9323
 
 
9324
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9325
constructor TTypedNameProperties.Create(AServer: TTypedName);
 
9326
begin
 
9327
  inherited Create;
 
9328
  FServer := AServer;
 
9329
end;
 
9330
 
 
9331
function TTypedNameProperties.GetDefaultInterface: IADsTypedName;
 
9332
begin
 
9333
  Result := FServer.DefaultInterface;
 
9334
end;
 
9335
 
 
9336
function  TTypedNameProperties.Get_ObjectName: WideString;
 
9337
begin
 
9338
  Result := DefaultInterface.Get_ObjectName;
 
9339
end;
 
9340
 
 
9341
procedure TTypedNameProperties.Set_ObjectName(const retval: WideString);
 
9342
begin
 
9343
  DefaultInterface.Set_ObjectName(retval);
 
9344
end;
 
9345
 
 
9346
function  TTypedNameProperties.Get_Level: Integer;
 
9347
begin
 
9348
  Result := DefaultInterface.Get_Level;
 
9349
end;
 
9350
 
 
9351
procedure TTypedNameProperties.Set_Level(retval: Integer);
 
9352
begin
 
9353
  DefaultInterface.Set_Level(retval);
 
9354
end;
 
9355
 
 
9356
function  TTypedNameProperties.Get_Interval: Integer;
 
9357
begin
 
9358
  Result := DefaultInterface.Get_Interval;
 
9359
end;
 
9360
 
 
9361
procedure TTypedNameProperties.Set_Interval(retval: Integer);
 
9362
begin
 
9363
  DefaultInterface.Set_Interval(retval);
 
9364
end;
 
9365
 
 
9366
{$ENDIF}
 
9367
 
 
9368
class function CoHold.Create: IADsHold;
 
9369
begin
 
9370
  Result := CreateComObject(CLASS_Hold) as IADsHold;
 
9371
end;
 
9372
 
 
9373
class function CoHold.CreateRemote(const MachineName: string): IADsHold;
 
9374
begin
 
9375
  Result := CreateRemoteComObject(MachineName, CLASS_Hold) as IADsHold;
 
9376
end;
 
9377
 
 
9378
procedure THold.InitServerData;
 
9379
const
 
9380
  CServerData: TServerData = (
 
9381
    ClassID:   '{B3AD3E13-4080-11D1-A3AC-00C04FB950DC}';
 
9382
    IntfIID:   '{B3EB3B37-4080-11D1-A3AC-00C04FB950DC}';
 
9383
    EventIID:  '';
 
9384
    LicenseKey: nil;
 
9385
    Version: 500);
 
9386
begin
 
9387
  ServerData := @CServerData;
 
9388
end;
 
9389
 
 
9390
procedure THold.Connect;
 
9391
var
 
9392
  punk: IUnknown;
 
9393
begin
 
9394
  if FIntf = nil then
 
9395
  begin
 
9396
    punk := GetServer;
 
9397
    Fintf:= punk as IADsHold;
 
9398
  end;
 
9399
end;
 
9400
 
 
9401
procedure THold.ConnectTo(svrIntf: IADsHold);
 
9402
begin
 
9403
  Disconnect;
 
9404
  FIntf := svrIntf;
 
9405
end;
 
9406
 
 
9407
procedure THold.DisConnect;
 
9408
begin
 
9409
  if Fintf <> nil then
 
9410
  begin
 
9411
    FIntf := nil;
 
9412
  end;
 
9413
end;
 
9414
 
 
9415
function THold.GetDefaultInterface: IADsHold;
 
9416
begin
 
9417
  if FIntf = nil then
 
9418
    Connect;
 
9419
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9420
  Result := FIntf;
 
9421
end;
 
9422
 
 
9423
constructor THold.Create(AOwner: TComponent);
 
9424
begin
 
9425
  inherited Create(AOwner);
 
9426
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9427
  FProps := THoldProperties.Create(Self);
 
9428
{$ENDIF}
 
9429
end;
 
9430
 
 
9431
destructor THold.Destroy;
 
9432
begin
 
9433
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9434
  FProps.Free;
 
9435
{$ENDIF}
 
9436
  inherited Destroy;
 
9437
end;
 
9438
 
 
9439
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9440
function THold.GetServerProperties: THoldProperties;
 
9441
begin
 
9442
  Result := FProps;
 
9443
end;
 
9444
{$ENDIF}
 
9445
 
 
9446
function  THold.Get_ObjectName: WideString;
 
9447
begin
 
9448
  Result := DefaultInterface.Get_ObjectName;
 
9449
end;
 
9450
 
 
9451
procedure THold.Set_ObjectName(const retval: WideString);
 
9452
begin
 
9453
  DefaultInterface.Set_ObjectName(retval);
 
9454
end;
 
9455
 
 
9456
function  THold.Get_Amount: Integer;
 
9457
begin
 
9458
  Result := DefaultInterface.Get_Amount;
 
9459
end;
 
9460
 
 
9461
procedure THold.Set_Amount(retval: Integer);
 
9462
begin
 
9463
  DefaultInterface.Set_Amount(retval);
 
9464
end;
 
9465
 
 
9466
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9467
constructor THoldProperties.Create(AServer: THold);
 
9468
begin
 
9469
  inherited Create;
 
9470
  FServer := AServer;
 
9471
end;
 
9472
 
 
9473
function THoldProperties.GetDefaultInterface: IADsHold;
 
9474
begin
 
9475
  Result := FServer.DefaultInterface;
 
9476
end;
 
9477
 
 
9478
function  THoldProperties.Get_ObjectName: WideString;
 
9479
begin
 
9480
  Result := DefaultInterface.Get_ObjectName;
 
9481
end;
 
9482
 
 
9483
procedure THoldProperties.Set_ObjectName(const retval: WideString);
 
9484
begin
 
9485
  DefaultInterface.Set_ObjectName(retval);
 
9486
end;
 
9487
 
 
9488
function  THoldProperties.Get_Amount: Integer;
 
9489
begin
 
9490
  Result := DefaultInterface.Get_Amount;
 
9491
end;
 
9492
 
 
9493
procedure THoldProperties.Set_Amount(retval: Integer);
 
9494
begin
 
9495
  DefaultInterface.Set_Amount(retval);
 
9496
end;
 
9497
 
 
9498
{$ENDIF}
 
9499
 
 
9500
class function CoPathname.Create: IADsPathname;
 
9501
begin
 
9502
  Result := CreateComObject(CLASS_Pathname) as IADsPathname;
 
9503
end;
 
9504
 
 
9505
class function CoPathname.CreateRemote(const MachineName: string): IADsPathname;
 
9506
begin
 
9507
  Result := CreateRemoteComObject(MachineName, CLASS_Pathname) as IADsPathname;
 
9508
end;
 
9509
 
 
9510
procedure TPathname.InitServerData;
 
9511
const
 
9512
  CServerData: TServerData = (
 
9513
    ClassID:   '{080D0D78-F421-11D0-A36E-00C04FB950DC}';
 
9514
    IntfIID:   '{D592AED4-F420-11D0-A36E-00C04FB950DC}';
 
9515
    EventIID:  '';
 
9516
    LicenseKey: nil;
 
9517
    Version: 500);
 
9518
begin
 
9519
  ServerData := @CServerData;
 
9520
end;
 
9521
 
 
9522
procedure TPathname.Connect;
 
9523
var
 
9524
  punk: IUnknown;
 
9525
begin
 
9526
  if FIntf = nil then
 
9527
  begin
 
9528
    punk := GetServer;
 
9529
    Fintf:= punk as IADsPathname;
 
9530
  end;
 
9531
end;
 
9532
 
 
9533
procedure TPathname.ConnectTo(svrIntf: IADsPathname);
 
9534
begin
 
9535
  Disconnect;
 
9536
  FIntf := svrIntf;
 
9537
end;
 
9538
 
 
9539
procedure TPathname.DisConnect;
 
9540
begin
 
9541
  if Fintf <> nil then
 
9542
  begin
 
9543
    FIntf := nil;
 
9544
  end;
 
9545
end;
 
9546
 
 
9547
function TPathname.GetDefaultInterface: IADsPathname;
 
9548
begin
 
9549
  if FIntf = nil then
 
9550
    Connect;
 
9551
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9552
  Result := FIntf;
 
9553
end;
 
9554
 
 
9555
constructor TPathname.Create(AOwner: TComponent);
 
9556
begin
 
9557
  inherited Create(AOwner);
 
9558
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9559
  FProps := TPathnameProperties.Create(Self);
 
9560
{$ENDIF}
 
9561
end;
 
9562
 
 
9563
destructor TPathname.Destroy;
 
9564
begin
 
9565
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9566
  FProps.Free;
 
9567
{$ENDIF}
 
9568
  inherited Destroy;
 
9569
end;
 
9570
 
 
9571
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9572
function TPathname.GetServerProperties: TPathnameProperties;
 
9573
begin
 
9574
  Result := FProps;
 
9575
end;
 
9576
{$ENDIF}
 
9577
 
 
9578
function  TPathname.Get_EscapedMode: Integer;
 
9579
begin
 
9580
  Result := DefaultInterface.Get_EscapedMode;
 
9581
end;
 
9582
 
 
9583
procedure TPathname.Set_EscapedMode(retval: Integer);
 
9584
begin
 
9585
  DefaultInterface.Set_EscapedMode(retval);
 
9586
end;
 
9587
 
 
9588
procedure TPathname.Set_(const bstrADsPath: WideString; lnSetType: Integer);
 
9589
begin
 
9590
  DefaultInterface.Set_(bstrADsPath, lnSetType);
 
9591
end;
 
9592
 
 
9593
procedure TPathname.SetDisplayType(lnDisplayType: Integer);
 
9594
begin
 
9595
  DefaultInterface.SetDisplayType(lnDisplayType);
 
9596
end;
 
9597
 
 
9598
function  TPathname.Retrieve(lnFormatType: Integer): WideString;
 
9599
begin
 
9600
  Result := DefaultInterface.Retrieve(lnFormatType);
 
9601
end;
 
9602
 
 
9603
function  TPathname.GetNumElements: Integer;
 
9604
begin
 
9605
  Result := DefaultInterface.GetNumElements;
 
9606
end;
 
9607
 
 
9608
function  TPathname.GetElement(lnElementIndex: Integer): WideString;
 
9609
begin
 
9610
  Result := DefaultInterface.GetElement(lnElementIndex);
 
9611
end;
 
9612
 
 
9613
procedure TPathname.AddLeafElement(const bstrLeafElement: WideString);
 
9614
begin
 
9615
  DefaultInterface.AddLeafElement(bstrLeafElement);
 
9616
end;
 
9617
 
 
9618
procedure TPathname.RemoveLeafElement;
 
9619
begin
 
9620
  DefaultInterface.RemoveLeafElement;
 
9621
end;
 
9622
 
 
9623
function  TPathname.CopyPath: IDispatch;
 
9624
begin
 
9625
  Result := DefaultInterface.CopyPath;
 
9626
end;
 
9627
 
 
9628
function  TPathname.GetEscapedElement(lnReserved: Integer; const bstrInStr: WideString): WideString;
 
9629
begin
 
9630
  Result := DefaultInterface.GetEscapedElement(lnReserved, bstrInStr);
 
9631
end;
 
9632
 
 
9633
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9634
constructor TPathnameProperties.Create(AServer: TPathname);
 
9635
begin
 
9636
  inherited Create;
 
9637
  FServer := AServer;
 
9638
end;
 
9639
 
 
9640
function TPathnameProperties.GetDefaultInterface: IADsPathname;
 
9641
begin
 
9642
  Result := FServer.DefaultInterface;
 
9643
end;
 
9644
 
 
9645
function  TPathnameProperties.Get_EscapedMode: Integer;
 
9646
begin
 
9647
  Result := DefaultInterface.Get_EscapedMode;
 
9648
end;
 
9649
 
 
9650
procedure TPathnameProperties.Set_EscapedMode(retval: Integer);
 
9651
begin
 
9652
  DefaultInterface.Set_EscapedMode(retval);
 
9653
end;
 
9654
 
 
9655
{$ENDIF}
 
9656
 
 
9657
class function CoADSystemInfo.Create: IADsADSystemInfo;
 
9658
begin
 
9659
  Result := CreateComObject(CLASS_ADSystemInfo) as IADsADSystemInfo;
 
9660
end;
 
9661
 
 
9662
class function CoADSystemInfo.CreateRemote(const MachineName: string): IADsADSystemInfo;
 
9663
begin
 
9664
  Result := CreateRemoteComObject(MachineName, CLASS_ADSystemInfo) as IADsADSystemInfo;
 
9665
end;
 
9666
 
 
9667
procedure TADSystemInfo.InitServerData;
 
9668
const
 
9669
  CServerData: TServerData = (
 
9670
    ClassID:   '{50B6327F-AFD1-11D2-9CB9-0000F87A369E}';
 
9671
    IntfIID:   '{5BB11929-AFD1-11D2-9CB9-0000F87A369E}';
 
9672
    EventIID:  '';
 
9673
    LicenseKey: nil;
 
9674
    Version: 500);
 
9675
begin
 
9676
  ServerData := @CServerData;
 
9677
end;
 
9678
 
 
9679
procedure TADSystemInfo.Connect;
 
9680
var
 
9681
  punk: IUnknown;
 
9682
begin
 
9683
  if FIntf = nil then
 
9684
  begin
 
9685
    punk := GetServer;
 
9686
    Fintf:= punk as IADsADSystemInfo;
 
9687
  end;
 
9688
end;
 
9689
 
 
9690
procedure TADSystemInfo.ConnectTo(svrIntf: IADsADSystemInfo);
 
9691
begin
 
9692
  Disconnect;
 
9693
  FIntf := svrIntf;
 
9694
end;
 
9695
 
 
9696
procedure TADSystemInfo.DisConnect;
 
9697
begin
 
9698
  if Fintf <> nil then
 
9699
  begin
 
9700
    FIntf := nil;
 
9701
  end;
 
9702
end;
 
9703
 
 
9704
function TADSystemInfo.GetDefaultInterface: IADsADSystemInfo;
 
9705
begin
 
9706
  if FIntf = nil then
 
9707
    Connect;
 
9708
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9709
  Result := FIntf;
 
9710
end;
 
9711
 
 
9712
constructor TADSystemInfo.Create(AOwner: TComponent);
 
9713
begin
 
9714
  inherited Create(AOwner);
 
9715
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9716
  FProps := TADSystemInfoProperties.Create(Self);
 
9717
{$ENDIF}
 
9718
end;
 
9719
 
 
9720
destructor TADSystemInfo.Destroy;
 
9721
begin
 
9722
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9723
  FProps.Free;
 
9724
{$ENDIF}
 
9725
  inherited Destroy;
 
9726
end;
 
9727
 
 
9728
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9729
function TADSystemInfo.GetServerProperties: TADSystemInfoProperties;
 
9730
begin
 
9731
  Result := FProps;
 
9732
end;
 
9733
{$ENDIF}
 
9734
 
 
9735
function  TADSystemInfo.Get_UserName: WideString;
 
9736
begin
 
9737
  Result := DefaultInterface.Get_UserName;
 
9738
end;
 
9739
 
 
9740
function  TADSystemInfo.Get_ComputerName: WideString;
 
9741
begin
 
9742
  Result := DefaultInterface.Get_ComputerName;
 
9743
end;
 
9744
 
 
9745
function  TADSystemInfo.Get_SiteName: WideString;
 
9746
begin
 
9747
  Result := DefaultInterface.Get_SiteName;
 
9748
end;
 
9749
 
 
9750
function  TADSystemInfo.Get_DomainShortName: WideString;
 
9751
begin
 
9752
  Result := DefaultInterface.Get_DomainShortName;
 
9753
end;
 
9754
 
 
9755
function  TADSystemInfo.Get_DomainDNSName: WideString;
 
9756
begin
 
9757
  Result := DefaultInterface.Get_DomainDNSName;
 
9758
end;
 
9759
 
 
9760
function  TADSystemInfo.Get_ForestDNSName: WideString;
 
9761
begin
 
9762
  Result := DefaultInterface.Get_ForestDNSName;
 
9763
end;
 
9764
 
 
9765
function  TADSystemInfo.Get_PDCRoleOwner: WideString;
 
9766
begin
 
9767
  Result := DefaultInterface.Get_PDCRoleOwner;
 
9768
end;
 
9769
 
 
9770
function  TADSystemInfo.Get_SchemaRoleOwner: WideString;
 
9771
begin
 
9772
  Result := DefaultInterface.Get_SchemaRoleOwner;
 
9773
end;
 
9774
 
 
9775
function  TADSystemInfo.Get_IsNativeMode: WordBool;
 
9776
begin
 
9777
  Result := DefaultInterface.Get_IsNativeMode;
 
9778
end;
 
9779
 
 
9780
function  TADSystemInfo.GetAnyDCName: WideString;
 
9781
begin
 
9782
  Result := DefaultInterface.GetAnyDCName;
 
9783
end;
 
9784
 
 
9785
function  TADSystemInfo.GetDCSiteName(const szServer: WideString): WideString;
 
9786
begin
 
9787
  Result := DefaultInterface.GetDCSiteName(szServer);
 
9788
end;
 
9789
 
 
9790
procedure TADSystemInfo.RefreshSchemaCache;
 
9791
begin
 
9792
  DefaultInterface.RefreshSchemaCache;
 
9793
end;
 
9794
 
 
9795
function  TADSystemInfo.GetTrees: OleVariant;
 
9796
begin
 
9797
  Result := DefaultInterface.GetTrees;
 
9798
end;
 
9799
 
 
9800
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9801
constructor TADSystemInfoProperties.Create(AServer: TADSystemInfo);
 
9802
begin
 
9803
  inherited Create;
 
9804
  FServer := AServer;
 
9805
end;
 
9806
 
 
9807
function TADSystemInfoProperties.GetDefaultInterface: IADsADSystemInfo;
 
9808
begin
 
9809
  Result := FServer.DefaultInterface;
 
9810
end;
 
9811
 
 
9812
function  TADSystemInfoProperties.Get_UserName: WideString;
 
9813
begin
 
9814
  Result := DefaultInterface.Get_UserName;
 
9815
end;
 
9816
 
 
9817
function  TADSystemInfoProperties.Get_ComputerName: WideString;
 
9818
begin
 
9819
  Result := DefaultInterface.Get_ComputerName;
 
9820
end;
 
9821
 
 
9822
function  TADSystemInfoProperties.Get_SiteName: WideString;
 
9823
begin
 
9824
  Result := DefaultInterface.Get_SiteName;
 
9825
end;
 
9826
 
 
9827
function  TADSystemInfoProperties.Get_DomainShortName: WideString;
 
9828
begin
 
9829
  Result := DefaultInterface.Get_DomainShortName;
 
9830
end;
 
9831
 
 
9832
function  TADSystemInfoProperties.Get_DomainDNSName: WideString;
 
9833
begin
 
9834
  Result := DefaultInterface.Get_DomainDNSName;
 
9835
end;
 
9836
 
 
9837
function  TADSystemInfoProperties.Get_ForestDNSName: WideString;
 
9838
begin
 
9839
  Result := DefaultInterface.Get_ForestDNSName;
 
9840
end;
 
9841
 
 
9842
function  TADSystemInfoProperties.Get_PDCRoleOwner: WideString;
 
9843
begin
 
9844
  Result := DefaultInterface.Get_PDCRoleOwner;
 
9845
end;
 
9846
 
 
9847
function  TADSystemInfoProperties.Get_SchemaRoleOwner: WideString;
 
9848
begin
 
9849
  Result := DefaultInterface.Get_SchemaRoleOwner;
 
9850
end;
 
9851
 
 
9852
function  TADSystemInfoProperties.Get_IsNativeMode: WordBool;
 
9853
begin
 
9854
  Result := DefaultInterface.Get_IsNativeMode;
 
9855
end;
 
9856
 
 
9857
{$ENDIF}
 
9858
 
 
9859
class function CoWinNTSystemInfo.Create: IADsWinNTSystemInfo;
 
9860
begin
 
9861
  Result := CreateComObject(CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
 
9862
end;
 
9863
 
 
9864
class function CoWinNTSystemInfo.CreateRemote(const MachineName: string): IADsWinNTSystemInfo;
 
9865
begin
 
9866
  Result := CreateRemoteComObject(MachineName, CLASS_WinNTSystemInfo) as IADsWinNTSystemInfo;
 
9867
end;
 
9868
 
 
9869
procedure TWinNTSystemInfo.InitServerData;
 
9870
const
 
9871
  CServerData: TServerData = (
 
9872
    ClassID:   '{66182EC4-AFD1-11D2-9CB9-0000F87A369E}';
 
9873
    IntfIID:   '{6C6D65DC-AFD1-11D2-9CB9-0000F87A369E}';
 
9874
    EventIID:  '';
 
9875
    LicenseKey: nil;
 
9876
    Version: 500);
 
9877
begin
 
9878
  ServerData := @CServerData;
 
9879
end;
 
9880
 
 
9881
procedure TWinNTSystemInfo.Connect;
 
9882
var
 
9883
  punk: IUnknown;
 
9884
begin
 
9885
  if FIntf = nil then
 
9886
  begin
 
9887
    punk := GetServer;
 
9888
    Fintf:= punk as IADsWinNTSystemInfo;
 
9889
  end;
 
9890
end;
 
9891
 
 
9892
procedure TWinNTSystemInfo.ConnectTo(svrIntf: IADsWinNTSystemInfo);
 
9893
begin
 
9894
  Disconnect;
 
9895
  FIntf := svrIntf;
 
9896
end;
 
9897
 
 
9898
procedure TWinNTSystemInfo.DisConnect;
 
9899
begin
 
9900
  if Fintf <> nil then
 
9901
  begin
 
9902
    FIntf := nil;
 
9903
  end;
 
9904
end;
 
9905
 
 
9906
function TWinNTSystemInfo.GetDefaultInterface: IADsWinNTSystemInfo;
 
9907
begin
 
9908
  if FIntf = nil then
 
9909
    Connect;
 
9910
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
9911
  Result := FIntf;
 
9912
end;
 
9913
 
 
9914
constructor TWinNTSystemInfo.Create(AOwner: TComponent);
 
9915
begin
 
9916
  inherited Create(AOwner);
 
9917
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9918
  FProps := TWinNTSystemInfoProperties.Create(Self);
 
9919
{$ENDIF}
 
9920
end;
 
9921
 
 
9922
destructor TWinNTSystemInfo.Destroy;
 
9923
begin
 
9924
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9925
  FProps.Free;
 
9926
{$ENDIF}
 
9927
  inherited Destroy;
 
9928
end;
 
9929
 
 
9930
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9931
function TWinNTSystemInfo.GetServerProperties: TWinNTSystemInfoProperties;
 
9932
begin
 
9933
  Result := FProps;
 
9934
end;
 
9935
{$ENDIF}
 
9936
 
 
9937
function  TWinNTSystemInfo.Get_UserName: WideString;
 
9938
begin
 
9939
  Result := DefaultInterface.Get_UserName;
 
9940
end;
 
9941
 
 
9942
function  TWinNTSystemInfo.Get_ComputerName: WideString;
 
9943
begin
 
9944
  Result := DefaultInterface.Get_ComputerName;
 
9945
end;
 
9946
 
 
9947
function  TWinNTSystemInfo.Get_DomainName: WideString;
 
9948
begin
 
9949
  Result := DefaultInterface.Get_DomainName;
 
9950
end;
 
9951
 
 
9952
function  TWinNTSystemInfo.Get_PDC: WideString;
 
9953
begin
 
9954
  Result := DefaultInterface.Get_PDC;
 
9955
end;
 
9956
 
 
9957
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
9958
constructor TWinNTSystemInfoProperties.Create(AServer: TWinNTSystemInfo);
 
9959
begin
 
9960
  inherited Create;
 
9961
  FServer := AServer;
 
9962
end;
 
9963
 
 
9964
function TWinNTSystemInfoProperties.GetDefaultInterface: IADsWinNTSystemInfo;
 
9965
begin
 
9966
  Result := FServer.DefaultInterface;
 
9967
end;
 
9968
 
 
9969
function  TWinNTSystemInfoProperties.Get_UserName: WideString;
 
9970
begin
 
9971
  Result := DefaultInterface.Get_UserName;
 
9972
end;
 
9973
 
 
9974
function  TWinNTSystemInfoProperties.Get_ComputerName: WideString;
 
9975
begin
 
9976
  Result := DefaultInterface.Get_ComputerName;
 
9977
end;
 
9978
 
 
9979
function  TWinNTSystemInfoProperties.Get_DomainName: WideString;
 
9980
begin
 
9981
  Result := DefaultInterface.Get_DomainName;
 
9982
end;
 
9983
 
 
9984
function  TWinNTSystemInfoProperties.Get_PDC: WideString;
 
9985
begin
 
9986
  Result := DefaultInterface.Get_PDC;
 
9987
end;
 
9988
 
 
9989
{$ENDIF}
 
9990
 
 
9991
class function CoDNWithBinary.Create: IADsDNWithBinary;
 
9992
begin
 
9993
  Result := CreateComObject(CLASS_DNWithBinary) as IADsDNWithBinary;
 
9994
end;
 
9995
 
 
9996
class function CoDNWithBinary.CreateRemote(const MachineName: string): IADsDNWithBinary;
 
9997
begin
 
9998
  Result := CreateRemoteComObject(MachineName, CLASS_DNWithBinary) as IADsDNWithBinary;
 
9999
end;
 
10000
 
 
10001
procedure TDNWithBinary.InitServerData;
 
10002
const
 
10003
  CServerData: TServerData = (
 
10004
    ClassID:   '{7E99C0A3-F935-11D2-BA96-00C04FB6D0D1}';
 
10005
    IntfIID:   '{7E99C0A2-F935-11D2-BA96-00C04FB6D0D1}';
 
10006
    EventIID:  '';
 
10007
    LicenseKey: nil;
 
10008
    Version: 500);
 
10009
begin
 
10010
  ServerData := @CServerData;
 
10011
end;
 
10012
 
 
10013
procedure TDNWithBinary.Connect;
 
10014
var
 
10015
  punk: IUnknown;
 
10016
begin
 
10017
  if FIntf = nil then
 
10018
  begin
 
10019
    punk := GetServer;
 
10020
    Fintf:= punk as IADsDNWithBinary;
 
10021
  end;
 
10022
end;
 
10023
 
 
10024
procedure TDNWithBinary.ConnectTo(svrIntf: IADsDNWithBinary);
 
10025
begin
 
10026
  Disconnect;
 
10027
  FIntf := svrIntf;
 
10028
end;
 
10029
 
 
10030
procedure TDNWithBinary.DisConnect;
 
10031
begin
 
10032
  if Fintf <> nil then
 
10033
  begin
 
10034
    FIntf := nil;
 
10035
  end;
 
10036
end;
 
10037
 
 
10038
function TDNWithBinary.GetDefaultInterface: IADsDNWithBinary;
 
10039
begin
 
10040
  if FIntf = nil then
 
10041
    Connect;
 
10042
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
10043
  Result := FIntf;
 
10044
end;
 
10045
 
 
10046
constructor TDNWithBinary.Create(AOwner: TComponent);
 
10047
begin
 
10048
  inherited Create(AOwner);
 
10049
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10050
  FProps := TDNWithBinaryProperties.Create(Self);
 
10051
{$ENDIF}
 
10052
end;
 
10053
 
 
10054
destructor TDNWithBinary.Destroy;
 
10055
begin
 
10056
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10057
  FProps.Free;
 
10058
{$ENDIF}
 
10059
  inherited Destroy;
 
10060
end;
 
10061
 
 
10062
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10063
function TDNWithBinary.GetServerProperties: TDNWithBinaryProperties;
 
10064
begin
 
10065
  Result := FProps;
 
10066
end;
 
10067
{$ENDIF}
 
10068
 
 
10069
function  TDNWithBinary.Get_BinaryValue: OleVariant;
 
10070
begin
 
10071
  Result := DefaultInterface.Get_BinaryValue;
 
10072
end;
 
10073
 
 
10074
procedure TDNWithBinary.Set_BinaryValue(retval: OleVariant);
 
10075
begin
 
10076
  DefaultInterface.Set_BinaryValue(retval);
 
10077
end;
 
10078
 
 
10079
function  TDNWithBinary.Get_DNString: WideString;
 
10080
begin
 
10081
  Result := DefaultInterface.Get_DNString;
 
10082
end;
 
10083
 
 
10084
procedure TDNWithBinary.Set_DNString(const retval: WideString);
 
10085
begin
 
10086
  DefaultInterface.Set_DNString(retval);
 
10087
end;
 
10088
 
 
10089
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10090
constructor TDNWithBinaryProperties.Create(AServer: TDNWithBinary);
 
10091
begin
 
10092
  inherited Create;
 
10093
  FServer := AServer;
 
10094
end;
 
10095
 
 
10096
function TDNWithBinaryProperties.GetDefaultInterface: IADsDNWithBinary;
 
10097
begin
 
10098
  Result := FServer.DefaultInterface;
 
10099
end;
 
10100
 
 
10101
function  TDNWithBinaryProperties.Get_BinaryValue: OleVariant;
 
10102
begin
 
10103
  Result := DefaultInterface.Get_BinaryValue;
 
10104
end;
 
10105
 
 
10106
procedure TDNWithBinaryProperties.Set_BinaryValue(retval: OleVariant);
 
10107
begin
 
10108
  DefaultInterface.Set_BinaryValue(retval);
 
10109
end;
 
10110
 
 
10111
function  TDNWithBinaryProperties.Get_DNString: WideString;
 
10112
begin
 
10113
  Result := DefaultInterface.Get_DNString;
 
10114
end;
 
10115
 
 
10116
procedure TDNWithBinaryProperties.Set_DNString(const retval: WideString);
 
10117
begin
 
10118
  DefaultInterface.Set_DNString(retval);
 
10119
end;
 
10120
 
 
10121
{$ENDIF}
 
10122
 
 
10123
class function CoDNWithString.Create: IADsDNWithString;
 
10124
begin
 
10125
  Result := CreateComObject(CLASS_DNWithString) as IADsDNWithString;
 
10126
end;
 
10127
 
 
10128
class function CoDNWithString.CreateRemote(const MachineName: string): IADsDNWithString;
 
10129
begin
 
10130
  Result := CreateRemoteComObject(MachineName, CLASS_DNWithString) as IADsDNWithString;
 
10131
end;
 
10132
 
 
10133
procedure TDNWithString.InitServerData;
 
10134
const
 
10135
  CServerData: TServerData = (
 
10136
    ClassID:   '{334857CC-F934-11D2-BA96-00C04FB6D0D1}';
 
10137
    IntfIID:   '{370DF02E-F934-11D2-BA96-00C04FB6D0D1}';
 
10138
    EventIID:  '';
 
10139
    LicenseKey: nil;
 
10140
    Version: 500);
 
10141
begin
 
10142
  ServerData := @CServerData;
 
10143
end;
 
10144
 
 
10145
procedure TDNWithString.Connect;
 
10146
var
 
10147
  punk: IUnknown;
 
10148
begin
 
10149
  if FIntf = nil then
 
10150
  begin
 
10151
    punk := GetServer;
 
10152
    Fintf:= punk as IADsDNWithString;
 
10153
  end;
 
10154
end;
 
10155
 
 
10156
procedure TDNWithString.ConnectTo(svrIntf: IADsDNWithString);
 
10157
begin
 
10158
  Disconnect;
 
10159
  FIntf := svrIntf;
 
10160
end;
 
10161
 
 
10162
procedure TDNWithString.DisConnect;
 
10163
begin
 
10164
  if Fintf <> nil then
 
10165
  begin
 
10166
    FIntf := nil;
 
10167
  end;
 
10168
end;
 
10169
 
 
10170
function TDNWithString.GetDefaultInterface: IADsDNWithString;
 
10171
begin
 
10172
  if FIntf = nil then
 
10173
    Connect;
 
10174
  Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
 
10175
  Result := FIntf;
 
10176
end;
 
10177
 
 
10178
constructor TDNWithString.Create(AOwner: TComponent);
 
10179
begin
 
10180
  inherited Create(AOwner);
 
10181
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10182
  FProps := TDNWithStringProperties.Create(Self);
 
10183
{$ENDIF}
 
10184
end;
 
10185
 
 
10186
destructor TDNWithString.Destroy;
 
10187
begin
 
10188
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10189
  FProps.Free;
 
10190
{$ENDIF}
 
10191
  inherited Destroy;
 
10192
end;
 
10193
 
 
10194
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10195
function TDNWithString.GetServerProperties: TDNWithStringProperties;
 
10196
begin
 
10197
  Result := FProps;
 
10198
end;
 
10199
{$ENDIF}
 
10200
 
 
10201
function  TDNWithString.Get_StringValue: WideString;
 
10202
begin
 
10203
  Result := DefaultInterface.Get_StringValue;
 
10204
end;
 
10205
 
 
10206
procedure TDNWithString.Set_StringValue(const retval: WideString);
 
10207
begin
 
10208
  DefaultInterface.Set_StringValue(retval);
 
10209
end;
 
10210
 
 
10211
function  TDNWithString.Get_DNString: WideString;
 
10212
begin
 
10213
  Result := DefaultInterface.Get_DNString;
 
10214
end;
 
10215
 
 
10216
procedure TDNWithString.Set_DNString(const retval: WideString);
 
10217
begin
 
10218
  DefaultInterface.Set_DNString(retval);
 
10219
end;
 
10220
 
 
10221
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
 
10222
constructor TDNWithStringProperties.Create(AServer: TDNWithString);
 
10223
begin
 
10224
  inherited Create;
 
10225
  FServer := AServer;
 
10226
end;
 
10227
 
 
10228
function TDNWithStringProperties.GetDefaultInterface: IADsDNWithString;
 
10229
begin
 
10230
  Result := FServer.DefaultInterface;
 
10231
end;
 
10232
 
 
10233
function  TDNWithStringProperties.Get_StringValue: WideString;
 
10234
begin
 
10235
  Result := DefaultInterface.Get_StringValue;
 
10236
end;
 
10237
 
 
10238
procedure TDNWithStringProperties.Set_StringValue(const retval: WideString);
 
10239
begin
 
10240
  DefaultInterface.Set_StringValue(retval);
 
10241
end;
 
10242
 
 
10243
function  TDNWithStringProperties.Get_DNString: WideString;
 
10244
begin
 
10245
  Result := DefaultInterface.Get_DNString;
 
10246
end;
 
10247
 
 
10248
procedure TDNWithStringProperties.Set_DNString(const retval: WideString);
 
10249
begin
 
10250
  DefaultInterface.Set_DNString(retval);
 
10251
end;
 
10252
 
 
10253
{$ENDIF}
 
10254
 
 
10255
 
 
10256
{$ifdef FPC} // dummy
 
10257
{
 
10258
function CreateComObject(ID: TGUID): IUnknown; //empty
 
10259
 
 
10260
begin
 
10261
end;
 
10262
 
 
10263
function CreateRemoteComObject(w:widestring; ID: TGUID): IUnknown; //empty
 
10264
 
 
10265
begin
 
10266
end;
 
10267
}
 
10268
function  tOleServer.GetServer:IUnknown;
 
10269
begin
 
10270
end;
 
10271
 
 
10272
procedure tOleServer.InitServerData;
 
10273
begin
 
10274
end;
 
10275
constructor tOleServer.Create(AOwner: TComponent);
 
10276
begin
 
10277
end;
 
10278
Procedure tOleServer.Connect;
 
10279
begin
 
10280
end;
 
10281
procedure tOleServer.Disconnect;
 
10282
begin
 
10283
end;
 
10284
 
 
10285
 
 
10286
{$endif}
 
10287
 
 
10288
 
 
10289
procedure Register;
 
10290
begin
 
10291
  RegisterComponents('ActiveX',[TPropertyEntry, TPropertyValue, TAccessControlEntry, TAccessControlList,
 
10292
    TSecurityDescriptor, TLargeInteger, TNameTranslate, TCaseIgnoreList, TFaxNumber,
 
10293
    TNetAddress, TOctetList, TEmail, TPath, TReplicaPointer,
 
10294
    TAcl, TTimestamp, TPostalAddress, TBackLink, TTypedName,
 
10295
    THold, TPathname, TADSystemInfo, TWinNTSystemInfo, TDNWithBinary,
 
10296
    TDNWithString]);
 
10297
end;
 
10298
 
 
10299
 
 
10300
 
 
10301
end.