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.

52 lines
993 B

  1. /**********/
  2. /* pref.h */
  3. /**********/
  4. #define cchNameMax 32
  5. typedef struct
  6. {
  7. WORD wGameType;
  8. INT Mines;
  9. INT Height;
  10. INT Width;
  11. INT xWindow;
  12. INT yWindow;
  13. INT fSound;
  14. BOOL fMark;
  15. BOOL fTick;
  16. BOOL fMenu;
  17. BOOL fColor;
  18. INT rgTime[3];
  19. TCHAR szBegin[cchNameMax];
  20. TCHAR szInter[cchNameMax];
  21. TCHAR szExpert[cchNameMax];
  22. } PREF;
  23. #define iszPrefGame 0
  24. #define iszPrefMines 1
  25. #define iszPrefHeight 2
  26. #define iszPrefWidth 3
  27. #define iszPrefxWindow 4
  28. #define iszPrefyWindow 5
  29. #define iszPrefSound 6
  30. #define iszPrefMark 7
  31. #define iszPrefMenu 8
  32. #define iszPrefTick 9
  33. #define iszPrefColor 10
  34. #define iszPrefBeginTime 11
  35. #define iszPrefBeginName 12
  36. #define iszPrefInterTime 13
  37. #define iszPrefInterName 14
  38. #define iszPrefExpertTime 15
  39. #define iszPrefExpertName 16
  40. #define iszPrefAlreadyPlayed 17
  41. #define iszPrefMax 18
  42. VOID ReadPreferences(VOID);
  43. VOID WritePreferences(VOID);
  44. INT ReadInt(INT, INT, INT, INT);
  45. VOID ReadSz(INT, TCHAR FAR *);