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.

63 lines
1.8 KiB

  1. // UserInfo.h: interface for the CUserInfo class.
  2. // Adapted from the CUserInfo class in the SBS Add User wizard
  3. //
  4. //////////////////////////////////////////////////////////////////////
  5. #if !defined(AFX_USERINFO_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_)
  6. #define AFX_USERINFO_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. class CUserInfo
  11. {
  12. public:
  13. CUserInfo();
  14. virtual ~CUserInfo();
  15. HRESULT CreateAccount();
  16. HRESULT CreateMailbox();
  17. HRESULT SetPasswd();
  18. HRESULT SetPassword( LPCTSTR szPassword );
  19. TSTRING GetUserName() { return m_csUserName; }
  20. HRESULT SetUserName( LPCTSTR szUserName );
  21. private:
  22. HRESULT CreateLoginScript();
  23. HRESULT SetUserLoginScript();
  24. HRESULT UpdateUserLoginScript(LPCTSTR pszScript);
  25. TSTRING m_csUserOU;
  26. TSTRING m_csUserName;
  27. TSTRING m_csUserCN;
  28. TSTRING m_csPasswd;
  29. TSTRING m_csUserNamePre2k;
  30. TSTRING m_csFirstName;
  31. TSTRING m_csLastName;
  32. TSTRING m_csFullName;
  33. TSTRING m_csTelephone;
  34. TSTRING m_csOffice;
  35. TSTRING m_csDesc;
  36. TSTRING m_csHomePath;
  37. TSTRING m_csHomeDrive;
  38. DWORD m_dwAccountOptions;
  39. TSTRING m_csLogonDns;
  40. TSTRING m_csSBSServer;
  41. TSTRING m_csDomainName;
  42. TSTRING m_csFQDomainName;
  43. BOOL m_bCreateMB;
  44. TSTRING m_csEXAlias;
  45. TSTRING m_csEXServer;
  46. TSTRING m_csEXHomeServer;
  47. TSTRING m_csEXHomeMDB;
  48. TSTRING EmailAddr;
  49. };
  50. #endif // !defined(AFX_USERINFO_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_)