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.

77 lines
1.8 KiB

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