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.

480 lines
8.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-1999.
  5. //
  6. // File: macwin32.h
  7. //
  8. // Contents: Macintosh Win32 function overrides for porting Win32 applications.
  9. //
  10. //
  11. //----------------------------------------------------------------------------
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif
  15. #ifdef _MAC
  16. // These functions in the Win32 SDK already exist on the native Macintosh OS.
  17. // To clarify that the user is calling the Win32 ported version rather than the
  18. // native MacOS version, the Win32 versions are prefixed Afx.
  19. //***************** mmsystem.h
  20. #ifdef _INC_MMSYSTEM
  21. #ifdef CloseDriver
  22. #undef CloseDriver
  23. #endif
  24. #define CloseDriver AfxCloseDriver
  25. #ifdef OpenDriver
  26. #undef OpenDriver
  27. #endif
  28. #define OpenDriver AfxOpenDriver
  29. #endif //_INC_MMSYSTEM
  30. //***************** winbase.h
  31. #ifdef _WINBASE_
  32. #ifdef FlushInstructionCache
  33. #undef FlushInstructionCache
  34. #endif
  35. #define FlushInstructionCache AfxFlushInstructionCache
  36. #ifdef GetCurrentProcess
  37. #undef GetCurrentProcess
  38. #endif
  39. #define GetCurrentProcess AfxGetCurrentProcess
  40. #ifdef GetCurrentThread
  41. #undef GetCurrentThread
  42. #endif
  43. #define GetCurrentThread AfxGetCurrentThread
  44. #ifdef LoadResource
  45. #undef LoadResource
  46. #endif
  47. #define LoadResource AfxLoadResource
  48. #ifdef GetFileSize
  49. #undef GetFileSize
  50. #endif
  51. #define GetFileSize AfxGetFileSize
  52. #endif //_WINBASE_
  53. // ************** wingdi.h
  54. #ifdef _WINGDI_
  55. #ifdef AnimatePalette
  56. #undef AnimatePalette
  57. #endif
  58. #define AnimatePalette AfxAnimatePalette
  59. #ifdef EqualRgn
  60. #undef EqualRgn
  61. #endif
  62. #define EqualRgn AfxEqualRgn
  63. #ifdef FillRgn
  64. #undef FillRgn
  65. #endif
  66. #define FillRgn AfxFillRgn
  67. #ifdef FrameRgn
  68. #undef FrameRgn
  69. #endif
  70. #define FrameRgn AfxFrameRgn
  71. #ifdef GetPixel
  72. #undef GetPixel
  73. #endif
  74. #define GetPixel AfxGetPixel
  75. #ifdef InvertRgn
  76. #undef InvertRgn
  77. #endif
  78. #define InvertRgn AfxInvertRgn
  79. #ifdef LineTo
  80. #undef LineTo
  81. #endif
  82. #define LineTo AfxLineTo
  83. #ifdef OffsetRgn
  84. #undef OffsetRgn
  85. #endif
  86. #define OffsetRgn AfxOffsetRgn
  87. #ifdef PaintRgn
  88. #undef PaintRgn
  89. #endif
  90. #define PaintRgn AfxPaintRgn
  91. #ifdef ResizePalette
  92. #undef ResizePalette
  93. #endif
  94. #define ResizePalette AfxResizePalette
  95. #ifdef SetRectRgn
  96. #undef SetRectRgn
  97. #endif
  98. #define SetRectRgn AfxSetRectRgn
  99. #ifdef GetPath
  100. #undef GetPath
  101. #endif
  102. #define GetPath AfxGetPath
  103. #ifdef Polygon
  104. #undef Polygon
  105. #endif
  106. #define Polygon AfxPolygon
  107. #endif // _WINGDI_
  108. //********************* winnls.h
  109. #ifdef _WINNLS_
  110. #ifdef CompareStringA
  111. #undef CompareStringA
  112. #endif
  113. #define CompareStringA AfxCompareStringA
  114. #ifdef CompareStringW
  115. #undef CompareStringW
  116. #endif
  117. #define CompareStringW AfxCompareStringW
  118. #ifdef GetLocaleInfoA
  119. #undef GetLocaleInfoA
  120. #endif
  121. #define GetLocaleInfoA AfxGetLocaleInfoA
  122. #ifdef GetLocaleInfoW
  123. #undef GetLocaleInfoW
  124. #endif
  125. #define GetLocaleInfoW AfxGetLocaleInfoW
  126. #endif //_WINNLS_
  127. //******************** winreg.h
  128. #ifdef _WINREG_
  129. #ifdef RegCloseKey
  130. #undef RegCloseKey
  131. #endif
  132. #define RegCloseKey AfxRegCloseKey
  133. #ifdef RegCreateKeyA
  134. #undef RegCreateKeyA
  135. #endif
  136. #define RegCreateKeyA AfxRegCreateKeyA
  137. #ifdef RegCreateKeyW
  138. #undef RegCreateKeyW
  139. #endif
  140. #define RegCreateKeyW AfxRegCreateKeyW
  141. #ifdef RegDeleteKeyA
  142. #undef RegDeleteKeyA
  143. #endif
  144. #define RegDeleteKeyA AfxRegDeleteKeyA
  145. #ifdef RegDeleteKeyW
  146. #undef RegDeleteKeyW
  147. #endif
  148. #define RegDeleteKeyW AfxRegDeleteKeyW
  149. #ifdef RegDeleteValueA
  150. #undef RegDeleteValueA
  151. #endif
  152. #define RegDeleteValueA AfxRegDeleteValueA
  153. #ifdef RegDeleteValueW
  154. #undef RegDeleteValueW
  155. #endif
  156. #define RegDeleteValueW AfxRegDeleteValueW
  157. #ifdef RegEnumKeyA
  158. #undef RegEnumKeyA
  159. #endif
  160. #define RegEnumKeyA AfxRegEnumKeyA
  161. #ifdef RegEnumKeyW
  162. #undef RegEnumKeyW
  163. #endif
  164. #define RegEnumKeyW AfxRegEnumKeyW
  165. #ifdef RegEnumValueA
  166. #undef RegEnumValueA
  167. #endif
  168. #define RegEnumValueA AfxRegEnumValueA
  169. #ifdef RegEnumValueW
  170. #undef RegEnumValueW
  171. #endif
  172. #define RegEnumValueW AfxRegEnumValueW
  173. #ifdef RegOpenKeyA
  174. #undef RegOpenKeyA
  175. #endif
  176. #define RegOpenKeyA AfxRegOpenKeyA
  177. #ifdef RegOpenKeyW
  178. #undef RegOpenKeyW
  179. #endif
  180. #define RegOpenKeyW AfxRegOpenKeyW
  181. #ifdef RegQueryValueA
  182. #undef RegQueryValueA
  183. #endif
  184. #define RegQueryValueA AfxRegQueryValueA
  185. #ifdef RegQueryValueW
  186. #undef RegQueryValueW
  187. #endif
  188. #define RegQueryValueW AfxRegQueryValueW
  189. #ifdef RegQueryValueExA
  190. #undef RegQueryValueExA
  191. #endif
  192. #define RegQueryValueExA AfxRegQueryValueExA
  193. #ifdef RegQueryValueExW
  194. #undef RegQueryValueExW
  195. #endif
  196. #define RegQueryValueExW AfxRegQueryValueExW
  197. #ifdef RegSetValueA
  198. #undef RegSetValueA
  199. #endif
  200. #define RegSetValueA AfxRegSetValueA
  201. #ifdef RegSetValueW
  202. #undef RegSetValueW
  203. #endif
  204. #define RegSetValueW AfxRegSetValueW
  205. #ifdef RegSetValueExA
  206. #undef RegSetValueExA
  207. #endif
  208. #define RegSetValueExA AfxRegSetValueExA
  209. #ifdef RegSetValueExW
  210. #undef RegSetValueExW
  211. #endif
  212. #define RegSetValueExW AfxRegSetValueExW
  213. #endif //_WINREG_
  214. //**************** winuser.h
  215. #ifdef _WINUSER_
  216. #ifdef SendMessage
  217. #undef SendMessage
  218. #endif
  219. #ifdef SendMessageA
  220. #undef SendMessageA
  221. #endif
  222. #define SendMessageA AfxSendMessageA
  223. #ifdef SendMessageW
  224. #undef SendMessageW
  225. #endif
  226. #define SendMessageW AfxSendMessageW
  227. #ifdef GetDoubleClickTime
  228. #undef GetDoubleClickTime
  229. #endif
  230. #define GetDoubleClickTime AfxGetDoubleClickTime
  231. #ifdef GetClassInfo
  232. #undef GetClassInfo
  233. #endif
  234. #ifdef GetClassInfoA
  235. #undef GetClassInfoA
  236. #endif
  237. #define GetClassInfoA AfxGetClassInfoA
  238. #ifdef GetClassInfoW
  239. #undef GetClassInfoW
  240. #endif
  241. #define GetClassInfoW AfxGetClassInfoW
  242. #ifdef ShowWindow
  243. #undef ShowWindow
  244. #endif
  245. #define ShowWindow AfxShowWindow
  246. #ifdef CloseWindow
  247. #undef CloseWindow
  248. #endif
  249. #define CloseWindow AfxCloseWindow
  250. #ifdef MoveWindow
  251. #undef MoveWindow
  252. #endif
  253. #define MoveWindow AfxMoveWindow
  254. #ifdef IsWindowVisible
  255. #undef IsWindowVisible
  256. #endif
  257. #define IsWindowVisible AfxIsWindowVisible
  258. #ifdef GetMenu
  259. #undef GetMenu
  260. #endif
  261. #define GetMenu AfxGetMenu
  262. #ifdef DrawMenuBar
  263. #undef DrawMenuBar
  264. #endif
  265. #define DrawMenuBar AfxDrawMenuBar
  266. #ifdef InsertMenu
  267. #undef InsertMenu
  268. #endif
  269. #ifdef InsertMenuA
  270. #undef InsertMenuA
  271. #endif
  272. #define InsertMenuA AfxInsertMenuA
  273. #ifdef InsertMenuW
  274. #undef InsertMenuW
  275. #endif
  276. #define InsertMenuW AfxInsertMenuW
  277. #ifdef AppendMenu
  278. #undef AppendMenu
  279. #endif
  280. #ifdef AppendMenuA
  281. #undef AppendMenuA
  282. #endif
  283. #define AppendMenuA AfxAppendMenuA
  284. #ifdef AppendMenuW
  285. #undef AppendMenuW
  286. #endif
  287. #define AppendMenuW AfxAppendMenuW
  288. #ifdef DeleteMenu
  289. #undef DeleteMenu
  290. #endif
  291. #define DeleteMenu AfxDeleteMenu
  292. #ifdef InsertMenuItem
  293. #undef InsertMenuItem
  294. #endif
  295. #ifdef InsertMenuItemA
  296. #undef InsertMenuItemA
  297. #endif
  298. #define InsertMenuItemA AfxInsertMenuItemA
  299. #ifdef InsertMenuItemW
  300. #undef InsertMenuItemW
  301. #endif
  302. #define InsertMenuItemW AfxInsertMenuItemW
  303. #ifdef DrawText
  304. #undef DrawText
  305. #endif
  306. #ifdef DrawTextA
  307. #undef DrawTextA
  308. #endif
  309. #define DrawTextA AfxDrawTextA
  310. #ifdef DrawTextW
  311. #undef DrawTextW
  312. #endif
  313. #define DrawTextW AfxDrawTextW
  314. #ifdef ShowCursor
  315. #undef ShowCursor
  316. #endif
  317. #define ShowCursor AfxShowCursor
  318. #ifdef SetCursor
  319. #undef SetCursor
  320. #endif
  321. #define SetCursor AfxSetCursor
  322. #ifdef GetCursor
  323. #undef GetCursor
  324. #endif
  325. #define GetCursor AfxGetCursor
  326. #ifdef FillRect
  327. #undef FillRect
  328. #endif
  329. #define FillRect AfxFillRect
  330. #ifdef FrameRect
  331. #undef FrameRect
  332. #endif
  333. #define FrameRect AfxFrameRect
  334. #ifdef InvertRect
  335. #undef InvertRect
  336. #endif
  337. #define InvertRect AfxInvertRect
  338. #ifdef SetRect
  339. #undef SetRect
  340. #endif
  341. #define SetRect AfxSetRect
  342. #ifdef UnionRect
  343. #undef UnionRect
  344. #endif
  345. #define UnionRect AfxUnionRect
  346. #ifdef OffsetRect
  347. #undef OffsetRect
  348. #endif
  349. #define OffsetRect AfxOffsetRect
  350. #ifdef EqualRect
  351. #undef EqualRect
  352. #endif
  353. #define EqualRect AfxEqualRect
  354. #ifdef PtInRect
  355. #undef PtInRect
  356. #endif
  357. #define PtInRect AfxPtInRect
  358. #ifdef GetParent
  359. #undef GetParent
  360. #endif
  361. #define GetParent AfxGetParent
  362. #ifdef FindWindow
  363. #undef FindWindow
  364. #endif
  365. #ifdef FindWindowA
  366. #undef FindWindowA
  367. #endif
  368. #define FindWindowA AfxFindWindowA
  369. #ifdef FindWindowW
  370. #undef FindWindowW
  371. #endif
  372. #define FindWindowW AfxFindWindowW
  373. #define AfxGetNextWindow(hWnd, wCmd) GetWindow(hWnd, wCmd)
  374. #endif //_WINUSER_
  375. #endif //_MAC