Leaked source code of windows server 2003
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.

117 lines
4.6 KiB

  1. #include <windows.h>
  2. #include <ntverp.h>
  3. #include "pperf.h"
  4. WINPERF_ICON ICON pperf.ico
  5. IDM_SEL_DLG DIALOG 31, 30, 260, 127
  6. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  7. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  8. CAPTION "Pperf Option Selection"
  9. FONT 8, "MS Shell Dlg"
  10. BEGIN
  11. AUTOCHECKBOX "K.Reserved[0]", IDM_SPIN_ACQUIRE, 11, 50, 75, 13
  12. AUTOCHECKBOX "K.Reserved[1]", IDM_SPIN_COLL, 11, 62, 75, 13
  13. AUTOCHECKBOX "K.Reserved[2]", IDM_SPIN_SPIN, 11, 76, 75, 13
  14. AUTOCHECKBOX "K.Reserved[3]", IDM_IRQL, 96, 50, 75, 13
  15. AUTOCHECKBOX "Interrupts", IDM_INT, 96, 76, 75, 13
  16. AUTOCHECKBOX "Logit", IDM_LOGIT, 175, 50, 75, 13
  17. AUTOCHECKBOX "Use global scale", IDM_SCALE, 175, 62, 75, 13
  18. AUTOCHECKBOX "?", IDM_PERCENT, 175, 76, 75, 13
  19. DEFPUSHBUTTON "Ok", IDOK, 16, 108, 40, 14
  20. PUSHBUTTON "Accept", IDM_ACCEPT, 100, 108, 40, 14
  21. PUSHBUTTON "Cancel", IDCANCEL, 180, 108, 40, 14
  22. LTEXT "Internal Counter # 1", 108, 10, 17, 82, 13
  23. COMBOBOX IDM_P5_GEN1, 94, 16, 105, 78, CBS_DROPDOWNLIST | CBS_SORT |
  24. WS_VSCROLL | WS_TABSTOP
  25. LTEXT "Internal Counter # 2", 110, 10, 34, 82, 13
  26. COMBOBOX IDM_P5_GEN2, 94, 33, 105, 77, CBS_DROPDOWNLIST | CBS_SORT |
  27. WS_VSCROLL | WS_TABSTOP
  28. AUTOCHECKBOX "", IDM_P5_R0_0, 206, 17, 9, 9, WS_TABSTOP
  29. AUTOCHECKBOX "", IDM_P5_R3_0, 220, 17, 9, 9, WS_TABSTOP
  30. AUTOCHECKBOX "", IDM_P5_K_0, 234, 17, 9, 9, WS_TABSTOP
  31. AUTOCHECKBOX "", IDM_P5_R0_1, 206, 35, 9, 9, WS_TABSTOP
  32. AUTOCHECKBOX "", IDM_P5_R3_1, 220, 35, 9, 9, WS_TABSTOP
  33. AUTOCHECKBOX "", IDM_P5_K_1, 234, 35, 9, 9, WS_TABSTOP
  34. LTEXT "R0 R3 K", 116, 205, 4, 40, 10
  35. END
  36. IDM_THUNK_DLG DIALOG 27, 29, 282, 171
  37. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  38. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  39. CAPTION "Monitor thunk"
  40. FONT 8, "MS Shell Dlg"
  41. BEGIN
  42. LISTBOX IDM_THUNK_LIST, 6, 66, 174, 100, LBS_SORT | WS_VSCROLL | WS_TABSTOP
  43. LTEXT "Source Driver", 302, 13, 16, 53, 8
  44. LTEXT "Target Driver", 303, 85, 16, 48, 10
  45. LTEXT "Function", 304, 158, 16, 74, 11
  46. COMBOBOX IDM_THUNK_SOURCE, 14, 26, 64, 137, CBS_DROPDOWNLIST |
  47. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  48. COMBOBOX IDM_THUNK_IMPORT, 85, 26, 64, 137, CBS_DROPDOWNLIST |
  49. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  50. COMBOBOX IDM_THUNK_FUNCTION, 158, 26, 110, 137, CBS_DROPDOWNLIST |
  51. CBS_SORT | WS_VSCROLL | WS_TABSTOP
  52. LTEXT "Current", 308, 6, 54, 87, 8
  53. PUSHBUTTON "Add", IDM_THUNK_ADD, 205, 72, 40, 14
  54. PUSHBUTTON "Remove", IDM_THUNK_REMOVE, 205, 95, 40, 14
  55. PUSHBUTTON "Clear All", IDM_THUNK_CLEAR_ALL, 205, 118, 40, 14
  56. PUSHBUTTON "Done", IDOK, 205, 140, 40, 14
  57. GROUPBOX "New monitor", 313, 6, 4, 269, 41
  58. END
  59. IDM_CALC_DLG DIALOG 48, 59, 211, 111
  60. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  61. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  62. CAPTION "Calc Perf"
  63. FONT 8, "MS Shell Dlg"
  64. BEGIN
  65. LTEXT "A. Item selected # 1", IDM_CALC_TEXTA, 21, 18, 121, 9
  66. LTEXT "B. Item selected # 1", IDM_CALC_TEXTB, 21, 31, 121, 9
  67. AUTORADIOBUTTON "A % of B", IDM_CALC_FORM1, 9, 47, 81, 11
  68. AUTORADIOBUTTON "A + B", IDM_CALC_FORM2, 9, 61, 81, 11
  69. AUTORADIOBUTTON "TBF", IDM_CALC_FORM3, 9, 77, 81, 11
  70. AUTORADIOBUTTON "TBF", IDM_CALC_FORM4, 9, 92, 81, 11
  71. PUSHBUTTON "Add", IDOK, 156, 54, 40, 14
  72. PUSHBUTTON "Cancel", IDCANCEL, 156, 85, 40, 14
  73. END
  74. pperfMenu MENU
  75. BEGIN
  76. POPUP "&File"
  77. BEGIN
  78. MENUITEM "E&xit",IDM_EXIT
  79. MENUITEM "&HackTest",IDM_HACK
  80. END
  81. MENUITEM "&Select" ,IDM_SELECT
  82. MENUITEM "&Thunk" ,IDM_THUNK
  83. POPUP "&Disp"
  84. BEGIN
  85. MENUITEM "&Total", IDM_DISPLAY_TOTAL
  86. MENUITEM "&Breakdown", IDM_DISPLAY_BREAKDOWN
  87. MENUITEM "&Per-Processor", IDM_DISPLAY_PER_PROCESSOR
  88. MENUITEM "Top-&Most", IDM_TOPMOST
  89. END
  90. END
  91. #define VER_FILETYPE VFT_APP
  92. #define VER_FILESUBTYPE VFT2_UNKNOWN
  93. #define VER_FILEDESCRIPTION_STR "Pentium Performance Counters Configuration and Display"
  94. #define VER_INTERNALNAME_STR "PPERF.EXE"
  95. #define VER_ORIGINALFILENAME_STR "PPERF.EXE"
  96. #include "common.ver"