Searched refs:win32security (Results 1 – 2 of 2) sorted by relevance
12 import win32security47 token_handle = win32security.OpenProcessToken(win32api.GetCurrentProcess(),48 win32security.TOKEN_QUERY)49 user_sid, _ = win32security.GetTokenInformation(token_handle,50 win32security.TokenUser)51 user_sid_string = win32security.ConvertSidToStringSid(user_sid)
35 import win32security # pylint: disable=F040143 win32security = None variable287 win32security.OpenProcessToken(handle, win32con.TOKEN_QUERY)) as token:288 return bool(win32security.GetTokenInformation(289 token, win32security.TokenElevation))