[pywin32-checkins] pywin32/win32/src win32process.i,1.32,1.33
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-05-24 00:29:48
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30538 Modified Files: win32process.i Log Message: Allow IsWow64Process to accept None, the new default, to mean current proc Index: win32process.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32process.i,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** win32process.i 10 Apr 2008 02:09:43 -0000 1.32 --- win32process.i 24 May 2008 00:29:55 -0000 1.33 *************** *** 1510,1521 **** if (pfnIsWow64Process==NULL) return PyBool_FromLong(FALSE); ! PyObject *obhprocess; HANDLE hprocess; ! // @pyparm <o PyHANDLE>|Process||Handle to a process as returned by ! // <om win32api.OpenProcess>, <om win32api.GetCurrentProcess>, etc ! if (!PyArg_ParseTuple(args, "O:IsWow64Process", &obhprocess)) return NULL; BOOL ret; ! if (!PyWinObject_AsHANDLE(obhprocess, &hprocess)) return NULL; BOOL ok = (*pfnIsWow64Process)(hprocess, &ret); --- 1510,1524 ---- if (pfnIsWow64Process==NULL) return PyBool_FromLong(FALSE); ! PyObject *obhprocess = Py_None; HANDLE hprocess; ! // @pyparm <o PyHANDLE>|Process|None|Handle to a process as returned by ! // <om win32api.OpenProcess>, <om win32api.GetCurrentProcess>, etc, or ! // will use the current process handle if None (the default) is passed. ! if (!PyArg_ParseTuple(args, "|O:IsWow64Process", &obhprocess)) return NULL; BOOL ret; ! if (obhprocess == Py_None) ! hprocess = ::GetCurrentProcess(); ! else if (!PyWinObject_AsHANDLE(obhprocess, &hprocess)) return NULL; BOOL ok = (*pfnIsWow64Process)(hprocess, &ret); |