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.

61 lines
1.3 KiB

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