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.

92 lines
2.1 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 1998
  4. Module Name:
  5. secpath.hxx
  6. Abstract:
  7. see comments in secpath.cxx
  8. Author:
  9. Rahul Thombre (RahulTh) 9/30/1998
  10. Revision History:
  11. 9/30/1998 RahulTh
  12. Created this module.
  13. --*/
  14. #ifndef __SECPATH_HXX__
  15. #define __SECPATH_HXX__
  16. class CSecGroupPath : public CDialog
  17. {
  18. friend class CRedirect;
  19. //construction
  20. public:
  21. CSecGroupPath (CWnd * pParent,
  22. UINT cookie,
  23. LPCTSTR szFolderName,
  24. LPCTSTR szGroupName = NULL,
  25. LPCTSTR szGroupSidStr = NULL,
  26. LPCTSTR szTarget = NULL);
  27. //Dialog Data
  28. //{{AFX_DATA(CSecGroupPath)
  29. enum {IDD = IDD_SECPATH};
  30. CEdit m_EditSecGroup;
  31. CButton m_btnBrowseSecGroup;
  32. CStatic m_placeHolder;
  33. CPathChooser m_pathChooser;
  34. //}}AFX_DATA
  35. //Overrides
  36. //{{AFX_VIRTUAL(CSecGroupPath)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); //DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. //Implementation
  41. protected:
  42. //message map functions
  43. //{{AFX_MSG(CSecGroupPath)
  44. afx_msg void OnBrowseGroups();
  45. afx_msg void OnSecGroupUpdate();
  46. afx_msg void OnSecGroupKillFocus();
  47. afx_msg void OnPathTweak (WPARAM wParam, LPARAM lParam);
  48. afx_msg LONG OnContextMenu (WPARAM wParam, LPARAM lParam);
  49. afx_msg LONG OnHelp (WPARAM wParam, LPARAM lParam);
  50. virtual BOOL OnInitDialog();
  51. virtual void OnOK();
  52. virtual void OnCancel();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. //class data
  56. private:
  57. UINT m_cookie;
  58. CString m_szFolderName;
  59. BOOL m_bPathValid; //indicates validity of the path chooser dialog
  60. CString m_szGroup;
  61. CString m_szSidStr;
  62. CString m_szTarget;
  63. BOOL m_fValidSid;
  64. LONG m_iCurrType;
  65. CRedirPath m_redirPath;
  66. //helper functions
  67. private:
  68. void SetOKState (void);
  69. };
  70. #endif //__SECPATH_HXX__