2025-04-27 07:49:33 -04:00

48 lines
617 B
C++

/*++
Copyright (C) 1996-1999 Microsoft Corporation
Module Name:
REFCOUNT.H
History:
--*/
#pragma once
class LTAPIENTRY CRefCount
{
public:
CRefCount();
//
// Declared as STDMETHOD so as compatible with COM.
//
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
//
//
ULONG AddRef(void) const;
ULONG Release(void) const;
protected:
virtual ~CRefCount() = 0;
private:
CRefCount(const CRefCount &);
const CRefCount & operator=(const CRefCount &);
UINT operator==(const CRefCount &);
mutable UINT m_uiRefCount;
};