Package Libs :: Module libregisters :: Class GFlags
[hide private]
[frames] | no frames]

Class GFlags

source code

Instance Methods [hide private]
  __init__(self, processname="")
GFlags class enable and disable Windows global flags
  _query(self)
TUPLE GetReferencebyName(self, val)
Get Flag information by its shorcut name
  SetbyName(self, val)
Set a Flag by its shorcut name
  Set(self, val)
Set a Flag
  UnSetbyName(self, val)
Unset a Flag by its shorcut name
  UnSet(self, val)
Set a Flag
  isSet(self, val)
Whether a Flag is set
LIST OF TUPLES Print(self)
Print all the current setted GFlags
  Clear(self)
Clear the Flags
  _set(self, flag)

Method Details [hide private]

__init__(self, processname="")
(Constructor)

source code 
GFlags class enable and disable Windows global flags
Parameters:
  • processname (STRING) - (Optional) Process name (If is unset, it will use the system global flags)

_query(self)

source code 
None

GetReferencebyName(self, val)

source code 
Get Flag information by its shorcut name
Parameters:
  • val (STRING) - Shortcut Name
Returns: TUPLE
A tuple containning all the internal information of a Flag

SetbyName(self, val)

source code 
Set a Flag by its shorcut name
Parameters:
  • val (STRING) - Shortcut Name

Set(self, val)

source code 
Set a Flag
Parameters:
  • val (DWORD) - Value of the flag to set

UnSetbyName(self, val)

source code 
Unset a Flag by its shorcut name
Parameters:
  • val (STRING) - Shortcut Name

UnSet(self, val)

source code 
Set a Flag
Parameters:
  • val (DWORD) - Value of the flag to set

isSet(self, val)

source code 
Whether a Flag is set
Parameters:
  • val (STRING) - Shortcut name

Print(self)

source code 
Print all the current setted GFlags
Returns: LIST OF TUPLES
A list of a tuple with two elements: Shortcut Name and flag information

Clear(self)

source code 
Clear the Flags

_set(self, flag)

source code 
None