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.

63 lines
2.2 KiB

  1. #ifndef _APITHK_H_
  2. #define _APITHK_H_
  3. #include <appmgmt.h>
  4. #include <aclapi.h>
  5. #include <userenv.h>
  6. LPTSTR GetEnvBlock(HANDLE hUserToken);
  7. void FreeEnvBlock(HANDLE hUserToken, LPTSTR pszEnv);
  8. STDAPI_(BOOL) GetAllUsersDirectory(LPTSTR pszPath);
  9. #define PrivateVOLUME_UPGRADE_SCHEDULED (0x00000002)
  10. #define KEYBOARDCUES
  11. #ifdef KEYBOARDCUES
  12. #define PrivateWM_CHANGEUISTATE 0x0127
  13. #define PrivateWM_UPDATEUISTATE 0x0128
  14. #define PrivateWM_QUERYUISTATE 0x0129
  15. #define PrivateUIS_SET 1
  16. #define PrivateUIS_CLEAR 2
  17. #define PrivateUIS_INITIALIZE 3
  18. #define PrivateUISF_HIDEFOCUS 0x1
  19. #define PrivateUISF_HIDEACCEL 0x2
  20. #endif //KEYBOARDCUES
  21. #define PrivateULW_COLORKEY 0x00000001
  22. #define PrivateULW_ALPHA 0x00000002
  23. #define PrivateULW_OPAQUE 0x00000004
  24. #define PrivateWS_EX_LAYERED 0x00080000
  25. #if (_WIN32_WINNT >= 0x0500)
  26. // for files in nt5api dirs, use the definition in sdk include.
  27. // And make sure our private define is in sync with winuser.h.
  28. #if WS_EX_LAYERED != PrivateWS_EX_LAYERED
  29. #error inconsistant WS_EX_LAYERED in winuser.h
  30. #endif
  31. #else // (_WIN32_WINNT >= 0x0500)
  32. #define WS_EX_LAYERED PrivateWS_EX_LAYERED
  33. #define UpdateLayeredWindow NT5_UpdateLayeredWindow
  34. #define ULW_COLORKEY PrivateULW_COLORKEY
  35. #define ULW_ALPHA PrivateULW_ALPHA
  36. #define ULW_OPAQUE PrivateULW_OPAQUE
  37. #define WM_CHANGEUISTATE PrivateWM_CHANGEUISTATE
  38. #define WM_UPDATEUISTATE PrivateWM_UPDATEUISTATE
  39. #define WM_QUERYUISTATE PrivateWM_QUERYUISTATE
  40. #define UIS_SET PrivateUIS_SET
  41. #define UIS_CLEAR PrivateUIS_CLEAR
  42. #define UIS_INITIALIZE PrivateUIS_INITIALIZE
  43. #define UISF_HIDEFOCUS PrivateUISF_HIDEFOCUS
  44. #define UISF_HIDEACCEL PrivateUISF_HIDEACCEL
  45. #endif // (_WIN32_WINNT >= 0x0500)
  46. // These functions add value in addition to delayloading
  47. STDAPI_(BOOL) NT5_UpdateLayeredWindow(HWND hwnd, HDC hdcDest, POINT* pptDest, SIZE* psize,
  48. HDC hdcSrc, POINT* pptSrc, COLORREF crKey, BLENDFUNCTION* pbf, DWORD dwFlags);
  49. #endif // _APITHK_H_