6 #ifndef _INC_cWinAtom_H
7 #define _INC_cWinAtom_H
12 #include "../GrayLibBase.h"
28 cWinAtomBase(ATOM a = INVALID_ATOM) noexcept
32 const GChar_t* get_IntAtom() const noexcept
36 return (
const GChar_t *) MAKEINTATOM(m_a);
38 bool isValidAtom() const noexcept
40 return m_a != INVALID_ATOM;
53 cWinAtomH(ATOM a = INVALID_ATOM) noexcept
58 cWinAtomH(
const GChar_t* pszStr) noexcept
59 : cWinAtomBase(
_GTN(::AddAtom)(pszStr))
64 return _GTN(::GetAtomName)(m_a, pszName, iLenMax);
69 return _GTN(::FindAtom)(pszStr);
71 void Delete() noexcept
88 cWinAtomGlobalH(ATOM a = INVALID_ATOM) noexcept
93 cWinAtomGlobalH(
const GChar_t* pszStr) noexcept
94 : cWinAtomBase(
_GTN(::GlobalAddAtom)(pszStr))
99 return _GTN(::GlobalGetAtomName)(m_a, pszName, iLenMax);
104 return _GTN(::GlobalFindAtom)(pszStr);
106 void Delete() noexcept
109 ::GlobalDeleteAtom(m_a);
128 class GRAYLIB_LINK cWinAtomGlobal :
public cWinAtomGlobalH
134 ~cWinAtomGlobal() noexcept
136 ::GlobalDeleteAtom(m_a);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define _GTN(c)
_WIN32 name has a A or W for UTF8 or UNICODE (like _FNF)
Definition: StrConst.h:28
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26