[pywin32-checkins] pywin32/win32/src win32apimodule.cpp, 1.99, 1.100
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2010-01-26 17:45:35
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30320 Modified Files: win32apimodule.cpp Log Message: Add a comment about handles duplicated for other processes. Index: win32apimodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32apimodule.cpp,v retrieving revision 1.99 retrieving revision 1.100 diff -C2 -d -r1.99 -r1.100 *** win32apimodule.cpp 10 Feb 2009 14:33:21 -0000 1.99 --- win32apimodule.cpp 26 Jan 2010 17:45:27 -0000 1.100 *************** *** 205,208 **** --- 205,211 ---- // @pymethod <o PyHANDLE>|win32api|DuplicateHandle|Duplicates a handle. + // @comm When duplicating a handle for a different process, you should either keep a + // reference to the returned PyHANDLE, or call .Detach() on it to prevent it + // from being closed prematurely. static PyObject *PyDuplicateHandle(PyObject *self, PyObject *args) { |