home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / WPRTTYPE.IDL < prev    next >
Text File  |  1995-12-07  |  3KB  |  112 lines

  1. //  ------------------------------------------------------------------
  2. //  Module:  wprttype.idl
  3. //
  4. //  This file contains the IDL type definitions for the foreign types
  5. //  used in the PrintObjects' IDL files.
  6. //
  7. #ifndef  WPRTTYPE_IDL
  8. #define WPRTTYPE_IDL
  9. interface WPObject;
  10. #define CHAR           char
  11. #define SHORT          short
  12. struct DATETIME {    /* date */
  13.     UCHAR   hours;
  14.     UCHAR   minutes;
  15.     UCHAR   seconds;
  16.     UCHAR   hundredths;
  17.     UCHAR   day;
  18.     UCHAR   month;
  19.     USHORT  year;
  20.     SHORT   timezone;
  21.     UCHAR   weekday;
  22. };
  23. typedef DATETIME    *PDATETIME;
  24. struct DRIVDATA {     /* driv */
  25.    LONG    cb;
  26.    LONG    lVersion;
  27.    CHAR    szDeviceName[32];
  28.    CHAR    abGeneralData[1];
  29. };
  30. typedef DRIVDATA  *PDRIVDATA;
  31. #define DRIV_NAME_SIZE           8     /* name of device driver     */
  32. #define DRIV_DEVICENAME_SIZE    31     /* see DRIVDATA struc        */
  33. #define QNLEN           12             /* Queue name maximum length */
  34. #define PDLEN            8             /* Print destination length  */
  35. struct PRJINFO2 {    /* prj2 */
  36.    USHORT  uJobId;
  37.    USHORT  uPriority;
  38.    PSZ     pszUserName;
  39.    USHORT  uPosition;
  40.    USHORT  fsStatus;
  41.    ULONG   ulSubmitted;
  42.    ULONG   ulSize;
  43.    PSZ     pszComment;
  44.    PSZ     pszDocument;
  45. } ;
  46. typedef PRJINFO2   *PPRJINFO2;
  47. typedef PRJINFO2   *NPPRJINFO2;
  48. struct PRJINFO3 {    /* prj */
  49.    USHORT  uJobId;
  50.    USHORT  uPriority;
  51.    PSZ     pszUserName;
  52.    USHORT  uPosition;
  53.    USHORT  fsStatus;
  54.    ULONG   ulSubmitted;
  55.    ULONG   ulSize;
  56.    PSZ     pszComment;
  57.    PSZ     pszDocument;
  58.    PSZ     pszNotifyName;
  59.    PSZ     pszDataType;
  60.    PSZ     pszParms;
  61.    PSZ     pszStatus;
  62.    PSZ     pszQueue;
  63.    PSZ     pszQProcName;
  64.    PSZ     pszQProcParms;
  65.    PSZ     pszDriverName;
  66.    PDRIVDATA pDriverData;
  67.    PSZ     pszPrinterName;
  68. };
  69. typedef PRJINFO3   *PPRJINFO3;
  70. typedef PRJINFO3   *NPPRJINFO3;
  71. struct PRDINFO3 {    /* prd */
  72.    PSZ     pszPrinterName;
  73.    PSZ     pszUserName;
  74.    PSZ     pszLogAddr;
  75.    USHORT  uJobId;
  76.    USHORT  fsStatus;
  77.    PSZ     pszStatus;
  78.    PSZ     pszComment;
  79.    PSZ     pszDrivers;
  80.    USHORT  time;
  81.    USHORT  usTimeOut;
  82. } ;
  83. typedef PRDINFO3   *PPRDINFO3;
  84. typedef PRDINFO3   *NPPRDINFO3;
  85. /*
  86. * structure for DosPrintDriverEnum
  87. */
  88. struct PRDRIVINFO {  /* prdid */
  89.    CHAR    szDrivName[DRIV_NAME_SIZE+1+DRIV_DEVICENAME_SIZE+1];
  90. } ;
  91. typedef PRDRIVINFO   *PPRDRIVINFO;
  92. typedef PRDRIVINFO   *NPPRDRIVINFO;
  93. /*
  94. * structure for DosPrintPortEnum Level 1
  95. */
  96. struct PRPORTINFO1 {  /* prpo1 */
  97.    PSZ     pszPortName ;
  98.    PSZ     pszPortDriverName ;
  99.    PSZ     pszPortDriverPathName ;
  100. } ;
  101. typedef PRPORTINFO1   *PPRPORTINFO1;
  102. typedef PRPORTINFO1   *NPPRPORTINFO1;
  103. /*
  104. * structure for DosPrintQProcessorEnum
  105. */
  106. struct PRQPROCINFO {  /* prqp */
  107.    CHAR    szQProcName[QNLEN+1];
  108. } ;
  109. typedef PRQPROCINFO   *PPRQPROCINFO;
  110. typedef PRQPROCINFO   *NPPRQPROCINFO;
  111. #endif  /* WPRTTYPE_IDL */
  112.