[pywin32-checkins] pywin32/com/win32comext/shell/src shell.cpp,1.28,1.29
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-10-09 01:21:04
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30140 Modified Files: shell.cpp Log Message: SHEmptyRecycleBin was missing the calling convention decl, so crashed at exit. [ 979641 ] win32com.shell.shell.SHEmptyRecycleBin crashes on Win XP Index: shell.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/shell.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** shell.cpp 2 Jul 2004 04:11:44 -0000 1.28 --- shell.cpp 9 Oct 2004 01:20:48 -0000 1.29 *************** *** 1166,1170 **** ! // @pymethod <o PyIDL>|shell|SHEmptyRecycleBin|Empties the recycle bin on the specified drive. static PyObject *PySHEmptyRecycleBin(PyObject *self, PyObject *args) { --- 1166,1170 ---- ! // @pymethod |shell|SHEmptyRecycleBin|Empties the recycle bin on the specified drive. static PyObject *PySHEmptyRecycleBin(PyObject *self, PyObject *args) { *************** *** 1178,1182 **** return NULL; ! typedef HRESULT (* PFNSHEmptyRecycleBin)(HWND, LPSTR, DWORD ); // @comm This method is only available in shell version 4.71. If the function is not available, a COM Exception with HRESULT=E_NOTIMPL will be raised. HMODULE hmod = GetModuleHandle(TEXT("shell32.dll")); --- 1178,1182 ---- return NULL; ! typedef HRESULT (WINAPI * PFNSHEmptyRecycleBin)(HWND, LPSTR, DWORD ); // @comm This method is only available in shell version 4.71. If the function is not available, a COM Exception with HRESULT=E_NOTIMPL will be raised. HMODULE hmod = GetModuleHandle(TEXT("shell32.dll")); |