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.

55 lines
1.3 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: qicf.hxx
  4. //
  5. // Contents: test class factory object implementation
  6. //
  7. // Classes: CQIClassFactory
  8. //
  9. // Functions: None
  10. //
  11. // History: 23-Nov-92 Rickhi Created
  12. //
  13. //--------------------------------------------------------------------
  14. #ifndef __CQICLASSFACTORY__
  15. #define __CQICLASSFACTORY__
  16. #include <win4p.hxx>
  17. #include <otrack.hxx> // object tracking
  18. #include <cqi.hxx> // class code
  19. //+-------------------------------------------------------------------
  20. //
  21. // Class: CQIClassFactory
  22. //
  23. // Purpose: test class factory object implementation
  24. //
  25. // History: 23-Nov-92 Rickhi Created
  26. //
  27. //--------------------------------------------------------------------
  28. class CQIClassFactory : INHERIT_TRACKING,
  29. public IClassFactory
  30. {
  31. public:
  32. // Constructor & Destructor
  33. CQIClassFactory(REFCLSID rclsid);
  34. // IUnknown methods
  35. STDMETHOD(QueryInterface)(REFIID riid, void **ppUnk);
  36. DECLARE_STD_REFCOUNTING;
  37. // IClassFactory methods
  38. STDMETHOD(CreateInstance)(IUnknown *punkOuter,
  39. REFIID riid,
  40. void **ppunkObject);
  41. STDMETHOD(LockServer)(BOOL fLock);
  42. private:
  43. ~CQIClassFactory(void);
  44. CLSID _clsid;
  45. };
  46. #endif // __CQICLASSFACTORY__