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.

108 lines
2.9 KiB

  1. //
  2. // IE4 shlwapi (which we need to link to) exported its unicode wrappers with their original names (i.e.
  3. // SendMessageW was exported as SendMessageW and the component had to link to shlwapi.lib before user32.lib).
  4. // In order for us to link to the IE4 shlwapi functions the IE5 WrapW names must be undef'ed.
  5. //
  6. #undef SendMessageW
  7. #undef GetDlgItemTextW
  8. #undef LoadStringW
  9. #undef SetWindowLongW
  10. #undef DefWindowProcW
  11. #undef PostMessageW
  12. #undef RegisterWindowMessageW
  13. #undef FindWindowW
  14. #undef CreateDirectoryW
  15. #undef GetFileAttributesW
  16. #undef GetWindowsDirectoryW
  17. #undef RegQueryValueExW
  18. #undef RegOpenKeyW
  19. #undef CharUpperW
  20. #undef GetClassLongW
  21. #undef CreateFontIndirectW
  22. #undef GetObjectW
  23. #undef GetTextMetricsW
  24. #undef DrawTextW
  25. #undef GetTextExtentPoint32W
  26. #undef LoadBitmapW
  27. #undef SetWindowsHookExW
  28. #undef CharNextW
  29. #undef CharLowerW
  30. #undef CreateEventW
  31. #undef LoadCursorW
  32. #undef GetWindowLongW
  33. #undef SendDlgItemMessageW
  34. #undef SetWindowTextW
  35. #undef SetDlgItemTextW
  36. #undef GetWindowTextLengthW
  37. #undef RegOpenKeyExW
  38. #undef GetModuleFileNameW
  39. #undef RegSetValueExW
  40. #undef RegCreateKeyExW
  41. #undef RegDeleteKeyW
  42. #undef RegEnumKeyExW
  43. #undef RegQueryInfoKeyW
  44. #undef RegEnumValueW
  45. #undef RegDeleteValueW
  46. #undef CallWindowProcW
  47. #undef GetWindowTextW
  48. #undef SystemParametersInfoW
  49. #undef CreateFileW
  50. //
  51. // Some static library functions link to shlwapi WrapW functions and the WrapW functions
  52. // aren't defined in IE4 shlwapi. Create WrapW exports that forward to the correct IE4 shlwapi
  53. // export or HNW wrapper function and have the static libs link to these.
  54. //
  55. #undef GetModuleHandleW
  56. #define GetModuleHandleWrapW GetModuleHandleWrapW_Unwrap
  57. #undef GetWindowsDirectoryW
  58. #define GetWindowsDirectoryWrapW GetWindowsDirectoryWrapW_Unwrap
  59. #undef GetModuleFileNameW
  60. #define GetModuleFileNameWrapW GetModuleFileNameWrapW_Unwrap
  61. #undef CreateWindowExW
  62. #define CreateWindowExWrapW CreateWindowExWrapW_Unwrap
  63. #undef CreateDialogIndirectParamW
  64. #define CreateDialogIndirectParamWrapW CreateDialogIndirectParamWrapW_Unwrap
  65. #undef CreateDialogParamW
  66. #define CreateDialogParamWrapW CreateDialogParamWrapW_Unwrap
  67. #undef DialogBoxIndirectParamW
  68. #define DialogBoxIndirectParamWrapW DialogBoxIndirectParamW_Unwrap
  69. #undef DialogBoxParamW
  70. #define DialogBoxParamWrapW DialogBoxParamWrapW_Unwrap
  71. #undef RegisterClassW
  72. #define RegisterClassWrapW RegisterClassWrapW_Unwrap
  73. #undef RegisterClassExW
  74. #define RegisterClassExWrapW RegisterClassExWrapW_Unwrap
  75. #undef GetClassInfoW
  76. #define GetClassInfoWrapW GetClassInfoWrapW_Unwrap
  77. #undef GetClassInfoExW
  78. #define GetClassInfoExWrapW GetClassInfoExWrapW_Unwrap
  79. #undef CreateFileW
  80. #define CreateFileWrapW CreateFileWrapW_Unwrap
  81. #undef SetFileAttributesW
  82. #define SetFileAttributesWrapW SetFileAttributesWrapW_Unwrap
  83. #define LoadLibraryWrapW LoadLibraryWrapW_Unwrap
  84. #define SHAnsiToUnicodeCP SHAnsiToUnicodeCP_Unwrap
  85. #define SHUnicodeToAnsi SHUnicodeToAnsi_Unwrap
  86. #define WhichPlatform WhichPlatform_Unwrap