github.com/bir3/gocompiler@v0.9.2202/src/internal/syscall/windows/symlink_windows.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package windows 6 7 import "syscall" 8 9 const ( 10 ERROR_INVALID_PARAMETER syscall.Errno = 87 11 12 FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000 13 14 // symlink support for CreateSymbolicLink() starting with Windows 10 (1703, v10.0.14972) 15 SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE = 0x2 16 17 // FileInformationClass values 18 FileBasicInfo = 0 // FILE_BASIC_INFO 19 FileStandardInfo = 1 // FILE_STANDARD_INFO 20 FileNameInfo = 2 // FILE_NAME_INFO 21 FileStreamInfo = 7 // FILE_STREAM_INFO 22 FileCompressionInfo = 8 // FILE_COMPRESSION_INFO 23 FileAttributeTagInfo = 9 // FILE_ATTRIBUTE_TAG_INFO 24 FileIdBothDirectoryInfo = 0xa // FILE_ID_BOTH_DIR_INFO 25 FileIdBothDirectoryRestartInfo = 0xb // FILE_ID_BOTH_DIR_INFO 26 FileRemoteProtocolInfo = 0xd // FILE_REMOTE_PROTOCOL_INFO 27 FileFullDirectoryInfo = 0xe // FILE_FULL_DIR_INFO 28 FileFullDirectoryRestartInfo = 0xf // FILE_FULL_DIR_INFO 29 FileStorageInfo = 0x10 // FILE_STORAGE_INFO 30 FileAlignmentInfo = 0x11 // FILE_ALIGNMENT_INFO 31 FileIdInfo = 0x12 // FILE_ID_INFO 32 FileIdExtdDirectoryInfo = 0x13 // FILE_ID_EXTD_DIR_INFO 33 FileIdExtdDirectoryRestartInfo = 0x14 // FILE_ID_EXTD_DIR_INFO 34 ) 35 36 type FILE_ATTRIBUTE_TAG_INFO struct { 37 FileAttributes uint32 38 ReparseTag uint32 39 } 40 41 //sys GetFileInformationByHandleEx(handle syscall.Handle, class uint32, info *byte, bufsize uint32) (err error)