;*DDK*************************************************************************/
;
; COPYRIGHT    Copyright (C) 1995 IBM Corporation
;
;    The following IBM OS/2 WARP source code is provided to you solely for
;    the purpose of assisting you in your development of OS/2 WARP device
;    drivers. You may use this code in accordance with the IBM License
;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
;    Copyright statement may not be removed.;
;*****************************************************************************/
PMSPL_INCLUDED	EQU	1

ifndef INCL_32         
ifndef INCL_16      
ifdef M_I386
INCL_32	EQU	1

else
INCL_16	EQU	1

endif
endif
endif
ifdef INCL_ERRORS
INCL_SPLERRORS	EQU	1

endif 
SPL_INI_SPOOLER	EQU	<"PM_SPOOLER">
SPL_INI_QUEUE	EQU	<"PM_SPOOLER_QUEUE">
SPL_INI_PRINTER	EQU	<"PM_SPOOLER_PRINTER">
SPL_INI_PRINTERDESCR	EQU	<"PM_SPOOLER_PRINTER_DESCR">
SPL_INI_QUEUEDESCR	EQU	<"PM_SPOOLER_QUEUE_DESCR">
SPL_INI_QUEUEDD	EQU	<"PM_SPOOLER_QUEUE_DD">
SPL_INI_QUEUEDDDATA	EQU	<"PM_SPOOLER_QUEUE_DDDATA">
SPL_ERROR	EQU	0 
SPL_OK	EQU	1 
ifndef INCL_32
ifdef INCL_SPLFSE
endif 
endif 
SPLC_ABORT	EQU	1 
SPLC_PAUSE	EQU	2 
SPLC_CONTINUE	EQU	3 
QP_RAWDATA_BYPASS	EQU	00000001H 
QPDAT_ADDRESS	EQU	0 
QPDAT_DRIVER_NAME	EQU	1 
QPDAT_DRIVER_DATA	EQU	2 
QPDAT_DATA_TYPE	EQU	3 
QPDAT_COMMENT	EQU	4 
QPDAT_PROC_PARAMS	EQU	5 
QPDAT_SPL_PARAMS	EQU	6       
QPDAT_NET_PARAMS	EQU	7       
QPDAT_DOC_NAME	EQU	8       
QPDAT_QUEUE_NAME	EQU	9       
QPDAT_TOKEN	EQU	10       
QPDAT_JOBID	EQU	11       

SQPOPENDATA	STRUC
SplQpOpenData_pszLogAddress	DD	?
SplQpOpenData_pszDriverName	DD	?
SplQpOpenData_pdriv	DD	?
SplQpOpenData_pszDataType	DD	?
SplQpOpenData_pszComment	DD	?
SplQpOpenData_pszProcParams	DD	?
SplQpOpenData_pszSpoolParams	DD	?
SplQpOpenData_pszNetworkParams	DD	?
SplQpOpenData_pszDocName	DD	?
SplQpOpenData_pszQueueName	DD	?
SplQpOpenData_pszToken	DD	?
SplQpOpenData_idJobId	DW	?
SQPOPENDATA	ENDS
ifndef INCL_32
endif 
SPLINFO_QPERROR	EQU	0001H 
SPLINFO_DDERROR	EQU	0002H 
SPLINFO_SPLERROR	EQU	0004H 
SPLINFO_OTHERERROR	EQU	0080H 
SPLINFO_INFORMATION	EQU	0100H 
SPLINFO_WARNING	EQU	0200H 
SPLINFO_ERROR	EQU	0400H 
SPLINFO_SEVERE	EQU	0800H 
SPLINFO_USERINTREQD	EQU	1000H 
SPLDATA_PRINTERJAM	EQU	0001H 
SPLDATA_FORMCHGREQD	EQU	0002H 
SPLDATA_CARTCHGREQD	EQU	0004H 
SPLDATA_PENCHGREQD	EQU	0008H 
SPLDATA_DATAERROR	EQU	0010H 
SPLDATA_UNEXPECTERROR	EQU	0020H 
SPLDATA_OTHER	EQU	8000H 
SSQL_ERROR	EQU	(-1 )
ifdef INCL_SPLERRORS
INCLUDE pmerr.INC
endif 
ifdef INCL_32
else
endif
ifdef INCL_SPLDOSPRINT
CNLEN	EQU	15              
UNLEN	EQU	20              
QNLEN	EQU	12              
PDLEN	EQU	8              
DTLEN	EQU	9              
QP_DATATYPE_SIZE	EQU	15      
DRIV_DEVICENAME_SIZE	EQU	31      
DRIV_NAME_SIZE	EQU	8      
PRINTERNAME_SIZE	EQU	32      
FORMNAME_SIZE	EQU	31      
MAXCOMMENTSZ	EQU	48      

DRIVPROPS	STRUC
dprop_pszKeyName	DD	?
dprop_cbBuf	DD	?
dprop_pBuf	DD	?
DRIVPROPS	ENDS

