Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func NtClose(fileHandle windows.Handle) (err error)
- func NtOpenFile(accessMask uint32, objectAttributes *windows.OBJECT_ATTRIBUTES, ...) (fileHandle windows.Handle, err error)
- func NtQueryEaFile(fileHandle windows.Handle, ioStatusBlock *windows.IO_STATUS_BLOCK, ...) (err error)
- func NtQueryInformationFile(fileHandle windows.Handle, ioStatusBlock *windows.IO_STATUS_BLOCK, ...) (err error)
- func NtSetEaFile(fileHandle windows.Handle, ioStatusBlock *windows.IO_STATUS_BLOCK, ...) (err error)
- type FILE_EA_INFORMATION
- type FILE_FULL_EA_INFORMATION
- type FILE_GET_EA_INFORMATION
Constants ¶
View Source
const (
FILE_NEED_EA = 0x80 // file should be interpreted with Extended Attributes(EA)
)
View Source
const (
FileEaInformation = 7
)
Variables ¶
This section is empty.
Functions ¶
func NtOpenFile ¶
func NtOpenFile(accessMask uint32, objectAttributes *windows.OBJECT_ATTRIBUTES, ioStatusBlock *windows.IO_STATUS_BLOCK, sharedAccess uint32, openOptions uint32) (fileHandle windows.Handle, err error)
func NtQueryEaFile ¶
func NtQueryInformationFile ¶
func NtSetEaFile ¶
Types ¶
type FILE_EA_INFORMATION ¶
type FILE_EA_INFORMATION struct {
EaSize uint32
}
type FILE_FULL_EA_INFORMATION ¶
type FILE_FULL_EA_INFORMATION struct { NextEntryOffset uint32 Flags uint8 EaNameLength uint8 EaValueLength uint16 // 1 byte for ASCII character, 2 or more bytes for non-ASCII character, looks like the supported character follows the active codepage of the computer.., for English users, it might be cp1252, cp850... // // As like file names in NTFS, the name of EA is case-insensitive and shown with upper characters when queried. EaName [anySize]int8 // EaNameLength[int8] }
4 bytes aligned
type FILE_GET_EA_INFORMATION ¶
type FILE_GET_EA_INFORMATION struct { NextEntryOffset uint32 EaNameLength uint8 EaName []int8 // [EaNameLength]int8 }
4 bytes aligned
Click to show internal directories.
Click to hide internal directories.