Source code of Windows XP (NT5)
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.

60 lines
1.1 KiB

  1. #ifndef CONSTANTS_HPP
  2. #define CONSTANTS_HPP
  3. #include <stdlib.h>
  4. #include <set>
  5. using namespace std;
  6. enum TYPE_OF_CHANGE
  7. {
  8. // NOP stands for no operation.
  9. // It gives an alternative way to limit the
  10. // enumeration of CHANGE_LIST
  11. NOP,
  12. ADD_ALL_CSV_VALUES,
  13. ADD_VALUE, // Currently not used in CHANGE_LIST
  14. REPLACE_W2K_SINGLE_VALUE,
  15. REPLACE_W2K_MULTIPLE_VALUE,
  16. ADD_GUID,
  17. REMOVE_GUID
  18. };
  19. #define MAX_CHANGES_PER_OBJECT 20
  20. struct sChange
  21. {
  22. wchar_t *property;
  23. wchar_t *value;
  24. enum TYPE_OF_CHANGE type;
  25. };
  26. struct sChangeList
  27. {
  28. wchar_t *object;
  29. struct sChange changes[MAX_CHANGES_PER_OBJECT];
  30. };
  31. #define N_REPLACE_W2K 5
  32. extern const long LOCALEIDS[];
  33. extern const long LOCALE409[];
  34. extern const wchar_t *NEW_XP_OBJECTS[];
  35. extern const struct sChangeList CHANGE_LIST[];
  36. typedef map <
  37. pair<long,long>,
  38. String,
  39. less< pair<long,long> > ,
  40. Burnslib::Heap::Allocator< String >
  41. > sReplaceW2KStrs;
  42. extern sReplaceW2KStrs replaceW2KStrs;
  43. void setReplaceW2KStrs();
  44. #endif;