PRJINFO	STRUC
prj1_uJobId	DW	?
prj1_szUserName	DB	UNLEN+1 DUP (?)
prj1_pad_1	DB	?
prj1_szNotifyName	DB	CNLEN+1 DUP (?)
prj1_szDataType	DB	DTLEN+1 DUP (?)
prj1_pszParms	DD	?
prj1_uPosition	DW	?
prj1_fsStatus	DW	?
prj1_pszStatus	DD	?
prj1_ulSubmitted	DD	?
prj1_ulSize	DD	?
prj1_pszComment	DD	?
PRJINFO	ENDS

PRJINFO2	STRUC
prj2_uJobId	DW	?
prj2_uPriority	DW	?
prj2_pszUserName	DD	?
prj2_uPosition	DW	?
prj2_fsStatus	DW	?
prj2_ulSubmitted	DD	?
prj2_ulSize	DD	?
prj2_pszComment	DD	?
prj2_pszDocument	DD	?
PRJINFO2	ENDS

PRJINFO3	STRUC
prj_uJobId	DW	?
prj_uPriority	DW	?
prj_pszUserName	DD	?
prj_uPosition	DW	?
prj_fsStatus	DW	?
prj_ulSubmitted	DD	?
prj_ulSize	DD	?
prj_pszComment	DD	?
prj_pszDocument	DD	?
prj_pszNotifyName	DD	?
prj_pszDataType	DD	?
prj_pszParms	DD	?
prj_pszStatus	DD	?
prj_pszQueue	DD	?
prj_pszQProcName	DD	?
prj_pszQProcParms	DD	?
prj_pszDriverName	DD	?
prj_pDriverData	DD	?
prj_pszPrinterName	DD	?
PRJINFO3	ENDS

PRDINFO	STRUC
prd1_szName	DB	PDLEN+1 DUP (?)
prd1_szUserName	DB	UNLEN+1 DUP (?)
prd1_uJobId	DW	?
prd1_fsStatus	DW	?
prd1_pszStatus	DD	?
prd1_time	DW	?
PRDINFO	ENDS

PRDINFO3	STRUC
prd_pszPrinterName	DD	?
prd_pszUserName	DD	?
prd_pszLogAddr	DD	?
prd_uJobId	DW	?
prd_fsStatus	DW	?
prd_pszStatus	DD	?
prd_pszComment	DD	?
prd_pszDrivers	DD	?
prd_time	DW	?
prd_usTimeOut	DW	?
PRDINFO3	ENDS

PRQINFO	STRUC
prq1_szName	DB	QNLEN+1 DUP (?)
prq1_pad_1	DB	?
prq1_uPriority	DW	?
prq1_uStartTime	DW	?
prq1_uUntilTime	DW	?
prq1_pszSepFile	DD	?
prq1_pszPrProc	DD	?
prq1_pszDestinations	DD	?
prq1_pszParms	DD	?
prq1_pszComment	DD	?
prq1_fsStatus	DW	?
prq1_cJobs	DW	?
PRQINFO	ENDS

PRQINFO3	STRUC
prq_pszName	DD	?
prq_uPriority	DW	?
prq_uStartTime	DW	?
prq_uUntilTime	DW	?
prq_fsType	DW	?
prq_pszSepFile	DD	?
prq_pszPrProc	DD	?
prq_pszParms	DD	?
prq_pszComment	DD	?
prq_fsStatus	DW	?
prq_cJobs	DW	?
prq_pszPrinters	DD	?
prq_pszDriverName	DD	?
prq_pDriverData	DD	?
PRQINFO3	ENDS

PRQINFO6	STRUC
prq6_pszName	DD	?
prq6_uPriority	DW	?
prq6_uStartTime	DW	?
prq6_uUntilTime	DW	?
prq6_fsType	DW	?
prq6_pszSepFile	DD	?
prq6_pszPrProc	DD	?
prq6_pszParms	DD	?
prq6_pszComment	DD	?
prq6_fsStatus	DW	?
prq6_cJobs	DW	?
prq6_pszPrinters	DD	?
prq6_pszDriverName	DD	?
prq6_pDriverData	DD	?
prq6_pszRemoteComputerName	DD	?
prq6_pszRemoteQueueName	DD	?
PRQINFO6	ENDS

PRIDINFO	STRUC
prjid_uJobId	DW	?
prjid_szComputerName	DB	CNLEN + 1 DUP (?)
prjid_szQueueName	DB	QNLEN+1 DUP (?)
prjid_pad_1	DB	?
PRIDINFO	ENDS

PRDRIVINFO	STRUC
prdid_szDrivName	DB	DRIV_NAME_SIZE+1+DRIV_DEVICENAME_SIZE+1 DUP (?)
PRDRIVINFO	ENDS

PRQPROCINFO	STRUC
prqp_szQProcName	DB	QNLEN+1 DUP (?)
PRQPROCINFO	ENDS

PRPORTINFO	STRUC
prpo_szPortName	DB	PDLEN+1 DUP (?)
PRPORTINFO	ENDS

