This file is indexed.

/usr/i686-w64-mingw32/include/lmdfs.h is in mingw-w64-i686-dev 2.0.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the w64 mingw-runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _LMDFS_
#define _LMDFS_

#ifdef __cplusplus
extern "C" {
#endif

#ifndef NET_API_FUNCTION
#define NET_API_FUNCTION WINAPI
#endif

#define DFS_VOLUME_STATES 0xF

#define DFS_VOLUME_STATE_OK 1
#define DFS_VOLUME_STATE_INCONSISTENT 2
#define DFS_VOLUME_STATE_OFFLINE 3
#define DFS_VOLUME_STATE_ONLINE 4

#define DFS_VOLUME_STATE_RESYNCHRONIZE 0x10
#define DFS_VOLUME_STATE_STANDBY 0x20

#define DFS_VOLUME_FLAVORS 0x0300

#define DFS_VOLUME_FLAVOR_UNUSED1 0x0000
#define DFS_VOLUME_FLAVOR_STANDALONE 0x0100
#define DFS_VOLUME_FLAVOR_AD_BLOB 0x0200
#define DFS_STORAGE_FLAVOR_UNUSED2 0x0300

#define DFS_STORAGE_STATES 0xF
#define DFS_STORAGE_STATE_OFFLINE 1
#define DFS_STORAGE_STATE_ONLINE 2
#define DFS_STORAGE_STATE_ACTIVE 4

  typedef enum _DFS_TARGET_PRIORITY_CLASS {
    DfsInvalidPriorityClass = -1,DfsSiteCostNormalPriorityClass = 0,DfsGlobalHighPriorityClass,DfsSiteCostHighPriorityClass,
    DfsSiteCostLowPriorityClass,DfsGlobalLowPriorityClass
  } DFS_TARGET_PRIORITY_CLASS;

  typedef struct _DFS_TARGET_PRIORITY {
    DFS_TARGET_PRIORITY_CLASS TargetPriorityClass;
    USHORT TargetPriorityRank;
    USHORT Reserved;
  } DFS_TARGET_PRIORITY,*PDFS_TARGET_PRIORITY;

  typedef struct _DFS_INFO_1 {
    LPWSTR EntryPath;
  } DFS_INFO_1,*PDFS_INFO_1,*LPDFS_INFO_1;

  typedef struct _DFS_INFO_2 {
    LPWSTR EntryPath;
    LPWSTR Comment;
    DWORD State;
    DWORD NumberOfStorages;
  } DFS_INFO_2,*PDFS_INFO_2,*LPDFS_INFO_2;

  typedef struct _DFS_STORAGE_INFO {
    ULONG State;
    LPWSTR ServerName;
    LPWSTR ShareName;
  } DFS_STORAGE_INFO,*PDFS_STORAGE_INFO,*LPDFS_STORAGE_INFO;

#ifdef _WIN64
  typedef struct _DFS_STORAGE_INFO_0_32 {
    ULONG State;
    ULONG ServerName;
    ULONG ShareName;
  } DFS_STORAGE_INFO_0_32,*PDFS_STORAGE_INFO_0_32,*LPDFS_STORAGE_INFO_0_32;
#endif

  typedef struct _DFS_STORAGE_INFO_1 {
    ULONG State;
    LPWSTR ServerName;
    LPWSTR ShareName;
    DFS_TARGET_PRIORITY TargetPriority;
  } DFS_STORAGE_INFO_1,*PDFS_STORAGE_INFO_1,*LPDFS_STORAGE_INFO_1;

  typedef struct _DFS_INFO_3 {
    LPWSTR EntryPath;
    LPWSTR Comment;
    DWORD State;
    DWORD NumberOfStorages;
    LPDFS_STORAGE_INFO Storage;
  } DFS_INFO_3,*PDFS_INFO_3,*LPDFS_INFO_3;

#ifdef _WIN64
  typedef struct _DFS_INFO_3_32 {
    ULONG EntryPath;
    ULONG Comment;
    DWORD State;
    DWORD NumberOfStorages;
    ULONG Storage;
  } DFS_INFO_3_32,*PDFS_INFO_3_32,*LPDFS_INFO_3_32;
#endif

  typedef struct _DFS_INFO_4 {
    LPWSTR EntryPath;
    LPWSTR Comment;
    DWORD State;
    ULONG Timeout;
    GUID Guid;
    DWORD NumberOfStorages;
    LPDFS_STORAGE_INFO Storage;
  } DFS_INFO_4,*PDFS_INFO_4,*LPDFS_INFO_4;

#ifdef _WIN64
  typedef struct _DFS_INFO_4_32 {
    ULONG EntryPath;
    ULONG Comment;
    DWORD State;
    ULONG Timeout;
    GUID Guid;
    DWORD NumberOfStorages;
    ULONG Storage;
  } DFS_INFO_4_32,*PDFS_INFO_4_32,*LPDFS_INFO_4_32;
#endif

  typedef struct _DFS_INFO_5 {
    LPWSTR EntryPath;
    LPWSTR Comment;
    DWORD State;
    ULONG Timeout;
    GUID Guid;
    ULONG PropertyFlags;
    ULONG MetadataSize;
    DWORD NumberOfStorages;
  } DFS_INFO_5,*PDFS_INFO_5,*LPDFS_INFO_5;

  typedef struct _DFS_INFO_6 {
    LPWSTR EntryPath;
    LPWSTR Comment;
    DWORD State;
    ULONG Timeout;
    GUID Guid;
    ULONG PropertyFlags;
    ULONG MetadataSize;
    DWORD NumberOfStorages;
    LPDFS_STORAGE_INFO_1 Storage;
  } DFS_INFO_6,*PDFS_INFO_6,*LPDFS_INFO_6;

  typedef struct _DFS_INFO_7 {
    GUID GenerationGuid;
  } DFS_INFO_7,*PDFS_INFO_7,*LPDFS_INFO_7;

#define DFS_PROPERTY_FLAG_INSITE_REFERRALS 0x00000001
#define DFS_PROPERTY_FLAG_ROOT_SCALABILITY 0x00000002
#define DFS_PROPERTY_FLAG_SITE_COSTING 0x00000004
#define DFS_PROPERTY_FLAG_TARGET_FAILBACK 0x00000008
#define DFS_PROPERTY_FLAG_CLUSTER_ENABLED 0x00000010
#define DFS_PROPERTY_FLAG_ABDE 0x00000020

  typedef struct _DFS_INFO_100 {
    LPWSTR Comment;
  } DFS_INFO_100,*PDFS_INFO_100,*LPDFS_INFO_100;

  typedef struct _DFS_INFO_101 {
    DWORD State;
  } DFS_INFO_101,*PDFS_INFO_101,*LPDFS_INFO_101;

  typedef struct _DFS_INFO_102 {
    ULONG Timeout;
  } DFS_INFO_102,*PDFS_INFO_102,*LPDFS_INFO_102;

  typedef struct _DFS_INFO_103 {
    ULONG PropertyFlagMask;
    ULONG PropertyFlags;
  } DFS_INFO_103,*PDFS_INFO_103,*LPDFS_INFO_103;

  typedef struct _DFS_INFO_104 {
    DFS_TARGET_PRIORITY TargetPriority;
  } DFS_INFO_104,*PDFS_INFO_104,*LPDFS_INFO_104;

  typedef struct _DFS_INFO_105 {
    LPWSTR Comment;
    DWORD State;
    ULONG Timeout;
    ULONG PropertyFlagMask;
    ULONG PropertyFlags;
  } DFS_INFO_105,*PDFS_INFO_105,*LPDFS_INFO_105;

  typedef struct _DFS_INFO_106 {
    DWORD State;
    DFS_TARGET_PRIORITY TargetPriority;
  } DFS_INFO_106,*PDFS_INFO_106,*LPDFS_INFO_106;

#if (_WIN32_WINNT >= 0x0600)
#define DFS_NAMESPACE_CAPABILITY_ABDE 0x0000000000000001

  typedef enum _DFS_NAMESPACE_VERSION_ORIGIN {
    DFS_NAMESPACE_VERSION_ORIGIN_COMBINED   = 0,
    DFS_NAMESPACE_VERSION_ORIGIN_SERVER     = 1,
    DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN     = 2 
  } DFS_NAMESPACE_VERSION_ORIGIN;

typedef struct _DFS_SUPPORTED_NAMESPACE_VERSION_INFO {
  ULONG     DomainDfsMajorVersion;
  ULONG     NamespaceMinorVersion;
  ULONGLONG DomainDfsCapabilities;
  ULONG     StandaloneDfsMajorVersion;
  ULONG     StandaloneDfsMinorVersion;
  ULONGLONG StandaloneDfsCapabilities;
} DFS_SUPPORTED_NAMESPACE_VERSION_INFO, *PDFS_SUPPORTED_NAMESPACE_VERSION_INFO;

  typedef struct _DFS_INFO_8 {
    LPWSTR               EntryPath;
    LPWSTR               Comment;
    DWORD                State;
    ULONG                Timeout;
    GUID                 Guid;
    ULONG                PropertyFlags;
    ULONG                MetadataSize;
    ULONG                SdLengthReserved;
    PSECURITY_DESCRIPTOR pSecurityDescriptor;
    DWORD                NumberOfStorages;
  } DFS_INFO_8, *PDFS_INFO_8;

  typedef struct _DFS_INFO_9 {
    LPWSTR               EntryPath;
    LPWSTR               Comment;
    DWORD                State;
    ULONG                Timeout;
    GUID                 Guid;
    ULONG                PropertyFlags;
    ULONG                MetadataSize;
    ULONG                SdLengthReserved;
    PSECURITY_DESCRIPTOR pSecurityDescriptor;
    DWORD                NumberOfStorages;
    LPDFS_STORAGE_INFO_1 Storage;
  } DFS_INFO_9, *PDFS_INFO_9;

  typedef struct _DFS_INFO_50 {
    ULONG     NamespaceMajorVersion;
    ULONG     NamespaceMinorVersion;
    ULONGLONG NamespaceCapabilities;
  } DFS_INFO_50, *PDFS_INFO_50;

  typedef struct _DFS_INFO_107 {
    LPWSTR               Comment;
    DWORD                State;
    ULONG                Timeout;
    ULONG                PropertyFlagMask;
    ULONG                PropertyFlags;
    ULONG                SdLengthReserved;
    PSECURITY_DESCRIPTOR pSecurityDescriptor;
  } DFS_INFO_107, *PDFS_INFO_107;

  typedef struct _DFS_INFO_150 {
    ULONG                SdLengthReserved;
    PSECURITY_DESCRIPTOR pSecurityDescriptor;
  } DFS_INFO_150, *PDFS_INFO_150;

NET_API_STATUS NET_API_FUNCTION NetDfsAddRootTarget(
  LPWSTR pDfsPath,
  LPWSTR pTargetPath,
  ULONG MajorVersion,
  LPWSTR pComment,
  ULONG Flags
);

NET_API_STATUS NET_API_FUNCTION NetDfsGetSupportedNamespaceVersion(
  DFS_NAMESPACE_VERSION_ORIGIN Origin,
  PWSTR pName,
  PDFS_SUPPORTED_NAMESPACE_VERSION_INFO *ppVersionInfo
);

NET_API_STATUS NET_API_FUNCTION NetDfsRemoveRootTarget(
  LPWSTR pDfsPath,
  LPWSTR pTargetPath,
  ULONG Flags
);

NET_API_STATUS WINAPI NetShareDelEx(
  LMSTR servername,
  DWORD level,
  LPBYTE buf
);

#endif /*(_WIN32_WINNT >= 0x0600)*/

  typedef struct _DFS_INFO_200 {
    LPWSTR FtDfsName;
  } DFS_INFO_200,*PDFS_INFO_200,*LPDFS_INFO_200;

  typedef struct _DFS_INFO_300 {
    DWORD Flags;
    LPWSTR DfsName;
  } DFS_INFO_300,*PDFS_INFO_300,*LPDFS_INFO_300;

#define DFS_ADD_VOLUME 1
#define DFS_RESTORE_VOLUME 2

  NET_API_STATUS WINAPI NetDfsAdd(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,LPWSTR Comment,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsAddStdRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR Comment,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsRemoveStdRoot(LPWSTR ServerName,LPWSTR RootShare,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsAddFtRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,LPWSTR Comment,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsRemoveFtRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsRemoveFtRootForced(LPWSTR DomainName,LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsManagerInitialize(LPWSTR ServerName,DWORD Flags);
  NET_API_STATUS WINAPI NetDfsAddStdRootForced(LPWSTR ServerName,LPWSTR RootShare,LPWSTR Comment,LPWSTR Store);
  NET_API_STATUS WINAPI NetDfsGetDcAddress(LPWSTR ServerName,LPWSTR *DcIpAddress,BOOLEAN *IsRoot,ULONG *Timeout);

#define NET_DFS_SETDC_FLAGS 0x00000000
#define NET_DFS_SETDC_TIMEOUT 0x00000001
#define NET_DFS_SETDC_INITPKT 0x00000002

  typedef struct {
    ULONG SiteFlags;
    LPWSTR SiteName;
  } DFS_SITENAME_INFO,*PDFS_SITENAME_INFO,*LPDFS_SITENAME_INFO;

#define DFS_SITE_PRIMARY 0x1

  typedef struct {
    ULONG cSites;
    DFS_SITENAME_INFO Site[1];
  } DFS_SITELIST_INFO,*PDFS_SITELIST_INFO,*LPDFS_SITELIST_INFO;

  NET_API_STATUS WINAPI NetDfsRemove(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName);
  NET_API_STATUS WINAPI NetDfsEnum(LPWSTR DfsName,DWORD Level,DWORD PrefMaxLen,LPBYTE *Buffer,LPDWORD EntriesRead,LPDWORD ResumeHandle);
  NET_API_STATUS WINAPI NetDfsGetInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE *Buffer);
  NET_API_STATUS WINAPI NetDfsSetInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE Buffer);
  NET_API_STATUS WINAPI NetDfsGetClientInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE *Buffer);
  NET_API_STATUS WINAPI NetDfsSetClientInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE Buffer);
  NET_API_STATUS WINAPI NetDfsMove(LPWSTR DfsEntryPath,LPWSTR DfsNewEntryPath,ULONG Flags);

#define DFS_MOVE_FLAG_REPLACE_IF_EXISTS 0x00000001

  NET_API_STATUS WINAPI NetDfsRename(LPWSTR Path,LPWSTR NewPath);
  NET_API_STATUS WINAPI NetDfsGetSecurity(LPWSTR DfsEntryPath,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor);
  NET_API_STATUS WINAPI NetDfsSetSecurity(LPWSTR DfsEntryPath,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor);
  NET_API_STATUS WINAPI NetDfsGetStdContainerSecurity(LPWSTR MachineName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor);
  NET_API_STATUS WINAPI NetDfsSetStdContainerSecurity(LPWSTR MachineName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor);
  NET_API_STATUS WINAPI NetDfsGetFtContainerSecurity(LPWSTR DomainName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor);
  NET_API_STATUS WINAPI NetDfsSetFtContainerSecurity(LPWSTR DomainName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor);

#ifdef __cplusplus
}
#endif
#endif