Module Expr Str ImportFrom alias Import alias Import alias TryExcept body Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Str Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore TupleLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str NameLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore TupleLoad TupleLoad Str NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore TupleLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad NameLoad Num NameLoad NameLoad NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Num Num NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Return Call NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A 
Implements the ability to run processes as another user in Windows for salt
 __future__ absolute_import N/A os N/A logging N/A N/A N/A win32con N/A win32api N/A win32process N/A win32security N/A win32pipe N/A win32event N/A win32profile N/A msvcrt N/A ctypes ctypes wintypes N/A HAS_WIN32 True N/A N/A N/A ImportError N/A N/A HAS_WIN32 False N/A salt.utils N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Load only on Windows
     N/A N/A N/A N/A N/A salt utils is_windows HAS_WIN32 N/A N/A win_runas N/A False N/A N/A kernel32 N/A N/A ctypes WinDLL kernel32 N/A advapi32 N/A N/A ctypes WinDLL advapi32 N/A INVALID_HANDLE_VALUE N/A N/A N/A wintypes HANDLE -1 value N/A INVALID_DWORD_VALUE N/A N/A N/A wintypes DWORD -1 value N/A INFINITE INVALID_DWORD_VALUE N/A LOGON_WITH_PROFILE 1 N/A STD_INPUT_HANDLE N/A N/A N/A wintypes DWORD -10 value N/A STD_OUTPUT_HANDLE N/A N/A N/A wintypes DWORD -11 value N/A STD_ERROR_HANDLE N/A N/A N/A wintypes DWORD -12 value SECURITY_ATTRIBUTES N/A N/A ctypes Structure N/A N/A _fields_ N/A N/A nLength N/A wintypes DWORD N/A lpSecurityDescriptor N/A wintypes LPVOID N/A bInheritHandle N/A wintypes BOOL __init__ N/A N/A self N/A kwds N/A N/A N/A self nLength N/A N/A ctypes sizeof self N/A N/A N/A N/A super SECURITY_ATTRIBUTES self __init__ kwds N/A N/A N/A LPSECURITY_ATTRIBUTES N/A N/A ctypes POINTER SECURITY_ATTRIBUTES N/A LPBYTE N/A N/A ctypes POINTER N/A wintypes BYTE N/A LPHANDLE PHANDLE N/A N/A ctypes POINTER N/A ctypes c_void_p N/A LPDWORD N/A N/A ctypes POINTER N/A ctypes c_ulong STARTUPINFO N/A N/A ctypes Structure N/A N/A https://msdn.microsoft.com/en-us/library/ms686331 N/A _fields_ N/A N/A cb N/A wintypes DWORD N/A lpReserved N/A wintypes LPWSTR N/A lpDesktop N/A wintypes LPWSTR N/A lpTitle N/A wintypes LPWSTR N/A dwX N/A wintypes DWORD N/A dwY N/A wintypes DWORD N/A dwXSize N/A wintypes DWORD N/A dwYSize N/A wintypes DWORD N/A dwXCountChars N/A wintypes DWORD N/A dwYCountChars N/A wintypes DWORD N/A dwFillAttribute N/A wintypes DWORD N/A dwFlags N/A wintypes DWORD N/A wShowWindow N/A wintypes WORD N/A cbReserved2 N/A wintypes WORD N/A lpReserved2 LPBYTE N/A hStdInput N/A wintypes HANDLE N/A hStdOutput N/A wintypes HANDLE N/A hStdError N/A wintypes HANDLE __init__ N/A N/A self N/A kwds N/A N/A N/A self cb N/A N/A ctypes sizeof self N/A N/A N/A N/A super STARTUPINFO self __init__ kwds N/A N/A N/A LPSTARTUPINFO N/A N/A ctypes POINTER STARTUPINFO PROC_THREAD_ATTRIBUTE_LIST N/A N/A ctypes Structure N/A N/A N/A N/A PPROC_THREAD_ATTRIBUTE_LIST N/A N/A ctypes POINTER PROC_THREAD_ATTRIBUTE_LIST STARTUPINFOEX N/A STARTUPINFO N/A N/A _fields_ N/A N/A lpAttributeList PPROC_THREAD_ATTRIBUTE_LIST N/A N/A LPSTARTUPINFOEX N/A N/A ctypes POINTER STARTUPINFOEX PROCESS_INFORMATION N/A N/A ctypes Structure N/A N/A https://msdn.microsoft.com/en-us/library/ms684873 N/A _fields_ N/A N/A hProcess N/A wintypes HANDLE N/A hThread N/A wintypes HANDLE N/A dwProcessId N/A wintypes DWORD N/A dwThreadId N/A wintypes DWORD N/A N/A LPPROCESS_INFORMATION N/A N/A ctypes POINTER PROCESS_INFORMATION HANDLE_IHV N/A N/A wintypes HANDLE N/A N/A N/A errcheck_ihv N/A N/A result func args N/A N/A N/A N/A N/A result value INVALID_HANDLE_VALUE N/A N/A N/A N/A ctypes WinError N/A N/A result value N/A DWORD_IDV N/A N/A wintypes DWORD N/A N/A N/A errcheck_idv N/A N/A result func args N/A N/A N/A N/A N/A result value INVALID_DWORD_VALUE N/A N/A N/A N/A ctypes WinError N/A N/A result value N/A errcheck_bool N/A N/A result func args N/A N/A N/A N/A result N/A N/A N/A N/A ctypes WinError N/A args N/A _win N/A N/A func restype N/A argtypes N/A N/A N/A func restype restype N/A N/A func argtypes argtypes N/A N/A issubclass restype HANDLE_IHV N/A N/A N/A func errcheck errcheck_ihv N/A N/A N/A issubclass restype DWORD_IDV N/A N/A N/A func errcheck errcheck_idv N/A N/A N/A func errcheck errcheck_bool N/A N/A N/A _win N/A kernel32 WaitForSingleObject DWORD_IDV N/A wintypes HANDLE N/A wintypes DWORD N/A N/A _win N/A kernel32 GetStdHandle HANDLE_IHV N/A wintypes DWORD N/A N/A _win N/A kernel32 CloseHandle N/A wintypes BOOL N/A wintypes HANDLE N/A N/A _win N/A kernel32 SetHandleInformation N/A wintypes BOOL N/A wintypes HANDLE N/A wintypes DWORD N/A wintypes DWORD N/A N/A _win N/A kernel32 DuplicateHandle N/A wintypes BOOL N/A wintypes HANDLE N/A wintypes HANDLE N/A wintypes HANDLE LPHANDLE N/A wintypes DWORD N/A wintypes BOOL N/A wintypes DWORD N/A N/A _win N/A kernel32 GetCurrentProcess N/A wintypes HANDLE N/A N/A _win N/A kernel32 GetExitCodeProcess N/A wintypes BOOL N/A wintypes HANDLE LPDWORD N/A N/A _win N/A kernel32 CreatePipe N/A wintypes BOOL PHANDLE PHANDLE LPSECURITY_ATTRIBUTES N/A wintypes DWORD N/A N/A _win N/A advapi32 CreateProcessWithLogonW N/A wintypes BOOL N/A wintypes LPCWSTR N/A wintypes LPCWSTR N/A wintypes LPCWSTR N/A wintypes DWORD N/A wintypes LPCWSTR N/A wintypes LPWSTR N/A wintypes DWORD N/A wintypes LPCWSTR N/A wintypes LPCWSTR LPSTARTUPINFO LPPROCESS_INFORMATION DuplicateHandle N/A N/A hsrc srchandle htgt access inherit options N/A N/A N/A kernel32 GetCurrentProcess N/A N/A kernel32 GetCurrentProcess N/A N/A kernel32 GetCurrentProcess 0 False N/A win32con DUPLICATE_SAME_ACCESS N/A N/A tgthandle N/A N/A wintypes HANDLE N/A N/A N/A kernel32 DuplicateHandle hsrc srchandle htgt N/A N/A ctypes byref tgthandle access inherit options N/A N/A tgthandle value N/A CreatePipe N/A N/A inherit_read inherit_write N/A False False N/A N/A N/A read write N/A N/A N/A wintypes HANDLE N/A N/A wintypes HANDLE N/A N/A N/A kernel32 CreatePipe N/A N/A ctypes byref read N/A N/A ctypes byref write None 0 N/A inherit_read N/A N/A N/A N/A kernel32 SetHandleInformation read N/A win32con HANDLE_FLAG_INHERIT N/A win32con HANDLE_FLAG_INHERIT N/A inherit_write N/A N/A N/A N/A kernel32 SetHandleInformation write N/A win32con HANDLE_FLAG_INHERIT N/A win32con HANDLE_FLAG_INHERIT N/A N/A N/A read value N/A write value N/A CreateProcessWithLogonW N/A N/A username domain password logonflags applicationname commandline creationflags environment currentdirectory startupinfo N/A None None None 0 None None 0 None None None N/A N/A creationflags N/A win32con CREATE_UNICODE_ENVIRONMENT N/A N/A commandline None N/A N/A commandline N/A N/A ctypes create_unicode_buffer commandline N/A N/A startupinfo None N/A N/A startupinfo N/A STARTUPINFO N/A process_info N/A PROCESS_INFORMATION N/A N/A N/A advapi32 CreateProcessWithLogonW username domain password logonflags applicationname commandline creationflags environment currentdirectory N/A N/A ctypes byref startupinfo N/A N/A ctypes byref process_info N/A process_info N/A make_inheritable N/A N/A token N/A N/A N/A N/A N/A win32api DuplicateHandle N/A N/A win32api GetCurrentProcess token N/A N/A win32api GetCurrentProcess 0 1 N/A win32con DUPLICATE_SAME_ACCESS N/A runas_system N/A N/A cmd username password N/A N/A N/A domain . N/A N/A @ username N/A N/A N/A username domain N/A N/A username split @ N/A N/A \ username N/A N/A N/A domain username N/A N/A username split \ N/A token N/A N/A win32security LogonUser username domain password N/A win32con LOGON32_LOGON_INTERACTIVE N/A win32con LOGON32_PROVIDER_DEFAULT N/A security_attributes N/A N/A win32security SECURITY_ATTRIBUTES N/A N/A security_attributes bInheritHandle 1 N/A N/A stdin_read stdin_write N/A N/A win32pipe CreatePipe security_attributes 0 N/A stdin_read N/A make_inheritable stdin_read N/A N/A stdout_read stdout_write N/A N/A win32pipe CreatePipe security_attributes 0 N/A stdout_write N/A make_inheritable stdout_write N/A N/A stderr_read stderr_write N/A N/A win32pipe CreatePipe security_attributes 0 N/A stderr_write N/A make_inheritable stderr_write N/A startup_info N/A N/A win32process STARTUPINFO N/A N/A startup_info dwFlags N/A win32con STARTF_USESTDHANDLES N/A N/A startup_info hStdInput stdin_read N/A N/A startup_info hStdOutput stdout_write N/A N/A startup_info hStdError stderr_write N/A user_environment N/A N/A win32profile CreateEnvironmentBlock token False N/A cmd N/A N/A cmd /c {0} format cmd N/A procArgs N/A None cmd security_attributes security_attributes 1 0 user_environment None startup_info N/A N/A hProcess hThread PId TId N/A N/A win32process CreateProcessAsUser token procArgs N/A N/A stdin_read None N/A N/A N/A N/A stdin_read Close N/A N/A stdout_write None N/A N/A N/A N/A stdout_write Close N/A N/A stderr_write None N/A N/A N/A N/A stderr_write Close N/A N/A N/A hThread Close N/A ret N/A pid PId N/A fd_out N/A N/A msvcrt open_osfhandle stdout_read N/A N/A os O_RDONLY N/A os O_TEXT N/A N/A N/A os fdopen fd_out r f_out N/A N/A N/A ret N/A stdout N/A N/A f_out read N/A fd_err N/A N/A msvcrt open_osfhandle stderr_read N/A N/A os O_RDONLY N/A os O_TEXT N/A N/A N/A os fdopen fd_err r f_err N/A N/A N/A ret N/A stderr N/A N/A f_err read N/A N/A N/A N/A win32event WaitForSingleObject hProcess N/A win32event INFINITE N/A win32con WAIT_OBJECT_0 N/A N/A exitcode N/A N/A win32process GetExitCodeProcess hProcess N/A N/A ret N/A retcode exitcode N/A N/A N/A win32api CloseHandle hProcess N/A ret N/A runas N/A N/A cmd username password cwd N/A None N/A N/A N/A N/A N/A win32api GetUserName SYSTEM N/A N/A N/A runas_system cmd username password N/A N/A c2pread c2pwrite N/A CreatePipe inherit_read False inherit_write True N/A N/A errread errwrite N/A CreatePipe inherit_read False inherit_write True N/A stdin N/A N/A kernel32 GetStdHandle STD_INPUT_HANDLE N/A dupin N/A DuplicateHandle srchandle stdin inherit True N/A startup_info N/A STARTUPINFO dwFlags N/A win32con STARTF_USESTDHANDLES hStdInput dupin hStdOutput c2pwrite hStdError errwrite N/A cmd N/A N/A cmd /c {0} format cmd N/A domain None N/A N/A @ username N/A N/A N/A username domain N/A N/A username split @ N/A N/A \ username N/A N/A N/A domain username N/A N/A username split \ N/A process_info N/A CreateProcessWithLogonW username username domain domain password password logonflags LOGON_WITH_PROFILE commandline cmd startupinfo startup_info currentdirectory cwd N/A N/A N/A kernel32 CloseHandle dupin N/A N/A N/A kernel32 CloseHandle c2pwrite N/A N/A N/A kernel32 CloseHandle errwrite N/A N/A N/A kernel32 CloseHandle N/A process_info hThread N/A ret N/A pid N/A process_info dwProcessId N/A fd_out N/A N/A msvcrt open_osfhandle c2pread N/A N/A os O_RDONLY N/A os O_TEXT N/A N/A N/A os fdopen fd_out r f_out N/A N/A N/A ret N/A stdout N/A N/A f_out read N/A fd_err N/A N/A msvcrt open_osfhandle errread N/A N/A os O_RDONLY N/A os O_TEXT N/A N/A N/A os fdopen fd_err r f_err N/A N/A N/A ret N/A stderr N/A N/A f_err read N/A N/A N/A N/A kernel32 WaitForSingleObject N/A process_info hProcess INFINITE N/A win32con WAIT_OBJECT_0 N/A N/A exitcode N/A N/A wintypes DWORD N/A N/A N/A kernel32 GetExitCodeProcess N/A process_info hProcess N/A N/A ctypes byref exitcode N/A N/A ret N/A retcode N/A exitcode value N/A N/A N/A kernel32 CloseHandle N/A process_info hProcess N/A ret N/A