def.h
上传用户:dzdeming
上传日期:2022-08-03
资源大小:381k
文件大小:1k
源码类别:

Windows CE

开发平台:

Visual C++

  1. #ifndef __DEF_H__
  2. #define __DEF_H__
  3. #define U32 unsigned int
  4. #define U16 unsigned short
  5. #define S32 int
  6. #define S16 short int
  7. #define U8  unsigned char
  8. #define S8  char
  9. #define BYTE char
  10. #define WORD  short
  11. #define DWORD int
  12. #define UINT U32
  13. #define LPSTR U8 *
  14. #define TRUE  1   
  15. #define FALSE  0
  16. #define OK 1
  17. #define FAIL 0
  18. #define SIZE_1K 0x00000400
  19. #define SIZE_2K 0x00000800
  20. #define SIZE_4K 0x00001000
  21. #define SIZE_8K 0x00002000
  22. #define SIZE_16K 0x00004000
  23. #define SIZE_32K 0x00008000
  24. #define SIZE_64K 0x00010000
  25. #define SIZE_128K 0x00020000
  26. #define SIZE_256K 0x00040000
  27. #define SIZE_512K 0x00080000
  28. #define SIZE_1M 0x00100000
  29. #define SIZE_2M 0x00200000
  30. #define SIZE_4M 0x00400000
  31. #define SIZE_8M 0x00800000
  32. #define SIZE_16M 0x01000000
  33. #define SIZE_32M 0x02000000
  34. #define SIZE_64M 0x04000000
  35. #define SIZE_128M 0x08000000
  36. #define SIZE_256M 0x10000000
  37. #define SIZE_512M 0x20000000
  38. #define SIZE_1G 0x40000000
  39. #define SIZE_2G 0x80000000
  40. #define ENTER_KEY 0x0d
  41. #define BACK_KEY 0x08
  42. #define BEEP_KEY 0x07
  43. #define UP_KEY 0x41
  44. #define DOWN_KEY 0x42
  45. #define RIGHT_KEY 0x43
  46. #define LEFT_KEY 0x44
  47. #define HOME_KEY 0x48
  48. #define END_KEY 0x4b
  49. #define ESC_KEY 0x1b
  50. #endif /*__DEF_H__*/