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.

112 lines
4.0 KiB

  1. #ifndef _REG_API_DEFINED_
  2. #define _REG_API_DEFINED_
  3. #ifdef unused
  4. #define RegConnectRegistry RegConnectRegistryW
  5. #define RegConnectRegistry RegConnectRegistryA
  6. #define RegCreateKey RegCreateKeyW
  7. #define RegCreateKey RegCreateKeyA
  8. #define RegCreateKeyEx RegCreateKeyExW
  9. #define RegCreateKeyEx RegCreateKeyExA
  10. #define RegDeleteKey RegDeleteKeyW
  11. #define RegDeleteKey RegDeleteKeyA
  12. #define RegDeleteValue RegDeleteValueW
  13. #define RegDeleteValue RegDeleteValueA
  14. #define RegEnumKey RegEnumKeyW
  15. #define RegEnumKey RegEnumKeyA
  16. #define RegEnumKeyEx RegEnumKeyExW
  17. #define RegEnumKeyEx RegEnumKeyExA
  18. #define RegEnumValue RegEnumValueW
  19. #define RegEnumValue RegEnumValueA
  20. #define RegLoadKey RegLoadKeyW
  21. #define RegLoadKey RegLoadKeyA
  22. #define RegOpenKey RegOpenKeyW
  23. #define RegOpenKey RegOpenKeyA
  24. #define RegOpenKeyEx RegOpenKeyExW
  25. #define RegOpenKeyEx RegOpenKeyExA
  26. #define RegQueryInfoKey RegQueryInfoKeyW
  27. #define RegQueryInfoKey RegQueryInfoKeyA
  28. #define RegQueryValue RegQueryValueW
  29. #define RegQueryValue RegQueryValueA
  30. #define RegQueryMultipleValues RegQueryMultipleValuesW
  31. #define RegQueryMultipleValues RegQueryMultipleValuesA
  32. #define RegQueryValueEx RegQueryValueExW
  33. #define RegQueryValueEx RegQueryValueExA
  34. #define RegReplaceKey RegReplaceKeyW
  35. #define RegReplaceKey RegReplaceKeyA
  36. #define RegRestoreKey RegRestoreKeyW
  37. #define RegRestoreKey RegRestoreKeyA
  38. #define RegSaveKey RegSaveKeyW
  39. #define RegSaveKey RegSaveKeyA
  40. #define RegSetValue RegSetValueW
  41. #define RegSetValue RegSetValueA
  42. #define RegSetValueEx RegSetValueExW
  43. #define RegSetValueEx RegSetValueExA
  44. #define RegUnLoadKey RegUnLoadKeyW
  45. #define RegUnLoadKey RegUnLoadKeyA
  46. #define InitiateSystemShutdown InitiateSystemShutdownW
  47. #define InitiateSystemShutdown InitiateSystemShutdownA
  48. #define AbortSystemShutdown AbortSystemShutdownW
  49. #define AbortSystemShutdown AbortSystemShutdownA
  50. #undef RegConnectRegistry
  51. #undef RegCreateKey
  52. #undef RegCreateKeyEx
  53. #undef RegDeleteKey
  54. #undef RegDeleteValue
  55. #undef RegEnumKey
  56. #undef RegEnumKeyEx
  57. #undef RegEnumValue
  58. #undef RegLoadKey
  59. #undef RegOpenKey
  60. #undef RegOpenKeyEx
  61. #undef RegQueryInfoKey
  62. #undef RegQueryValue
  63. #undef RegQueryMultipleValues
  64. #undef RegQueryValueEx
  65. #undef RegReplaceKey
  66. #undef RegRestoreKey
  67. #undef RegSaveKey
  68. #undef RegSetValue
  69. #undef RegSetValueEx
  70. #undef RegUnLoadKey
  71. #undef InitiateSystemShutdown
  72. #undef AbortSystemShutdown
  73. #endif //unused
  74. #pragma warning(disable:4005) // re-enable below
  75. #include "..\utils\wreg.hxx"
  76. extern CRegistryA *g_vpReg;
  77. #define RegConnectRegistry (g_vpReg)->ConnectRegistry
  78. #define RegCloseKey (g_vpReg)->CloseKey
  79. #define RegCreateKey (g_vpReg)->CreateKey
  80. #define RegCreateKeyEx (g_vpReg)->CreateKeyEx
  81. #define RegDeleteKey (g_vpReg)->DeleteKey
  82. #define RegDeleteValue (g_vpReg)->DeleteValue
  83. #define RegEnumKey (g_vpReg)->EnumKey
  84. #define RegEnumKeyEx (g_vpReg)->EnumKeyEx
  85. #define RegEnumValue (g_vpReg)->EnumValue
  86. #define RegFlushKey (g_vpReg)->FlushKey
  87. #define RegLoadKey (g_vpReg)->LoadKey
  88. #define RegOpenKey (g_vpReg)->OpenKey
  89. #define RegOpenKeyEx (g_vpReg)->OpenKeyEx
  90. #define RegQueryInfoKey (g_vpReg)->QueryInfoKey
  91. #define RegQueryValue (g_vpReg)->QueryValue
  92. #define RegQueryMultipleValues (g_vpReg)->QueryMultipleValues
  93. #define RegQueryValueEx (g_vpReg)->QueryValueEx
  94. #define RegReplaceKey (g_vpReg)->ReplaceKey
  95. #define RegRestoreKey (g_vpReg)->RestoreKey
  96. #define RegSaveKey (g_vpReg)->SaveKey
  97. #define RegSetValue (g_vpReg)->SetValue
  98. #define RegSetValueEx (g_vpReg)->SetValueEx
  99. #define RegUnLoadKey (g_vpReg)->UnLoadKey
  100. #pragma warning(default:4005) // re-enable below
  101. #endif //_REG_API_DEFINED_