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.

59 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. #include "ProvRegistrar.h"
  11. #include "ProvEvents.h"
  12. /******************************************************************************
  13. *
  14. * Name:
  15. *
  16. *
  17. * Description:
  18. *
  19. *
  20. *****************************************************************************/
  21. template <class Object,class ObjectInterface>
  22. class CServerClassFactory : public IClassFactory
  23. {
  24. private:
  25. long m_ReferenceCount ;
  26. protected:
  27. public:
  28. CServerClassFactory () ;
  29. ~CServerClassFactory () ;
  30. //IUnknown members
  31. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  32. STDMETHODIMP_( ULONG ) AddRef () ;
  33. STDMETHODIMP_( ULONG ) Release () ;
  34. //IClassFactory members
  35. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  36. STDMETHODIMP LockServer ( BOOL ) ;
  37. };
  38. #include <classfac.cpp>
  39. #endif // _ServerClassFactory_H