|
@@ -1089,12 +1089,7 @@ type TCPKeepalive struct {
|
|
|
Interval uint32
|
|
Interval uint32
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type reparseDataBuffer struct {
|
|
|
|
|
- ReparseTag uint32
|
|
|
|
|
- ReparseDataLength uint16
|
|
|
|
|
- Reserved uint16
|
|
|
|
|
-
|
|
|
|
|
- // SymbolicLinkReparseBuffer
|
|
|
|
|
|
|
+type symbolicLinkReparseBuffer struct {
|
|
|
SubstituteNameOffset uint16
|
|
SubstituteNameOffset uint16
|
|
|
SubstituteNameLength uint16
|
|
SubstituteNameLength uint16
|
|
|
PrintNameOffset uint16
|
|
PrintNameOffset uint16
|
|
@@ -1103,9 +1098,27 @@ type reparseDataBuffer struct {
|
|
|
PathBuffer [1]uint16
|
|
PathBuffer [1]uint16
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type mountPointReparseBuffer struct {
|
|
|
|
|
+ SubstituteNameOffset uint16
|
|
|
|
|
+ SubstituteNameLength uint16
|
|
|
|
|
+ PrintNameOffset uint16
|
|
|
|
|
+ PrintNameLength uint16
|
|
|
|
|
+ PathBuffer [1]uint16
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type reparseDataBuffer struct {
|
|
|
|
|
+ ReparseTag uint32
|
|
|
|
|
+ ReparseDataLength uint16
|
|
|
|
|
+ Reserved uint16
|
|
|
|
|
+
|
|
|
|
|
+ // GenericReparseBuffer
|
|
|
|
|
+ reparseBuffer byte
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const (
|
|
const (
|
|
|
FSCTL_GET_REPARSE_POINT = 0x900A8
|
|
FSCTL_GET_REPARSE_POINT = 0x900A8
|
|
|
MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024
|
|
MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024
|
|
|
|
|
+ IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003
|
|
|
IO_REPARSE_TAG_SYMLINK = 0xA000000C
|
|
IO_REPARSE_TAG_SYMLINK = 0xA000000C
|
|
|
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
|
|
SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1
|
|
|
)
|
|
)
|