Back to index

enigmail  1.4.3
Functions | Variables
pymake.win32process Namespace Reference

Functions

def GetExitCodeProcess
def WaitForAnyProcess

Variables

int INFINITE = 1
int WAIT_FAILED = 0xFFFFFFFF
tuple LPDWORD = POINTER(DWORD)
tuple _GetExitCodeProcessProto = WINFUNCTYPE(BOOL, HANDLE, LPDWORD)
tuple _GetExitCodeProcess = _GetExitCodeProcessProto(("GetExitCodeProcess", windll.kernel32))
tuple _WaitForMultipleObjectsProto = WINFUNCTYPE(DWORD, DWORD, POINTER(HANDLE), BOOL, DWORD)
tuple _WaitForMultipleObjects = _WaitForMultipleObjectsProto(("WaitForMultipleObjects", windll.kernel32))

Function Documentation

Definition at line 10 of file win32process.py.

00010 
00011 def GetExitCodeProcess(h):
00012     exitcode = DWORD()
00013     r = _GetExitCodeProcess(h, byref(exitcode))
00014     if r is 0:
00015         raise WinError()
00016     return exitcode.value

Here is the caller graph for this function:

Definition at line 20 of file win32process.py.

00020 
00021 def WaitForAnyProcess(processes):
00022     arrtype = HANDLE * len(processes)
00023     harray = arrtype(*(int(p._handle) for p in processes))
00024 
00025     r = _WaitForMultipleObjects(len(processes), harray, False, INFINITE)
00026     if r == WAIT_FAILED:
00027         raise WinError()
00028 
00029     return processes[r], GetExitCodeProcess(int(processes[r]._handle)) <<8

Here is the call graph for this function:


Variable Documentation

tuple pymake.win32process._GetExitCodeProcess = _GetExitCodeProcessProto(("GetExitCodeProcess", windll.kernel32))

Definition at line 9 of file win32process.py.

tuple pymake.win32process._GetExitCodeProcessProto = WINFUNCTYPE(BOOL, HANDLE, LPDWORD)

Definition at line 8 of file win32process.py.

tuple pymake.win32process._WaitForMultipleObjects = _WaitForMultipleObjectsProto(("WaitForMultipleObjects", windll.kernel32))

Definition at line 18 of file win32process.py.

tuple pymake.win32process._WaitForMultipleObjectsProto = WINFUNCTYPE(DWORD, DWORD, POINTER(HANDLE), BOOL, DWORD)

Definition at line 17 of file win32process.py.

Definition at line 4 of file win32process.py.

tuple pymake.win32process.LPDWORD = POINTER(DWORD)

Definition at line 7 of file win32process.py.

Definition at line 5 of file win32process.py.