Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
429 B

  1. /*
  2. * Unique ID generator (application-wide uniqueness)
  3. */
  4. #ifndef DUI_BASE_UIDGEN_H_INCLUDED
  5. #define DUI_BASE_UIDGEN_H_INCLUDED
  6. namespace DirectUI
  7. {
  8. #define UID BYTE*
  9. #define DefineUniqueID(name) BYTE _uid##name; UID name = &_uid##name;
  10. #define DefineClassUniqueID(classn, name) BYTE _uid##classn##name; UID classn::name = &_uid##classn##name;
  11. } // namespace DirectUI
  12. #endif // DUI_BASE_UIDGEN_H_INCLUDED