windows-nt/Source/XPSP1/NT/public/internal/windows/inc/duser/duiuidgen.h
2020-09-26 16:20:57 +08:00

18 lines
412 B
C++

/*
* Unique ID generator (application-wide uniqueness)
*/
#ifndef DUI_BASE_UIDGEN_H_INCLUDED
#define DUI_BASE_UIDGEN_H_INCLUDED
namespace DirectUI
{
#define UID BYTE*
#define DefineUniqueID(name) BYTE _uid##name; UID name = &_uid##name;
#define DefineClassUniqueID(classn, name) BYTE _uid##classn##name; UID classn::name = &_uid##classn##name;
} // namespace DirectUI
#endif // DUI_BASE_UIDGEN_H_INCLUDED