Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. ClassFac.h
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef _ServerClassFactory_H
  9. #define _ServerClassFactory_H
  10. /******************************************************************************
  11. *
  12. * Name:
  13. *
  14. *
  15. * Description:
  16. *
  17. *
  18. *****************************************************************************/
  19. class ClassFactoryBase : public IClassFactory
  20. {
  21. long m_ReferenceCount ;
  22. public:
  23. ClassFactoryBase () ;
  24. virtual ~ClassFactoryBase () ;
  25. //IUnknown members
  26. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  27. STDMETHODIMP_( ULONG ) AddRef () ;
  28. STDMETHODIMP_( ULONG ) Release () ;
  29. //IClassFactory members
  30. STDMETHODIMP LockServer ( BOOL ) ;
  31. };
  32. template <class Object,class ObjectInterface>
  33. class CServerClassFactory : public ClassFactoryBase
  34. {
  35. //IClassFactory members
  36. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  37. };
  38. #include <classfac.cpp>
  39. #endif // _ServerClassFactory_H