PRPORTINFO1	STRUC
prpo1_pszPortName	DD	?
prpo1_pszPortDriverName	DD	?
prpo1_pszPortDriverPathName	DD	?
PRPORTINFO1	ENDS
ifndef INCL_32
endif 
PRQ_PRIORITY_PARMNUM	EQU	2 
PRQ_STARTTIME_PARMNUM	EQU	3 
PRQ_UNTILTIME_PARMNUM	EQU	4 
PRQ_SEPARATOR_PARMNUM	EQU	5 
PRQ_PROCESSOR_PARMNUM	EQU	6 
PRQ_DESTINATIONS_PARMNUM	EQU	7 
PRQ_PARMS_PARMNUM	EQU	8 
PRQ_COMMENT_PARMNUM	EQU	9 
PRQ_TYPE_PARMNUM	EQU	10 
PRQ_PRINTERS_PARMNUM	EQU	12 
PRQ_DRIVERNAME_PARMNUM	EQU	13 
PRQ_DRIVERDATA_PARMNUM	EQU	14 
PRQ_REMOTE_COMPUTER_PARMNUM	EQU	15 
PRQ_REMOTE_QUEUE_PARMNUM	EQU	16 
PRQ_MAXPARMNUM	EQU	16 
PRQ_MAX_PRIORITY	EQU	1         
PRQ_DEF_PRIORITY	EQU	5 
PRQ_MIN_PRIORITY	EQU	9         
PRQ_NO_PRIORITY	EQU	0 
PRQ_STATUS_MASK	EQU	3 
PRQ_ACTIVE	EQU	0 
PRQ_PAUSED	EQU	1         
PRQ_ERROR	EQU	2 
PRQ_PENDING	EQU	3         
PRQ3_PAUSED	EQU	1H         
PRQ3_PENDING	EQU	2H         
PRQ3_TYPE_RAW	EQU	0001H  
PRQ3_TYPE_BYPASS	EQU	0002H  
PRQ3_TYPE_APPDEFAULT	EQU	0004H  
PRJ_NOTIFYNAME_PARMNUM	EQU	3 
PRJ_DATATYPE_PARMNUM	EQU	4 
PRJ_PARMS_PARMNUM	EQU	5 
PRJ_POSITION_PARMNUM	EQU	6 
PRJ_JOBFILEINUSE_PARMNUM	EQU	7 
PRJ_COMMENT_PARMNUM	EQU	11 
PRJ_DOCUMENT_PARMNUM	EQU	12 
PRJ_STATUSCOMMENT_PARMNUM	EQU	13 
PRJ_PRIORITY_PARMNUM	EQU	14 
PRJ_PROCPARMS_PARMNUM	EQU	16 
PRJ_DRIVERDATA_PARMNUM	EQU	18 
PRJ_MAXPARMNUM	EQU	18 
PRJ_QSTATUS	EQU	0003H       
PRJ_DEVSTATUS	EQU	0ffcH       
PRJ_COMPLETE	EQU	0004H       
PRJ_INTERV	EQU	0008H       
PRJ_ERROR	EQU	0010H       
PRJ_DESTOFFLINE	EQU	0020H       
PRJ_DESTPAUSED	EQU	0040H       
PRJ_NOTIFY	EQU	0080H       
PRJ_DESTNOPAPER	EQU	0100H       
PRJ_DESTFORMCHG	EQU	0200H       
PRJ_DESTCRTCHG	EQU	0400H       
PRJ_DESTPENCHG	EQU	0800H       
PRJ_JOBFILEINUSE	EQU	4000H       
PRJ_DELETED	EQU	8000H       
PRJ_QS_QUEUED	EQU	0 
PRJ_QS_PAUSED	EQU	1 
PRJ_QS_SPOOLING	EQU	2 
PRJ_QS_PRINTING	EQU	3 
PRJ_MAX_PRIORITY	EQU	99           
PRJ_MIN_PRIORITY	EQU	1           
PRJ_NO_PRIORITY	EQU	0 
PRD_STATUS_MASK	EQU	0003H       
PRD_DEVSTATUS	EQU	0ffcH       
PRD_ACTIVE	EQU	0 
PRD_PAUSED	EQU	1 
PRD_DELETE	EQU	0 
PRD_PAUSE	EQU	1 
PRD_CONT	EQU	2 
PRD_RESTART	EQU	3 
PRD_LOGADDR_PARMNUM	EQU	3 
PRD_COMMENT_PARMNUM	EQU	7 
PRD_DRIVERS_PARMNUM	EQU	8 
PRD_TIMEOUT_PARMNUM	EQU	10 

PRINTERINFO	STRUC
prtin_flType	DD	?
prtin_pszComputerName	DD	?
prtin_pszPrintDestinationName	DD	?
prtin_pszDescription	DD	?
prtin_pszLocalName	DD	?
PRINTERINFO	ENDS
SPL_PR_QUEUE	EQU	00000001H  
SPL_PR_DIRECT_DEVICE	EQU	00000002H  
SPL_PR_QUEUED_DEVICE	EQU	00000004H  
SPL_PR_LOCAL_ONLY	EQU	00000100H  
endif  
ifdef INCL_32
ifdef INCL_SPLFSE
endif 
endif  
