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.

88 lines
2.2 KiB

  1. // devgenpg.h : header file
  2. //
  3. #ifndef __DEVGENPG_H__
  4. #define __DEVGENPG_H__
  5. /*++
  6. Copyright (C) Microsoft Corporation
  7. Module Name:
  8. devgenpg.h
  9. Abstract:
  10. header file for devgenpg.cpp
  11. Author:
  12. William Hsieh (williamh) created
  13. Revision History:
  14. --*/
  15. #include "proppage.h"
  16. //#include "tshooter.h"
  17. //
  18. // help topic ids
  19. //
  20. #define IDH_DISABLEHELP (DWORD(-1))
  21. #define idh_devmgr_general_devicetype 103100 // General: "" (Static)
  22. #define idh_devmgr_general_manufacturer 103110 // General: "" (Static)
  23. #define idh_devmgr_general_hardware_revision 103120 // General: "Not Available" (Static)
  24. #define idh_devmgr_general_device_status 103130 // General: "" (Static)
  25. #define idh_devmgr_general_device_usage 103140 // General: "List1" (SysListView32)
  26. #define idh_devmgr_general_location 103160
  27. #define idh_devmgr_general_trouble 103150 // troubelshooting button
  28. class CHwProfileList;
  29. class CProblemAgent;
  30. #define DI_NEEDPOWERCYCLE 0x400000L
  31. #define DEVICE_ENABLE 0
  32. #define DEVICE_DISABLE 1
  33. #define DEVICE_DISABLE_GLOBAL 2
  34. class CDeviceGeneralPage : public CPropSheetPage
  35. {
  36. public:
  37. CDeviceGeneralPage() :
  38. m_pDevice(NULL),
  39. m_pHwProfileList(NULL),
  40. m_RestartFlags(0),
  41. m_pProblemAgent(NULL),
  42. m_hwndLocationTip(NULL),
  43. CPropSheetPage(g_hInstance, IDD_DEVGEN_PAGE)
  44. {}
  45. ~CDeviceGeneralPage();
  46. HPROPSHEETPAGE Create(CDevice* pDevice);
  47. virtual BOOL OnInitDialog(LPPROPSHEETPAGE ppsp);
  48. virtual BOOL OnApply(void);
  49. virtual BOOL OnLastChanceApply(void);
  50. virtual BOOL OnQuerySiblings(WPARAM wParam, LPARAM lParam);
  51. virtual void UpdateControls(LPARAM lParam = 0);
  52. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  53. virtual BOOL OnHelp(LPHELPINFO pHelpInfo);
  54. virtual BOOL OnContextMenu(HWND hWnd, WORD xPos, WORD yPos);
  55. virtual UINT DestroyCallback();
  56. private:
  57. void UpdateHwProfileStates();
  58. CHwProfileList* m_pHwProfileList;
  59. DWORD m_hwpfCur;
  60. CDevice* m_pDevice;
  61. int m_CurrentDeviceUsage;
  62. int m_SelectedDeviceUsage;
  63. DWORD m_RestartFlags;
  64. CProblemAgent* m_pProblemAgent;
  65. HWND m_hwndLocationTip;
  66. };
  67. #endif // __DEVGENPG_H__