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.

36 lines
951 B

  1. /*+-------------------------------------------------------------------------+
  2. | Copyright 1993-1994 (C) Microsoft Corporation - All rights reserved. |
  3. +-------------------------------------------------------------------------+*/
  4. #ifndef _CONSTANT_
  5. #define _CONSTANT_
  6. #ifdef __cplusplus
  7. extern "C"{
  8. #endif
  9. #define MAX_NW_OBJECT_NAME_LEN 48
  10. #define MAX_NT_SERVER_NAME_LEN 15
  11. // These constants are just a safe max of the NT and NW constants
  12. #define MAX_SERVER_NAME_LEN 48
  13. #define MAX_USER_NAME_LEN 256 // must add room for nw4 names...
  14. #define MAX_NT_USER_NAME_LEN 20
  15. #define MAX_SHARE_NAME_LEN 16
  16. #define MAX_GROUP_NAME_LEN 50
  17. #define MAX_NT_GROUP_NAME_LEN 20
  18. #define MAX_DOMAIN_NAME_LEN 15
  19. #define MAX_UNC_PATH MAX_PATH + MAX_SERVER_NAME_LEN + MAX_SHARE_NAME_LEN + 265
  20. #define MAX_PW_LEN 14
  21. #define MAX_UCONST_LEN 10
  22. #define MAX_DOMAIN_LEN 15
  23. #define TMP_STR_LEN_256 256
  24. #define TMP_STR_LEN_80 80
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif