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.

78 lines
2.7 KiB

  1. #ifndef _CPASSWDP_H
  2. #define _CPASSWDP_H
  3. // Generated
  4. #include "AU_Accnt.h"
  5. // DLL\INC
  6. #include "pp_base.h"
  7. #include "AUsrUtil.h"
  8. class CAddUser_AccntWiz;
  9. // ----------------------------------------------------------------------------
  10. // CPasswdPage
  11. // ----------------------------------------------------------------------------
  12. class CPasswdPage : public CBasePropertyPageInterface, public CPropertyPageImpl<CPasswdPage>
  13. {
  14. public:
  15. // Constructor/destructor
  16. CPasswdPage(CAddUser_AccntWiz* pNW);
  17. ~CPasswdPage();
  18. // CBasePropertyPageInterface pure virtual function(s)
  19. enum { IDD = IDD_PASSWD_GEN };
  20. virtual long GetIDD () { return IDD; }
  21. // ATL::CPropertyPageImpl overrides
  22. virtual BOOL OnSetActive();
  23. virtual int OnWizardBack();
  24. virtual int OnWizardNext();
  25. // Property Bag functions
  26. HRESULT ReadProperties ( IPropertyPagePropertyBag* pPPPBag );
  27. HRESULT WriteProperties ( IPropertyPagePropertyBag* pPPPBag );
  28. HRESULT DeleteProperties ( IPropertyPagePropertyBag* pPPPBag );
  29. HRESULT ProvideFinishText ( CString &str );
  30. private:
  31. CAddUser_AccntWiz *m_pASW; // pointer to owning property sheet
  32. BOOL m_fInit;
  33. DWORD m_dwOptions;
  34. CString m_csPasswd1a; // Text to hold the controls values.
  35. CString m_csPasswd1b; // Text to hold the controls values.
  36. CString m_csPasswd2;
  37. CString m_csUserOU;
  38. CString m_csWinNTDC;
  39. CEdit m_ctrlPasswd1a; // Controls on the page.
  40. CEdit m_ctrlPasswd1b; // "
  41. CButton m_ctrlRad2Must; // "
  42. CButton m_ctrlRad2Cannot; // "
  43. CButton m_ctrlRad2Can; // "
  44. CButton m_ctrlAcctDisabled; // "
  45. LRESULT Init (void); // Our "InitDialog" (called from OnSetActive).
  46. protected:
  47. BEGIN_MSG_MAP (CPasswdPage)
  48. MESSAGE_HANDLER (WM_INITDIALOG, OnInitDialog)
  49. MESSAGE_HANDLER (WM_DESTROY, OnDestroy )
  50. CHAIN_MSG_MAP (CPropertyPageImpl<CPasswdPage>)
  51. END_MSG_MAP()
  52. LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  53. LRESULT OnDestroy (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  54. };
  55. // ----------------------------------------------------------------------------
  56. // Non-class functions
  57. // ----------------------------------------------------------------------------
  58. #endif // _CPASSWDP_H