mirror of https://github.com/tongzx/nt5src
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.
37 lines
511 B
37 lines
511 B
/*
|
|
* refcount.hpp - RefCount class description.
|
|
*/
|
|
|
|
|
|
/* Types
|
|
********/
|
|
|
|
/* Classes
|
|
**********/
|
|
|
|
class RefCount
|
|
{
|
|
private:
|
|
ULONG m_ulcRef;
|
|
|
|
public:
|
|
RefCount(void);
|
|
// Virtual destructor defers to destructor of derived class.
|
|
virtual ~RefCount(void);
|
|
|
|
// IUnknown methods
|
|
|
|
ULONG STDMETHODCALLTYPE AddRef(void);
|
|
ULONG STDMETHODCALLTYPE Release(void);
|
|
|
|
// friends
|
|
|
|
#ifdef DEBUG
|
|
|
|
friend BOOL IsValidPCRefCount(const RefCount *pcrefcnt);
|
|
|
|
#endif
|
|
|
|
};
|
|
DECLARE_STANDARD_TYPES(RefCount);
|
|
|