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

  1.  
  2. //  Module Header
  3. //
  4. //  Module Name: WPDISK
  5. //
  6. //  OS/2 Presentation Manager Workplace class definitions
  7. //
  8. //  Copyright (c) International Business Machines Corporation 1991, 1992
  9. //
  10.  
  11. #ifndef wpdisk_idl
  12. #define wpdisk_idl
  13.  
  14. #include "wpabs.idl"
  15. #include <somcls.idl>
  16.  
  17. interface WPRootFolder;
  18. interface M_WPDisk;
  19.  
  20. interface WPDisk : WPAbstract
  21.  
  22. {
  23.   ULONG wpAddDiskDetailsPage(in HWND hwndNotebook);
  24.  
  25.   ULONG wpQueryDriveLockStatus(in PULONG pulLockStatus,
  26.                                in PULONG pulLockCount);
  27.  
  28.   ULONG wpEjectDisk();
  29.  
  30.   ULONG wpLockDrive(in BOOL fLock);
  31.  
  32.   ULONG wpQueryLogicalDrive();
  33.  
  34.   WPRootFolder wpQueryRootFolder();
  35.  
  36.  
  37.   BOOL wpSetCorrectDiskIcon();
  38.  
  39.  
  40.  
  41. #ifdef __SOMIDL__
  42.   implementation {
  43.  
  44.     releaseorder: wpAddDiskDetailsPage,wpSetCorrectDiskIcon,wpQueryLogicalDrive,
  45.                   wpSetLogicalDrive,wpQueryRootFolder,wpSetDiskInfo,
  46.                   wpTouchDisk,wpQueryDiskInfo,wpQueryDriveLockStatus,
  47.                   wpEjectDisk,wpLockDrive;
  48.  
  49.     externalstem = wpdsk;
  50.     local;
  51.     externalprefix = dsk_;
  52.     majorversion = 1;
  53.     minorversion = 2;
  54.     filestem = wpdisk;
  55.     metaclass = M_WPDisk;
  56.     callstyle = oidl;
  57.     dllname = "pmwp.dll";               //sahsom2
  58.  
  59.     passthru C_h =  ""
  60. "    #ifndef WPRootFolder"
  61. "    #define WPRootFolder SOMAny"
  62. "    #endif"
  63. ""
  64. "    #define OPEN_AUTO            120";
  65.  
  66.  
  67.  
  68.     wpSetup: override;
  69.     wpSaveState: override;
  70.     wpRestoreState: override;
  71.     wpAddSettingsPages: override;
  72.     wpFilterPopupMenu: override;
  73.     wpModifyPopupMenu: override;
  74.     wpMenuItemHelpSelected: override;
  75.     wpMenuItemSelected: override;
  76.     wpSetTitle: override;
  77.     wpOpen: override;
  78.     wpQueryDefaultHelp: override;
  79.     wpDragOver: override;
  80.     wpDrop: override;
  81.     wpQueryIconData: override;
  82.     wpSetIconData: override;
  83.     wpViewObject: override;
  84.     wpUnInitData: override;
  85.     somDefaultInit: override;          
  86.     somDestruct: override;             
  87.  
  88.     wpAddObjectWindowPage: override;
  89.  
  90.   };
  91. #endif /* __SOMIDL__ */
  92. };
  93.  
  94. interface M_WPDisk : M_WPAbstract
  95. {
  96.  
  97. #ifdef __SOMIDL__
  98.   implementation {
  99.  
  100.     externalstem = wpdsk;
  101.     local;
  102.     externalprefix = dskM_;
  103.     majorversion = 1;
  104.     minorversion = 2;
  105.     filestem = wpdisk;
  106.     callstyle = oidl;
  107.     dllname = "pmwp.dll";               //sahsom2
  108.  
  109.     wpclsQueryDefaultHelp: override;
  110.     wpclsQueryIconData: override;
  111.     wpclsQueryStyle: override;
  112.     wpclsQueryTitle: override;
  113.     wpclsQueryDefaultView: override;
  114.  
  115.   };
  116. #endif /* __SOMIDL__ */
  117. };
  118.  
  119. #endif  /* wpdisk_idl */
  120.