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.

57 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: CLoops.hxx
  7. //
  8. // Contents: Class to encapsulate demo of distributed binding interface
  9. //
  10. // Classes: CLoop
  11. //
  12. // History: 06-Aug-92 Ricksa Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #ifndef __LOOPS__
  16. #define __LOOPS__
  17. #include <otrack.hxx>
  18. #include <iloop.h>
  19. #include <loopscf.hxx>
  20. //+-------------------------------------------------------------------------
  21. //
  22. // Class: CLoop
  23. //
  24. // Purpose: Class to demostrate remote binding functionality
  25. //
  26. // Interface: QueryInterface
  27. // AddRef
  28. // Release
  29. //
  30. // History: 06-Aug-92 Ricksa Created
  31. //
  32. //--------------------------------------------------------------------------
  33. class CLoop : INHERIT_TRACKING,
  34. public ILoop
  35. {
  36. public:
  37. CLoop(void);
  38. STDMETHOD(QueryInterface)(REFIID riid, void **ppunk);
  39. DECLARE_STD_REFCOUNTING;
  40. STDMETHOD(Init)(ILoop *pRemoteLoop);
  41. STDMETHOD(Uninit)(void);
  42. STDMETHOD(Loop)(ULONG ulLoopCount);
  43. private:
  44. ~CLoop(void);
  45. ILoop * _pRemoteLoop;
  46. };
  47. #endif // __LOOPS__