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.

168 lines
4.3 KiB

  1. // PswdDlg.h -- PaSsWorD DiaLoG class declaration
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. //
  8. #if !defined(SLBCSP_PSWDDLG_H)
  9. #define SLBCSP_PSWDDLG_H
  10. #if defined(_UNICODE)
  11. #if !defined(UNICODE)
  12. #define UNICODE
  13. #endif //!UNICODE
  14. #endif //_UNICODE
  15. #if defined(UNICODE)
  16. #if !defined(_UNICODE)
  17. #define _UNICODE
  18. #endif //!_UNICODE
  19. #endif //UNICODE
  20. #include "StResource.h"
  21. #include "DialogBox.h"
  22. #include "LoginId.h"
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CLogoDialog dialog
  25. class CLogoDialog : public CDialog
  26. {
  27. // Construction
  28. public:
  29. CLogoDialog(CWnd* pParent = NULL); // standard constructor
  30. // Logo Attributes
  31. public:
  32. CDC m_dcMem; // Compatible Memory DC for dialog
  33. CDC m_dcMask; // Compatible Memory DC for dialog
  34. CBitmap m_bmpLogo; // Bitmap to display
  35. CBitmap m_bmpMask; // Bitmap to display
  36. HBITMAP m_hBmpOld; // Handle of old bitmap to save
  37. HBITMAP m_hBmpOldM; // Handle of old bitmap to save
  38. BITMAP m_bmInfo; // Bitmap Information structure
  39. CPoint m_pt; // Position for upper left corner of bitmap
  40. CSize m_size; // Size (width and height) of bitmap
  41. CWnd *m_pParent;
  42. // Implementation
  43. protected:
  44. // Generated message map functions
  45. //{{AFX_MSG(CLogoDialog)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnPaint( );
  48. afx_msg void OnDestroy( );
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CPasswordDlg dialog
  54. class CPasswordDlg : public CLogoDialog
  55. {
  56. // Construction
  57. public:
  58. CPasswordDlg(CWnd* pParent = NULL); // standard constructor
  59. DWORD InitDlg(void)
  60. { return InitDialogBox(this, IDD, m_pParent); };
  61. // Dialog Data
  62. //{{AFX_DATA(CPasswordDlg)
  63. enum { IDD = IDD_LOGIN };
  64. CButton m_ctlCheckHexCode;
  65. CButton m_ctlCheckChangePIN;
  66. // CEdit m_ctlVerifyNewPIN;
  67. // CEdit m_ctlNewPIN;
  68. // CStatic m_ctlVerifyPINLabel;
  69. // CStatic m_ctlNewPINLabel;
  70. CString m_szPassword;
  71. CString m_szMessage;
  72. BOOL m_fHexCode;
  73. BOOL m_bChangePIN;
  74. // CString m_csNewPIN;
  75. // CString m_csVerifyNewPIN;
  76. //}}AFX_DATA
  77. // Data Members
  78. LoginIdentity m_lid;
  79. CWnd *m_pParent;
  80. // Overrides
  81. // ClassWizard generated virtual function overrides
  82. //{{AFX_VIRTUAL(CPasswordDlg)
  83. protected:
  84. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  85. //}}AFX_VIRTUAL
  86. // Implementation
  87. protected:
  88. // Generated message map functions
  89. //{{AFX_MSG(CPasswordDlg)
  90. virtual BOOL OnInitDialog();
  91. afx_msg void OnClickHexCode();
  92. virtual void OnOK();
  93. afx_msg void OnChangePINAfterLogin();
  94. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  95. //}}AFX_MSG
  96. DECLARE_MESSAGE_MAP()
  97. private:
  98. // Data Members
  99. int m_nPasswordSizeLimit;
  100. };
  101. /////////////////////////////////////////////////////////////////////////////
  102. // CChangePINDlg dialog
  103. class CChangePINDlg : public CLogoDialog
  104. {
  105. // Construction
  106. public:
  107. CChangePINDlg(CWnd* pParent = NULL); // standard constructor
  108. DWORD InitDlg(void)
  109. { return InitDialogBox(this, IDD, m_pParent); };
  110. // Dialog Data
  111. //{{AFX_DATA(CChangePINDlg)
  112. enum { IDD = IDD_DIALOG_CHANGE_PIN };
  113. CStatic m_ctlConfirmOldPINLabel;
  114. CEdit m_ctlOldPIN;
  115. CString m_csOldPIN;
  116. CString m_csNewPIN;
  117. CString m_csVerifyNewPIN;
  118. //}}AFX_DATA
  119. CWnd *m_pParent;
  120. // Overrides
  121. // ClassWizard generated virtual function overrides
  122. //{{AFX_VIRTUAL(CChangePINDlg)
  123. protected:
  124. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. protected:
  128. // Generated message map functions
  129. //{{AFX_MSG(CChangePINDlg)
  130. virtual BOOL OnInitDialog();
  131. virtual void OnOK();
  132. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  133. //}}AFX_MSG
  134. DECLARE_MESSAGE_MAP()
  135. };
  136. #endif // !defined(SLBCSP_PSWDDLG_H)