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.

73 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: SelServc.h
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_SELSERVC_H__9A888DAC_62BF_11D1_85BA_00C04FB94F17__INCLUDED_)
  12. #define AFX_SELSERVC_H__9A888DAC_62BF_11D1_85BA_00C04FB94F17__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. // SelServc.h : header file
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSelectServiceAccountPropPage dialog
  20. class CSelectServiceAccountPropPage : public CAutoDeletePropPage
  21. {
  22. // DECLARE_DYNCREATE(CSelectServiceAccountPropPage)
  23. // Construction
  24. public:
  25. CSelectServiceAccountPropPage (
  26. CString* pszManagedService,
  27. CString* pszManagedServiceDisplayName,
  28. const CString& pszManagedMachine);
  29. virtual ~CSelectServiceAccountPropPage();
  30. // Dialog Data
  31. //{{AFX_DATA(CSelectServiceAccountPropPage)
  32. enum { IDD = IDD_PROPPAGE_CHOOSE_SERVICE };
  33. CListBox m_acctNameList;
  34. CStatic m_instructionsText;
  35. //}}AFX_DATA
  36. // Overrides
  37. // ClassWizard generate virtual function overrides
  38. //{{AFX_VIRTUAL(CSelectServiceAccountPropPage)
  39. protected:
  40. virtual BOOL OnSetActive();
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. void CopyCurrentString ();
  46. void FreeDataPointers ();
  47. HRESULT EnumerateServices ();
  48. // Generated message map functions
  49. //{{AFX_MSG(CSelectServiceAccountPropPage)
  50. virtual BOOL OnInitDialog();
  51. afx_msg void OnSelchangeAcctName();
  52. afx_msg void OnDestroy();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. CString m_savedManagedMachineName;
  57. const CString& m_szManagedMachine;
  58. CString* m_pszManagedService;
  59. CString* m_pszManagedServiceDisplayName;
  60. };
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_SELSERVC_H__9A888DAC_62BF_11D1_85BA_00C04FB94F17__INCLUDED_)