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.

51 lines
813 B

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. atom.h
  5. Abstract:
  6. This file defines the CAtomObject Class.
  7. Author:
  8. Revision History:
  9. Notes:
  10. --*/
  11. #ifndef ATOM_H
  12. #define ATOM_H
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CAtomObject
  15. class CAtomObject
  16. {
  17. public:
  18. CAtomObject() : m_AtomRefCount(0), m_AtomName(NULL), m_Atom(0) { }
  19. virtual ~CAtomObject()
  20. {
  21. if (m_AtomName)
  22. delete [] m_AtomName;
  23. if (m_Atom)
  24. DeleteAtom(m_Atom);
  25. }
  26. HRESULT _InitAtom(LPCTSTR lpString);
  27. HRESULT _Activate();
  28. HRESULT _Deactivate();
  29. private:
  30. int m_AtomRefCount;
  31. LPTSTR m_AtomName;
  32. ATOM m_Atom;
  33. };
  34. #endif // ATOM_H