Source code of Windows XP (NT5)
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.

64 lines
2.4 KiB

  1. //#pragma title( "EaLen.hpp - EA defined length fields" )
  2. /*
  3. Copyright (c) 1995-1998, Mission Critical Software, Inc. All rights reserved.
  4. ===============================================================================
  5. Module - EaLen.hpp
  6. System - EnterpriseAdministrator
  7. Author - Rich Denham
  8. Created - 1996-03-22
  9. Description - EA defined length fields
  10. Updates -
  11. ===============================================================================
  12. */
  13. #ifndef MCSINC_EaLen_hpp
  14. #define MCSINC_EaLen_hpp
  15. // Definitions - object name lengths.
  16. // These lengths include trailing null.
  17. // These definitions are used to be independent of values in <lm.h>, which
  18. // may not reflect the actual limits of all target operating systems.
  19. // These values are also usually rounded up to a four byte boundary.
  20. // The LEN_ values reflect the size reserved in structures for object names.
  21. // The MAXLEN_ values reflect the actual valid maximum length imposed by EA.
  22. #define LEN_Computer (32)
  23. #define LEN_Domain (32)
  24. #define LEN_Account (260)
  25. #define LEN_Comment (260)
  26. #define LEN_Group (260)
  27. #define LEN_Member (260)
  28. #define LEN_Password (260)
  29. #define LEN_Path (1260)
  30. #define LEN_ShutdownMessage (128)
  31. #define LEN_Sid (80)
  32. #define LEN_DistName (260)
  33. #define LEN_DisplayName (260)
  34. #define LEN_Guid (128)
  35. #define LEN_WTSPhoneNumber (50)
  36. #define LEN_HomeDir (4)
  37. // Definitions - maximum valid length of object name
  38. // These lengths do NOT include trailing null.
  39. // These definitions must always be smaller that the corresponding
  40. // definitions above.
  41. // Other EA defined constants
  42. // type of account
  43. #define EA_AccountGGroup (0x00000001)
  44. #define EA_AccountLGroup (0x00000002)
  45. #define EA_AccountUser (0x00000004)
  46. #define EA_AccountUcLGroup (0x00000008)
  47. #define EA_AccountGroup (EA_AccountGGroup|EA_AccountLGroup)
  48. #define EA_AccountAll (EA_AccountGroup|EA_AccountUser)
  49. #endif // MCSINC_EaLen_hpp
  50. // EaLen.hpp - end of file