home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / oleregis.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 KB  |  73 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // oleregis.h : header file
  20. //
  21.  
  22.  
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // COleRegistry command target
  26.  
  27. class COleRegistry : public CCmdTarget
  28. {
  29.     DECLARE_DYNCREATE(COleRegistry)
  30. protected:
  31.     COleRegistry();           // protected constructor used by dynamic creation
  32.  
  33. // Attributes
  34. public:
  35.  
  36. // Operations
  37. public:
  38.     static void RegisterIniViewers();
  39.     static void RegisterIniProtocolHandlers();
  40.     static void Startup();
  41.     static void Shutdown();
  42.  
  43. // Overrides
  44.     // ClassWizard generated virtual function overrides
  45.     //{{AFX_VIRTUAL(COleRegistry)
  46.     public:
  47.     virtual void OnFinalRelease();
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. protected:
  52.     virtual ~COleRegistry();
  53.  
  54.     // Generated message map functions
  55.     //{{AFX_MSG(COleRegistry)
  56.         // NOTE - the ClassWizard will add and remove member functions here.
  57.     //}}AFX_MSG
  58.  
  59.     DECLARE_MESSAGE_MAP()
  60.     DECLARE_OLECREATE(COleRegistry)
  61.  
  62.     // Generated OLE dispatch map functions
  63.     //{{AFX_DISPATCH(COleRegistry)
  64.     afx_msg BOOL RegisterViewer(LPCTSTR pMimeType, LPCTSTR pRegistryName);
  65.     afx_msg BOOL RegisterProtocol(LPCTSTR pProtcol, LPCTSTR pRegistryName);
  66.     afx_msg BOOL RegisterStartup(LPCTSTR pRegistryName);
  67.     afx_msg BOOL RegisterShutdown(LPCTSTR pRegistryName);
  68.     //}}AFX_DISPATCH
  69.     DECLARE_DISPATCH_MAP()
  70. };
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73.