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.

73 lines
1.4 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: actcf.hxx
  4. //
  5. // Contents: object activation test class factory
  6. //
  7. // Classes: CActClassFactory
  8. //
  9. // Functions: None
  10. //
  11. // History: 23-Nov-92 Rickhi Created
  12. //
  13. //--------------------------------------------------------------------
  14. #ifndef __CACTCLASSFACTORY__
  15. #define __CACTCLASSFACTORY__
  16. #include <win4p.hxx>
  17. extern "C" const GUID CLSID_TestSingleUse;
  18. extern "C" const GUID CLSID_TestMultipleUse;
  19. extern "C" const GUID CLSID_DistBind;
  20. //+-------------------------------------------------------------------
  21. //
  22. // Class: CActClassFactory
  23. //
  24. // Purpose: object activation test class factory
  25. //
  26. // Interface:
  27. //
  28. // History: 23-Nov-92 Rickhi Created
  29. //
  30. // Notes:
  31. //
  32. //--------------------------------------------------------------------
  33. class CActClassFactory : public IClassFactory
  34. {
  35. public:
  36. CActClassFactory(REFCLSID rclsid, BOOL fServer);
  37. ~CActClassFactory(void);
  38. // IUnknown
  39. STDMETHOD(QueryInterface)(REFIID iid, void **ppv);
  40. STDMETHOD_(ULONG, AddRef)(void);
  41. STDMETHOD_(ULONG, Release)(void);
  42. // IClassFactory
  43. STDMETHOD(CreateInstance)(
  44. IUnknown FAR* pUnkOuter,
  45. REFIID riid,
  46. LPVOID FAR* ppunkObject);
  47. STDMETHOD(LockServer)(BOOL fLock);
  48. private:
  49. BOOL _fServer;
  50. CLSID _clsid;
  51. LONG _cRefs;
  52. LONG _cLocks;
  53. };
  54. #endif // __CACTCLASSFACTORY__