[pywin32-checkins] pywin32/win32/src/win32print win32print.cpp, 1.28, 1.29
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-02-06 18:44:07
|
Update of /cvsroot/pywin32/pywin32/win32/src/win32print In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8894 Modified Files: win32print.cpp Log Message: Allow to build with UNICODE defined Index: win32print.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32print/win32print.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** win32print.cpp 16 Aug 2007 05:09:52 -0000 1.28 --- win32print.cpp 6 Feb 2008 18:44:10 -0000 1.29 *************** *** 13,16 **** --- 13,18 ---- ******************************************************************/ + // #define UNICODE + // #define _UNICODE // _tcs functions require this #include "windows.h" *************** *** 86,89 **** --- 88,96 ---- [...1272 lines suppressed...] ! ret = PyWinObject_FromPrinterHANDLE(hprinter); } ! PyWinObject_FreePRINTER_INFO(level, buf); ! PyWinObject_FreeTCHAR(server_name); ! return ret; } *************** *** 2669,2673 **** AddConstant(dict, "PORT_STATUS_TYPE_INFO",PORT_STATUS_TYPE_INFO); ! HMODULE hmodule=LoadLibrary("winspool.drv"); if (hmodule!=NULL){ pfnEnumForms=(EnumFormsfunc)GetProcAddress(hmodule,"EnumFormsW"); --- 2822,2826 ---- AddConstant(dict, "PORT_STATUS_TYPE_INFO",PORT_STATUS_TYPE_INFO); ! HMODULE hmodule=LoadLibrary(TEXT("winspool.drv")); if (hmodule!=NULL){ pfnEnumForms=(EnumFormsfunc)GetProcAddress(hmodule,"EnumFormsW"); |