github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/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 "github.com/shogo82148/std/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
    19  	FileStandardInfo               = 1
    20  	FileNameInfo                   = 2
    21  	FileStreamInfo                 = 7
    22  	FileCompressionInfo            = 8
    23  	FileAttributeTagInfo           = 9
    24  	FileIdBothDirectoryInfo        = 0xa
    25  	FileIdBothDirectoryRestartInfo = 0xb
    26  	FileRemoteProtocolInfo         = 0xd
    27  	FileFullDirectoryInfo          = 0xe
    28  	FileFullDirectoryRestartInfo   = 0xf
    29  	FileStorageInfo                = 0x10
    30  	FileAlignmentInfo              = 0x11
    31  	FileIdInfo                     = 0x12
    32  	FileIdExtdDirectoryInfo        = 0x13
    33  	FileIdExtdDirectoryRestartInfo = 0x14
    34  )
    35  
    36  type FILE_ATTRIBUTE_TAG_INFO struct {
    37  	FileAttributes uint32
    38  	ReparseTag     uint32
    39  }