Changeset 21916 for trunk/src/winspool/winspool.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/winspool/winspool.cpp
r21629 r21916 29 29 #include <odinwrap.h> 30 30 #include <heapstring.h> 31 #include <win \winnls.h>32 #include <win \debugstr.h>33 #include <win \debugtools.h>31 #include <win/winnls.h> 32 #include <win/debugstr.h> 33 #include <win/debugtools.h> 34 34 35 35 #include <stdio.h> … … 132 132 "System\\CurrentControlSet\\control\\Print\\Environments\\%s\\Drivers\\"; 133 133 134 WINAPI GDI_CallExtDeviceMode16 ( HWND hwnd, LPDEVMODEA lpdmOutput,135 LPSTR lpszDevice, LPSTR lpszPort,136 LPDEVMODEA lpdmInput, LPSTR lpszProfile,137 DWORD fwMode );138 134 #ifndef __WIN32OS2__ 139 135 static LPWSTR *printer_array; … … 657 653 658 654 case VER_PLATFORM_WIN32_NT: 659 p = "Windows NT x86";655 p = (LPSTR)"Windows NT x86"; 660 656 break; 661 657 default: 662 p = "Windows 4.0";658 p = (LPSTR)"Windows 4.0"; 663 659 break; 664 660 } … … 825 821 DM_DEFAULTSOURCE | DM_PRINTQUALITY | 826 822 DM_YRESOLUTION | DM_TTOPTION; 827 828 #if (__IBMCPP__ == 360) 829 dm.dmOrientation = DMORIENT_PORTRAIT; 830 dm.dmPaperSize = DMPAPER_A4; 831 dm.dmPaperLength = 2970; 832 dm.dmPaperWidth = 2100; 833 #else 834 dm.s1.dmOrientation = DMORIENT_PORTRAIT; 835 dm.s1.dmPaperSize = DMPAPER_A4; 836 dm.s1.dmPaperLength = 2970; 837 dm.s1.dmPaperWidth = 2100; 838 #endif 839 823 dm.DUMMYSTRUCTNAME1_DOT dmOrientation = DMORIENT_PORTRAIT; 824 dm.DUMMYSTRUCTNAME1_DOT dmPaperSize = DMPAPER_A4; 825 dm.DUMMYSTRUCTNAME1_DOT dmPaperLength = 2970; 826 dm.DUMMYSTRUCTNAME1_DOT dmPaperWidth = 2100; 840 827 dm.dmScale = 100; 841 828 dm.dmCopies = 1; … … 2061 2048 * FIXME: 2062 2049 * Note that DocumentPropertiesW will briefly try to open the printer we 2050 2051 2052 2053 2063 2054 * just create to find a DEVMODEA struct (it will use the WINEPS default 2064 2055 * one in case it is not there, so we are ok). … … 2175 2166 return FALSE; 2176 2167 } 2177 if(!di3.pDefaultDataType) di3.pDefaultDataType = "";2178 if(!di3.pDependentFiles) di3.pDependentFiles = "\0";2179 if(!di3.pHelpFile) di3.pHelpFile = "";2180 if(!di3.pMonitorName) di3.pMonitorName = "";2168 if(!di3.pDefaultDataType) di3.pDefaultDataType = (LPSTR)""; 2169 if(!di3.pDependentFiles) di3.pDependentFiles = (LPSTR)"\0"; 2170 if(!di3.pHelpFile) di3.pHelpFile = (LPSTR)""; 2171 if(!di3.pMonitorName) di3.pMonitorName = (LPSTR)""; 2181 2172 2182 2173 hkeyDrivers = WINSPOOL_OpenDriverReg(di3.pEnvironment, FALSE); … … 3263 3254 { /* bad printer driver name? try cover up. */ 3264 3255 di3.pName = paQueues[i].pszDriverName; 3265 di3.pDriverPath = "WINSPOOL"; /* This is important! */3256 di3.pDriverPath = (LPSTR)"WINSPOOL"; /* This is important! */ 3266 3257 } 3267 3258 #else … … 3270 3261 #endif 3271 3262 di3.pEnvironment = NULL; /* NULL means auto */ 3272 di3.pDataFile = "<datafile?>";3273 di3.pConfigFile = "winodin.drv";3274 di3.pHelpFile = "<helpfile?>";3275 di3.pDependentFiles = "<dependend files?>";3276 di3.pMonitorName = "<monitor name?>";3277 di3.pDefaultDataType = "RAW";3263 di3.pDataFile = (LPSTR)"<datafile?>"; 3264 di3.pConfigFile = (LPSTR)"winodin.drv"; 3265 di3.pHelpFile = (LPSTR)"<helpfile?>"; 3266 di3.pDependentFiles = (LPSTR)"<dependend files?>"; 3267 di3.pMonitorName = (LPSTR)"<monitor name?>"; 3268 di3.pDefaultDataType = (LPSTR)"RAW"; 3278 3269 if (!AddPrinterDriverA(NULL, 3, (LPBYTE)&di3)) 3279 3270 { … … 3283 3274 3284 3275 /* Make printer. */ 3285 papi2[i].pDatatype = "RAW";3286 papi2[i].pPrintProcessor = "WinPrint";3276 papi2[i].pDatatype = (LPSTR)"RAW"; 3277 papi2[i].pPrintProcessor = (LPSTR)"WinPrint"; 3287 3278 #ifdef USE_OS2_DRIVERNAME 3288 3279 papi2[i].pComment = paQueues[i].pszName; /* Queue name. Don't allow any changes of the comment! */ … … 3291 3282 #endif 3292 3283 papi2[i].pDriverName = di3.pName; 3293 papi2[i].pParameters = "<parameters?>";3294 papi2[i].pShareName = "<share name?>";3295 papi2[i].pSepFile = "<sep file?>";3284 papi2[i].pParameters = (LPSTR)"<parameters?>"; 3285 papi2[i].pShareName = (LPSTR)"<share name?>"; 3286 papi2[i].pSepFile = (LPSTR)"<sep file?>"; 3296 3287 #if 0 /* only 'local', remember */ 3297 3288 if (paPrinters[i].pszComputerName) /* this is currnetly not used as we only enum locals. */ … … 3318 3309 * the anyway. 3319 3310 */ 3320 papi2[i].pLocation = "";3321 papi2[i].pPortName = "";3311 papi2[i].pLocation = (LPSTR)""; 3312 papi2[i].pPortName = (LPSTR)""; 3322 3313 psz = strchr(paQueues[i].pszPrinters, ','); 3323 3314 if (psz)
Note:
See TracChangeset
for help on using the changeset viewer.