Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/lmdfs.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef _LMDFS_ | |
| 7 #define _LMDFS_ | |
| 8 | |
| 9 #ifdef __cplusplus | |
| 10 extern "C" { | |
| 11 #endif | |
| 12 | |
| 13 #define DFS_VOLUME_STATES 0xF | |
| 14 | |
| 15 #define DFS_VOLUME_STATE_OK 1 | |
| 16 #define DFS_VOLUME_STATE_INCONSISTENT 2 | |
| 17 #define DFS_VOLUME_STATE_OFFLINE 3 | |
| 18 #define DFS_VOLUME_STATE_ONLINE 4 | |
| 19 | |
| 20 #define DFS_VOLUME_STATE_RESYNCHRONIZE 0x10 | |
| 21 #define DFS_VOLUME_STATE_STANDBY 0x20 | |
| 22 | |
| 23 #define DFS_VOLUME_FLAVORS 0x0300 | |
| 24 | |
| 25 #define DFS_VOLUME_FLAVOR_UNUSED1 0x0000 | |
| 26 #define DFS_VOLUME_FLAVOR_STANDALONE 0x0100 | |
| 27 #define DFS_VOLUME_FLAVOR_AD_BLOB 0x0200 | |
| 28 #define DFS_STORAGE_FLAVOR_UNUSED2 0x0300 | |
| 29 | |
| 30 #define DFS_STORAGE_STATES 0xF | |
| 31 #define DFS_STORAGE_STATE_OFFLINE 1 | |
| 32 #define DFS_STORAGE_STATE_ONLINE 2 | |
| 33 #define DFS_STORAGE_STATE_ACTIVE 4 | |
| 34 | |
| 35 typedef enum _DFS_TARGET_PRIORITY_CLASS { | |
| 36 DfsInvalidPriorityClass = -1,DfsSiteCostNormalPriorityClass = 0,DfsGlobalHighPriorityClass,DfsSiteCostHighPriorityClass, | |
| 37 DfsSiteCostLowPriorityClass,DfsGlobalLowPriorityClass | |
| 38 } DFS_TARGET_PRIORITY_CLASS; | |
| 39 | |
| 40 typedef struct _DFS_TARGET_PRIORITY { | |
| 41 DFS_TARGET_PRIORITY_CLASS TargetPriorityClass; | |
| 42 USHORT TargetPriorityRank; | |
| 43 USHORT Reserved; | |
| 44 } DFS_TARGET_PRIORITY,*PDFS_TARGET_PRIORITY; | |
| 45 | |
| 46 typedef struct _DFS_INFO_1 { | |
| 47 LPWSTR EntryPath; | |
| 48 } DFS_INFO_1,*PDFS_INFO_1,*LPDFS_INFO_1; | |
| 49 | |
| 50 typedef struct _DFS_INFO_2 { | |
| 51 LPWSTR EntryPath; | |
| 52 LPWSTR Comment; | |
| 53 DWORD State; | |
| 54 DWORD NumberOfStorages; | |
| 55 } DFS_INFO_2,*PDFS_INFO_2,*LPDFS_INFO_2; | |
| 56 | |
| 57 typedef struct _DFS_STORAGE_INFO { | |
| 58 ULONG State; | |
| 59 LPWSTR ServerName; | |
| 60 LPWSTR ShareName; | |
| 61 } DFS_STORAGE_INFO,*PDFS_STORAGE_INFO,*LPDFS_STORAGE_INFO; | |
| 62 | |
| 63 #ifdef _WIN64 | |
| 64 typedef struct _DFS_STORAGE_INFO_0_32 { | |
| 65 ULONG State; | |
| 66 ULONG ServerName; | |
| 67 ULONG ShareName; | |
| 68 } DFS_STORAGE_INFO_0_32,*PDFS_STORAGE_INFO_0_32,*LPDFS_STORAGE_INFO_0_32; | |
| 69 #endif | |
| 70 | |
| 71 typedef struct _DFS_STORAGE_INFO_1 { | |
| 72 ULONG State; | |
| 73 LPWSTR ServerName; | |
| 74 LPWSTR ShareName; | |
| 75 DFS_TARGET_PRIORITY TargetPriority; | |
| 76 } DFS_STORAGE_INFO_1,*PDFS_STORAGE_INFO_1,*LPDFS_STORAGE_INFO_1; | |
| 77 | |
| 78 typedef struct _DFS_INFO_3 { | |
| 79 LPWSTR EntryPath; | |
| 80 LPWSTR Comment; | |
| 81 DWORD State; | |
| 82 DWORD NumberOfStorages; | |
| 83 LPDFS_STORAGE_INFO Storage; | |
| 84 } DFS_INFO_3,*PDFS_INFO_3,*LPDFS_INFO_3; | |
| 85 | |
| 86 #ifdef _WIN64 | |
| 87 typedef struct _DFS_INFO_3_32 { | |
| 88 ULONG EntryPath; | |
| 89 ULONG Comment; | |
| 90 DWORD State; | |
| 91 DWORD NumberOfStorages; | |
| 92 ULONG Storage; | |
| 93 } DFS_INFO_3_32,*PDFS_INFO_3_32,*LPDFS_INFO_3_32; | |
| 94 #endif | |
| 95 | |
| 96 typedef struct _DFS_INFO_4 { | |
| 97 LPWSTR EntryPath; | |
| 98 LPWSTR Comment; | |
| 99 DWORD State; | |
| 100 ULONG Timeout; | |
| 101 GUID Guid; | |
| 102 DWORD NumberOfStorages; | |
| 103 LPDFS_STORAGE_INFO Storage; | |
| 104 } DFS_INFO_4,*PDFS_INFO_4,*LPDFS_INFO_4; | |
| 105 | |
| 106 #ifdef _WIN64 | |
| 107 typedef struct _DFS_INFO_4_32 { | |
| 108 ULONG EntryPath; | |
| 109 ULONG Comment; | |
| 110 DWORD State; | |
| 111 ULONG Timeout; | |
| 112 GUID Guid; | |
| 113 DWORD NumberOfStorages; | |
| 114 ULONG Storage; | |
| 115 } DFS_INFO_4_32,*PDFS_INFO_4_32,*LPDFS_INFO_4_32; | |
| 116 #endif | |
| 117 | |
| 118 typedef struct _DFS_INFO_5 { | |
| 119 LPWSTR EntryPath; | |
| 120 LPWSTR Comment; | |
| 121 DWORD State; | |
| 122 ULONG Timeout; | |
| 123 GUID Guid; | |
| 124 ULONG PropertyFlags; | |
| 125 ULONG MetadataSize; | |
| 126 DWORD NumberOfStorages; | |
| 127 } DFS_INFO_5,*PDFS_INFO_5,*LPDFS_INFO_5; | |
| 128 | |
| 129 typedef struct _DFS_INFO_6 { | |
| 130 LPWSTR EntryPath; | |
| 131 LPWSTR Comment; | |
| 132 DWORD State; | |
| 133 ULONG Timeout; | |
| 134 GUID Guid; | |
| 135 ULONG PropertyFlags; | |
| 136 ULONG MetadataSize; | |
| 137 DWORD NumberOfStorages; | |
| 138 LPDFS_STORAGE_INFO_1 Storage; | |
| 139 } DFS_INFO_6,*PDFS_INFO_6,*LPDFS_INFO_6; | |
| 140 | |
| 141 typedef struct _DFS_INFO_7 { | |
| 142 GUID GenerationGuid; | |
| 143 } DFS_INFO_7,*PDFS_INFO_7,*LPDFS_INFO_7; | |
| 144 | |
| 145 #define DFS_PROPERTY_FLAG_INSITE_REFERRALS 0x00000001 | |
| 146 #define DFS_PROPERTY_FLAG_ROOT_SCALABILITY 0x00000002 | |
| 147 #define DFS_PROPERTY_FLAG_SITE_COSTING 0x00000004 | |
| 148 #define DFS_PROPERTY_FLAG_TARGET_FAILBACK 0x00000008 | |
| 149 #define DFS_PROPERTY_FLAG_CLUSTER_ENABLED 0x00000010 | |
| 150 | |
| 151 typedef struct _DFS_INFO_100 { | |
| 152 LPWSTR Comment; | |
| 153 } DFS_INFO_100,*PDFS_INFO_100,*LPDFS_INFO_100; | |
| 154 | |
| 155 typedef struct _DFS_INFO_101 { | |
| 156 DWORD State; | |
| 157 } DFS_INFO_101,*PDFS_INFO_101,*LPDFS_INFO_101; | |
| 158 | |
| 159 typedef struct _DFS_INFO_102 { | |
| 160 ULONG Timeout; | |
| 161 } DFS_INFO_102,*PDFS_INFO_102,*LPDFS_INFO_102; | |
| 162 | |
| 163 typedef struct _DFS_INFO_103 { | |
| 164 ULONG PropertyFlagMask; | |
| 165 ULONG PropertyFlags; | |
| 166 } DFS_INFO_103,*PDFS_INFO_103,*LPDFS_INFO_103; | |
| 167 | |
| 168 typedef struct _DFS_INFO_104 { | |
| 169 DFS_TARGET_PRIORITY TargetPriority; | |
| 170 } DFS_INFO_104,*PDFS_INFO_104,*LPDFS_INFO_104; | |
| 171 | |
| 172 typedef struct _DFS_INFO_105 { | |
| 173 LPWSTR Comment; | |
| 174 DWORD State; | |
| 175 ULONG Timeout; | |
| 176 ULONG PropertyFlagMask; | |
| 177 ULONG PropertyFlags; | |
| 178 } DFS_INFO_105,*PDFS_INFO_105,*LPDFS_INFO_105; | |
| 179 | |
| 180 typedef struct _DFS_INFO_106 { | |
| 181 DWORD State; | |
| 182 DFS_TARGET_PRIORITY TargetPriority; | |
| 183 } DFS_INFO_106,*PDFS_INFO_106,*LPDFS_INFO_106; | |
| 184 | |
| 185 typedef struct _DFS_INFO_200 { | |
| 186 LPWSTR FtDfsName; | |
| 187 } DFS_INFO_200,*PDFS_INFO_200,*LPDFS_INFO_200; | |
| 188 | |
| 189 typedef struct _DFS_INFO_300 { | |
| 190 DWORD Flags; | |
| 191 LPWSTR DfsName; | |
| 192 } DFS_INFO_300,*PDFS_INFO_300,*LPDFS_INFO_300; | |
| 193 | |
| 194 #define DFS_ADD_VOLUME 1 | |
| 195 #define DFS_RESTORE_VOLUME 2 | |
| 196 | |
| 197 NET_API_STATUS WINAPI NetDfsAdd(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,LPWSTR Comment,DWORD Flags); | |
| 198 NET_API_STATUS WINAPI NetDfsAddStdRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR Comment,DWORD Flags); | |
| 199 NET_API_STATUS WINAPI NetDfsRemoveStdRoot(LPWSTR ServerName,LPWSTR RootShare,DWORD Flags); | |
| 200 NET_API_STATUS WINAPI NetDfsAddFtRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,LPWSTR Comment,DWORD Flags); | |
| 201 NET_API_STATUS WINAPI NetDfsRemoveFtRoot(LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,DWORD Flags); | |
| 202 NET_API_STATUS WINAPI NetDfsRemoveFtRootForced(LPWSTR DomainName,LPWSTR ServerName,LPWSTR RootShare,LPWSTR FtDfsName,DWORD Flags); | |
| 203 NET_API_STATUS WINAPI NetDfsManagerInitialize(LPWSTR ServerName,DWORD Flags); | |
| 204 NET_API_STATUS WINAPI NetDfsAddStdRootForced(LPWSTR ServerName,LPWSTR RootShare,LPWSTR Comment,LPWSTR Store); | |
| 205 NET_API_STATUS WINAPI NetDfsGetDcAddress(LPWSTR ServerName,LPWSTR *DcIpAddress,BOOLEAN *IsRoot,ULONG *Timeout); | |
| 206 | |
| 207 #define NET_DFS_SETDC_FLAGS 0x00000000 | |
| 208 #define NET_DFS_SETDC_TIMEOUT 0x00000001 | |
| 209 #define NET_DFS_SETDC_INITPKT 0x00000002 | |
| 210 | |
| 211 typedef struct { | |
| 212 ULONG SiteFlags; | |
| 213 LPWSTR SiteName; | |
| 214 } DFS_SITENAME_INFO,*PDFS_SITENAME_INFO,*LPDFS_SITENAME_INFO; | |
| 215 | |
| 216 #define DFS_SITE_PRIMARY 0x1 | |
| 217 | |
| 218 typedef struct { | |
| 219 ULONG cSites; | |
| 220 DFS_SITENAME_INFO Site[1]; | |
| 221 } DFS_SITELIST_INFO,*PDFS_SITELIST_INFO,*LPDFS_SITELIST_INFO; | |
| 222 | |
| 223 NET_API_STATUS WINAPI NetDfsRemove(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName); | |
| 224 NET_API_STATUS WINAPI NetDfsEnum(LPWSTR DfsName,DWORD Level,DWORD PrefMaxLen,LPBYTE *Buffer,LPDWORD EntriesRead,LPDWORD ResumeHandle); | |
| 225 NET_API_STATUS WINAPI NetDfsGetInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE *Buffer); | |
| 226 NET_API_STATUS WINAPI NetDfsSetInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE Buffer); | |
| 227 NET_API_STATUS WINAPI NetDfsGetClientInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE *Buffer); | |
| 228 NET_API_STATUS WINAPI NetDfsSetClientInfo(LPWSTR DfsEntryPath,LPWSTR ServerName,LPWSTR ShareName,DWORD Level,LPBYTE Buffer); | |
| 229 NET_API_STATUS WINAPI NetDfsMove(LPWSTR DfsEntryPath,LPWSTR DfsNewEntryPath,ULONG Flags); | |
| 230 | |
| 231 #define DFS_MOVE_FLAG_REPLACE_IF_EXISTS 0x00000001 | |
| 232 | |
| 233 NET_API_STATUS WINAPI NetDfsRename(LPWSTR Path,LPWSTR NewPath); | |
| 234 NET_API_STATUS WINAPI NetDfsGetSecurity(LPWSTR DfsEntryPath,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor); | |
| 235 NET_API_STATUS WINAPI NetDfsSetSecurity(LPWSTR DfsEntryPath,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor); | |
| 236 NET_API_STATUS WINAPI NetDfsGetStdContainerSecurity(LPWSTR MachineName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor); | |
| 237 NET_API_STATUS WINAPI NetDfsSetStdContainerSecurity(LPWSTR MachineName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor); | |
| 238 NET_API_STATUS WINAPI NetDfsGetFtContainerSecurity(LPWSTR DomainName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR *ppSecurityDescriptor,LPDWORD lpcbSecurityDescriptor); | |
| 239 NET_API_STATUS WINAPI NetDfsSetFtContainerSecurity(LPWSTR DomainName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor); | |
| 240 | |
| 241 #ifdef __cplusplus | |
| 242 } | |
| 243 #endif | |
| 244 #endif |
