Changeset 27 for trunk/gui/util/cupsport


Ignore:
Timestamp:
Apr 6, 2013, 11:21:51 PM (12 years ago)
Author:
Alex Taylor
Message:

Various minor fixes.

Location:
trunk/gui/util/cupsport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/util/cupsport/cupsport.c

    r8 r27  
    4949#define TYPE_LONG_WAIT   2
    5050#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 );
    5451
    5552
     
    126123    strncpy( settings.szHost, pszHostName, STR_LEN_HOSTNAME );
    127124    strncpy( settings.szQueue, pszPrinterName, STR_LEN_QUEUENAME );
    128 #if 1
    129125    ulRC = pfn_CupsSet( pszPortName, TYPE_LONG_WAIT, BIDI_SET_PORTDRV,
    130126                        &settings, sizeof( settings ));
    131 #else
    132     ulRC = PrtSet( NULL, pszPortName, TYPE_LONG_WAIT, BIDI_SET_PORTDRV,
    133                    &settings, sizeof( settings ));
    134 #endif
    135127    if ( ulRC ) {
    136128        printf("Failed to update port settings, RC=0x%X.\n", ulRC );
  • trunk/gui/util/cupsport/readme.txt

    r8 r27  
    77BUILDING
    88
    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.
    1314
    1415
     
    2223  from an application.
    2324
    24   Without these updates, the created WPS printer object may not be useable
     25  Without these updates, the created WPS printer object may not be usable
    2526  for printing until after the WPS is restarted, as the CUPS port fails to
    2627  get initialized properly.  (You can tell when this happens if the printer
Note: See TracChangeset for help on using the changeset viewer.