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.

70 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation 1996-2001.
  5. //
  6. // File: CName.h
  7. //
  8. // Contents: definition of CConfigName
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_CNAME_H__7F9B3B39_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_)
  12. #define AFX_CNAME_H__7F9B3B39_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #include "attr.h"
  17. #define MAX_USERNAME 20
  18. #define INVALID_ACCOUNT_NAME_CHARS L"\"/\\[]:|<>+=;,?,*"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CConfigName dialog
  21. class CConfigName : public CAttribute
  22. {
  23. // Construction
  24. public:
  25. virtual void Initialize(CResult * pResult);
  26. // virtual void SetInitialValue(DWORD_PTR dw) { };
  27. CConfigName(UINT nTemplateID); // standard constructor
  28. virtual ~CConfigName ();
  29. // Dialog Data
  30. //{{AFX_DATA(CConfigName)
  31. enum { IDD = IDD_CONFIG_NAME };
  32. CString m_strName;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CConfigName)
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. protected:
  42. // Generated message map functions
  43. //{{AFX_MSG(CConfigName)
  44. virtual BOOL OnApply();
  45. afx_msg void OnConfigure();
  46. virtual BOOL OnInitDialog();
  47. virtual BOOL OnKillActive();
  48. afx_msg void OnChangeName();
  49. virtual void OnClose();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. BOOL m_bNoBlanks;
  53. };
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_CNAME_H__7F9B3B39_ECEB_11D0_9C6E_00C04FB6C6FA__INCLUDED_)