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.

69 lines
2.2 KiB

  1. //
  2. // APITHK.H
  3. //
  4. #ifndef _APITHK_H_
  5. #define _APITHK_H_
  6. #define PrivateSM_REMOTESESSION 0x1000
  7. #define PrivateWM_CHANGEUISTATE 0x0127
  8. #define PrivateWM_UPDATEUISTATE 0x0128
  9. #define PrivateWM_QUERYUISTATE 0x0129
  10. #define PrivateUIS_SET 1
  11. #define PrivateUIS_CLEAR 2
  12. #define PrivateUIS_INITIALIZE 3
  13. #define PrivateUISF_HIDEFOCUS 0x1
  14. #define PrivateUISF_HIDEACCEL 0x2
  15. #if (WINVER >= 0x0500)
  16. #if SM_REMOTESESSION != PrivateSM_REMOTESESSION
  17. #error Incorrect definition of PrivateSM_REMOTESESSION
  18. #endif
  19. #if WM_CHANGEUISTATE != PrivateWM_CHANGEUISTATE || \
  20. WM_UPDATEUISTATE != PrivateWM_UPDATEUISTATE || \
  21. WM_QUERYUISTATE != PrivateWM_QUERYUISTATE
  22. #error Inconsistent definition of PrivateWM_xxxUISTATE
  23. #endif
  24. #if UIS_SET != PrivateUIS_SET || \
  25. UIS_CLEAR != PrivateUIS_CLEAR || \
  26. UIS_INITIALIZE != PrivateUIS_INITIALIZE
  27. #error Inconsistent definition of PrivateUIS_xxx
  28. #endif
  29. #if UISF_HIDEFOCUS != PrivateUISF_HIDEFOCUS || \
  30. UISF_HIDEACCEL != PrivateUISF_HIDEACCEL
  31. #error Inconsistent definition of PrivateUISF_xxx
  32. #endif
  33. #else
  34. #define SM_REMOTESESSION PrivateSM_REMOTESESSION
  35. #define WM_CHANGEUISTATE PrivateWM_CHANGEUISTATE
  36. #define WM_UPDATEUISTATE PrivateWM_UPDATEUISTATE
  37. #define WM_QUERYUISTATE PrivateWM_QUERYUISTATE
  38. #define UIS_SET PrivateUIS_SET
  39. #define UIS_CLEAR PrivateUIS_CLEAR
  40. #define UIS_INITIALIZE PrivateUIS_INITIALIZE
  41. #define UISF_HIDEFOCUS PrivateUISF_HIDEFOCUS
  42. #define UISF_HIDEACCEL PrivateUISF_HIDEACCEL
  43. #endif // WINVER >= 0x0500
  44. STDAPI_(BOOL) MyGetLastWriteTime (LPCWSTR pszPath, FILETIME *pft);
  45. STDAPI_(BOOL) NT5_ExpandEnvironmentStringsForUserW (HANDLE hToken, LPCWSTR lpSrc, LPWSTR lpDest, DWORD dwSize);
  46. STDAPI_(BOOL) NT5_SetFilePointerEx(HANDLE hFile, LARGE_INTEGER liDistance, PLARGE_INTEGER pliNewPos, DWORD dwMoveMethod);
  47. STDAPI_(LONG) NT5_RegOpenCurrentUser(REGSAM sam, HKEY *phk);
  48. STDAPI_(HANDLE) XP_CreateAndActivateContext(ULONG_PTR* pul);
  49. STDAPI_(void) XP_DeactivateAndDestroyContext(HANDLE hActCtx, ULONG_PTR ul);
  50. #endif // _APITHK_H_