Skip to content

AccessMask

Generic Windows object access rights.

Domain-specific rights such as winreg.AccessMask are subtypes. This type names generically applicable rights only.

Inherits from: Iterable[AccessRight]

Constructor

AccessMask ...flags -> AccessMask overload 1 of 2

Constructs a flag set from symbols.

Parameters

NameTypeDescription
...flags AccessRight

AccessMask flags -> AccessMask overload 2 of 2

Constructs a flag set from one iterable of symbols.

Parameters

NameTypeDescription
flags Iterable[AccessRight]

Class Methods

from_int value -> AccessMask

Constructs a mask from a native integer, preserving unknown bits.

Parameters

NameTypeDescription
value Int Native mask bits.

Fields

generic_rights @ AccessMask [get]

The generic-rights portion.

int @ Int [get]

The native integer mask.

specific_rights @ Int [get]

The object-specific low 16 bits.

standard_rights @ AccessMask [get]

The standard-rights portion.

Methods

(band)[S @ AccessMask] other -> S

Returns the flags set in both.

Parameters

NameTypeDescription
self S Receiver.
other S

(bnot)[S @ AccessMask]() -> S

Returns the flags of the type that are not set.

Parameters

NameTypeDescription
self S Receiver.

(bor)[S @ AccessMask] other -> S

Returns the flags set in either.

Parameters

NameTypeDescription
self S Receiver.
other S

(bxor)[S @ AccessMask] other -> S

Returns the flags set in exactly one.

Parameters

NameTypeDescription
self S Receiver.
other S

contains flag -> Bool

Tests whether all flags named by flag are set.

Parameters

NameTypeDescription
flag AccessRight