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

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPPORT
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpport_idl
  12. #define wpport_idl
  13.  
  14. #include "wptrans.idl"
  15. #include <somcls.idl>
  16. #include <wprttype.idl>                                                //@WPSOM2
  17.  
  18. interface M_WPPort;
  19.  
  20. interface WPPort : WPTransient
  21. {
  22.  
  23. #ifdef __SOMIDL__
  24.   implementation {
  25.  
  26.     releaseorder: prtGetPortInfo,prtSetPortInfo,prtSettings,prtGetDeviceObject,
  27.                   prtSetPortDiscardhwndDlg,prtSetPortInstallhwndDlg,
  28.                   prtPrintPort,prtSetIcon,prtChangePort,prtGetStatus,
  29.                   prtGetComputername,prtSetStatus,prtGetPDSelf,prtSetPDSelf,
  30.                   prtSetUlStatus, prtGetUlStatus,prtGetPortName,
  31.                   prtGetPanelList,prtIncThreadCnt,prtDecThreadCnt;
  32.  
  33.     externalstem = WPport;
  34.     local;
  35.     externalprefix = port_;
  36.     majorversion = 1;
  37.     minorversion = 1;
  38.     filestem = wpport;
  39.     metaclass = M_WPPort;
  40.     callstyle = oidl;
  41.  
  42.     passthru C_ih =     "#define JO_VERSION_MAJOR  1"
  43. "#define JO_VERSION_MINOR  1"
  44. ""
  45. "    /* port multi selected flags */"
  46. "#define PORT_FLAG_MUTISELPORT    0x00000001L"
  47. "#define SIZE_PORT_NAME           257"
  48. "";
  49.  
  50.     passthru C_h =     ""
  51. "/* common context menu ids */"
  52. "#define WPPOIDM_PORT_REDIRECT       7100"
  53. "#define WPPOIDM_PORT_INSTALL        8001"
  54. "";
  55.  
  56.     ULONG ulFlag;
  57.     HWND hwndNewDlg;
  58.     HWND hwndDiscardDlg;
  59.     PPRPORTINFO1 pPrPortInfo1;
  60.     HPOINTER hptrIcon;
  61.     PSZ       pszStatus       ;                 /* BIDI */
  62.     PSZ       pszComputerName ;                 /* BIDI */
  63.     HOBJECT   hQueue[10];                       /* BIDI */
  64.     ULONG     ulStatus;                         /* BIDI */
  65.     ULONG     ulPanelListSize;                  /* BIDI */
  66.     PSZ       pszPanelList;                     /* BIDI */
  67.     PSZ       pszLocalPathToDriver;             /* BIDI */
  68.     ULONG     ulThreadCnt;                      /* BIDI */
  69.     ULONG     flCapabilities;                   /* BIDI */
  70.  
  71.     wpInitData: override;
  72.     wpUnInitData: override;
  73.     somDumpSelfInt: override;
  74.     wpQueryTitle: override;
  75.     wpQueryIcon: override;
  76.     wpFilterPopupMenu: override;
  77.     wpFree: override;
  78.     wpModifyPopupMenu: override;
  79.     wpMenuItemSelected: override;
  80.     wpMenuItemHelpSelected: override;
  81.     wpOpen: override;
  82.     wpDrop: override;
  83.     wpDragOver: override;
  84.     wpCnrSetEmphasis: override;
  85.     wpQueryDetailsData: override;
  86.  
  87.  
  88.   };
  89. #endif /* __SOMIDL__ */
  90. };
  91.  
  92. interface M_WPPort
  93. {
  94.  
  95. #ifdef __SOMIDL__
  96.   implementation {
  97.  
  98.     externalstem = WPport;
  99.     local;
  100.     externalprefix = portM_;                                           //@WPSOM2
  101.     functionprefix = portM_;
  102.     majorversion = 1;
  103.     minorversion = 1;
  104.     filestem = wpport;
  105.     callstyle = oidl;
  106.  
  107.     wpclsQueryTitle: override;
  108.     wpclsQueryIcon: override;
  109.     wpclsQueryIconData: override;
  110.     wpclsQueryDefaultHelp: override;
  111.     wpclsQueryDefaultView: override;
  112.     wpclsQueryStyle: override;
  113.     wpclsQueryDetailsInfo: override;
  114.  
  115.   };
  116. #endif /* __SOMIDL__ */
  117. };
  118.  
  119. #endif  /* wpport_idl */
  120.