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.
 
 
 
 
 
 

46 lines
766 B

/*++
Copyright (C) 1999-2001 Microsoft Corporation
Module Name:
ADAPELEM.H
Abstract:
History:
--*/
#ifndef __ADAPELEM_H__
#define __ADAPELEM_H__
class CAdapElement
////////////////////////////////////////////////////////////////////////////////
//
// The base class for all addref'd AMI ADAP objects
//
////////////////////////////////////////////////////////////////////////////////
{
private:
long m_lRefCount;
public:
CAdapElement( void );
virtual ~CAdapElement(void);
long AddRef( void );
long Release( void );
};
class CAdapReleaseMe
{
protected:
CAdapElement* m_pEl;
public:
CAdapReleaseMe(CAdapElement* pEl) : m_pEl(pEl){}
~CAdapReleaseMe() {if(m_pEl) m_pEl->Release();}
};
#endif