mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Moved lookup_sid to windows.utils + add Token to window.security + update doc about official Token path
This commit is contained in:
@@ -18,6 +18,17 @@ This module give access to :class:`SecurityDescriptor` and related structures (`
|
||||
|
||||
See sample :ref:`sample_security`
|
||||
|
||||
Token
|
||||
"""""
|
||||
|
||||
The :mod:`windows.security` module is the official module where to retrieve the :class:`~windows.winobject.token.Token` class if ever needed.
|
||||
|
||||
Indeed ``SecurityDescriptor`` & ``Token`` are deeply related and I may move ``token.py`` to a ``security/`` directory in the futur.
|
||||
|
||||
|
||||
>>> windows.security.Token
|
||||
<class 'windows.winobject.token.Token'>
|
||||
|
||||
|
||||
SecurityDescriptor
|
||||
""""""""""""""""""
|
||||
|
||||
@@ -9,6 +9,15 @@ This module expose the :class:`Token` object that can be primarily retrieved th
|
||||
* :data:`windows.winobject.process.WinThread.token`
|
||||
* :data:`windows.current_process.token <windows.winobject.process.CurrentProcess.token>`
|
||||
* :data:`windows.current_thread.token <windows.winobject.process.CurrentThread.token>`
|
||||
* :class:`windows.security.Token`
|
||||
|
||||
.. note::
|
||||
|
||||
If you need to directly access the :class:`Token` class, please use :class:`windows.security.Token` as the
|
||||
path of ``token.py`` may change.
|
||||
|
||||
Indeed ``SecurityDescriptor`` & ``Token`` are deeply related and I may move ``token.py`` to a
|
||||
``security/`` directory in the futur.
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user