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.

59 lines
1.0 KiB

  1. /* MINE HEADER FILE */
  2. #ifdef DEBUG
  3. #define CHEAT
  4. #endif
  5. #ifdef BETA_VERSION
  6. #define NOSERVER
  7. #define EXPIRE
  8. #endif
  9. #define FAST
  10. /*** Standard Stuff ***/
  11. #define REGISTER register
  12. #define fTrue TRUE
  13. #define fFalse FALSE
  14. #define hNil NULL
  15. #define cchMsgMax 128
  16. #define cchMaxPathname 250
  17. #define ID_TIMER 1
  18. #define fmenuAlwaysOn 0x00
  19. #define fmenuOff 0x01
  20. #define fmenuOn 0x02
  21. #define FMenuSwitchable() (Preferences.fMenu != fmenuAlwaysOn)
  22. #define FMenuOn() ((Preferences.fMenu & 0x01) == 0)
  23. #define fCalc 0x01
  24. #define fResize 0x02
  25. #define fDisplay 0x04
  26. #define xBoxFromXpos(x) ( ((x)-(dxGridOff-dxBlk)) >> 4)
  27. #define yBoxFromYpos(y) ( ((y)-(dyGridOff-dyBlk)) >> 4)
  28. // This is the place where the winmine info gets stored in registry.
  29. #define SZWINMINEREG TEXT("Software\\Microsoft\\winmine")
  30. /* if we have too few boxes, the title gets clipped */
  31. #define MINWIDTH 9
  32. #define DEFWIDTH 9
  33. #define MINHEIGHT 9
  34. #define DEFHEIGHT 9
  35. VOID AdjustWindow(INT);
  36. VOID FixMenus(VOID);
  37. VOID DoEnterName(VOID);
  38. VOID DoDisplayBest(VOID);