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.

81 lines
2.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: cservice.h
  7. //
  8. // Contents: definition of CConfigService
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_CSERVICE_H__44850C1C_350B_11D1_AB4F_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_CSERVICE_H__44850C1C_350B_11D1_AB4F_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. PSCE_SERVICES
  17. CreateServiceNode(LPTSTR ServiceName,
  18. LPTSTR DisplayName,
  19. DWORD Startup,
  20. PSECURITY_DESCRIPTOR pSD,
  21. SECURITY_INFORMATION SeInfo);
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CConfigService dialog
  24. class CConfigService : public CAttribute
  25. {
  26. // Construction
  27. public:
  28. void Initialize(CResult *pResult);
  29. virtual void SetInitialValue(DWORD_PTR dw) {};
  30. CConfigService(UINT nTemplateID); // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(CConfigService)
  33. enum { IDD = IDD_CONFIG_SERVICE };
  34. int m_nStartupRadio;
  35. CButton m_bPermission;
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CConfigService)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CConfigService)
  47. virtual BOOL OnApply();
  48. virtual void OnCancel();
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnConfigure();
  51. afx_msg void OnChangeSecurity();
  52. afx_msg void OnDisabled();
  53. afx_msg void OnIgnore();
  54. afx_msg void OnEnabled();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. public:
  58. virtual void EnableUserControls( BOOL bEnable );
  59. private:
  60. PSECURITY_DESCRIPTOR m_pNewSD;
  61. SECURITY_INFORMATION m_NewSeInfo;
  62. HWND m_hwndSecurity;
  63. BOOL m_bOriginalConfigure;
  64. };
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_CSERVICE_H__44850C1C_350B_11D1_AB4F_00C04FB6C6FA__INCLUDED_)