Patch by LRN lrn1986 at gmail dor com, [Mingw-w64-public] Missing definitions (reparse, sid)

git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5888 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/ntdef.h b/mingw-w64-headers/include/ntdef.h
index b3ac6f1..0717f89 100644
--- a/mingw-w64-headers/include/ntdef.h
+++ b/mingw-w64-headers/include/ntdef.h
@@ -889,6 +889,8 @@
   };
 } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
 
+#define REPARSE_DATA_BUFFER_HEADER_SIZE      FIELD_OFFSET(REPARSE_DATA_BUFFER, GenericReparseBuffer)
+
 #endif /* !NT_DEFINED */
 
 #endif /* _NTDEF_ */
diff --git a/mingw-w64-headers/include/winnt.h b/mingw-w64-headers/include/winnt.h
index 06b06bb..65cde2b 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -1536,12 +1536,12 @@
     VOID __movsw(PWORD Destination,WORD const *Source,SIZE_T Count);
     VOID __movsd(PDWORD Destination,DWORD const *Source,SIZE_T Count);
     VOID __movsq(PDWORD64 Destination,DWORD64 const *Source,SIZE_T Count);
+#ifdef __CRT__NO_INLINE
     VOID __stosb(PBYTE Destination,BYTE Value,SIZE_T Count);
     VOID __stosw(PWORD Destination,WORD Value,SIZE_T Count);
     VOID __stosd(PDWORD Destination,DWORD Value,SIZE_T Count);
     VOID __stosq(PDWORD64 Destination,DWORD64 Value,SIZE_T Count);
-
-#ifndef __CRT__NO_INLINE
+#else
 __CRT_INLINE __buildstos(__stosb, BYTE)
 __CRT_INLINE __buildstos(__stosw, WORD)
 __CRT_INLINE __buildstos(__stosd, DWORD)
@@ -2535,7 +2535,7 @@
 #define SECURITY_MAX_SID_SIZE (sizeof(SID) - sizeof(DWORD) + (SID_MAX_SUB_AUTHORITIES *sizeof(DWORD)))
 
     typedef enum _SID_NAME_USE {
-      SidTypeUser = 1,SidTypeGroup,SidTypeDomain,SidTypeAlias,SidTypeWellKnownGroup,SidTypeDeletedAccount,SidTypeInvalid,SidTypeUnknown,SidTypeComputer
+      SidTypeUser = 1,SidTypeGroup,SidTypeDomain,SidTypeAlias,SidTypeWellKnownGroup,SidTypeDeletedAccount,SidTypeInvalid,SidTypeUnknown,SidTypeComputer,SidTypeLabel
     } SID_NAME_USE,*PSID_NAME_USE;
 
     typedef struct _SID_AND_ATTRIBUTES {
@@ -3967,6 +3967,8 @@
 
 #define MAXIMUM_REPARSE_DATA_BUFFER_SIZE (16 *1024)
 
+#define SYMLINK_FLAG_RELATIVE   1
+
 #define IO_REPARSE_TAG_RESERVED_ZERO (0)
 #define IO_REPARSE_TAG_RESERVED_ONE (1)
 
@@ -3985,6 +3987,8 @@
 #define IO_REPARSE_TAG_FILTER_MANAGER (__MSABI_LONG(0x8000000B))
 #define IO_REPARSE_TAG_DFSR (__MSABI_LONG(0x80000012))
 #define IO_REPARSE_TAG_SYMLINK (__MSABI_LONG(0xA000000C))
+#define IO_REPARSE_TAG_IIS_CACHE (__MSABI_LONG(0xA0000010))
+#define IO_REPARSE_TAG_DRIVE_EXTENDER (__MSABI_LONG(0x80000005))
 
 #define IO_COMPLETION_MODIFY_STATE 0x0002
 #define IO_COMPLETION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)