Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/nu/CGlobalAtom.h

21 lines
303 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#pragma once
#include <windows.h>
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;
};