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.

81 lines
2.4 KiB

  1. //+----------------------------------------------------------------------------
  2. // File: dllreg.hxx
  3. //
  4. // Synopsis: This file contains the routines for managing the registry
  5. //
  6. //-----------------------------------------------------------------------------
  7. #ifndef _DLLREG_HXX
  8. #define _DLLREG_HXX
  9. // Types ----------------------------------------------------------------------
  10. #define szMODULE_PATH _T("<m>")
  11. #define szDEFAULT_SECTION _T("D")
  12. #define chDEFAULT_SECTION _T('D')
  13. #define szVALUES_SECTION _T("V")
  14. #define chVALUES_SECTION _T('V')
  15. #define szSUBKEY_SECTION _T("K")
  16. #define chSUBKEY_SECTION _T('K')
  17. #define szEND_SECTION _T("\0")
  18. #define chEND_SECTION _T('\0')
  19. #define DEFINE_REGISTRY_SECKEY(name, section, key) \
  20. extern const TCHAR g_sz##name##RegistryKey[] = \
  21. { \
  22. _T(#section) \
  23. _T("\0") \
  24. _T(#key) \
  25. _T("\0")
  26. #define DEFINE_REGISTRY_KEY(name, key) \
  27. extern const TCHAR g_sz##name##RegistryKey[] = \
  28. { \
  29. _T("\0") \
  30. _T(#key) \
  31. _T("\0")
  32. #define DEFAULT_VALUE(value) \
  33. szDEFAULT_SECTION \
  34. _T(#value) \
  35. _T("\0")
  36. #define BEGIN_NAMED_VALUES \
  37. szVALUES_SECTION
  38. #define NAMED_VALUE(name, value) \
  39. _T(#name) \
  40. _T("\0") \
  41. _T(#value) \
  42. _T("\0")
  43. #define END_NAMED_VALUES \
  44. szEND_SECTION
  45. #define BEGIN_SUBKEY(key) \
  46. szSUBKEY_SECTION \
  47. _T(#key) \
  48. _T("\0")
  49. #define END_SUBKEY \
  50. szEND_SECTION
  51. #define END_REGISTRY_KEY \
  52. szEND_SECTION \
  53. };
  54. #define BEGIN_REGISTRY_KEYS \
  55. extern const TCHAR * g_aszKeys[] = \
  56. {
  57. #define REGISTRY_KEY(key) \
  58. g_sz##key##RegistryKey,
  59. #define END_REGISTRY_KEYS \
  60. NULL \
  61. };
  62. extern const TCHAR * g_aszKeys[];
  63. #endif // _DLLREG_HXX