flags

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACCESS_CONTROL_OBJECT_TYPE_FLAG_NONE                          = 0x00000000 // Neither ObjectType nor InheritedObjectType are valid.
	ACCESS_CONTROL_OBJECT_TYPE_FLAG_OBJECT_TYPE_PRESENT           = 0x00000001 // ObjectType is valid.
	ACCESS_CONTROL_OBJECT_TYPE_FLAG_INHERITED_OBJECT_TYPE_PRESENT = 0x00000002 // InheritedObjectType is valid. If this value is not specified, all types of child objects can inherit the ACE.
)

A set of bit flags that indicate whether the ObjectType and InheritedObjectType members are present. This parameter can be one or more of the following values.

https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_object_ace

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlObjectTypeFlags

type AccessControlObjectTypeFlags struct {
	Name  string
	Value uint32
}

AccessControlObjectTypeFlags represents the flags for the AccessControlObjectType.

func (*AccessControlObjectTypeFlags) Clear

func (acotype *AccessControlObjectTypeFlags) Clear()

Clear clears all flags.

func (*AccessControlObjectTypeFlags) ClearInheritedObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) ClearInheritedObjectTypePresent()

ClearInheritedObjectTypePresent clears the InheritedObjectType flag.

func (*AccessControlObjectTypeFlags) ClearObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) ClearObjectTypePresent()

ClearObjectTypePresent clears the ObjectType flag.

func (*AccessControlObjectTypeFlags) IsInheritedObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) IsInheritedObjectTypePresent() bool

IsInheritedObjectTypePresent returns true if the InheritedObjectType flag is set.

func (*AccessControlObjectTypeFlags) IsNone

func (acotype *AccessControlObjectTypeFlags) IsNone() bool

IsNone returns true if no flags are set.

func (*AccessControlObjectTypeFlags) IsObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) IsObjectTypePresent() bool

IsObjectTypePresent returns true if the ObjectType flag is set.

func (*AccessControlObjectTypeFlags) Marshal

func (acotype *AccessControlObjectTypeFlags) Marshal() ([]byte, error)

Marshal serializes the AccessControlObjectTypeFlags struct into a byte slice.

Returns:

  • []byte: The serialized byte slice representing the AccessControlObjectTypeFlags.

func (*AccessControlObjectTypeFlags) SetInheritedObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) SetInheritedObjectTypePresent()

SetInheritedObjectTypePresent sets the InheritedObjectType flag.

func (*AccessControlObjectTypeFlags) SetObjectTypePresent

func (acotype *AccessControlObjectTypeFlags) SetObjectTypePresent()

SetObjectTypePresent sets the ObjectType flag.

func (*AccessControlObjectTypeFlags) String

func (acotype *AccessControlObjectTypeFlags) String() string

String returns a string representation of the AccessControlObjectTypeFlags.

Returns:

  • string: The string representation of the AccessControlObjectTypeFlags.

func (*AccessControlObjectTypeFlags) Unmarshal

func (acotype *AccessControlObjectTypeFlags) Unmarshal(rawBytes []byte) (int, error)

Unmarshal sets the Value of the AccessControlObjectTypeFlags and looks up its name from a predefined map of ACE types to names. If the ACE type is not found in the map, it assigns the name as "?".

Attributes:

  • RawBytes ([]byte): The byte slice representing the AccessControlObjectTypeFlags.

Jump to

Keyboard shortcuts

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