[pypy-svn] r61341 - pypy/trunk/pypy/lib
afa at codespeak.net
afa at codespeak.net
Mon Jan 26 00:14:29 CET 2009
Author: afa
Date: Mon Jan 26 00:14:29 2009
New Revision: 61341
Modified:
pypy/trunk/pypy/lib/_subprocess.py
Log:
More constants/functions missing from _subprocess
Modified: pypy/trunk/pypy/lib/_subprocess.py
==============================================================================
--- pypy/trunk/pypy/lib/_subprocess.py (original)
+++ pypy/trunk/pypy/lib/_subprocess.py Mon Jan 26 00:14:29 2009
@@ -24,6 +24,10 @@
_GetCurrentProcess.argtypes = []
_GetCurrentProcess.restype = ctypes.c_int
+GetVersion = _kernel32.GetVersion
+GetVersion.argtypes = []
+GetVersion.restype = ctypes.c_int
+
_DuplicateHandle = _kernel32.DuplicateHandle
_DuplicateHandle.argtypes = [ctypes.c_int, ctypes.c_int, ctypes.c_int,
ctypes.POINTER(ctypes.c_int),
@@ -157,6 +161,8 @@
return _handle(pi.hProcess), _handle(pi.hThread), pi.dwProcessID, pi.dwThreadID
STARTF_USESHOWWINDOW = 0x001
STARTF_USESTDHANDLES = 0x100
+SW_HIDE = 0
+CREATE_NEW_CONSOLE = 0x010
def WaitForSingleObject(handle, milliseconds):
res = _WaitForSingleObject(handle.handle, milliseconds)
More information about the Pypy-commit
mailing list