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.

155 lines
4.7 KiB

  1. //
  2. // APITHK.H
  3. //
  4. #ifndef _APITHK_H_
  5. #define _APITHK_H_
  6. BOOL NT5_AnimateWindow(IN HWND hwnd, IN DWORD dWTime, IN DWORD dwFlags);
  7. #define AnimateWindow NT5_AnimateWindow
  8. // Other functions
  9. STDAPI_(HCURSOR) LoadHandCursor(DWORD dwRes);
  10. STDAPI_(void) CoolTooltipBubble(IN HWND hwnd, IN LPCRECT prc, BOOL fAllowFade, BOOL fAllowAnimate);
  11. STDAPI_(BOOL) NT5_QueueUserWorkItem(LPTHREAD_START_ROUTINE Function,
  12. PVOID Context, BOOL PreferIo);
  13. #define CCQueueUserWorkItem NT5_QueueUserWorkItem
  14. STDAPI_(int)
  15. NT5_GetCalendarInfoA(LCID lcid, CALID calid, CALTYPE cal,
  16. LPSTR pszBuf, int cchBuf, LPDWORD pdwOut);
  17. // =========================================================================
  18. // things supported since NT5 and Memphis
  19. #define PrivateDFCS_HOT 0x1000
  20. #define PrivateSPI_GETSELECTIONFADE 0x1014
  21. #define PrivateWM_CHANGEUISTATE 0x0127
  22. #define PrivateWM_UPDATEUISTATE 0x0128
  23. #define PrivateWM_QUERYUISTATE 0x0129
  24. #define PrivateUIS_SET 1
  25. #define PrivateUIS_CLEAR 2
  26. #define PrivateUIS_INITIALIZE 3
  27. #define PrivateUISF_HIDEFOCUS 0x1
  28. #define PrivateUISF_HIDEACCEL 0x2
  29. #define PrivateDT_HIDEPREFIX 0x00100000
  30. #define PrivateDT_PREFIXONLY 0x00200000
  31. #define PrivateSPI_GETCLEARTYPE 116
  32. #define PrivateDFCS_TRANSPARENT 0x0800
  33. #ifndef UNIX
  34. #define KEYBOARDCUES
  35. #endif
  36. #define PrivateCAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
  37. #define PrivateCAL_ITWODIGITYEARMAX 0x00000030
  38. #define PrivateLOCALE_SYEARMONTH 0x00001006
  39. #define PrivateSM_IMMENABLED 82
  40. #if (WINVER >= 0x0500)
  41. // for files in nt5api and w5api dirs, use the definition in sdk include.
  42. // And make sure our private define is in sync with winuser.h.
  43. #if DFCS_HOT != PrivateDFCS_HOT
  44. #error inconsistant DFCS_HOT in winuser.h
  45. #endif
  46. #if SPI_GETSELECTIONFADE != PrivateSPI_GETSELECTIONFADE
  47. #error inconsistant SPI_GETSELECTIONFADE in winuser.h
  48. #endif
  49. // We are checking this in at the same time that user is. This is to prevent
  50. // sync problems.
  51. #ifdef SPI_GETCLEARTYPE
  52. #if SPI_GETCLEARTYPE != PrivateSPI_GETCLEARTYPE
  53. #error inconsistant SPI_GETCLEARTYPE in winuser.h
  54. #endif
  55. #else
  56. #define SPI_GETCLEARTYPE PrivateSPI_GETCLEARTYPE
  57. #endif
  58. #if PrivateCAL_RETURN_NUMBER != CAL_RETURN_NUMBER || \
  59. PrivateCAL_ITWODIGITYEARMAX != CAL_ITWODIGITYEARMAX
  60. #error inconsistent CAL_RETURN_NUMBER/CAL_ITWODIGITYEARMAX in winnls.h
  61. #endif
  62. #if LOCALE_SYEARMONTH != PrivateLOCALE_SYEARMONTH
  63. #error inconsistant LOCALE_SYEARMONTH in winnls.h
  64. #endif
  65. #ifdef SM_IMMENABLED
  66. #if SM_IMMENABLED != PrivateSM_IMMENABLED
  67. #error inconsistant SM_IMMENABLED in winuser.h
  68. #endif
  69. #else
  70. #define SM_IMMENABLED PrivateSM_IMMENABLED
  71. #endif
  72. #else
  73. #define COLOR_HOTLIGHT GetCOLOR_HOTLIGHT()
  74. #define DFCS_HOT PrivateDFCS_HOT
  75. #define SPI_GETSELECTIONFADE PrivateSPI_GETSELECTIONFADE
  76. #define WM_CHANGEUISTATE PrivateWM_CHANGEUISTATE
  77. #define WM_UPDATEUISTATE PrivateWM_UPDATEUISTATE
  78. #define WM_QUERYUISTATE PrivateWM_QUERYUISTATE
  79. #define UIS_SET PrivateUIS_SET
  80. #define UIS_CLEAR PrivateUIS_CLEAR
  81. #define UIS_INITIALIZE PrivateUIS_INITIALIZE
  82. #define UISF_HIDEFOCUS PrivateUISF_HIDEFOCUS
  83. #define UISF_HIDEACCEL PrivateUISF_HIDEACCEL
  84. #define DT_HIDEPREFIX PrivateDT_HIDEPREFIX
  85. #define DT_PREFIXONLY PrivateDT_PREFIXONLY
  86. #define CAL_RETURN_NUMBER PrivateCAL_RETURN_NUMBER
  87. #define CAL_ITWODIGITYEARMAX PrivateCAL_ITWODIGITYEARMAX
  88. #define LOCALE_SYEARMONTH PrivateLOCALE_SYEARMONTH
  89. #define SPI_GETCLEARTYPE PrivateSPI_GETCLEARTYPE
  90. #define DFCS_TRANSPARENT PrivateDFCS_TRANSPARENT
  91. #define SM_IMMENABLED PrivateSM_IMMENABLED
  92. #endif // (WINVER >= 0x0500)
  93. int GetCOLOR_HOTLIGHT();
  94. // =========================================================================
  95. // things supported since NT4 and Memphis
  96. #define PrivateWM_MOUSEWHEEL 0x020A
  97. #define PrivateSPI_GETWHEELSCROLLLINES 104
  98. #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
  99. // for files in w5api and all nt* dirs, use the definition in sdk include.
  100. // And make sure our private define is in sync with winuser.h.
  101. #if WM_MOUSEWHEEL != PrivateWM_MOUSEWHEEL
  102. #error inconsistant WM_MOUSEWHEEL in winuser.h
  103. #endif
  104. #if SPI_GETWHEELSCROLLLINES != PrivateSPI_GETWHEELSCROLLLINES
  105. #error inconsistant SPI_GETWHEELSCROLLLINES in winuser.h
  106. #endif
  107. #else
  108. #define WM_MOUSEWHEEL PrivateWM_MOUSEWHEEL
  109. #define SPI_GETWHEELSCROLLLINES PrivateSPI_GETWHEELSCROLLLINES
  110. #endif // (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
  111. #endif // _APITHK_H_