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.

42 lines
718 B

  1. //=================================================================
  2. //
  3. // ThreadBase.h - Definition of Referenced Pointer class
  4. //
  5. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  6. //
  7. // Revisions: 10/15/97 Created
  8. //
  9. //=================================================================
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif
  13. #ifndef __REFPTRLITE_H__
  14. #define __REFPTRLITE_H__
  15. class CRefPtrLite
  16. {
  17. public:
  18. // Construction/Destruction
  19. CRefPtrLite();
  20. virtual ~CRefPtrLite();
  21. // Ref/Counting functions
  22. LONG AddRef( void );
  23. LONG Release( void );
  24. protected:
  25. virtual void OnFinalRelease( void );
  26. private:
  27. LONG m_lRefCount;
  28. };
  29. #endif