summaryrefslogtreecommitdiffstats
path: root/vendor/winapi/src/um/lmdfs.rs
blob: a0be98b26ca358d6b1684d6f401eba9c64839694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
// All files in the project carrying such notice may not be copied, modified, or distributed
// except according to those terms.
// This file contains structures, function prototypes, and definitions for the NetDfs API
use shared::guiddef::GUID;
use shared::lmcons::NET_API_STATUS;
use shared::minwindef::{DWORD, LPBYTE, LPDWORD, ULONG, USHORT};
use um::winnt::{LPWSTR, PSECURITY_DESCRIPTOR, PWSTR, SECURITY_INFORMATION, ULONGLONG, WCHAR};
pub const DFS_VOLUME_STATES: DWORD = 0xF;
pub const DFS_VOLUME_STATE_OK: DWORD = 1;
pub const DFS_VOLUME_STATE_INCONSISTENT: DWORD = 2;
pub const DFS_VOLUME_STATE_OFFLINE: DWORD = 3;
pub const DFS_VOLUME_STATE_ONLINE: DWORD = 4;
pub const DFS_VOLUME_STATE_RESYNCHRONIZE: DWORD = 0x10;
pub const DFS_VOLUME_STATE_STANDBY: DWORD = 0x20;
pub const DFS_VOLUME_STATE_FORCE_SYNC: DWORD = 0x40;
pub const DFS_VOLUME_FLAVORS: DWORD = 0x0300;
pub const DFS_VOLUME_FLAVOR_UNUSED1: DWORD = 0x0000;
pub const DFS_VOLUME_FLAVOR_STANDALONE: DWORD = 0x0100;
pub const DFS_VOLUME_FLAVOR_AD_BLOB: DWORD = 0x0200;
pub const DFS_STORAGE_FLAVOR_UNUSED2: DWORD = 0x0300;
pub const DFS_STORAGE_STATES: ULONG = 0xF;
pub const DFS_STORAGE_STATE_OFFLINE: ULONG = 1;
pub const DFS_STORAGE_STATE_ONLINE: ULONG = 2;
pub const DFS_STORAGE_STATE_ACTIVE: ULONG = 4;
ENUM!{enum DFS_TARGET_PRIORITY_CLASS {
    DfsInvalidPriorityClass = -1i32 as u32,
    DfsSiteCostNormalPriorityClass = 0,
    DfsGlobalHighPriorityClass,
    DfsSiteCostHighPriorityClass,
    DfsSiteCostLowPriorityClass,
    DfsGlobalLowPriorityClass,
}}
STRUCT!{struct DFS_TARGET_PRIORITY {
    TargetPriorityClass: DFS_TARGET_PRIORITY_CLASS,
    TargetPriorityRank: USHORT,
    Reserved: USHORT,
}}
pub type PDFS_TARGET_PRIORITY = *mut DFS_TARGET_PRIORITY;
STRUCT!{struct DFS_INFO_1 {
    EntryPath: LPWSTR,
}}
pub type PDFS_INFO_1 = *mut DFS_INFO_1;
pub type LPDFS_INFO_1 = *mut DFS_INFO_1;
#[cfg(target_pointer_width = "64")]
IFDEF!{
STRUCT!{struct DFS_INFO_1_32 {
    EntryPath: ULONG,
}}
pub type PDFS_INFO_1_32 = *mut DFS_INFO_1_32;
pub type LPDFS_INFO_1_32 = *mut DFS_INFO_1_32;
}
STRUCT!{struct DFS_INFO_2 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    NumberOfStorages: DWORD,
}}
pub type PDFS_INFO_2 = *mut DFS_INFO_2;
pub type LPDFS_INFO_2 = *mut DFS_INFO_2;
#[cfg(target_pointer_width = "64")]
IFDEF!{
STRUCT!{struct DFS_INFO_2_32 {
    EntryPath: ULONG,
    Comment: ULONG,
    State: DWORD,
    NumberOfStorages: DWORD,
}}
pub type PDFS_INFO_2_32 = *mut DFS_INFO_2_32;
pub type LPDFS_INFO_2_32 = *mut DFS_INFO_2_32;
}
STRUCT!{struct DFS_STORAGE_INFO {
    State: ULONG,
    ServerName: LPWSTR,
    ShareName: LPWSTR,
}}
pub type PDFS_STORAGE_INFO = *mut DFS_STORAGE_INFO;
pub type LPDFS_STORAGE_INFO = *mut DFS_STORAGE_INFO;
#[cfg(target_pointer_width = "64")]
IFDEF!{
STRUCT!{struct DFS_STORAGE_INFO_0_32 {
    State: ULONG,
    ServerName: ULONG,
    ShareName: ULONG,
}}
pub type PDFS_STORAGE_INFO_0_32 = *mut DFS_STORAGE_INFO_0_32;
pub type LPDFS_STORAGE_INFO_0_32 = *mut DFS_STORAGE_INFO_0_32;
}
STRUCT!{struct DFS_STORAGE_INFO_1 {
    State: ULONG,
    ServerName: LPWSTR,
    ShareName: LPWSTR,
    TargetPriority: DFS_TARGET_PRIORITY,
}}
pub type PDFS_STORAGE_INFO_1 = *mut DFS_STORAGE_INFO_1;
pub type LPDFS_STORAGE_INFO_1 = *mut DFS_STORAGE_INFO_1;
STRUCT!{struct DFS_INFO_3 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    NumberOfStorages: DWORD,
    Storage: LPDFS_STORAGE_INFO,
}}
pub type PDFS_INFO_3 = *mut DFS_INFO_3;
pub type LPDFS_INFO_3 = *mut DFS_INFO_3;
#[cfg(target_pointer_width = "64")]
IFDEF!{
STRUCT!{struct DFS_INFO_3_32 {
    EntryPath: ULONG,
    Comment: ULONG,
    State: DWORD,
    NumberOfStorages: DWORD,
    Storage: ULONG,
}}
pub type PDFS_INFO_3_32 = *mut DFS_INFO_3_32;
pub type LPDFS_INFO_3_32 = *mut DFS_INFO_3_32;
}
STRUCT!{struct DFS_INFO_4 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    NumberOfStorages: DWORD,
    Storage: LPDFS_STORAGE_INFO,
}}
pub type PDFS_INFO_4 = *mut DFS_INFO_4;
pub type LPDFS_INFO_4 = *mut DFS_INFO_4;
#[cfg(target_pointer_width = "64")]
IFDEF!{
STRUCT!{struct DFS_INFO_4_32 {
    EntryPath: ULONG,
    Comment: ULONG,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    NumberOfStorages: DWORD,
    Storage: ULONG,
}}
pub type PDFS_INFO_4_32 = *mut DFS_INFO_4_32;
pub type LPDFS_INFO_4_32 = *mut DFS_INFO_4_32;
}
STRUCT!{struct DFS_INFO_5 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    PropertyFlags: ULONG,
    MetadataSize: ULONG,
    NumberOfStorages: DWORD,
}}
pub type PDFS_INFO_5 = *mut DFS_INFO_5;
pub type LPDFS_INFO_5 = *mut DFS_INFO_5;
STRUCT!{struct DFS_INFO_6 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    PropertyFlags: ULONG,
    MetadataSize: ULONG,
    NumberOfStorages: DWORD,
    Storage: LPDFS_STORAGE_INFO,
}}
pub type PDFS_INFO_6 = *mut DFS_INFO_6;
pub type LPDFS_INFO_6 = *mut DFS_INFO_6;
STRUCT!{struct DFS_INFO_7 {
    GenerationGuid: GUID,
}}
pub type PDFS_INFO_7 = *mut DFS_INFO_7;
pub type LPDFS_INFO_7 = *mut DFS_INFO_7;
STRUCT!{struct DFS_INFO_8 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    PropertyFlags: ULONG,
    MetadataSize: ULONG,
    SdLengthReserved: ULONG,
    pSecurityDescriptor: PSECURITY_DESCRIPTOR,
    NumberOfStorages: DWORD,
}}
pub type PDFS_INFO_8 = *mut DFS_INFO_8;
pub type LPDFS_INFO_8 = *mut DFS_INFO_8;
STRUCT!{struct DFS_INFO_9 {
    EntryPath: LPWSTR,
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    Guid: GUID,
    PropertyFlags: ULONG,
    MetadataSize: ULONG,
    SdLengthReserved: ULONG,
    pSecurityDescriptor: PSECURITY_DESCRIPTOR,
    NumberOfStorages: DWORD,
    Storage: LPDFS_STORAGE_INFO,
}}
pub type PDFS_INFO_9 = *mut DFS_INFO_9;
pub type LPDFS_INFO_9 = *mut DFS_INFO_9;
pub const DFS_VALID_PROPERTY_FLAGS: ULONG = DFS_PROPERTY_FLAG_INSITE_REFERRALS
    | DFS_PROPERTY_FLAG_ROOT_SCALABILITY | DFS_PROPERTY_FLAG_SITE_COSTING
    | DFS_PROPERTY_FLAG_TARGET_FAILBACK | DFS_PROPERTY_FLAG_CLUSTER_ENABLED
    | DFS_PROPERTY_FLAG_ABDE;
