Changeset 12 for rxprtutl/trunk/rxprtutl.c
- Timestamp:
- Apr 22, 2013, 12:18:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rxprtutl/trunk/rxprtutl.c
r11 r12 523 523 PSZ pszToken; 524 524 HOBJECT hObj; // printer WPS object handle 525 ULONG flType = SPL_PR_QUEUE | SPL_PR_DIRECT_DEVICE ,525 ULONG flType = SPL_PR_QUEUE | SPL_PR_DIRECT_DEVICE | SPL_PR_LOCAL_ONLY, 526 526 cbBuf = 0, 527 527 cTotal = 0, … … 631 631 WriteCompoundVariable( szStemNode, "!description", 632 632 pPInfo->pszDescription ); 633 WriteCompoundVariable( szStemNode, "!queue", ""); 633 WriteCompoundVariable( szStemNode, "!queue", 634 pPInfo->pszPrintDestinationName); 634 635 WriteCompoundVariable( szStemNode, "!flags", ""); 635 636 WriteCompoundVariable( szStemNode, "!handle", ""); 636 637 637 WriteCompoundVariable( szStemNode, "!host", 638 638 pPInfo->pszComputerName ); … … 1279 1279 * (stem).i.!port Name of the port the printer is using * 1280 1280 * (stem).i.!driver List of the drivers used by this printer * 1281 * TODO: * 1282 * (stem).i.!flags Zero or more of the following flags (any order): * 1281 * (stem).i.!jobflags Zero or more of the following flags (any order): * 1283 1282 * E A printer error has occurred * 1284 * H Printer destination is paused 1283 * H Printer destination is paused (held) * 1285 1284 * I Intervention required * 1286 1285 * N Printer has raised a notification alert * 1287 1286 * O Printer is offline * 1288 1287 * P Printer is out of paper * 1289 * X Printer is not processing/paused *1290 1288 * * 1291 1289 * REXX ARGUMENTS: * … … 1303 1301 cbNeeded = 0; 1304 1302 PSZ pszDeviceName; 1305 CHAR szStem[ US_STEM_MAXZ ]; // compound variable stem name 1303 CHAR szFlags[ 8 ] = {0}, 1304 szStem[ US_STEM_MAXZ ]; // compound variable stem name 1306 1305 SPLERR rc; 1307 1306 … … 1349 1348 WriteCompoundVariable( szStem, "!description", pInfo->pszComment ); 1350 1349 WriteCompoundVariable( szStem, "!drivers", pInfo->pszDrivers ); 1350 if ( pInfo->fsStatus & PRJ_ERROR ) strcat( szFlags, "E"); 1351 if ( pInfo->fsStatus & PRJ_DESTPAUSED ) strcat( szFlags, "H"); 1352 if ( pInfo->fsStatus & PRJ_INTERV ) strcat( szFlags, "I"); 1353 if ( pInfo->fsStatus & PRJ_NOTIFY ) strcat( szFlags, "N"); 1354 if ( pInfo->fsStatus & PRJ_DESTOFFLINE ) strcat( szFlags, "O"); 1355 if ( pInfo->fsStatus & PRJ_DESTNOPAPER ) strcat( szFlags, "P"); 1356 WriteCompoundVariable( szStem, "!jobflags", szFlags ); 1351 1357 MAKERXSTRING( *prsResult, "1", 1 ); 1352 1358 }
Note:
See TracChangeset
for help on using the changeset viewer.