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.

71 lines
1.7 KiB

  1. /* main.h */
  2. #ifdef DEBUG
  3. #define CHEAT
  4. #endif
  5. #ifdef BETA_VERSION
  6. #define NOSERVER
  7. #define EXPIRE
  8. #endif
  9. /*** Standard Stuff ***/
  10. #define fTrue TRUE
  11. #define fFalse FALSE
  12. #define hNil NULL
  13. #define REGISTER register
  14. /*** Status Stuff ***/
  15. typedef INT STATUS;
  16. #define fstatusPlay 0x01 /* ON if playing game, OFF if game over */
  17. #define fstatusDemo 0x02 /* ON if demo */
  18. #define fstatusPause 0x08 /* ON if paused */
  19. #define fstatusPanic 0x10 /* ON if panic */
  20. #define fstatusIcon 0x20 /* ON if iconic */
  21. #define FPlay() (status & fstatusPlay)
  22. #define FDemo() (status & fstatusDemo)
  23. #define FPause() (status & fstatusPause)
  24. #define FPanic() (status & fstatusPanic)
  25. #define FIcon() (status & fstatusIcon)
  26. #define SetStatusPlay() (status |= fstatusPlay)
  27. #define SetStatusDemo() (status |= fstatusDemo)
  28. #define SetStatusPause() (status |= fstatusPause)
  29. #define SetStatusPanic() (status |= fstatusPanic)
  30. #define SetStatusIcon() (status |= fstatusIcon)
  31. #define ClrStatusPlay() (status &= ~fstatusPlay)
  32. #define ClrStatusDemo() (status &= ~fstatusDemo)
  33. #define ClrStatusPause() (status &= ~fstatusPause)
  34. #define ClrStatusPanic() (status &= ~fstatusPanic)
  35. #define ClrStatusIcon() (status &= ~fstatusIcon)
  36. #define fCalc 0x01
  37. #define fResize 0x02
  38. #define fDisplay 0x04
  39. #define fmenuAlwaysOn 0x00
  40. #define fmenuOff 0x01
  41. #define fmenuOn 0x02
  42. #define FMenuSwitchable() (Preferences.fMenu != fmenuAlwaysOn)
  43. #define FMenuOn() ((Preferences.fMenu & 0x01) == 0)
  44. #define cchMaxPathname 250
  45. #define cchMsgMax 128
  46. #define cchNameMax 16
  47. /*** Routines ***/
  48. LRESULT APIENTRY MainWndProc(HWND, UINT, WPARAM, LPARAM);
  49. VOID AdjustWindow(INT);
  50. VOID FixMenus(VOID);