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.

158 lines
4.3 KiB

  1. /*++
  2. Copyright (c) 1994-2001 Microsoft Corporation
  3. Module Name :
  4. ddxv.h
  5. Abstract:
  6. DDX/DDV Routine definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Sergei Antonov (sergeia)
  10. Project:
  11. Internet Services Manager (cluster edition)
  12. Revision History:
  13. --*/
  14. #include "strpass.h"
  15. #ifndef _DDXV_H_
  16. #define _DDXV_H_
  17. //
  18. // Helper macro to convert ID of dialog child control to window handle
  19. //
  20. #define CONTROL_HWND(nID) (::GetDlgItem(m_hWnd, nID))
  21. //
  22. // Dummy password
  23. //
  24. extern LPCTSTR COMDLL g_lpszDummyPassword;
  25. HRESULT COMDLL AFXAPI
  26. LimitInputPath(HWND hWnd,BOOL bAllowSpecialPath);
  27. HRESULT COMDLL AFXAPI
  28. LimitInputDomainName(HWND hWnd);
  29. BOOL COMDLL
  30. PathIsValid(LPCTSTR path,BOOL bAllowSpecialPath);
  31. void COMDLL AFXAPI
  32. EditShowBalloon(HWND hwnd, UINT ids);
  33. void COMDLL AFXAPI
  34. EditShowBalloon(HWND hwnd, CString txt);
  35. void COMDLL AFXAPI
  36. EditHideBalloon(void);
  37. void COMDLL AFXAPI
  38. DDV_ShowBalloonAndFail(CDataExchange * pDX, UINT ids);
  39. void COMDLL AFXAPI
  40. DDV_ShowBalloonAndFail(CDataExchange * pDX, CString txt);
  41. void COMDLL AFXAPI
  42. DDV_MinMaxBalloon(CDataExchange* pDX, int nIDC, DWORD minVal, DWORD maxVal);
  43. void COMDLL AFXAPI
  44. DDV_MaxCharsBalloon(CDataExchange* pDX, CString const& value, int count);
  45. void COMDLL AFXAPI
  46. DDV_MinChars(CDataExchange * pDX, CString const & value, int nChars);
  47. void COMDLL AFXAPI
  48. DDV_MinMaxChars(CDataExchange * pDX, CString const & value, int nMinChars, int nMaxChars);
  49. void COMDLL AFXAPI
  50. DDV_FilePath(CDataExchange * pDX, CString& value, BOOL local);
  51. void COMDLL AFXAPI
  52. DDV_FolderPath(CDataExchange * pDX, CString& value, BOOL local);
  53. void COMDLL AFXAPI
  54. DDV_UNCFolderPath(CDataExchange * pDX, CString& value, BOOL local);
  55. void COMDLL AFXAPI
  56. DDV_Url(CDataExchange * pDX, CString& value );
  57. void COMDLL AFXAPI
  58. DDX_TextBalloon(CDataExchange* pDX, int nIDC, BYTE& value);
  59. void COMDLL AFXAPI
  60. DDX_TextBalloon(CDataExchange* pDX, int nIDC, short& value);
  61. void COMDLL AFXAPI
  62. DDX_TextBalloon(CDataExchange* pDX, int nIDC, int& value);
  63. void COMDLL AFXAPI
  64. DDX_TextBalloon(CDataExchange* pDX, int nIDC, UINT& value);
  65. void COMDLL AFXAPI
  66. DDX_TextBalloon(CDataExchange* pDX, int nIDC, long& value);
  67. void COMDLL AFXAPI
  68. DDX_TextBalloon(CDataExchange* pDX, int nIDC, DWORD& value);
  69. void COMDLL AFXAPI
  70. DDX_TextBalloon(CDataExchange* pDX, int nIDC, LONGLONG& value);
  71. void COMDLL AFXAPI
  72. DDX_TextBalloon(CDataExchange* pDX, int nIDC, ULONGLONG& value);
  73. void COMDLL AFXAPI
  74. DDX_Text(CDataExchange * pDX, int nIDC, CILong & value);
  75. //
  76. // Spin control ddx
  77. //
  78. void COMDLL AFXAPI
  79. DDX_Spin(CDataExchange * pDX, int nIDC, int & value);
  80. //
  81. // Enforce min/max spin control range
  82. //
  83. void COMDLL AFXAPI
  84. DDV_MinMaxSpin(CDataExchange * pDX, HWND hWndControl, int nLowerRange, int nUpperRange);
  85. //
  86. // Similar to DDX_Text -- but always display a dummy string.
  87. //
  88. void COMDLL AFXAPI
  89. DDX_Password(CDataExchange * pDX, int nIDC, CString & value, LPCTSTR lpszDummy);
  90. void COMDLL AFXAPI
  91. DDX_Password_SecuredString(CDataExchange * pDX, int nIDC, CStrPassword & value, LPCTSTR lpszDummy);
  92. void COMDLL AFXAPI
  93. DDX_Text_SecuredString(CDataExchange * pDX, int nIDC, CStrPassword & value);
  94. void COMDLL AFXAPI
  95. DDV_MaxChars_SecuredString(CDataExchange* pDX, CStrPassword const& value, int count);
  96. void COMDLL AFXAPI
  97. DDV_MaxCharsBalloon_SecuredString(CDataExchange* pDX, CStrPassword const& value, int count);
  98. void COMDLL AFXAPI
  99. DDV_MinMaxChars_SecuredString(CDataExchange * pDX, CStrPassword const & value, int nMinChars, int nMaxChars);
  100. void COMDLL AFXAPI
  101. DDV_MinChars_SecuredString(CDataExchange * pDX, CStrPassword const & value, int nChars);
  102. class COMDLL CConfirmDlg : public CDialog
  103. {
  104. public:
  105. CConfirmDlg(CWnd * pParent = NULL);
  106. public:
  107. CString& GetPassword() { return m_strPassword; }
  108. void SetReference(CString& str)
  109. {
  110. m_ref = str;
  111. }
  112. protected:
  113. //{{AFX_DATA(CConfirmDlg)
  114. enum { IDD = IDD_CONFIRM_PASSWORD };
  115. CString m_strPassword;
  116. //}}AFX_DATA
  117. CString m_ref;
  118. //
  119. // Overrides
  120. //
  121. protected:
  122. //{{AFX_VIRTUAL(CConfirmDlg)
  123. protected:
  124. virtual void DoDataExchange(CDataExchange * pDX);
  125. //}}AFX_VIRTUAL
  126. //
  127. // Implementation
  128. //
  129. protected:
  130. //{{AFX_MSG(CConfirmDlg)
  131. //}}AFX_MSG
  132. DECLARE_MESSAGE_MAP()
  133. };
  134. #endif // _DDXV_H