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.

79 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: userapis.h
  7. //
  8. // Contents: Prototypes and macors for stack switching
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 12-30-94 JohannP (Johann Posch) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef _USERAPIS_
  18. #define _USERAPIS_
  19. #ifdef _CHICAGO_
  20. #undef SendMessage
  21. #undef ReplyMessage
  22. #undef CallWindowProc
  23. #undef DefWindowProc
  24. #undef PeekMessage
  25. #undef GetMessage
  26. #undef DispatchMessage
  27. #undef WaitMessage
  28. #undef MsgWaitForMultipleObjects
  29. #undef DirectedYield
  30. #undef DialogBoxParam
  31. #undef DialogBoxIndirectParam
  32. #undef DestroyWindow
  33. #undef MessageBox
  34. #undef CreateWindowExA
  35. #undef CreateWindowExW
  36. #undef CreateProcessA
  37. #undef InSendMessage
  38. // Clipboard apis
  39. #undef OpenClipboard
  40. #undef CloseClipboard
  41. #undef GetClipboardOwner
  42. #undef SetClipboardData
  43. #undef GetClipboardData
  44. #undef EnumClipboardFormats
  45. #undef EmptyClipboard
  46. #undef RegisterClipboardFormatA
  47. #undef GetClipboardFormatNameA
  48. #undef IsClipboardFormatAvailable
  49. //
  50. // Restore original definitions as in winuser.h
  51. //
  52. #define SendMessage SendMessageA
  53. #define CallWindowProc CallWindowProcA
  54. #define DefWindowProc DefWindowProcA
  55. #define PeekMessage PeekMessageA
  56. #define GetMessage GetMessageA
  57. #define MsgWaitForMultipleObjects MsgWaitForMultipleObjects
  58. #define DispatchMessage DispatchMessageA
  59. #define DialogBoxParam DialogBoxParamA
  60. #define DialogBoxIndirectParam DialogBoxIndirectParamA
  61. #define MessageBox MessageBoxA
  62. #undef DialogBox
  63. #define DialogBox(a,b,c,d) \
  64. DialogBoxParamA(a,b,c,d, 0L)
  65. #undef DialogBoxIndirect
  66. #define DialogBoxIndirect(a,b,c,d) \
  67. DialogBoxIndirectParamA(a,b,c,d,e, 0L)
  68. #endif // _CHICAGO_
  69. #endif // _USERAPIS_