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.

74 lines
2.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Windows NT Directory Service Property Pages
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 2001
  7. //
  8. // File: user.h
  9. //
  10. // Contents: AD user object shell property pages header
  11. //
  12. // Classes: CDsUserAcctPage, CDsUsrProfilePage, CDsMembershipPage
  13. //
  14. // History: 05-May-97 EricB created
  15. //
  16. //-----------------------------------------------------------------------------
  17. #ifndef _USER_H_
  18. #define _USER_H_
  19. #include "objlist.h"
  20. BOOL ExpandUsername(PWSTR& pwzValue, PWSTR pwzSamName, BOOL& fExpanded);
  21. HRESULT CountryName(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  22. LPARAM, PATTR_DATA, DLG_OP);
  23. HRESULT CountryCode(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  24. LPARAM, PATTR_DATA, DLG_OP);
  25. HRESULT TextCountry(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  26. LPARAM, PATTR_DATA, DLG_OP);
  27. HRESULT ManagerEdit(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  28. LPARAM, PATTR_DATA, DLG_OP);
  29. HRESULT ManagerChangeBtn(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  30. LPARAM, PATTR_DATA, DLG_OP);
  31. HRESULT MgrPropBtn(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  32. LPARAM, PATTR_DATA, DLG_OP);
  33. HRESULT ClearMgrBtn(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  34. LPARAM, PATTR_DATA, DLG_OP);
  35. HRESULT DirectReportsList(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  36. LPARAM, PATTR_DATA, DLG_OP);
  37. HRESULT AddReportsBtn(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  38. LPARAM, PATTR_DATA, DLG_OP);
  39. HRESULT RmReportsBtn(CDsPropPageBase *, struct _ATTR_MAP *, PADS_ATTR_INFO,
  40. LPARAM, PATTR_DATA, DLG_OP);
  41. HRESULT MailAttr(CDsPropPageBase *, PATTR_MAP, PADS_ATTR_INFO,
  42. LPARAM, PATTR_DATA, DLG_OP);
  43. HRESULT ShBusAddrBtn(CDsPropPageBase *, PATTR_MAP, PADS_ATTR_INFO,
  44. LPARAM, PATTR_DATA, DLG_OP);
  45. // CountryCode helpers:
  46. typedef struct _DsCountryCode {
  47. WORD wCode;
  48. WCHAR pwz2CharAbrev[3];
  49. } DsCountryCode, *PDsCountryCode;
  50. BOOL GetALineOfCodes(PTSTR pwzLine, PTSTR * pptzFullName,
  51. CStrW & str2CharAbrev, LPWORD pwCode);
  52. void RemoveTrailingWhitespace(PTSTR pwz);
  53. #endif // _USER_H_