fileapi

package
v0.0.0-...-5cdaeaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 5 Imported by: 0

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

func GetFileInformationByHandleEx(handle syscall.Handle, class uint32, buffer []byte) (err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL