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.

80 lines
2.5 KiB

  1. // svcprop2.h : header file
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. // CServicePageHwProfile dialog
  5. class CServicePageHwProfile : public CPropertyPage
  6. {
  7. DECLARE_DYNCREATE(CServicePageHwProfile)
  8. // Construction
  9. public:
  10. CServicePageHwProfile();
  11. ~CServicePageHwProfile();
  12. // Dialog Data
  13. //{{AFX_DATA(CServicePageHwProfile)
  14. enum { IDD = IDD_PROPPAGE_SERVICE_HWPROFILE };
  15. BOOL m_fAllowServiceToInteractWithDesktop;
  16. CString m_strAccountName;
  17. CString m_strPassword;
  18. CString m_strPasswordConfirm;
  19. //}}AFX_DATA
  20. // Overrides
  21. // ClassWizard generate virtual function overrides
  22. //{{AFX_VIRTUAL(CServicePageHwProfile)
  23. public:
  24. virtual BOOL OnApply();
  25. virtual BOOL OnSetActive();
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. // Generated message map functions
  32. //{{AFX_MSG(CServicePageHwProfile)
  33. virtual BOOL OnInitDialog();
  34. afx_msg void OnItemChangedListHwProfiles(NMHDR* pNMHDR, LRESULT* pResult);
  35. afx_msg void OnDblclkListHwProfiles(NMHDR* pNMHDR, LRESULT* pResult);
  36. afx_msg BOOL OnHelp(WPARAM wParam, LPARAM lParam);
  37. afx_msg BOOL OnContextHelp(WPARAM wParam, LPARAM lParam);
  38. afx_msg void OnButtonDisableHwProfile();
  39. afx_msg void OnButtonEnableHwProfile();
  40. afx_msg void OnButtonChooseUser();
  41. afx_msg void OnChangeEditAccountName();
  42. afx_msg void OnRadioLogonasSystemAccount();
  43. afx_msg void OnRadioLogonasThisAccount();
  44. afx_msg void OnCheckServiceInteractWithDesktop();
  45. afx_msg void OnChangeEditPassword();
  46. afx_msg void OnChangeEditPasswordConfirm();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. public:
  50. // User defined variables
  51. CServicePropertyData * m_pData;
  52. // Logon stuff
  53. BOOL m_fAllowSetModified; // TRUE => Respond to EN_CHANGE and call SetModified(). This is a workaround for a windows bug in the edit control
  54. BOOL m_fIsSystemAccount; // TRUE => Service is running under 'LocalSystem'
  55. BOOL m_fPasswordDirty; // TRUE => The user has modified the password
  56. UINT m_idRadioButton; // Id of the last radio button selected
  57. // Hardware profile stuff
  58. HWND m_hwndListViewHwProfiles;
  59. INT m_iItemHwProfileEntry;
  60. TCHAR m_szHwProfileEnabled[64]; // To hold string "Enabled"
  61. TCHAR m_szHwProfileDisabled[64]; // To hold string "Disabled"
  62. // User defined functions
  63. void SelectRadioButton(UINT idRadioButtonNew);
  64. void BuildHwProfileList();
  65. void ToggleCurrentHwProfileItem();
  66. void EnableHwProfileButtons();
  67. }; // CServicePageHwProfile