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.

56 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. // _xlib.h : Private shared header file for XLIB
  3. //
  4. // Copyright (c) Microsoft Corporation, 1990-
  5. //---------------------------------------------------------------------------
  6. //----Constants--------------------------------------------------------------
  7. #define chKeyValue '='
  8. #define cbAtomNameMax 32
  9. #define cbResNameMax 32
  10. #define cbClsNameMax 64
  11. #define cbDlgNameMax 32
  12. #define cbCaptionMax 32
  13. #define cbStcTextMax 96
  14. #define mnuFirst 0x0200
  15. #define mnuLast 0x020f
  16. #define icoFirst 0x0210
  17. #define icoLast 0x021f
  18. #define curFirst 0x0220
  19. #define curLast 0x022f
  20. #define aclFirst 0x0230
  21. #define aclLast 0x023f
  22. #define bmpFirst 0x0240
  23. #define bmpLast 0x02ff
  24. #define resFirst mnuFirst
  25. #define resLast bmpLast
  26. #define mskKeyDown 0x8000
  27. //----Types------------------------------------------------------------------
  28. typedef void NEAR * PV;
  29. typedef void FAR * QV;
  30. //----Macros-----------------------------------------------------------------
  31. #define ColOf(col) *((DWORD *) (&(col)))
  32. #define MAKEWORD(bLo, bHi) ((WORD)(((BYTE)(bLo)) | ((WORD)((BYTE)(bHi))) << 8))
  33. #define FIsMnu(res)\
  34. ((res) >= mnuFirst && (res) <= mnuLast)
  35. #define FIsAcl(res)\
  36. ((res) >= aclFirst && (res) <= aclLast)
  37. #define FIsCur(res)\
  38. ((res) >= curFirst && (res) <= curLast)
  39. #define FIsIco(res)\
  40. ((res) >= icoFirst && (res) <= icoLast)
  41. #define FIsBmp(res)\
  42. ((res) >= bmpFirst && (res) <= bmpLast)
  43. #define HNULL ((HANDLE) 0)
  44. //----Globals----------------------------------------------------------------
  45. //----Functions--------------------------------------------------------------