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.

63 lines
1.4 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: ballscf.hxx
  4. //
  5. // Contents: test class factory object implementation
  6. //
  7. // Classes: CBallClassFactory
  8. //
  9. // Functions: None
  10. //
  11. // History: 23-Nov-92 Rickhi Created
  12. //
  13. //--------------------------------------------------------------------
  14. #ifndef __CBALLCLASSFACTORY__
  15. #define __CBALLCLASSFACTORY__
  16. #include <win4p.hxx>
  17. #include <otrack.hxx> // object tracking
  18. extern "C" const GUID CLSID_Balls;
  19. //+-------------------------------------------------------------------
  20. //
  21. // Class: CBallClassFactory
  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 CBallClassFactory : INHERIT_TRACKING,
  33. public IClassFactory
  34. {
  35. public:
  36. // Constructor & Destructor
  37. CBallClassFactory(IUnknown *punkOuter);
  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. ~CBallClassFactory(void);
  48. IUnknown *_punkOuter;
  49. };
  50. #endif // __CBALLCLASSFACTORY__