home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WOAPPLIC.HPP < prev    next >
C/C++ Source or Header  |  1996-10-28  |  4KB  |  131 lines

  1. #ifndef _WOAPPLIC_HPP_INCLUDED
  2. #define _WOAPPLIC_HPP_INCLUDED
  3.  
  4. #ifndef _WNO_PRAGMA_PUSH
  5. #pragma pack(push,8);
  6. #pragma enum int;
  7. #endif
  8.  
  9. #ifndef _WOLE_HPP_INCLUDED
  10. #  include "woletype.hpp"
  11. #endif
  12. #ifndef _WAPPLIC_HPP_INCLUDED
  13. #  include "wapplic.hpp"
  14. #endif
  15.  
  16. // forward class declarations
  17. class WOleClassManager;
  18.  
  19. /********************************************************************
  20.  *
  21.  * WOleDLLApplication -- OLE DLL Application class
  22.  *
  23.  *
  24.  *   Events:
  25.  *
  26.  ********************************************************************/
  27.  
  28. class WCMCLASS WOleDLLApplication : public WDLLApplication {
  29.     WDeclareSubclass( WOleDLLApplication, WDLLApplication );
  30.  
  31.     public:
  32.  
  33.         /**********************************************************
  34.          * Constructors and Destructors
  35.          *********************************************************/
  36.  
  37.         WOleDLLApplication();
  38.  
  39.         ~WOleDLLApplication();
  40.  
  41.     public:
  42.  
  43.         /**************************************************************
  44.          * Properties
  45.          **************************************************************/
  46.  
  47.         // the Class Manager
  48.         WOleClassManager *GetClassManager( void ) const;
  49.  
  50.         /**************************************************************
  51.          * Methods
  52.          **************************************************************/
  53.  
  54.         WULong DllRegisterServer( void );
  55.         WULong DllUnregisterServer( void );
  56.         WULong DllGetClassObject( const WCLSID & rclsid, const WIID & riid, void **ppv );
  57.         WULong DllCanUnloadNow( void );
  58.  
  59.     /**********************************************************
  60.      * Data Members
  61.      *********************************************************/
  62.     
  63.         WOleClassManager        *_classManager;
  64. };
  65.  
  66. /********************************************************************
  67.  *
  68.  * WOleEXEApplication -- OLE EXE Application class
  69.  *
  70.  *
  71.  *   Events:
  72.  *
  73.  ********************************************************************/
  74.  
  75. class WCMCLASS WOleExeApplication : public WExeApplication {
  76.     WDeclareSubclass( WOleExeApplication, WExeApplication );
  77.  
  78.     public:
  79.  
  80.         /**********************************************************
  81.          * Constructors and Destructors
  82.          *********************************************************/
  83.  
  84.         WOleExeApplication();
  85.  
  86.         ~WOleExeApplication();
  87.  
  88.     public:
  89.  
  90.         /**************************************************************
  91.          * Properties
  92.          **************************************************************/
  93.  
  94.         // User Mode
  95.         WBool SetUserMode( WBool userMode );
  96.         WBool GetUserMode( void ) const;
  97.  
  98.         // Allow User Mode
  99.         WBool SetAllowUserMode( WBool allowUserMode );
  100.         WBool GetAllowUserMode( void ) const;
  101.  
  102.         // the Class Manager
  103.         WOleClassManager *GetClassManager( void ) const;
  104.  
  105.         /**************************************************************
  106.          * Methods
  107.          **************************************************************/
  108.  
  109.         WULong ExeRegisterServer( void );
  110.         WULong ExeUnregisterServer( void );
  111.         WULong ExeRegisterClassObjects( void );
  112.         WULong ExeRevokeClassObjects( void );
  113.  
  114.         int EntryPoint( unsigned int inst, unsigned int prev,
  115.                         const WAnsiChar *command, int show );
  116.  
  117.     /**********************************************************
  118.      * Data Members
  119.      *********************************************************/
  120.     
  121.         WOleClassManager        *_classManager;
  122.         WBool                   _allowUserMode;
  123. };
  124.  
  125. #ifndef _WNO_PRAGMA_PUSH
  126. #pragma enum pop;
  127. #pragma pack(pop);
  128. #endif
  129.  
  130. #endif // _WOAPPLIC_HPP_INCLUDED
  131.