ManagerAccessMask
Access rights for a ScManager handle.
A mask is built from symbols, and every API taking one also accepts a bare
symbol or an iterable of symbols in its place, so an explicit
ManagerAccessMask is only needed to combine or inspect rights.
winscm.ManagerAccessMask is a
security.windows.AccessMask, so it
can be used wherever a Windows access mask is expected.
Example
let a = ManagerAccessMask :SC_MANAGER_CONNECT: :SC_MANAGER_LOCK:
let b = ManagerAccessMask [:SC_MANAGER_CONNECT:, :SC_MANAGER_LOCK:]
Inherits from: security.windows.AccessMask
Constructor
ManagerAccessMask ...flags -> ManagerAccessMask overload 1 of 2
Constructs a flag set from symbols.
Parameters
| Name | Type | Description |
|---|---|---|
...flags |
ManagerAccessRight |
ManagerAccessMask flags -> ManagerAccessMask overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
flags |
Iterable[ManagerAccessRight] |
Class Methods
from_int value -> ManagerAccessMask
Builds a mask from a native integer, preserving every bit including ones this type does not name.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Int |
Native Windows access mask. |
Fields
Methods
contains flag -> Bool
Tests whether all flags named by flag are set.
Parameters
| Name | Type | Description |
|---|---|---|
flag |
ManagerAccessRight |