pub const DFS_PROPERTY_FLAG_INSITE_REFERRALS: ULONG = 0x00000001;
pub const DFS_PROPERTY_FLAG_ROOT_SCALABILITY: ULONG = 0x00000002;
pub const DFS_PROPERTY_FLAG_SITE_COSTING: ULONG = 0x00000004;
pub const DFS_PROPERTY_FLAG_TARGET_FAILBACK: ULONG = 0x00000008;
pub const DFS_PROPERTY_FLAG_CLUSTER_ENABLED: ULONG = 0x00000010;
pub const DFS_PROPERTY_FLAG_ABDE: ULONG = 0x00000020;
STRUCT!{struct DFS_INFO_50 {
    NamespaceMajorVersion: ULONG,
    NamespaceMinorVersion: ULONG,
    NamespaceCapabilities: ULONGLONG,
}}
pub type PDFS_INFO_50 = *mut DFS_INFO_50;
pub type LPDFS_INFO_50 = *mut DFS_INFO_50;
STRUCT!{struct DFS_INFO_100 {
    Comment: LPWSTR,
}}
pub type PDFS_INFO_100 = *mut DFS_INFO_100;
pub type LPDFS_INFO_100 = *mut DFS_INFO_100;
STRUCT!{struct DFS_INFO_101 {
    State: DWORD,
}}
pub type PDFS_INFO_101 = *mut DFS_INFO_101;
pub type LPDFS_INFO_101 = *mut DFS_INFO_101;
STRUCT!{struct DFS_INFO_102 {
    Timeout: ULONG,
}}
pub type PDFS_INFO_102 = *mut DFS_INFO_102;
pub type LPDFS_INFO_102 = *mut DFS_INFO_102;
STRUCT!{struct DFS_INFO_103 {
    PropertyFlagMask: ULONG,
    PropertyFlags: ULONG,
}}
pub type PDFS_INFO_103 = *mut DFS_INFO_103;
pub type LPDFS_INFO_103 = *mut DFS_INFO_103;
STRUCT!{struct DFS_INFO_104 {
    TargetPriority: DFS_TARGET_PRIORITY,
}}
pub type PDFS_INFO_104 = *mut DFS_INFO_104;
pub type LPDFS_INFO_104 = *mut DFS_INFO_104;
STRUCT!{struct DFS_INFO_105 {
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    PropertyFlagMask: ULONG,
    PropertyFlags: ULONG,
}}
pub type PDFS_INFO_105 = *mut DFS_INFO_105;
pub type LPDFS_INFO_105 = *mut DFS_INFO_105;
STRUCT!{struct DFS_INFO_106 {
    State: DWORD,
    TargetPriority: DFS_TARGET_PRIORITY,
}}
pub type PDFS_INFO_106 = *mut DFS_INFO_106;
pub type LPDFS_INFO_106 = *mut DFS_INFO_106;
STRUCT!{struct DFS_INFO_107 {
    Comment: LPWSTR,
    State: DWORD,
    Timeout: ULONG,
    PropertyFlagMask: ULONG,
    PropertyFlags: ULONG,
    SdLengthReserved: ULONG,
    pSecurityDescriptor: PSECURITY_DESCRIPTOR,
}}
pub type PDFS_INFO_107 = *mut DFS_INFO_107;
pub type LPDFS_INFO_107 = *mut DFS_INFO_107;
STRUCT!{struct DFS_INFO_150 {
    SdLengthReserved: ULONG,
    pSecurityDescriptor: PSECURITY_DESCRIPTOR,
}}
pub type PDFS_INFO_150 = *mut DFS_INFO_150;
pub type LPDFS_INFO_150 = *mut DFS_INFO_150;
STRUCT!{struct DFS_INFO_200 {
    FtDfsName: LPWSTR,
}}
pub type PDFS_INFO_200 = *mut DFS_INFO_200;
pub type LPDFS_INFO_200 = *mut DFS_INFO_200;
STRUCT!{struct DFS_INFO_300 {
    Flags: DWORD,
    DfsName: LPWSTR,
}}
pub type PDFS_INFO_300 = *mut DFS_INFO_300;
pub type LPDFS_INFO_300 = *mut DFS_INFO_300;
extern "system" {
    pub fn NetDfsAdd(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
        Comment: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
}
pub const DFS_ADD_VOLUME: DWORD = 1;
pub const DFS_RESTORE_VOLUME: DWORD = 2;
extern "system" {
    pub fn NetDfsAddStdRoot(
        ServerName: LPWSTR,
        RootShare: LPWSTR,
        Comment: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsRemoveStdRoot(
        ServerName: LPWSTR,
        RootShare: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsAddFtRoot(
        ServerName: LPWSTR,
        RootShare: LPWSTR,
        FtDfsName: LPWSTR,
        Comment: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsRemoveFtRoot(
        ServerName: LPWSTR,
        RootShare: LPWSTR,
        FtDfsName: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsRemoveFtRootForced(
        DomainName: LPWSTR,
        ServerName: LPWSTR,
        RootShare: LPWSTR,
        FtDfsName: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
}
pub const NET_DFS_SETDC_FLAGS: DWORD = 0x00000000;
pub const NET_DFS_SETDC_TIMEOUT: DWORD = 0x00000001;
pub const NET_DFS_SETDC_INITPKT: DWORD = 0x00000002;
STRUCT!{struct DFS_SITENAME_INFO {
    SiteFlags: ULONG,
    SiteName: LPWSTR,
}}
pub type PDFS_SITENAME_INFO = *mut DFS_SITENAME_INFO;
pub type LPDFS_SITENAME_INFO = *mut DFS_SITENAME_INFO;
pub const DFS_SITE_PRIMARY: ULONG = 0x1;
STRUCT!{struct DFS_SITELIST_INFO {
    cSites: ULONG,
    Site: [DFS_SITENAME_INFO; 1],
}}
pub type PDFS_SITELIST_INFO = *mut DFS_SITELIST_INFO;
pub type LPDFS_SITELIST_INFO = *mut DFS_SITELIST_INFO;
extern "system" {
    pub fn NetDfsRemove(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
    ) -> NET_API_STATUS;
    pub fn NetDfsEnum(
        DfsName: LPWSTR,
        Level: DWORD,
        PrefMaxLen: DWORD,
        Buffer: *mut LPBYTE,
        EntriesRead: LPDWORD,
        ResumeHandle: LPDWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsGetInfo(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
        Level: DWORD,
        Buffer: *mut LPBYTE,
    ) -> NET_API_STATUS;
    pub fn NetDfsSetInfo(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
        Level: DWORD,
        Buffer: LPBYTE,
    ) -> NET_API_STATUS;
    pub fn NetDfsGetClientInfo(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
        Level: DWORD,
        Buffer: *mut LPBYTE,
    ) -> NET_API_STATUS;
    pub fn NetDfsSetClientInfo(
        DfsEntryPath: LPWSTR,
        ServerName: LPWSTR,
        ShareName: LPWSTR,
        Level: DWORD,
        Buffer: LPBYTE,
    ) -> NET_API_STATUS;
    pub fn NetDfsMove(
        OldDfsEntryPath: LPWSTR,
        NewDfsEntryPath: LPWSTR,
        Flags: ULONG,
    ) -> NET_API_STATUS;
}
pub const DFS_MOVE_FLAG_REPLACE_IF_EXISTS: ULONG = 0x00000001;
extern "system" {
    pub fn NetDfsRename(
        Path: LPWSTR,
        NewPath: LPWSTR,
    ) -> NET_API_STATUS;
    pub fn NetDfsAddRootTarget(
        pDfsPath: LPWSTR,
        pTargetPath: LPWSTR,
        MajorVersion: ULONG,
        pComment: LPWSTR,
        Flags: ULONG,
    ) -> NET_API_STATUS;
}
pub const DFS_FORCE_REMOVE: ULONG = 0x80000000;
extern "system" {
    pub fn NetDfsRemoveRootTarget(
        pDfsPath: LPWSTR,
        pTargetPath: LPWSTR,
        Flags: DWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsGetSecurity(
        DfsEntryPath: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        ppSecurityDescriptor: *mut PSECURITY_DESCRIPTOR,
        lpcbSecurityDescriptor: LPDWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsSetSecurity(
        DfsEntryPath: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        pSecurityDescriptor: PSECURITY_DESCRIPTOR,
    ) -> NET_API_STATUS;
    pub fn NetDfsGetStdContainerSecurity(
        MachineName: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        ppSecurityDescriptor: *mut PSECURITY_DESCRIPTOR,
        lpcbSecurityDescriptor: LPDWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsSetStdContainerSecurity(
        MachineName: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        pSecurityDescriptor: PSECURITY_DESCRIPTOR,
    ) -> NET_API_STATUS;
    pub fn NetDfsGetFtContainerSecurity(
        DomainName: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        ppSecurityDescriptor: *mut PSECURITY_DESCRIPTOR,
        lpcbSecurityDescriptor: LPDWORD,
    ) -> NET_API_STATUS;
    pub fn NetDfsSetFtContainerSecurity(
        DomainName: LPWSTR,
        SecurityInformation: SECURITY_INFORMATION,
        pSecurityDescriptor: PSECURITY_DESCRIPTOR,
    ) -> NET_API_STATUS;
}
ENUM!{enum DFS_NAMESPACE_VERSION_ORIGIN {
    DFS_NAMESPACE_VERSION_ORIGIN_COMBINED = 0,
    DFS_NAMESPACE_VERSION_ORIGIN_SERVER,
    DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN,
}}
pub type PDFS_NAMESPACE_VERSION_ORIGIN = *mut DFS_NAMESPACE_VERSION_ORIGIN;
pub const DFS_NAMESPACE_CAPABILITY_ABDE: ULONGLONG = 0x0000000000000001;
STRUCT!{struct DFS_SUPPORTED_NAMESPACE_VERSION_INFO {
    DomainDfsMajorVersion: ULONG,
    DomainDfsMinorVersion: ULONG,
    DomainDfsCapabilities: ULONGLONG,
    StandaloneDfsMajorVersion: ULONG,
    StandaloneDfsMinorVersion: ULONG,
    StandaloneDfsCapabilities: ULONGLONG,
}}
pub type PDFS_SUPPORTED_NAMESPACE_VERSION_INFO = *mut DFS_SUPPORTED_NAMESPACE_VERSION_INFO;
extern "system" {
    pub fn NetDfsGetSupportedNamespaceVersion(
        Origin: DFS_NAMESPACE_VERSION_ORIGIN,
        pName: PWSTR,
        ppVersionInfo: *mut PDFS_SUPPORTED_NAMESPACE_VERSION_INFO,
    ) -> NET_API_STATUS;
}
STRUCT!{struct DFS_GET_PKT_ENTRY_STATE_ARG {
    DfsEntryPathLen: USHORT,
    ServerNameLen: USHORT,
    ShareNameLen: USHORT,
    Level: ULONG,
    Buffer: [WCHAR; 1],
}}
pub type PDFS_GET_PKT_ENTRY_STATE_ARG = *mut DFS_GET_PKT_ENTRY_STATE_ARG;