Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
21
Src/nu/CGlobalAtom.h
Normal file
21
Src/nu/CGlobalAtom.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue