*
 *
 * Module ctparm.h  V011IM01 === 061390
 *
 * 061390 011I01 sbw  New ASCB definition.
 *
 *
 *    PROPRIETARY PROGRAM MATERIAL
 * REPRODUCTION OR DISCLOSURE IS PROHIBITED WITHOUT WRITTEN AUTHORIZATION
 * OF THE PATENT DIVISION OF UNISYS CORPORATION, DETROIT, MICHIGAN 48232, USA.
 *
 * COPYRIGHT (C) 1987 BORLAND INTERNATIONAL
 * COPYRIGHT (C) 1990 UNISYS CORPORATION
 *
 *



ifndef	__ERCTYPE
define	__ERCTYPE
typedef	int	ErcType;
endif


struct	VLPB	{
	int		sVarParams;
	int		ibFirstFree;
	int		cParams;
	struct	{
		int	ob;
		int	cb;
		}
			rgSdoParam[1];
	};



* 011I01 sbw : revised ASCB.  Also in ctparm.h *

struct ASCB {
		int                 fhSwapFile        ;
		struct VLPB   *far  pVLPB             ;
		unsigned char       fExecScreen       ;
		unsigned char       fChkBoot          ;
		ErcType             ercRet            ;
		void          *far  pbMsgRet          ;
		unsigned            cbMsgRet          ;
		unsigned char       DtModeId          ;
		unsigned char       DtModeYmd         ;
		unsigned char       DtModeTim         ;
		unsigned char       DtModeFmt         ;
		char                __rsrv_01[2]      ;
		unsigned char       fTermination      ;
		unsigned char       fVacate           ;
		unsigned            oLastTask         ;
		unsigned char       fExecFont         ;
		unsigned char       bActionCode       ;
		unsigned            cParMemArray      ;
		unsigned            ALSignature       ;
		unsigned            fhContext         ;
		unsigned            fDollarContext    ;
		void          *far  pExitRunFileBuf   ;
		void          *far  pbPassedData      ;
		unsigned            cbPassedData      ;
		char                sbNodeMail[13]    ;
		unsigned long       QMailId           ;
		unsigned            naMailServer      ;
		char                sbUserName[31]    ;
		char                sbPassword[13]    ;
		char                sbCmdFile[79]     ;
		char                sbExitRunFile[79] ;
		char                sbPswd[13]        ;
		unsigned char       Priority          ;
		unsigned char       fColor            ;
		unsigned char       rgbColorBytes[8]  ;
		unsigned char       fReverseVideo     ;
		unsigned char       bgndColorByte     ;
		char                __rsrv_02[13]     ;
	    } ;




int	CParams plm far(void);
ErcType	RgParam plm far(int iParam, int jParam, void *far pSdRet);
ErcType	RgParamInit plm far(void *far pVarParams, int sVarParams, 
			int iParamMax);
ErcType	RgParamSetEltNext plm far(void *far pSd);
ErcType	RgParamSetListStart plm far(int iParam);
ErcType	RgParamSetSimple plm far(int iParam, void *far pSd);
int	CSubParams plm far(int iParam);
ErcType	GetpASCB plm far(struct ASCB *far *far ppASCBRet);

