Annotation of pmsdk/include/pmspl.h, revision 1.1.1.1

1.1       root        1: /***************************************************************************\
                      2: *
                      3: * Module Name: PMSPL.H
                      4: *
                      5: * OS/2 Presentation Manager Spooler constants, types and function declarations
                      6: *
                      7: * Copyright (c) 1987  IBM Corporation
                      8: * Copyright (c) 1987  Microsoft Corporation
                      9: *
                     10: * =============================================================================
                     11: *
                     12: * The following symbols are used in this file for conditional sections.
                     13: *
                     14: * INCL_SPLERRORS                - defined if INCL_ERRORS defined
                     15: *
                     16: \***************************************************************************/
                     17:  
                     18: /* if error definitions are required then allow Spooler errors */
                     19: #ifdef INCL_ERRORS
                     20:     #define INCL_SPLERRORS
                     21: #endif /* INCL_ERRORS */
                     22:  
                     23: /* common types, constants and function declarations             */
                     24:  
                     25: /* General SPL return values */
                     26: #define SPL_ERROR     0L
                     27: #define SPL_OK        1L
                     28:  
                     29: /* handle to a spool file */
                     30: typedef LHANDLE HSPL;               /* hspl */
                     31: /* handle to a spooler queue processor */
                     32: typedef LHANDLE HPROC;              /* hproc */
                     33: /* spooler manager open data */
                     34: typedef PSZ FAR *PQMOPENDATA;       /* pqmdop */
                     35: /* spooler processor open data */
                     36: typedef PSZ FAR *PQPOPENDATA;       /* pqpdop */
                     37: /* Used in recording of IBMQSTD data via SplStdxxx calls */
                     38: typedef LHANDLE HSTD;               /* hstd */
                     39:  
                     40: /*** Spooler Queue manager Interface */
                     41: HSPL   APIENTRY SplQmOpen( PSZ, LONG, PQMOPENDATA );
                     42: BOOL   APIENTRY SplQmStartDoc( HSPL, PSZ );
                     43: BOOL   APIENTRY SplQmWrite( HSPL, LONG, PCH );
                     44: USHORT APIENTRY SplQmEndDoc( HSPL );
                     45: BOOL   APIENTRY SplQmClose( HSPL );
                     46: BOOL   APIENTRY SplQmAbort( HSPL );
                     47:  
                     48: /* control codes for SplQpControl */
                     49: #define SPLC_ABORT     1
                     50: #define SPLC_PAUSE     2
                     51: #define SPLC_CONTINUE  3
                     52:  
                     53: /*** Spooler Queue Processor interface */
                     54: HPROC APIENTRY SplQpOpen( LONG, PQPOPENDATA );
                     55: BOOL  APIENTRY SplQpPrint( HPROC, PSZ );
                     56: BOOL  APIENTRY SplQpClose( HPROC );
                     57: BOOL  APIENTRY SplQpControl( HPROC, LONG );
                     58: BOOL  APIENTRY SplQpQueryDt( PLONG, PSZ * );
                     59: BOOL  APIENTRY SplQpInstall( HWND );
                     60:  
                     61: /* Error information for SplMessageBox */
                     62: #define SPLINFO_QPERROR       0x0001
                     63: #define SPLINFO_DDERROR       0x0002
                     64: #define SPLINFO_SPLERROR      0x0004
                     65: #define SPLINFO_OTHERERROR    0x0080
                     66: #define SPLINFO_INFORMATION   (SEVERITY_NOERROR << 16)
                     67: #define SPLINFO_WARNING       (SEVERITY_WARNING << 16)
                     68: #define SPLINFO_ERROR         (SEVERITY_ERROR   << 16)
                     69: #define SPLINFO_SEVERE        (SEVERITY_SEVERE  << 16)
                     70: #define SPLINFO_USERINTREQD   0x1000
                     71:  
                     72: /* Error Data for SplMessageBox */
                     73: #define SPLDATA_PRINTERJAM    1
                     74: #define SPLDATA_FORMCHGREQD   2
                     75: #define SPLDATA_CARTCHGREQD   4
                     76: #define SPLDATA_PENCHGREQD    8
                     77: #define SPLDATA_DATAERROR     16
                     78: #define SPLDATA_UNEXPECTERROR 32
                     79: #define SPLDATA_OTHER         32768
                     80:  
                     81: /* Style for SplMessageBox */
                     82: /* Same as for WinMsgBox see PMWIN.H for details */
                     83:  
                     84: /*** Spooler message interface */
                     85: USHORT  APIENTRY SplMessageBox( PSZ, USHORT, USHORT
                     86:                               , PSZ, PSZ, USHORT, USHORT );
                     87:  
                     88: /* return code for SplStdQueryLength */
                     89: #define SSQL_ERROR (-1L)
                     90:  
                     91: /*** IBM_Q_STD datatype functions */
                     92: BOOL APIENTRY SplStdOpen( HDC );
                     93: BOOL APIENTRY SplStdClose( HDC );
                     94: BOOL APIENTRY SplStdStart( HDC );
                     95: HSTD APIENTRY SplStdStop( HDC );
                     96: BOOL APIENTRY SplStdDelete( HSTD );
                     97: BOOL APIENTRY SplStdGetBits ( HSTD, LONG, LONG, PCH );
                     98: LONG APIENTRY SplStdQueryLength (HSTD);
                     99:  
                    100: #ifdef INCL_SPLERRORS
                    101:  
                    102: #define PMERR_SPL_DRIVER_ERROR             0x4001
                    103: #define PMERR_SPL_DEVICE_ERROR             0x4002
                    104: #define PMERR_SPL_DEVICE_NOT_INSTALLED     0x4003
                    105: #define PMERR_SPL_QUEUE_ERROR              0x4004
                    106: #define PMERR_SPL_INV_HSPL                 0x4005
                    107: #define PMERR_SPL_NO_DISK_SPACE            0x4006
                    108: #define PMERR_SPL_NO_MEMORY                0x4007
                    109: #define PMERR_SPL_PRINT_ABORT              0x4008
                    110: #define PMERR_SPL_SPOOLER_NOT_INSTALLED    0x4009
                    111: #define PMERR_SPL_INV_FORMS_CODE           0x400A
                    112: #define PMERR_SPL_INV_PRIORITY             0x400B
                    113: #define PMERR_SPL_NO_FREE_JOB_ID           0x400C
                    114: #define PMERR_SPL_NO_DATA                  0x400D
                    115: #define PMERR_SPL_INV_TOKEN                0x400E
                    116: #define PMERR_SPL_INV_DATATYPE             0x400F
                    117: #define PMERR_SPL_PROCESSOR_ERROR          0x4010
                    118: #define PMERR_SPL_INV_JOB_ID               0x4011
                    119: #define PMERR_SPL_JOB_NOT_PRINTING         0x4012
                    120: #define PMERR_SPL_JOB_PRINTING             0x4013
                    121: #define PMERR_SPL_QUEUE_ALREADY_EXISTS     0x4014
                    122: #define PMERR_SPL_INV_QUEUE_NAME           0x4015
                    123: #define PMERR_SPL_QUEUE_NOT_EMPTY          0x4016
                    124: #define PMERR_SPL_DEVICE_ALREADY_EXISTS    0x4017
                    125: #define PMERR_SPL_DEVICE_LIMIT_REACHED     0x4018
                    126: #define PMERR_SPL_STATUS_STRING_TRUNC      0x4019
                    127: #define PMERR_SPL_INV_LENGTH_OR_COUNT      0x401A
                    128: #define PMERR_SPL_FILE_NOT_FOUND           0x401B
                    129: #define PMERR_SPL_CANNOT_OPEN_FILE         0x401C
                    130: #define PMERR_SPL_DRIVER_NOT_INSTALLED     0x401D
                    131: #define PMERR_SPL_INV_PROCESSOR_DATTYPE    0x401E
                    132: #define PMERR_SPL_INV_DRIVER_DATATYPE      0x401F
                    133: #define PMERR_SPL_PROCESSOR_NOT_INST       0x4020
                    134: #define PMERR_SPL_NO_SUCH_LOG_ADDRESS      0x4021
                    135: #define PMERR_SPL_PRINTER_NOT_FOUND        0x4022
                    136: #define PMERR_SPL_DD_NOT_FOUND             0x4023
                    137: #define PMERR_SPL_QUEUE_NOT_FOUND          0x4024
                    138: #define PMERR_SPL_MANY_QUEUES_ASSOC        0x4025
                    139: #define PMERR_SPL_NO_QUEUES_ASSOCIATED     0x4026
                    140: #define PMERR_SPL_INI_FILE_ERROR           0x4027
                    141: #define PMERR_SPL_NO_DEFAULT_QUEUE         0x4028
                    142: #define PMERR_SPL_NO_CURRENT_FORMS_CODE    0x4029
                    143: #define PMERR_SPL_NOT_AUTHORISED           0x402A
                    144: #define PMERR_SPL_TEMP_NETWORK_ERROR       0x402B
                    145: #define PMERR_SPL_HARD_NETWORK_ERROR       0x402C
                    146:  
                    147: #endif /* INCL_SPLERRORS */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.