Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func AdjustTokenPrivileges(token syscall.Token, disableAllPrivileges bool, newstate *TOKEN_PRIVILEGES, ...) error
- type FILE_ATTRIBUTE_TAG_INFO
- type LUID
- type LUID_AND_ATTRIBUTES
- type LocalGroupUserInfo0
- type MountPointReparseBuffer
- type PROCESS_MEMORY_COUNTERS
- type REPARSE_DATA_BUFFER
- type REPARSE_DATA_BUFFER_HEADER
- type SID_AND_ATTRIBUTES
- type SymbolicLinkReparseBuffer
- type TOKEN_MANDATORY_LABEL
- type TOKEN_PRIVILEGES
- type TokenType
- type UserInfo4
Constants ¶
View Source
const ( FSCTL_SET_REPARSE_POINT = 0x000900A4 IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003 SYMLINK_FLAG_RELATIVE = 1 )
View Source
const ( SecurityAnonymous = 0 SecurityIdentification = 1 SecurityImpersonation = 2 SecurityDelegation = 3 )
View Source
const ( TOKEN_ADJUST_PRIVILEGES = 0x0020 SE_PRIVILEGE_ENABLED = 0x00000002 )
View Source
const ( LG_INCLUDE_INDIRECT = 0x1 MAX_PREFERRED_LENGTH = 0xFFFFFFFF )
View Source
const ( ERROR_INVALID_PARAMETER syscall.Errno = 87 // symlink support for CreateSymbolicLink() starting with Windows 10 (1703, v10.0.14972) SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE = 0x2 // FileInformationClass values FileBasicInfo = 0 // FILE_BASIC_INFO FileStandardInfo = 1 // FILE_STANDARD_INFO FileNameInfo = 2 // FILE_NAME_INFO FileStreamInfo = 7 // FILE_STREAM_INFO FileCompressionInfo = 8 // FILE_COMPRESSION_INFO FileAttributeTagInfo = 9 // FILE_ATTRIBUTE_TAG_INFO FileIdBothDirectoryInfo = 0xa // FILE_ID_BOTH_DIR_INFO FileIdBothDirectoryRestartInfo = 0xb // FILE_ID_BOTH_DIR_INFO FileRemoteProtocolInfo = 0xd // FILE_REMOTE_PROTOCOL_INFO FileFullDirectoryInfo = 0xe // FILE_FULL_DIR_INFO FileFullDirectoryRestartInfo = 0xf // FILE_FULL_DIR_INFO FileStorageInfo = 0x10 // FILE_STORAGE_INFO FileAlignmentInfo = 0x11 // FILE_ALIGNMENT_INFO FileIdInfo = 0x12 // FILE_ID_INFO FileIdExtdDirectoryInfo = 0x13 // FILE_ID_EXTD_DIR_INFO FileIdExtdDirectoryRestartInfo = 0x14 // FILE_ID_EXTD_DIR_INFO )
View Source
const SE_GROUP_INTEGRITY = 0x00000020
Variables ¶
This section is empty.
Functions ¶
func AdjustTokenPrivileges ¶
func AdjustTokenPrivileges(token syscall.Token, disableAllPrivileges bool, newstate *TOKEN_PRIVILEGES, buflen uint32, prevstate *TOKEN_PRIVILEGES, returnlen *uint32) error
Types ¶
type FILE_ATTRIBUTE_TAG_INFO ¶
type LUID_AND_ATTRIBUTES ¶
type LocalGroupUserInfo0 ¶
type LocalGroupUserInfo0 struct {
Name *uint16
}
type MountPointReparseBuffer ¶
type MountPointReparseBuffer struct { // The integer that contains the offset, in bytes, // of the substitute name string in the PathBuffer array, // computed as an offset from byte 0 of PathBuffer. Note that // this offset must be divided by 2 to get the array index. SubstituteNameOffset uint16 // The integer that contains the length, in bytes, of the // substitute name string. If this string is null-terminated, // SubstituteNameLength does not include the Unicode null character. SubstituteNameLength uint16 // PrintNameOffset is similar to SubstituteNameOffset. PrintNameOffset uint16 // PrintNameLength is similar to SubstituteNameLength. PrintNameLength uint16 PathBuffer [1]uint16 }
func (*MountPointReparseBuffer) Path ¶
func (rb *MountPointReparseBuffer) Path() string
Path returns path stored in rb.
type PROCESS_MEMORY_COUNTERS ¶
type REPARSE_DATA_BUFFER ¶
type REPARSE_DATA_BUFFER_HEADER ¶
type REPARSE_DATA_BUFFER_HEADER struct { ReparseTag uint32 // The size, in bytes, of the reparse data that follows // the common portion of the REPARSE_DATA_BUFFER element. // This value is the length of the data starting at the // SubstituteNameOffset field. ReparseDataLength uint16 Reserved uint16 }
REPARSE_DATA_BUFFER_HEADER is a common part of REPARSE_DATA_BUFFER structure.
type SID_AND_ATTRIBUTES ¶
type SymbolicLinkReparseBuffer ¶
type SymbolicLinkReparseBuffer struct { // The integer that contains the offset, in bytes, // of the substitute name string in the PathBuffer array, // computed as an offset from byte 0 of PathBuffer. Note that // this offset must be divided by 2 to get the array index. SubstituteNameOffset uint16 // The integer that contains the length, in bytes, of the // substitute name string. If this string is null-terminated, // SubstituteNameLength does not include the Unicode null character. SubstituteNameLength uint16 // PrintNameOffset is similar to SubstituteNameOffset. PrintNameOffset uint16 // PrintNameLength is similar to SubstituteNameLength. PrintNameLength uint16 // Flags specifies whether the substitute name is a full path name or // a path name relative to the directory containing the symbolic link. Flags uint32 PathBuffer [1]uint16 }
func (*SymbolicLinkReparseBuffer) Path ¶
func (rb *SymbolicLinkReparseBuffer) Path() string
Path returns path stored in rb.
type TOKEN_MANDATORY_LABEL ¶
type TOKEN_MANDATORY_LABEL struct {
Label SID_AND_ATTRIBUTES
}
func (*TOKEN_MANDATORY_LABEL) Size ¶
func (tml *TOKEN_MANDATORY_LABEL) Size() uint32
type TOKEN_PRIVILEGES ¶
type TOKEN_PRIVILEGES struct { PrivilegeCount uint32 Privileges [1]LUID_AND_ATTRIBUTES }
type UserInfo4 ¶
type UserInfo4 struct { Name *uint16 Password *uint16 PasswordAge uint32 Priv uint32 HomeDir *uint16 Comment *uint16 Flags uint32 ScriptPath *uint16 AuthFlags uint32 FullName *uint16 UsrComment *uint16 Parms *uint16 Workstations *uint16 LastLogon uint32 LastLogoff uint32 AcctExpires uint32 MaxStorage uint32 UnitsPerWeek uint32 LogonHours *byte BadPwCount uint32 NumLogons uint32 LogonServer *uint16 CountryCode uint32 CodePage uint32 UserSid *syscall.SID PrimaryGroupID uint32 Profile *uint16 HomeDirDrive *uint16 PasswordExpired uint32 }
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package registry provides access to the Windows registry.
|
Package registry provides access to the Windows registry. |
Package sysdll is an internal leaf package that records and reports which Windows DLL names are used by Go itself.
|
Package sysdll is an internal leaf package that records and reports which Windows DLL names are used by Go itself. |
Click to show internal directories.
Click to hide internal directories.