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.
51 lines
813 B
51 lines
813 B
/*++
|
|
|
|
Copyright (c) 1985 - 1999, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
atom.h
|
|
|
|
Abstract:
|
|
|
|
This file defines the CAtomObject Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
|
|
#ifndef ATOM_H
|
|
#define ATOM_H
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CAtomObject
|
|
|
|
class CAtomObject
|
|
{
|
|
public:
|
|
CAtomObject() : m_AtomRefCount(0), m_AtomName(NULL), m_Atom(0) { }
|
|
virtual ~CAtomObject()
|
|
{
|
|
if (m_AtomName)
|
|
delete [] m_AtomName;
|
|
if (m_Atom)
|
|
DeleteAtom(m_Atom);
|
|
}
|
|
|
|
HRESULT _InitAtom(LPCTSTR lpString);
|
|
HRESULT _Activate();
|
|
HRESULT _Deactivate();
|
|
|
|
private:
|
|
int m_AtomRefCount;
|
|
LPTSTR m_AtomName;
|
|
ATOM m_Atom;
|
|
};
|
|
|
|
#endif // ATOM_H
|