mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-15 02:24:55 -05:00
21 lines
No EOL
303 B
C++
21 lines
No EOL
303 B
C++
#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;
|
|
}; |