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.

61 lines
1.4 KiB

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