2024-09-24 12:54:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
2024-09-29 02:04:03 +00:00
|
|
|
#include <arch.h>
|
2024-09-24 12:54:57 +00:00
|
|
|
class CGlobalAtom
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CGlobalAtom(LPCWSTR name)
|
|
|
|
{
|
|
|
|
prop = GlobalAddAtomW(name);
|
|
|
|
}
|
|
|
|
~CGlobalAtom()
|
|
|
|
{
|
|
|
|
if (prop)
|
|
|
|
GlobalDeleteAtom(prop);
|
|
|
|
prop=0;
|
|
|
|
}
|
|
|
|
operator ATOM() { return prop; }
|
|
|
|
operator LPCWSTR() { return (LPCWSTR) prop; }
|
|
|
|
private:
|
|
|
|
ATOM prop;
|
|
|
|
};
|