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.

111 lines
1.6 KiB

  1. // Spewview: remote debug spew monitor
  2. //
  3. // Copyright (c) 2000 Microsoft Corp.
  4. //
  5. // Main dialog window
  6. //
  7. // 16 Mar 2000 sburns
  8. #ifndef MAINDIALOG_HPP_INCLUDED
  9. #define MAINDIALOG_HPP_INCLUDED
  10. class SpewDialog;
  11. class MainDialog : public Dialog
  12. {
  13. public:
  14. MainDialog();
  15. virtual ~MainDialog();
  16. static const int WM_KILL_SPEWVIEWER = WM_USER + 201;
  17. private:
  18. void
  19. AddToUiHistory(const String& clientName, const String& appName);
  20. HRESULT
  21. ConnectToClientRegistry(
  22. HKEY& remoteHKLM,
  23. String& clientName,
  24. String& appName);
  25. void
  26. EnableControls();
  27. HRESULT
  28. GetFlags();
  29. void
  30. OnGetFlagsButton();
  31. void
  32. OnSetFlagsButton();
  33. void
  34. OnStartButton();
  35. virtual
  36. bool
  37. OnCommand(
  38. HWND windowFrom,
  39. unsigned controlIDFrom,
  40. unsigned code);
  41. virtual
  42. bool
  43. OnMessage(
  44. UINT message,
  45. WPARAM wparam,
  46. LPARAM lparam);
  47. virtual
  48. void
  49. OnInit();
  50. void
  51. LoadUiHistory();
  52. void
  53. ResetFlagsDisplay();
  54. void
  55. SaveUiHistory();
  56. HRESULT
  57. SetClientConfiguration();
  58. HRESULT
  59. SetFlags();
  60. void
  61. SetStatusText(const String& text);
  62. void
  63. UpdateCheckboxen(DWORD flags);
  64. // not implemented: no copying allowed
  65. MainDialog(const MainDialog&);
  66. const MainDialog& operator=(const MainDialog&);
  67. StringList clientNameHistory;
  68. StringList appNameHistory;
  69. String lastClientNameUsed;
  70. String lastAppNameUsed;
  71. SpewDialog* spewviewer;
  72. bool setFlagsOnStart;
  73. };
  74. #endif // MAINDIALOG_HPP_INCLUDED