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.

32 lines
500 B

  1. /*
  2. * refcount.hpp - RefCount class description.
  3. */
  4. #pragma once
  5. #include <objbase.h>
  6. #include <windows.h>
  7. /* Types
  8. ********/
  9. /* Classes
  10. **********/
  11. class RefCount
  12. {
  13. private:
  14. ULONG m_ulcRef;
  15. public:
  16. RefCount(void);
  17. // Virtual destructor defers to destructor of derived class.
  18. virtual ~RefCount(void);
  19. // IUnknown methods
  20. ULONG STDMETHODCALLTYPE AddRef(void);
  21. ULONG STDMETHODCALLTYPE Release(void);
  22. };
  23. DECLARE_STANDARD_TYPES(RefCount);