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.

262 lines
9.5 KiB

  1. #define RegSetValueExW RegSetValueExWrapW
  2. #define CompareStringW CompareStringWrapW
  3. #define GetFileAttributesW GetFileAttributesWrapW
  4. #define GetFullPathNameW GetFullPathNameWrapW
  5. #define SearchPathW SearchPathWrapW
  6. #define GetWindowsDirectoryW GetWindowsDirectoryWrapW
  7. #define GetSystemDirectoryW GetSystemDirectoryWrapW
  8. #define GetEnvironmentVariableW GetEnvironmentVariableWrapW
  9. //+---------------------------------------------------------------------------
  10. //
  11. // NEEDs
  12. //
  13. // All functions in unicwrap must be bracketed in NEED_<DLLNAME>_WRAPPER
  14. // to ensure that wrappers are generated only on platforms that require them.
  15. //
  16. //----------------------------------------------------------------------------
  17. #if defined(_X86_) // X86 platform - use full wrappers
  18. #define NEED_KERNEL32_WRAPPER
  19. #define NEED_USER32_WRAPPER
  20. #define NEED_GDI32_WRAPPER
  21. #define NEED_ADVAPI32_WRAPPER
  22. #define NEED_WINMM_WRAPPER
  23. #define NEED_MPR_WRAPPER
  24. #define NEED_VERSION_WRAPPER
  25. #define NEED_SHELL32_WRAPPER
  26. #define NEED_COMDLG32_WRAPPER
  27. #else // other platform - don't need wrappers
  28. #undef NEED_KERNEL32_WRAPPER
  29. #undef NEED_USER32_WRAPPER
  30. #undef NEED_GDI32_WRAPPER
  31. #undef NEED_ADVAPI32_WRAPPER
  32. #undef NEED_WINMM_WRAPPER
  33. #undef NEED_MPR_WRAPPER
  34. #undef NEED_VERSION_WRAPPER
  35. #undef NEED_SHELL32_WRAPPER
  36. #undef NEED_COMDLG32_WRAPPER
  37. #endif
  38. #define NEED_OLE32_WRAPPER
  39. //+---------------------------------------------------------------------------
  40. //
  41. // Unwrapping
  42. //
  43. // Based on what we NEED, we disable selected wrappers so we can still
  44. // build other parts of shlwapi in the unwrapped case.
  45. //
  46. //----------------------------------------------------------------------------
  47. // These wrappers are to be always unwrapped.
  48. //#define GetLongPathNameWrapW GetLongPathNameW
  49. //#define GetLongPathNameWrapA GetLongPathNameA
  50. #ifndef NEED_KERNEL32_WRAPPER
  51. #define CreateDirectoryWrapW CreateDirectoryW
  52. #define CreateEventWrapW CreateEventW
  53. #define CreateFileWrapW CreateFileW
  54. #define DeleteFileWrapW DeleteFileW
  55. #define EnumResourceNamesWrapW EnumResourceNamesW
  56. #define FindFirstFileWrapW FindFirstFileW
  57. #define FindResourceWrapW FindResourceW
  58. #define FormatMessageWrapW FormatMessageW
  59. #define GetCurrentDirectoryWrapW GetCurrentDirectoryW
  60. #undef GetFileAttributesW
  61. #define GetFileAttributesWrapW GetFileAttributesW
  62. #define GetLocaleInfoWrapW GetLocaleInfoW
  63. #define GetModuleFileNameWrapW GetModuleFileNameW
  64. #undef SearchPathW
  65. #define SearchPathWrapW SearchPathW
  66. #define GetModuleHandleWrapW GetModuleHandleW
  67. #define SetFileAttributesWrapW SetFileAttributesW
  68. #define GetNumberFormatWrapW GetNumberFormatW
  69. #define FindNextFileWrapW FindNextFileW
  70. #undef GetFullPathNameW
  71. #define GetFullPathNameWrapW GetFullPathNameW
  72. #define GetShortPathNameWrapW GetShortPathNameW
  73. #define GetStringTypeExWrapW GetStringTypeExW
  74. #define GetPrivateProfileIntWrapW GetPrivateProfileIntW
  75. #define GetProfileStringWrapW GetProfileStringW
  76. #define GetTempFileNameWrapW GetTempFileNameW
  77. #define GetTempPathWrapW GetTempPathW
  78. #undef GetWindowsDirectoryW
  79. #define GetWindowsDirectoryWrapW GetWindowsDirectoryW
  80. #undef GetSystemDirectoryW
  81. #define GetSystemDirectoryWrapW GetSystemDirectoryW
  82. #undef GetEnvironmentVariableW
  83. #define GetEnvironmentVariableWrapW GetEnvironmentVariableW
  84. #define LoadLibraryExWrapW LoadLibraryExW
  85. #undef CompareStringW
  86. #define CompareStringWrapW CompareStringW
  87. #define CopyFileWrapW CopyFileW
  88. #define MoveFileWrapW MoveFileW
  89. #define OpenEventWrapW OpenEventW
  90. #define OutputDebugStringWrapW OutputDebugStringW
  91. #define RemoveDirectoryWrapW RemoveDirectoryW
  92. #define SetCurrentDirectoryWrapW SetCurrentDirectoryW
  93. #define CreateMutexWrapW CreateMutexW
  94. #define ExpandEnvironmentStringsWrapW ExpandEnvironmentStringsW
  95. #define CreateSemaphoreWrapW CreateSemaphoreW
  96. #define IsBadStringPtrWrapW IsBadStringPtrW
  97. #define LoadLibraryWrapW LoadLibraryW
  98. #define GetTimeFormatWrapW GetTimeFormatW
  99. #define GetDateFormatWrapW GetDateFormatW
  100. #define WritePrivateProfileStringWrapW WritePrivateProfileStringW
  101. #define GetPrivateProfileStringWrapW GetPrivateProfileStringW
  102. #define WritePrivateProfileStructWrapW WritePrivateProfileStructW
  103. #define GetPrivateProfileStructWrapW GetPrivateProfileStructW
  104. #define CreateProcessWrapW CreateProcessW
  105. #define GlobalAddAtomWrapW GlobalAddAtomW
  106. #define GlobalFindAtomWrapW GlobalFindAtomW
  107. #endif
  108. #ifndef NEED_USER32_WRAPPER
  109. #define CallWindowProcWrapW CallWindowProcW
  110. #define CallMsgFilterWrapW CallMsgFilterW
  111. #define CharLowerWrapW CharLowerW
  112. #define CharLowerBuffWrapW CharLowerBuffW
  113. #define CharNextWrapW CharNextW
  114. #define CharPrevWrapW CharPrevW
  115. #define CharToOemWrapW CharToOemW
  116. #define CharUpperWrapW CharUpperW
  117. #define CharUpperBuffWrapW CharUpperBuffW
  118. #define CopyAcceleratorTableWrapW CopyAcceleratorTableW
  119. #define CreateAcceleratorTableWrapW CreateAcceleratorTableW
  120. #define CreateWindowExWrapW CreateWindowExW
  121. #define DefWindowProcWrapW DefWindowProcW
  122. #define DispatchMessageWrapW DispatchMessageW
  123. #define DrawTextWrapW DrawTextW
  124. #define FindWindowWrapW FindWindowW
  125. #define FindWindowExWrapW FindWindowExW
  126. #define GetClassInfoWrapW GetClassInfoW
  127. #define GetClassLongWrapW GetClassLongW
  128. #define GetClassNameWrapW GetClassNameW
  129. #define GetClipboardFormatNameWrapW GetClipboardFormatNameW
  130. #define GetDlgItemTextWrapW GetDlgItemTextW
  131. #define GetMessageWrapW GetMessageW
  132. #define MessageBoxWrapW MessageBoxW
  133. #define GetPropWrapW GetPropW
  134. #define GetWindowLongWrapW GetWindowLongW
  135. #define GetWindowTextWrapW GetWindowTextW
  136. #define GetWindowTextLengthWrapW GetWindowTextLengthW
  137. #define IsDialogMessageWrapW IsDialogMessageW
  138. #define LoadAcceleratorsWrapW LoadAcceleratorsW
  139. #define LoadBitmapWrapW LoadBitmapW
  140. #define LoadCursorWrapW LoadCursorW
  141. #define LoadIconWrapW LoadIconW
  142. #define LoadImageWrapW LoadImageW
  143. #define LoadStringWrapW LoadStringW
  144. #define MessageBoxIndirectWrapW MessageBoxIndirectW
  145. #define MessageBoxIndirectWrapW MessageBoxIndirectW
  146. #define ModifyMenuWrapW ModifyMenuW
  147. #define OemToCharWrapW OemToCharW
  148. #define PeekMessageWrapW PeekMessageW
  149. #define PostMessageWrapW PostMessageW
  150. #define PostThreadMessageWrapW PostThreadMessageW
  151. #define RegisterClassWrapW RegisterClassW
  152. #define RegisterClipboardFormatWrapW RegisterClipboardFormatW
  153. #define RegisterWindowMessageWrapW RegisterWindowMessageW
  154. #define RemovePropWrapW RemovePropW
  155. #define SendMessageWrapW SendMessageW
  156. #define SendDlgItemMessageWrapW SendDlgItemMessageW
  157. #define SendMessageWrapW SendMessageW
  158. #define SendMessageTimeoutWrapW SendMessageTimeoutW
  159. #define SetDlgItemTextWrapW SetDlgItemTextW
  160. #define SetPropWrapW SetPropW
  161. #define SetWindowLongWrapW SetWindowLongW
  162. #define SetWindowsHookExWrapW SetWindowsHookExW
  163. #define SetWindowTextWrapW SetWindowTextW
  164. #define SystemParametersInfoWrapW SystemParametersInfoW
  165. #define TranslateAcceleratorWrapW TranslateAcceleratorW
  166. #define UnregisterClassWrapW UnregisterClassW
  167. #define VkKeyScanWrapW VkKeyScanW
  168. #define WinHelpWrapW WinHelpW
  169. #define wvsprintfWrapW wvsprintfW
  170. #define DrawTextExWrapW DrawTextExW
  171. #define RegisterClassExWrapW RegisterClassExW
  172. #define GetClassInfoExWrapW GetClassInfoExW
  173. #define DdeInitializeWrapW DdeInitializeW
  174. #define DdeCreateStringHandleWrapW DdeCreateStringHandleW
  175. #define DdeQueryStringWrapW DdeQueryStringW
  176. #endif
  177. #ifndef NEED_GDI32_WRAPPER
  178. #define CreateDCWrapW CreateDCW
  179. #define CreateICWrapW CreateICW
  180. #define CreateFontIndirectWrapW CreateFontIndirectW
  181. #define EnumFontFamiliesWrapW EnumFontFamiliesW
  182. #define EnumFontFamiliesExWrapW EnumFontFamiliesExW
  183. #define GetObjectWrapW GetObjectW
  184. #define GetTextExtentPoint32WrapW GetTextExtentPoint32W
  185. #define GetTextFaceWrapW GetTextFaceW
  186. #define GetTextMetricsWrapW GetTextMetricsW
  187. #define GetCharacterPlacementWrapW GetCharacterPlacementW
  188. #define GetCharWidth32WrapW GetCharWidth32W
  189. #define ExtTextOutWrapW ExtTextOutW
  190. #define CreateFontWrapW CreateFontW
  191. #define CreateMetaFileWrapW CreateMetaFileW
  192. #define StartDocWrapW StartDocW
  193. #define CreateColorSpaceWrapW CreateColorSpaceW
  194. #endif
  195. #ifndef NEED_ADVAPI32_WRAPPER
  196. #define GetUserNameWrapW GetUserNameW
  197. #define RegCreateKeyWrapW RegCreateKeyW
  198. #define RegCreateKeyExWrapW RegCreateKeyExW
  199. #define RegDeleteKeyWrapW RegDeleteKeyW
  200. #define RegDeleteValueWrapW RegDeleteValueW
  201. #define RegEnumKeyWrapW RegEnumKeyW
  202. #define RegEnumKeyExWrapW RegEnumKeyExW
  203. #define RegOpenKeyWrapW RegOpenKeyW
  204. #define RegOpenKeyExWrapW RegOpenKeyExW
  205. #define RegQueryInfoKeyWrapW RegQueryInfoKeyW
  206. #define RegQueryValueWrapW RegQueryValueW
  207. #define RegQueryValueExWrapW RegQueryValueExW
  208. #define RegSetValueWrapW RegSetValueW
  209. #undef RegSetValueExW
  210. #define RegSetValueExWrapW RegSetValueExW
  211. #define RegEnumValueWrapW RegEnumValueW
  212. #endif
  213. #ifndef NEED_WINMM_WRAPPER
  214. #define PlaySoundWrapW PlaySoundW
  215. #endif
  216. #ifndef NEED_MPR_WRAPPER
  217. #define WNetRestoreConnectionWrapW WNetRestoreConnectionW
  218. #define WNetGetLastErrorWrapW WNetGetLastErrorW
  219. #endif
  220. #ifndef NEED_VERSION_WRAPPER
  221. #define GetFileVersionInfoSizeWrapW GetFileVersionInfoSizeW
  222. #define GetFileVersionInfoWrapW GetFileVersionInfoW
  223. #define VerQueryValueWrapW VerQueryValueW
  224. #endif
  225. #ifndef NEED_SHELL32_WRAPPER
  226. #define SHBrowseForFolderWrapW SHBrowseForFolderW
  227. #define SHGetPathFromIDListWrapW SHGetPathFromIDListW
  228. #define ShellExecuteExWrapW ShellExecuteExW
  229. #define SHFileOperationWrapW SHFileOperationW
  230. #define ExtractIconExWrapW ExtractIconExW
  231. #define SHGetFileInfoWrapW SHGetFileInfoW
  232. #define DragQueryFileWrapW DragQueryFileW
  233. #define SHDefExtractIconWrapW SHDefExtractIconW
  234. #define ExtractIconWrapW ExtractIconW
  235. #define SHChangeNotifyWrap SHChangeNotify
  236. #endif
  237. #ifndef NEED_COMDLG32_WRAPPER
  238. #define GetSaveFileNameWrapW GetSaveFileNameW
  239. #endif
  240. #ifndef NEED_OLE32_WRAPPER
  241. #define CLSIDFromStringWrap CLSIDFromString
  242. #define CLSIDFromProgIDWrap CLSIDFromProgID
  243. #endif