1
{******************************************************************************}
3
{ Lan Manager DFS API interface Unit for Object Pascal }
5
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
6
{ Corporation. All Rights Reserved. }
8
{ The original file is: lmdfs.h, released November 2001. The original Pascal }
9
{ code is: LmDfs.pas, released Februari 2002. The initial developer of the }
10
{ Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
12
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
13
{ Marcel van Brakel. All Rights Reserved. }
15
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
17
{ You may retrieve the latest version of this file at the Project JEDI }
18
{ APILIB home page, located at http://jedi-apilib.sourceforge.net }
20
{ The contents of this file are used with permission, subject to the Mozilla }
21
{ Public License Version 1.1 (the "License"); you may not use this file except }
22
{ in compliance with the License. You may obtain a copy of the License at }
23
{ http://www.mozilla.org/MPL/MPL-1.1.html }
25
{ Software distributed under the License is distributed on an "AS IS" basis, }
26
{ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
27
{ the specific language governing rights and limitations under the License. }
29
{ Alternatively, the contents of this file may be used under the terms of the }
30
{ GNU Lesser General Public License (the "LGPL License"), in which case the }
31
{ provisions of the LGPL License are applicable instead of those above. }
32
{ If you wish to allow use of your version of this file only under the terms }
33
{ of the LGPL License and not to allow others to use your version of this file }
34
{ under the MPL, indicate your decision by deleting the provisions above and }
35
{ replace them with the notice and other provisions required by the LGPL }
36
{ License. If you do not delete the provisions above, a recipient may use }
37
{ your version of this file under either the MPL or the LGPL License. }
39
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
41
{******************************************************************************}
43
// $Id: jwalmdfs.pas,v 1.1 2005/04/04 07:56:10 marco Exp $
50
{$HPPEMIT '#include "lmdfs.h"'}
58
JwaLmCons, JwaWinType;
65
DFS_VOLUME_STATES = $F;
66
{$EXTERNALSYM DFS_VOLUME_STATES}
68
DFS_VOLUME_STATE_OK = 1;
69
{$EXTERNALSYM DFS_VOLUME_STATE_OK}
70
DFS_VOLUME_STATE_INCONSISTENT = 2;
71
{$EXTERNALSYM DFS_VOLUME_STATE_INCONSISTENT}
72
DFS_VOLUME_STATE_OFFLINE = 3;
73
{$EXTERNALSYM DFS_VOLUME_STATE_OFFLINE}
74
DFS_VOLUME_STATE_ONLINE = 4;
75
{$EXTERNALSYM DFS_VOLUME_STATE_ONLINE}
78
// These are valid for setting the volume state on the root
79
// These are available to force a resynchronize on the root
80
// volume or to put it in a standby mode.
83
DFS_VOLUME_STATE_RESYNCHRONIZE = $10;
84
{$EXTERNALSYM DFS_VOLUME_STATE_RESYNCHRONIZE}
85
DFS_VOLUME_STATE_STANDBY = $20;
86
{$EXTERNALSYM DFS_VOLUME_STATE_STANDBY}
89
// These are valid on getting the volume state on the root
90
// These are available to determine the flavor of DFS
91
// A few bits are reserved to determine the flavor of the DFS root.
92
// To get the flavor, and the state with DFS_VOLUME_FLAVORS.
94
// (_state & DFS_VOLUME_FLAVORS) will tell you the flavor of the dfs root.
98
DFS_VOLUME_FLAVORS = $0300;
99
{$EXTERNALSYM DFS_VOLUME_FLAVORS}
101
DFS_VOLUME_FLAVOR_UNUSED1 = $0000;
102
{$EXTERNALSYM DFS_VOLUME_FLAVOR_UNUSED1}
103
DFS_VOLUME_FLAVOR_STANDALONE = $0100;
104
{$EXTERNALSYM DFS_VOLUME_FLAVOR_STANDALONE}
105
DFS_VOLUME_FLAVOR_AD_BLOB = $0200;
106
{$EXTERNALSYM DFS_VOLUME_FLAVOR_AD_BLOB}
107
DFS_STORAGE_FLAVOR_UNUSED2 = $0300;
108
{$EXTERNALSYM DFS_STORAGE_FLAVOR_UNUSED2}
114
DFS_STORAGE_STATES = $F;
115
{$EXTERNALSYM DFS_STORAGE_STATES}
116
DFS_STORAGE_STATE_OFFLINE = 1;
117
{$EXTERNALSYM DFS_STORAGE_STATE_OFFLINE}
118
DFS_STORAGE_STATE_ONLINE = 2;
119
{$EXTERNALSYM DFS_STORAGE_STATE_ONLINE}
120
DFS_STORAGE_STATE_ACTIVE = 4;
121
{$EXTERNALSYM DFS_STORAGE_STATE_ACTIVE}
128
LPDFS_INFO_1 = ^DFS_INFO_1;
129
{$EXTERNALSYM LPDFS_INFO_1}
130
PDFS_INFO_1 = ^DFS_INFO_1;
131
{$EXTERNALSYM PDFS_INFO_1}
133
EntryPath: LPWSTR; // Dfs name for the top of this piece of storage
135
{$EXTERNALSYM _DFS_INFO_1}
136
DFS_INFO_1 = _DFS_INFO_1;
137
{$EXTERNALSYM DFS_INFO_1}
138
TDfsInfo1 = DFS_INFO_1;
139
PDfsInfo1 = PDFS_INFO_1;
145
LPDFS_INFO_2 = ^DFS_INFO_2;
146
{$EXTERNALSYM LPDFS_INFO_2}
147
PDFS_INFO_2 = ^DFS_INFO_2;
148
{$EXTERNALSYM PDFS_INFO_2}
150
EntryPath: LPWSTR; // Dfs name for the top of this volume
151
Comment: LPWSTR; // Comment for this volume
152
State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
153
NumberOfStorages: DWORD; // Number of storages for this volume
155
{$EXTERNALSYM _DFS_INFO_2}
156
DFS_INFO_2 = _DFS_INFO_2;
157
{$EXTERNALSYM DFS_INFO_2}
158
TDfsInfo2 = DFS_INFO_2;
159
PDfsInfo2 = PDFS_INFO_2;
161
LPDFS_STORAGE_INFO = ^DFS_STORAGE_INFO;
162
{$EXTERNALSYM LPDFS_STORAGE_INFO}
163
PDFS_STORAGE_INFO = ^DFS_STORAGE_INFO;
164
{$EXTERNALSYM PDFS_STORAGE_INFO}
165
_DFS_STORAGE_INFO = record
166
State: ULONG; // State of this storage, one of DFS_STORAGE_STATE_*
167
// possibly OR'd with DFS_STORAGE_STATE_ACTIVE
168
ServerName: LPWSTR; // Name of server hosting this storage
169
ShareName: LPWSTR; // Name of share hosting this storage
171
{$EXTERNALSYM _DFS_STORAGE_INFO}
172
DFS_STORAGE_INFO = _DFS_STORAGE_INFO;
173
{$EXTERNALSYM DFS_STORAGE_INFO}
174
TDfsStorageInfo = DFS_STORAGE_INFO;
175
PDfsStorageInfo = PDFS_STORAGE_INFO;
181
LPDFS_INFO_3 = ^DFS_INFO_3;
182
{$EXTERNALSYM LPDFS_INFO_3}
183
PDFS_INFO_3 = ^DFS_INFO_3;
184
{$EXTERNALSYM PDFS_INFO_3}
186
EntryPath: LPWSTR; // Dfs name for the top of this volume
187
Comment: LPWSTR; // Comment for this volume
188
State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
189
NumberOfStorages: DWORD; // Number of storage servers for this volume
190
Storage: LPDFS_STORAGE_INFO; // An array (of NumberOfStorages elements) of storage-specific information.
192
{$EXTERNALSYM _DFS_INFO_3}
193
DFS_INFO_3 = _DFS_INFO_3;
194
{$EXTERNALSYM DFS_INFO_3}
195
TDfsInfo3 = DFS_INFO_3;
196
PDfsInfo3 = PDFS_INFO_3;
202
LPDFS_INFO_4 = ^DFS_INFO_4;
203
{$EXTERNALSYM LPDFS_INFO_4}
204
PDFS_INFO_4 = ^DFS_INFO_4;
205
{$EXTERNALSYM PDFS_INFO_4}
207
EntryPath: LPWSTR; // Dfs name for the top of this volume
208
Comment: LPWSTR; // Comment for this volume
209
State: DWORD; // State of this volume, one of DFS_VOLUME_STATE_*
210
Timeout: ULONG; // Timeout, in seconds, of this junction point
211
Guid: GUID; // Guid of this junction point
212
NumberOfStorages: DWORD; // Number of storage servers for this volume
213
Storage: LPDFS_STORAGE_INFO; // An array (of NumberOfStorages elements) of storage-specific information.
215
{$EXTERNALSYM _DFS_INFO_4}
216
DFS_INFO_4 = _DFS_INFO_4;
217
{$EXTERNALSYM DFS_INFO_4}
218
TDfsInfo4 = DFS_INFO_4;
219
PDfsInfo4 = PDFS_INFO_4;
225
LPDFS_INFO_100 = ^DFS_INFO_100;
226
{$EXTERNALSYM LPDFS_INFO_100}
227
PDFS_INFO_100 = ^DFS_INFO_100;
228
{$EXTERNALSYM PDFS_INFO_100}
229
_DFS_INFO_100 = record
230
Comment: LPWSTR; // Comment for this volume or storage
232
{$EXTERNALSYM _DFS_INFO_100}
233
DFS_INFO_100 = _DFS_INFO_100;
234
{$EXTERNALSYM DFS_INFO_100}
235
TDfsInfo100 = DFS_INFO_100;
236
PDfsInfo100 = PDFS_INFO_100;
242
LPDFS_INFO_101 = ^DFS_INFO_101;
243
{$EXTERNALSYM LPDFS_INFO_101}
244
PDFS_INFO_101 = ^DFS_INFO_101;
245
{$EXTERNALSYM PDFS_INFO_101}
246
_DFS_INFO_101 = record
247
State: DWORD; // State of this storage, one of DFS_STORAGE_STATE_*
248
// possibly OR'd with DFS_STORAGE_STATE_ACTIVE
250
{$EXTERNALSYM _DFS_INFO_101}
251
DFS_INFO_101 = _DFS_INFO_101;
252
{$EXTERNALSYM DFS_INFO_101}
253
TDfsInfo101 = DFS_INFO_101;
254
PDfsInfo101 = PDFS_INFO_101;
260
LPDFS_INFO_102 = ^DFS_INFO_102;
261
{$EXTERNALSYM LPDFS_INFO_102}
262
PDFS_INFO_102 = ^DFS_INFO_102;
263
{$EXTERNALSYM PDFS_INFO_102}
264
_DFS_INFO_102 = record
265
Timeout: ULONG; // Timeout, in seconds, of the junction
267
{$EXTERNALSYM _DFS_INFO_102}
268
DFS_INFO_102 = _DFS_INFO_102;
269
{$EXTERNALSYM DFS_INFO_102}
270
TDfsInfo102 = DFS_INFO_102;
271
PDfsInfo102 = PDFS_INFO_102;
277
LPDFS_INFO_200 = ^DFS_INFO_200;
278
{$EXTERNALSYM LPDFS_INFO_200}
279
PDFS_INFO_200 = ^DFS_INFO_200;
280
{$EXTERNALSYM PDFS_INFO_200}
281
_DFS_INFO_200 = record
282
FtDfsName: LPWSTR; // FtDfs name
284
{$EXTERNALSYM _DFS_INFO_200}
285
DFS_INFO_200 = _DFS_INFO_200;
286
{$EXTERNALSYM DFS_INFO_200}
287
TDfsInfo200 = DFS_INFO_200;
288
PDfsInfo200 = PDFS_INFO_200;
294
LPDFS_INFO_300 = ^DFS_INFO_300;
295
{$EXTERNALSYM LPDFS_INFO_300}
296
PDFS_INFO_300 = ^DFS_INFO_300;
297
{$EXTERNALSYM PDFS_INFO_300}
298
_DFS_INFO_300 = record
300
DfsName: LPWSTR; // Dfs name
302
{$EXTERNALSYM _DFS_INFO_300}
303
DFS_INFO_300 = _DFS_INFO_300;
304
{$EXTERNALSYM DFS_INFO_300}
305
TDfsInfo300 = DFS_INFO_300;
306
PDfsInfo300 = PDFS_INFO_300;
309
// Add a new volume or additional storage for an existing volume at
313
function NetDfsAdd(DfsEntryPath, ServerName, ShareName, Comment: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
314
{$EXTERNALSYM NetDfsAdd}
321
DFS_ADD_VOLUME = 1; // Add a new volume to the DFS if not already there
322
{$EXTERNALSYM DFS_ADD_VOLUME}
323
DFS_RESTORE_VOLUME = 2; // Volume/Replica is being restored - do not verify share etc.
324
{$EXTERNALSYM DFS_RESTORE_VOLUME}
327
// Setup/teardown API's for standard and FtDfs roots.
330
function NetDfsAddStdRoot(ServerName, RootShare, Comment: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
331
{$EXTERNALSYM NetDfsAddStdRoot}
333
function NetDfsRemoveStdRoot(ServerName, RootShare: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
334
{$EXTERNALSYM NetDfsRemoveStdRoot}
336
function NetDfsAddFtRoot(ServerName, RootShare, FtDfsName, Comment: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
337
{$EXTERNALSYM NetDfsAddFtRoot}
339
function NetDfsRemoveFtRoot(ServerName, RootShare, FtDfsName: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
340
{$EXTERNALSYM NetDfsRemoveFtRoot}
342
function NetDfsRemoveFtRootForced(DomainName, ServerName, RootShare, FtDfsName: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
343
{$EXTERNALSYM NetDfsRemoveFtRootForced}
346
// Call to reinitialize the dfsmanager on a machine
349
function NetDfsManagerInitialize(ServerName: LPWSTR; Flags: DWORD): NET_API_STATUS; stdcall;
350
{$EXTERNALSYM NetDfsManagerInitialize}
352
function NetDfsAddStdRootForced(ServerName, RootShare, Comment, Store: LPWSTR): NET_API_STATUS; stdcall;
353
{$EXTERNALSYM NetDfsAddStdRootForced}
355
function NetDfsGetDcAddress(ServerName: LPWSTR; var DcIpAddress: LPWSTR; var IsRoot: BOOLEAN; Timeout: PULONG): NET_API_STATUS; stdcall;
356
{$EXTERNALSYM NetDfsGetDcAddress}
359
// Flags for NetDfsSetDcAddress()
363
NET_DFS_SETDC_FLAGS = $00000000;
364
{$EXTERNALSYM NET_DFS_SETDC_FLAGS}
365
NET_DFS_SETDC_TIMEOUT = $00000001;
366
{$EXTERNALSYM NET_DFS_SETDC_TIMEOUT}
367
NET_DFS_SETDC_INITPKT = $00000002;
368
{$EXTERNALSYM NET_DFS_SETDC_INITPKT}
371
// Structures used for site reporting
375
LPDFS_SITENAME_INFO = ^DFS_SITENAME_INFO;
376
{$EXTERNALSYM LPDFS_SITENAME_INFO}
377
PDFS_SITENAME_INFO = ^DFS_SITENAME_INFO;
378
{$EXTERNALSYM PDFS_SITENAME_INFO}
379
DFS_SITENAME_INFO = record
380
SiteFlags: ULONG; // Below
383
{$EXTERNALSYM DFS_SITENAME_INFO}
384
TDfsSiteNameInfo = DFS_SITENAME_INFO;
385
PDfsSiteNameInfo = PDFS_SITENAME_INFO;
390
DFS_SITE_PRIMARY = $1; // This site returned by DsGetSiteName()
391
{$EXTERNALSYM DFS_SITE_PRIMARY}
394
LPDFS_SITELIST_INFO = ^DFS_SITELIST_INFO;
395
{$EXTERNALSYM LPDFS_SITELIST_INFO}
396
PDFS_SITELIST_INFO = ^DFS_SITELIST_INFO;
397
{$EXTERNALSYM PDFS_SITELIST_INFO}
398
DFS_SITELIST_INFO = record
400
Site: array [0..0] of DFS_SITENAME_INFO;
402
{$EXTERNALSYM DFS_SITELIST_INFO}
403
TDfsSiteListInfo = DFS_SITELIST_INFO;
404
PDfsSiteListInfo = PDFS_SITELIST_INFO;
407
// Remove a volume or additional storage for volume from the Dfs at
408
// DfsEntryPath. When applied to the last storage in a volume, removes
409
// the volume from the DFS.
412
function NetDfsRemove(DfsEntryPath, ServerName, ShareName: LPWSTR): NET_API_STATUS; stdcall;
413
{$EXTERNALSYM NetDfsRemove}
416
// Get information about all of the volumes in the Dfs. DfsName is
417
// the "server" part of the UNC name used to refer to this particular Dfs.
419
// Valid levels are 1-4, 200
422
function NetDfsEnum(DfsName: LPWSTR; Level, PrefMaxLen: DWORD; var Buffer: LPBYTE; EntriesRead, ResumeHandle: LPDWORD): NET_API_STATUS; stdcall;
423
{$EXTERNALSYM NetDfsEnum}
426
// Get information about the volume or storage.
427
// If ServerName and ShareName are specified, the information returned
428
// is specific to that server and share, else the information is specific
429
// to the volume as a whole.
431
// Valid levels are 1-4, 100
434
function NetDfsGetInfo(DfsEntryPath, ServerName, ShareName: LPWSTR; Level: DWORD; var Buffer: LPBYTE): NET_API_STATUS; stdcall;
435
{$EXTERNALSYM NetDfsGetInfo}
438
// Set info about the volume or storage.
439
// If ServerName and ShareName are specified, the information set is
440
// specific to that server and share, else the information is specific
441
// to the volume as a whole.
443
// Valid levels are 100, 101 and 102
446
function NetDfsSetInfo(DfsEntryPath, ServerName, ShareName: LPWSTR; Level: DWORD; Buffer: LPBYTE): NET_API_STATUS; stdcall;
447
{$EXTERNALSYM NetDfsSetInfo}
450
// Get client's cached information about the volume or storage.
451
// If ServerName and ShareName are specified, the information returned
452
// is specific to that server and share, else the information is specific
453
// to the volume as a whole.
455
// Valid levels are 1-4
458
function NetDfsGetClientInfo(DfsEntryPath, ServerName, ShareName: LPWSTR; Level: DWORD; var Buffer: LPBYTE): NET_API_STATUS; stdcall;
459
{$EXTERNALSYM NetDfsGetClientInfo}
462
// Set client's cached info about the volume or storage.
463
// If ServerName and ShareName are specified, the information set is
464
// specific to that server and share, else the information is specific
465
// to the volume as a whole.
467
// Valid levels are 101 and 102.
470
function NetDfsSetClientInfo(DfsEntryPath, ServerName, ShareName: LPWSTR; Level: DWORD; Buffer: LPBYTE): NET_API_STATUS; stdcall;
471
{$EXTERNALSYM NetDfsSetClientInfo}
474
// Move a DFS volume and all subordinate volumes from one place in the
475
// DFS to another place in the DFS.
478
function NetDfsMove(DfsEntryPath: LPWSTR; DfsNewEntryPath: LPWSTR): NET_API_STATUS; stdcall;
479
{$EXTERNALSYM NetDfsMove}
481
function NetDfsRename(Path: LPWSTR; NewPath: LPWSTR): NET_API_STATUS; stdcall;
482
{$EXTERNALSYM NetDfsRename}
486
{$IFDEF DYNAMIC_LINK}
493
GetProcedureAddress(_NetDfsAdd, netapi32, 'NetDfsAdd');
502
_NetDfsAddStdRoot: Pointer;
504
function NetDfsAddStdRoot;
506
GetProcedureAddress(_NetDfsAddStdRoot, netapi32, 'NetDfsAddStdRoot');
510
JMP [_NetDfsAddStdRoot]
515
_NetDfsRemoveStdRoot: Pointer;
517
function NetDfsRemoveStdRoot;
519
GetProcedureAddress(_NetDfsRemoveStdRoot, netapi32, 'NetDfsRemoveStdRoot');
523
JMP [_NetDfsRemoveStdRoot]
528
_NetDfsAddFtRoot: Pointer;
530
function NetDfsAddFtRoot;
532
GetProcedureAddress(_NetDfsAddFtRoot, netapi32, 'NetDfsAddFtRoot');
536
JMP [_NetDfsAddFtRoot]
541
_NetDfsRemoveFtRoot: Pointer;
543
function NetDfsRemoveFtRoot;
545
GetProcedureAddress(_NetDfsRemoveFtRoot, netapi32, 'NetDfsRemoveFtRoot');
549
JMP [_NetDfsRemoveFtRoot]
554
_NetDfsRemoveFtRootForced: Pointer;
556
function NetDfsRemoveFtRootForced;
558
GetProcedureAddress(_NetDfsRemoveFtRootForced, netapi32, 'NetDfsRemoveFtRootForced');
562
JMP [_NetDfsRemoveFtRootForced]
567
_NetDfsManagerInitialize: Pointer;
569
function NetDfsManagerInitialize;
571
GetProcedureAddress(_NetDfsManagerInitialize, netapi32, 'NetDfsManagerInitialize');
575
JMP [_NetDfsManagerInitialize]
580
_NetDfsAddStdRootForced: Pointer;
582
function NetDfsAddStdRootForced;
584
GetProcedureAddress(_NetDfsAddStdRootForced, netapi32, 'NetDfsAddStdRootForced');
588
JMP [_NetDfsAddStdRootForced]
593
_NetDfsGetDcAddress: Pointer;
595
function NetDfsGetDcAddress;
597
GetProcedureAddress(_NetDfsGetDcAddress, netapi32, 'NetDfsGetDcAddress');
601
JMP [_NetDfsGetDcAddress]
606
_NetDfsRemove: Pointer;
608
function NetDfsRemove;
610
GetProcedureAddress(_NetDfsRemove, netapi32, 'NetDfsRemove');
619
_NetDfsEnum: Pointer;
623
GetProcedureAddress(_NetDfsEnum, netapi32, 'NetDfsEnum');
632
_NetDfsGetInfo: Pointer;
634
function NetDfsGetInfo;
636
GetProcedureAddress(_NetDfsGetInfo, netapi32, 'NetDfsGetInfo');
645
_NetDfsSetInfo: Pointer;
647
function NetDfsSetInfo;
649
GetProcedureAddress(_NetDfsSetInfo, netapi32, 'NetDfsSetInfo');
658
_NetDfsGetClientInfo: Pointer;
660
function NetDfsGetClientInfo;
662
GetProcedureAddress(_NetDfsGetClientInfo, netapi32, 'NetDfsGetClientInfo');
666
JMP [_NetDfsGetClientInfo]
671
_NetDfsSetClientInfo: Pointer;
673
function NetDfsSetClientInfo;
675
GetProcedureAddress(_NetDfsSetClientInfo, netapi32, 'NetDfsSetClientInfo');
679
JMP [_NetDfsSetClientInfo]
684
_NetDfsMove: Pointer;
688
GetProcedureAddress(_NetDfsMove, netapi32, 'NetDfsMove');
697
_NetDfsRename: Pointer;
699
function NetDfsRename;
701
GetProcedureAddress(_NetDfsRename, netapi32, 'NetDfsRename');
711
function NetDfsAdd; external netapi32 name 'NetDfsAdd';
712
function NetDfsAddStdRoot; external netapi32 name 'NetDfsAddStdRoot';
713
function NetDfsRemoveStdRoot; external netapi32 name 'NetDfsRemoveStdRoot';
714
function NetDfsAddFtRoot; external netapi32 name 'NetDfsAddFtRoot';
715
function NetDfsRemoveFtRoot; external netapi32 name 'NetDfsRemoveFtRoot';
716
function NetDfsRemoveFtRootForced; external netapi32 name 'NetDfsRemoveFtRootForced';
717
function NetDfsManagerInitialize; external netapi32 name 'NetDfsManagerInitialize';
718
function NetDfsAddStdRootForced; external netapi32 name 'NetDfsAddStdRootForced';
719
function NetDfsGetDcAddress; external netapi32 name 'NetDfsGetDcAddress';
720
function NetDfsRemove; external netapi32 name 'NetDfsRemove';
721
function NetDfsEnum; external netapi32 name 'NetDfsEnum';
722
function NetDfsGetInfo; external netapi32 name 'NetDfsGetInfo';
723
function NetDfsSetInfo; external netapi32 name 'NetDfsSetInfo';
724
function NetDfsGetClientInfo; external netapi32 name 'NetDfsGetClientInfo';
725
function NetDfsSetClientInfo; external netapi32 name 'NetDfsSetClientInfo';
726
function NetDfsMove; external netapi32 name 'NetDfsMove';
727
function NetDfsRename; external netapi32 name 'NetDfsRename';
729
{$ENDIF DYNAMIC_LINK}