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.

64 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1995-2001 Microsoft Corporation
  3. Module Name:
  4. CFDYN.H
  5. Abstract:
  6. Declares the the CCFDyn Class.
  7. History:
  8. a-davj 27-Sep-95 Created.
  9. --*/
  10. #ifndef _CCFDYN_H_
  11. #define _CCFDYN_H_
  12. //Get the object definitions
  13. #include "impdyn.h"
  14. //***************************************************************************
  15. //
  16. // CLASS NAME:
  17. //
  18. // CCFDyn
  19. //
  20. // DESCRIPTION:
  21. //
  22. // This is the generic class factory. It is always overridden so as to
  23. // create a specific type of provider, such as a registry provider.
  24. //
  25. //***************************************************************************
  26. class CCFDyn : public IClassFactory
  27. {
  28. protected:
  29. long m_cRef;
  30. public:
  31. CCFDyn(void);
  32. ~CCFDyn(void);
  33. virtual IUnknown * CreateImpObj() = 0;
  34. //IUnknown members
  35. STDMETHODIMP QueryInterface(REFIID, PPVOID);
  36. STDMETHODIMP_(ULONG) AddRef(void);
  37. STDMETHODIMP_(ULONG) Release(void);
  38. //IClassFactory members
  39. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID
  40. , PPVOID);
  41. STDMETHODIMP LockServer(BOOL);
  42. };
  43. typedef CCFDyn *PCCFDyn;
  44. #endif //_CCFDYN_H_