Documentation ¶
Overview ¶
Package fileapi provides access to advanced function in the Windows file system API.
Index ¶
Constants ¶
View Source
const ( FileBasicInfo = iota FileStandardInfo FileNameInfo FileRenameInfo FileDispositionInfo FileAllocationInfo FileEndOfFileInfo FileStreamInfo FileCompressionInfo FileAttributeTagInfo FileIDBothDirectoryInfo FileIDBothDirectoryRestartInfo FileIoPriorityHintInfo FileRemoteProtocolInfo FileFullDirectoryInfo FileFullDirectoryRestartInfo FileStorageInfo FileAlignmentInfo FileIDInfo FileIDExtdDirectoryInfo FileIDExtdDirectoryRestartInfo )
File information classes.
Variables ¶
View Source
var ( // ErrEmptyBuffer is returned when a nil or zero-sized buffer is provided // to a system call. ErrEmptyBuffer = errors.New("nil or empty buffer provided") )
Functions ¶
func GetFileInformationByHandleEx ¶
GetFileInformationByHandleEx retrieves information about the file represented by the given system handle. The type of information returned is determined by class.
func OpenFileByID ¶
func OpenFileByID(peer syscall.Handle, id fileref.ID, access, shareMode, flags uint32) (handle syscall.Handle, err error)
OpenFileByID opens a file by its file ID. The file will be opened with the given access, share mode and flags.
The handle provided can be to any file or on the volume, or to the volume itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.