[pywin32-checkins] pywin32/com/win32comext/shell/src shell.cpp, 1.74, 1.75
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2010-01-25 23:32:37
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31143 Modified Files: shell.cpp Log Message: Allow SHAddToRecentDocs to accept strings containing null bytes Index: shell.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/shell.cpp,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** shell.cpp 14 Jan 2009 04:29:01 -0000 1.74 --- shell.cpp 25 Jan 2010 23:32:29 -0000 1.75 *************** *** 1418,1428 **** // @pymethod |shell|SHAddToRecentDocs|Adds a document to the shell's list of recently used documents or clears all documents from the list. The user gains access to the list through the Start menu of the Windows taskbar. static PyObject *PySHAddToRecentDocs(PyObject *self, PyObject *args) { int flags; void *whatever; ! if(!PyArg_ParseTuple(args, "iz:SHAddToRecentDocs", ! &flags, // @pyparm int|flags||Flag that indicates the meaning of the whatever parameter ! &whatever)) // @pyparm string|whatever||A path or <o PyIDL> return NULL; --- 1418,1433 ---- // @pymethod |shell|SHAddToRecentDocs|Adds a document to the shell's list of recently used documents or clears all documents from the list. The user gains access to the list through the Start menu of the Windows taskbar. + // @pyseeapi SHAddToRecentDocs + // @comm The underlying API function has no return value, and therefore no way to indicate failure. static PyObject *PySHAddToRecentDocs(PyObject *self, PyObject *args) { int flags; void *whatever; ! Py_ssize_t cb; // not used, but must accept strings containing NULL bytes ! if(!PyArg_ParseTuple(args, "iz#:SHAddToRecentDocs", ! &flags, // @pyparm int|flags||Value from SHARD enum indicating type of data passed in second arg ! &whatever, // @pyparm string/buffer|data||A file system path or PIDL (see <om shell.PIDLAsString>) identifying a shell object. ! &cb)) // In Windows 7, some flags require a buffer containing one of various structs. ! // Pass None to clear list of recent documents. return NULL; |