Source code of Windows XP (NT5)
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.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // clsfctry.h
  3. //
  4. //
  5. //
  6. //
  7. // History:
  8. //
  9. // cvadai 4/1/99 created.
  10. //
  11. //
  12. // Copyright (c)1997-2001 Microsoft Corporation, All Rights Reserved
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #pragma once // More efficient method for the gaurd macros!
  15. class CControllerFactory : public IClassFactory
  16. {
  17. protected:
  18. ULONG m_cRef;
  19. public:
  20. CControllerFactory(void);
  21. ~CControllerFactory(void);
  22. //IUnknown members
  23. STDMETHODIMP QueryInterface(REFIID, void**);
  24. STDMETHODIMP_(ULONG) AddRef(void);
  25. STDMETHODIMP_(ULONG) Release(void);
  26. //IClassFactory members
  27. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void**);
  28. STDMETHODIMP LockServer(BOOL);
  29. };
  30. class CQueryFactory : public IClassFactory
  31. {
  32. protected:
  33. ULONG m_cRef;
  34. public:
  35. CQueryFactory(void);
  36. ~CQueryFactory(void);
  37. //IUnknown members
  38. STDMETHODIMP QueryInterface(REFIID, void**);
  39. STDMETHODIMP_(ULONG) AddRef(void);
  40. STDMETHODIMP_(ULONG) Release(void);
  41. //IClassFactory members
  42. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void**);
  43. STDMETHODIMP LockServer(BOOL);
  44. };