Windows NT 4.0 source code leak
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.

108 lines
3.5 KiB

4 years ago
  1. /***************************************************************************\
  2. * winmeter.rc
  3. *
  4. * Microsoft Confidential
  5. * Copyright (c) 1991 Microsoft Corporation
  6. *
  7. * resource script for WINMETER application
  8. *
  9. * History:
  10. * Written by Hadi Partovi (t-hadip) summer 1991
  11. *
  12. * Re-written and adapted for NT by Fran Borda (v-franb) Nov.1991
  13. * for Newman Consulting
  14. * Took out all WIN-specific and bargraph code. Added 3 new
  15. * linegraphs (Mem/Paging, Process/Threads/Handles, IO), and
  16. * tailored info to that available under NT.
  17. \***************************************************************************/
  18. #include "resource.h"
  19. #include "dialogs.h"
  20. #include "windows.h"
  21. WinMeter ICON winmeter.ico
  22. rcinclude winmeter.dlg
  23. IDM_MAINMENU MENU
  24. {
  25. POPUP "&Display"
  26. {
  27. MENUITEM "&CPU", IDM_CPU_USAGE
  28. MENUITEM "&MemoryUsage", IDM_MEM_USAGE
  29. MENUITEM "&Processes", IDM_PROCS
  30. MENUITEM "&IO Usage", IDM_IO_USAGE
  31. MENUITEM SEPARATOR
  32. MENUITEM "Cl&ear", IDM_CLEAR_GRAPH
  33. MENUITEM SEPARATOR
  34. MENUITEM "E&xit", IDM_EXIT
  35. }
  36. POPUP "&Options"
  37. {
  38. MENUITEM "&TopWindow", IDM_SETTINGS,GRAYED
  39. MENUITEM "&Refresh...", IDM_REFRESH
  40. MENUITEM "Refresh &Now <Enter>", IDM_REFRESH_NOW
  41. MENUITEM SEPARATOR
  42. MENUITEM "&Legend", IDM_DISPLAY_LEGEND
  43. MENUITEM "L&abels", IDM_DISPLAY_CALIBRATION
  44. MENUITEM "No &Title", IDM_HIDE_MENU
  45. }
  46. POPUP "&Help"
  47. {
  48. /*
  49. FUTURE EXPANSION: HELP!!!!
  50. MENUITEM "&Contents", IDM_HELP_CONT
  51. MENUITEM "&Search", IDM_HELP_SEARCH
  52. MENUITEM SEPARATOR
  53. */
  54. MENUITEM "&About...", IDM_HELP_ABOUT
  55. }
  56. }
  57. /*********
  58. * NOTE: THE MANY STRINGS IN DIALOGS.DLG SHOULD ALSO BE INTERNATIONALIZED!
  59. *********
  60. * NOTE: SOME OF THE FOLLOWING STRINGS INCLUDE FORMATTING CHARACTERS (like %lu)
  61. * AND OTHERS MAY HAVE LIMITS ON THEIR SIZE, AS NOTED HERE. MAKE SURE YOU
  62. * LOOK IN THE CODE WHERE THEY ARE ACCESSED BEFORE CHANGING THEM
  63. * RECKLESSLY
  64. *********
  65. */
  66. STRINGTABLE
  67. {
  68. IDS_APPNAME, "NTWinMeter"
  69. /* Keep this under 8 characters */
  70. IDS_PERCENT, "%"
  71. /* Keep this at one character */
  72. IDS_CPU_AXIS, "CPU Usage"
  73. IDS_CPU_USAGE, "CPU"
  74. IDS_MEMORY_USAGE, "Memory - Paging"
  75. IDS_IO_USAGE, "IO Operations"
  76. IDS_PROC_INFO, "Processes, Threads, and Total Handles"
  77. IDS_TITLE_DIVIDER, " - "
  78. IDS_NONNUMERIC, "Numeric value required. Range: %u - %u."
  79. IDS_MANYCLOCKS, "Too many clocks or timers"
  80. IDS_CANTDOTIMER, "Couldn't allocate timer - Exiting Program"
  81. IDS_BADTIMERMSG, "Bad Timer Message - Exiting Program"
  82. IDS_BADERROR, "Unexpected error message - Exiting Program"
  83. IDS_OUTOFMEMORY, "Out of Memory - Exiting Program"
  84. IDS_BADHMOD, "Bad Module Handle - Exiting Program"
  85. IDS_BADBRUSH, "Bad Brush Handle Returned from system. Out of Memory"
  86. IDS_CANT_REALLOC, "There is not enough memory, try a smaller value"
  87. IDS_CPU, "CPU"
  88. IDS_PROCESSES, "Processes"
  89. IDS_THREADS, "Threads"
  90. IDS_FILES, "Total Handles"
  91. IDS_AVAILPAGES, "Available/10"
  92. IDS_COMMITPAGES, "Committed/10"
  93. IDS_PAGEFAULTS, "Page Faults"
  94. IDS_IO_READS, "IO Reads"
  95. IDS_IO_WRITES, "IO Writes"
  96. IDS_IO_OTHER, "IO Other"
  97. }