home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / idl / wprttype.idl < prev    next >
Text File  |  1999-03-15  |  4KB  |  151 lines

  1. //  Module Header
  2. //
  3. //  Module Name: WPRTTYPE.IDL
  4. //
  5. //  OS/2 Presentation Manager Workplace class definitions
  6. //
  7. //  Copyright (c) International Business Machines Corporation 1991, 1992
  8. //
  9.  
  10. #ifndef  WPRTTYPE_IDL
  11. #define WPRTTYPE_IDL
  12.  
  13. interface WPObject;
  14.  
  15. #define CHAR           char
  16. #define SHORT          short
  17.  
  18. struct DATETIME {    /* date */
  19.     UCHAR   hours;
  20.     UCHAR   minutes;
  21.     UCHAR   seconds;
  22.     UCHAR   hundredths;
  23.     UCHAR   day;
  24.     UCHAR   month;
  25.     USHORT  year;
  26.     SHORT   timezone;
  27.     UCHAR   weekday;
  28. };
  29. typedef DATETIME    *PDATETIME;
  30.  
  31. struct DRIVDATA {     /* driv */
  32.    LONG    cb;
  33.    LONG    lVersion;
  34.    CHAR    szDeviceName[32];
  35.    CHAR    abGeneralData[1];
  36. };
  37. typedef DRIVDATA  *PDRIVDATA;
  38.  
  39. #define DRIV_NAME_SIZE           8     /* name of device driver     */
  40. #define DRIV_DEVICENAME_SIZE    31     /* see DRIVDATA struc        */
  41. #define QNLEN           12             /* Queue name maximum length */
  42. #define PDLEN            8             /* Print destination length  */
  43.  
  44.  
  45. struct PRJINFO2 {    /* prj2 */
  46.    USHORT  uJobId;
  47.    USHORT  uPriority;
  48.    PSZ     pszUserName;
  49.    USHORT  uPosition;
  50.    USHORT  fsStatus;
  51.    ULONG   ulSubmitted;
  52.    ULONG   ulSize;
  53.    PSZ     pszComment;
  54.    PSZ     pszDocument;
  55. } ;
  56. typedef PRJINFO2   *PPRJINFO2;
  57. typedef PRJINFO2   *NPPRJINFO2;
  58.  
  59. struct PRJINFO3 {    /* prj */
  60.    USHORT  uJobId;
  61.    USHORT  uPriority;
  62.    PSZ     pszUserName;
  63.    USHORT  uPosition;
  64.    USHORT  fsStatus;
  65.    ULONG   ulSubmitted;
  66.    ULONG   ulSize;
  67.    PSZ     pszComment;
  68.    PSZ     pszDocument;
  69.    PSZ     pszNotifyName;
  70.    PSZ     pszDataType;
  71.    PSZ     pszParms;
  72.    PSZ     pszStatus;
  73.    PSZ     pszQueue;
  74.    PSZ     pszQProcName;
  75.    PSZ     pszQProcParms;
  76.    PSZ     pszDriverName;
  77.    PDRIVDATA pDriverData;
  78.    PSZ     pszPrinterName;
  79. };
  80. typedef PRJINFO3   *PPRJINFO3;
  81. typedef PRJINFO3   *NPPRJINFO3;
  82.  
  83. struct PRJINFO4 {                                                  /* @BIDI */
  84.  USHORT uJobId;
  85.  USHORT uPriority;
  86.  PSZ    pszUserName;
  87.  USHORT uPosition;
  88.  USHORT fsStatus;
  89.  ULONG  ulSubmitted;
  90.  ULONG  ulSize;
  91.  PSZ    pszComment;
  92.  PSZ    pszDocument;
  93.  PSZ    pszSpoolFileName;
  94.  PSZ    pszPortName;
  95.  PSZ    pszStatus;
  96.  ULONG  ulPagesSpooled;
  97.  ULONG  ulPagesSent;
  98.  ULONG  ulPagesPrinted;
  99.  ULONG  ulTimePrinted;
  100.  ULONG  ulExtendJobStatus;
  101.  ULONG  ulStartPage;
  102.  ULONG  ulEndPage;
  103. } ;
  104. typedef PRJINFO4 *PPRJINFO4;
  105.  
  106. struct PRDINFO3 {    /* prd */
  107.    PSZ     pszPrinterName;
  108.    PSZ     pszUserName;
  109.    PSZ     pszLogAddr;
  110.    USHORT  uJobId;
  111.    USHORT  fsStatus;
  112.    PSZ     pszStatus;
  113.    PSZ     pszComment;
  114.    PSZ     pszDrivers;
  115.    USHORT  time;
  116.    USHORT  usTimeOut;
  117. } ;
  118. typedef PRDINFO3   *PPRDINFO3;
  119. typedef PRDINFO3   *NPPRDINFO3;
  120.  
  121. /*
  122. * structure for DosPrintDriverEnum
  123. */
  124. struct PRDRIVINFO {  /* prdid */
  125.    CHAR    szDrivName[DRIV_NAME_SIZE+1+DRIV_DEVICENAME_SIZE+1];
  126. } ;
  127. typedef PRDRIVINFO   *PPRDRIVINFO;
  128. typedef PRDRIVINFO   *NPPRDRIVINFO;
  129.  
  130. /*
  131. * structure for DosPrintPortEnum Level 1
  132. */
  133. struct PRPORTINFO1 {  /* prpo1 */
  134.    PSZ     pszPortName ;
  135.    PSZ     pszPortDriverName ;
  136.    PSZ     pszPortDriverPathName ;
  137. } ;
  138. typedef PRPORTINFO1   *PPRPORTINFO1;
  139. typedef PRPORTINFO1   *NPPRPORTINFO1;
  140.  
  141. /*
  142. * structure for DosPrintQProcessorEnum
  143. */
  144. struct PRQPROCINFO {  /* prqp */
  145.    CHAR    szQProcName[QNLEN+1];
  146. } ;
  147. typedef PRQPROCINFO   *PPRQPROCINFO;
  148. typedef PRQPROCINFO   *NPPRQPROCINFO;
  149.  
  150. #endif  /* WPRTTYPE_IDL */
  151.