Update of /cvsroot/pywin32/pywin32/com/win32com/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1377
Modified Files:
PyStorage.cpp
Log Message:
Allow a build to completely exclude StgOpenStorageEx
Index: PyStorage.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyStorage.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PyStorage.cpp 31 Oct 2003 04:34:36 -0000 1.4
--- PyStorage.cpp 31 Oct 2003 04:41:00 -0000 1.5
***************
*** 157,160 ****
--- 157,161 ----
PyObject *pythoncom_StgOpenStorageEx(PyObject *self, PyObject *args)
{
+ #ifndef NO_PYCOM_STGOPENSTORAGEEX
typedef HRESULT (WINAPI *PFNStgOpenStorageEx)(WCHAR *, DWORD, DWORD, DWORD,
STGOPTIONS *, void *, REFIID, void **);;
***************
*** 204,207 ****
--- 205,211 ----
return PyCom_BuildPyException(err);
return PyCom_PyObjectFromIUnknown((IUnknown *)intptr, riid, FALSE);
+ #else
+ return PyErr_Format(PyExc_NotImplementedError,"StgOpenStorageEx not supported by this version of Windows");
+ #endif // NO_PYCOM_STGOPENSTORAGEEX
}
|