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.

69 lines
2.0 KiB

  1. // genpage.h : header file
  2. //
  3. #ifndef __GENPAGE_H__
  4. #define __GENPAGE_H__
  5. /*++
  6. Copyright (C) Microsoft Corporation
  7. Module Name:
  8. devgenpg.h
  9. Abstract:
  10. header file for genpage.cpp
  11. Author:
  12. William Hsieh (williamh) created
  13. Revision History:
  14. --*/
  15. #include "proppage.h"
  16. //
  17. // context help id
  18. //
  19. #define IDH_DISABLEHELP (DWORD(-1))
  20. #define idh_devmgr_manage_command_line 102170 // Device Manager: "Allo&w the selected computer to be changed when launching from the command line. This only applies if you save the console." (Button)
  21. #define idh_devmgr_view_devicetree 102110 // Device Manager: "&Device tree" (Button)
  22. #define idh_devmgr_manage_local 102130 // Device Manager: "&Local computer: (the computer this console is running on)" (Button)
  23. #define idh_devmgr_manage_remote 102140 // Device Manager: "&Another computer:" (Button)
  24. #define idh_devmgr_manage_remote_name 102150 // Device Manager: "" (Edit)
  25. #define idh_devmgr_view_all 102100 // Device Manager: "&All" (Button)
  26. #define idh_devmgr_manage_remote_browse 102160 // Device Manager: "B&rowse..." (Button)
  27. #define idh_devmgr_view_resources 102120 // Device Manager: "&Resources" (Button)
  28. class CGeneralPage : public CPropSheetPage
  29. {
  30. public:
  31. CGeneralPage();
  32. virtual BOOL OnInitDialog(LPPROPSHEETPAGE ppsp);
  33. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  34. virtual BOOL OnReset();
  35. virtual BOOL OnWizFinish();
  36. virtual BOOL OnHelp(LPHELPINFO pHelpInfo);
  37. virtual BOOL OnContextMenu(HWND hWnd, WORD xPos, WORD yPos);
  38. HPROPSHEETPAGE Create(LONG_PTR lConsoleHandle);
  39. void SetOutputBuffer(String* pstrMachineName, COOKIE_TYPE* pct)
  40. {
  41. m_pstrMachineName = pstrMachineName;
  42. m_pct = pct;
  43. }
  44. void DoBrowse();
  45. private:
  46. LONG_PTR m_lConsoleHandle;
  47. TCHAR m_MachineName[MAX_PATH + 3];
  48. COOKIE_TYPE m_ct;
  49. String* m_pstrMachineName;
  50. COOKIE_TYPE* m_pct;
  51. BOOL m_IsLocalMachine;
  52. };
  53. #endif // __GENPAGE_H__