home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / doserver / clsfact.h < prev    next >
C/C++ Source or Header  |  1997-05-28  |  2KB  |  52 lines

  1. /**************************************************************************
  2.    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3.    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4.    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5.    PARTICULAR PURPOSE.
  6.  
  7.    Copyright 1997 Microsoft Corporation.  All Rights Reserved.
  8. **************************************************************************/
  9.  
  10. /******************************************************************************
  11.  
  12.    File:          ClsFact.h
  13.    
  14.    Description:   Defintions for CClassFactory.
  15.  
  16. ******************************************************************************/
  17.  
  18. #ifndef CCLASSFACTORY_H
  19. #define CCLASSFACTORY_H
  20.  
  21. /**************************************************************************
  22.    #include statements
  23. **************************************************************************/
  24.  
  25. #include "DOServer.h"
  26.  
  27. /**************************************************************************
  28.  
  29.    CClassFactory class definition
  30.  
  31. **************************************************************************/
  32.  
  33. class CClassFactory : public IClassFactory
  34. {
  35. protected:
  36.    DWORD m_ObjRefCount;
  37.  
  38. public:
  39.    CClassFactory();
  40.    ~CClassFactory();
  41.  
  42.    //IUnknown methods
  43.    STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  44.    STDMETHODIMP_(DWORD) AddRef();
  45.    STDMETHODIMP_(DWORD) Release();
  46.  
  47.    //IClassFactory methods
  48.    STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  49.    STDMETHODIMP LockServer(BOOL);
  50. };
  51.  
  52. #endif   //CCLASSFACTORY_H