Changeset 27 for trunk/gui/util/cupsport
- Timestamp:
- Apr 6, 2013, 11:21:51 PM (12 years ago)
- Location:
- trunk/gui/util/cupsport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/util/cupsport/cupsport.c
r8 r27 49 49 #define TYPE_LONG_WAIT 2 50 50 #define BIDI_SET_PORTDRV 0x19 51 52 #pragma import ( PrtSet,, "PMSPL", 604 )53 extern ULONG APIENTRY PrtSet( PSZ pszComputerName, PSZ pszDeviceName, ULONG ulType, ULONG ulCommand, PVOID pInData, ULONG cbInData );54 51 55 52 … … 126 123 strncpy( settings.szHost, pszHostName, STR_LEN_HOSTNAME ); 127 124 strncpy( settings.szQueue, pszPrinterName, STR_LEN_QUEUENAME ); 128 #if 1129 125 ulRC = pfn_CupsSet( pszPortName, TYPE_LONG_WAIT, BIDI_SET_PORTDRV, 130 126 &settings, sizeof( settings )); 131 #else132 ulRC = PrtSet( NULL, pszPortName, TYPE_LONG_WAIT, BIDI_SET_PORTDRV,133 &settings, sizeof( settings ));134 #endif135 127 if ( ulRC ) { 136 128 printf("Failed to update port settings, RC=0x%X.\n", ulRC ); -
trunk/gui/util/cupsport/readme.txt
r8 r27 7 7 BUILDING 8 8 9 No makefile at the moment, sorry. Just compile cupsport.c directly, e.g.: 10 icc cupsport.c 11 Built using IBM VACPP 3.08; 3.65 will probably work as well. Not tested 12 with GCC or OW, but they might be OK too. 9 No makefile at the moment, sorry. Use BUILDICC.CMD to compile using IBM 10 VACPP 3.08; 3.65 will probably work as well. 11 12 Not tested with GCC or OW, but they should be fine for building with as 13 long as you know how. 13 14 14 15 … … 22 23 from an application. 23 24 24 Without these updates, the created WPS printer object may not be us eable25 Without these updates, the created WPS printer object may not be usable 25 26 for printing until after the WPS is restarted, as the CUPS port fails to 26 27 get initialized properly. (You can tell when this happens if the printer
Note:
See TracChangeset
for help on using the changeset viewer.