[pywin32-checkins] pywin32/win32/src win32apimodule.cpp,1.68,1.69
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-01-13 09:35:19
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10830/win32/src Modified Files: win32apimodule.cpp Log Message: Stop parsing handles as longs, return int handles using PyWinLong_FromHANDLE Index: win32apimodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** win32apimodule.cpp 10 Dec 2006 08:58:37 -0000 1.68 --- win32apimodule.cpp 13 Jan 2007 09:35:16 -0000 1.69 *************** *** 106,110 **** &nStdHandle)) // @pyparm int|handle||input, output, or error device return NULL; ! return Py_BuildValue("i", ::GetStdHandle (nStdHandle)); } --- 106,110 ---- &nStdHandle)) // @pyparm int|handle||input, output, or error device return NULL; ! return PyWinLong_FromHANDLE(GetStdHandle (nStdHandle)); } [...1094 lines suppressed...] if(!PyWinObject_AsResourceID(obtypname,(long *)&typname)) --- 4671,4675 ---- if (!PyArg_ParseTuple(args, "OOO:EnumResourceLanguages", &pyhandle, &obtypname, &obresname)) return NULL; ! if (!PyWinObject_AsHANDLE(pyhandle, (HANDLE *)&hmodule)) return NULL; if(!PyWinObject_AsResourceID(obtypname,(long *)&typname)) *************** *** 4784,4788 **** FILETIME ft; BOOL success; ! if (!PyArg_ParseTuple(args,"OO", &obfile_name, // @pyparm string/unicode|Filename||File to query for version info &obinfo)) // @pyparm string/unicode|SubBlock||Information to return: \ for VS_FIXEDFILEINFO, \VarFileInfo\Translation for languages/codepages available --- 4882,4886 ---- FILETIME ft; BOOL success; ! if (!PyArg_ParseTuple(args,"OO:GetFileVersionInfo", &obfile_name, // @pyparm string/unicode|Filename||File to query for version info &obinfo)) // @pyparm string/unicode|SubBlock||Information to return: \ for VS_FIXEDFILEINFO, \VarFileInfo\Translation for languages/codepages available |