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.

151 lines
4.8 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. #define PrivateCAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
  34. #define PrivateCAL_ITWODIGITYEARMAX 0x00000030
  35. #define PrivateLOCALE_SYEARMONTH 0x00001006
  36. #define PrivateSM_IMMENABLED 82
  37. #if (WINVER >= 0x0500)
  38. // for files in nt5api and w5api dirs, use the definition in sdk include.
  39. // And make sure our private define is in sync with winuser.h.
  40. #if DFCS_HOT != PrivateDFCS_HOT
  41. #error inconsistant DFCS_HOT in winuser.h
  42. #endif
  43. #if SPI_GETSELECTIONFADE != PrivateSPI_GETSELECTIONFADE
  44. #error inconsistant SPI_GETSELECTIONFADE in winuser.h
  45. #endif
  46. // We are checking this in at the same time that user is. This is to prevent
  47. // sync problems.
  48. #ifdef SPI_GETCLEARTYPE
  49. #if SPI_GETCLEARTYPE != PrivateSPI_GETCLEARTYPE
  50. #error inconsistant SPI_GETCLEARTYPE in winuser.h
  51. #endif
  52. #else
  53. #define SPI_GETCLEARTYPE PrivateSPI_GETCLEARTYPE
  54. #endif
  55. #if PrivateCAL_RETURN_NUMBER != CAL_RETURN_NUMBER || \
  56. PrivateCAL_ITWODIGITYEARMAX != CAL_ITWODIGITYEARMAX
  57. #error inconsistent CAL_RETURN_NUMBER/CAL_ITWODIGITYEARMAX in winnls.h
  58. #endif
  59. #if LOCALE_SYEARMONTH != PrivateLOCALE_SYEARMONTH
  60. #error inconsistant LOCALE_SYEARMONTH in winnls.h
  61. #endif
  62. #ifdef SM_IMMENABLED
  63. #if SM_IMMENABLED != PrivateSM_IMMENABLED
  64. #error inconsistant SM_IMMENABLED in winuser.h
  65. #endif
  66. #else
  67. #define SM_IMMENABLED PrivateSM_IMMENABLED
  68. #endif
  69. #else
  70. #define COLOR_HOTLIGHT GetCOLOR_HOTLIGHT()
  71. #define DFCS_HOT PrivateDFCS_HOT
  72. #define SPI_GETSELECTIONFADE PrivateSPI_GETSELECTIONFADE
  73. #define WM_CHANGEUISTATE PrivateWM_CHANGEUISTATE
  74. #define WM_UPDATEUISTATE PrivateWM_UPDATEUISTATE
  75. #define WM_QUERYUISTATE PrivateWM_QUERYUISTATE
  76. #define UIS_SET PrivateUIS_SET
  77. #define UIS_CLEAR PrivateUIS_CLEAR
  78. #define UIS_INITIALIZE PrivateUIS_INITIALIZE
  79. #define UISF_HIDEFOCUS PrivateUISF_HIDEFOCUS
  80. #define UISF_HIDEACCEL PrivateUISF_HIDEACCEL
  81. #define DT_HIDEPREFIX PrivateDT_HIDEPREFIX
  82. #define DT_PREFIXONLY PrivateDT_PREFIXONLY
  83. #define CAL_RETURN_NUMBER PrivateCAL_RETURN_NUMBER
  84. #define CAL_ITWODIGITYEARMAX PrivateCAL_ITWODIGITYEARMAX
  85. #define LOCALE_SYEARMONTH PrivateLOCALE_SYEARMONTH
  86. #define SPI_GETCLEARTYPE PrivateSPI_GETCLEARTYPE
  87. #define DFCS_TRANSPARENT PrivateDFCS_TRANSPARENT
  88. #define SM_IMMENABLED PrivateSM_IMMENABLED
  89. #endif // (WINVER >= 0x0500)
  90. int GetCOLOR_HOTLIGHT();
  91. // =========================================================================
  92. // things supported since NT4 and Memphis
  93. #define PrivateWM_MOUSEWHEEL 0x020A
  94. #define PrivateSPI_GETWHEELSCROLLLINES 104
  95. #if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
  96. // for files in w5api and all nt* dirs, use the definition in sdk include.
  97. // And make sure our private define is in sync with winuser.h.
  98. #if WM_MOUSEWHEEL != PrivateWM_MOUSEWHEEL
  99. #error inconsistant WM_MOUSEWHEEL in winuser.h
  100. #endif
  101. #if SPI_GETWHEELSCROLLLINES != PrivateSPI_GETWHEELSCROLLLINES
  102. #error inconsistant SPI_GETWHEELSCROLLLINES in winuser.h
  103. #endif
  104. #else
  105. #define WM_MOUSEWHEEL PrivateWM_MOUSEWHEEL
  106. #define SPI_GETWHEELSCROLLLINES PrivateSPI_GETWHEELSCROLLLINES
  107. #endif // (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
  108. #endif // _APITHK_H_