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.

69 lines
2.1 KiB

  1. //+---------------------------------------------------------------
  2. //
  3. // File: Catdefs.h
  4. //
  5. // Synopsis: Includes common definitions and datatypes for categorizer code
  6. //
  7. // Copyright (C) 1998 Microsoft Corporation
  8. // All rights reserved.
  9. //
  10. // History: // jstamerj 980305 14:32:17: Created
  11. //
  12. //----------------------------------------------------------------
  13. #ifndef __CATDEFS_H__
  14. #define __CATDEFS_H__
  15. #include <iiscnfg.h>
  16. #include "mailmsg.h"
  17. #ifdef PLATINUM
  18. #define _ICATEGORIZERITEM_ENDENUMMESS (ICATEGORIZERITEM_FISRDNSEARCH + 1)
  19. #else
  20. #define _ICATEGORIZERITEM_ENDENUMMESS ICATEGORIZERITEM_ENDENUMMESS
  21. #endif
  22. #define CAT_MAX_DOMAIN (250)
  23. #define CAT_MAX_LOGIN (64)
  24. #define CAT_MAX_PASSWORD CAT_MAX_LOGIN
  25. //
  26. // Raid 127578
  27. //
  28. // This length is inspired by the other protocols that we deal with. The
  29. // default address limit is 1024, but the MTA can allow 1024 + 834 for the
  30. // OR address. We'll define out default buffer size to allow this large
  31. // of an address.
  32. //
  33. #define CAT_MAX_INTERNAL_FULL_EMAIL (1860)
  34. #define CAT_MAX_CONFIG (512)
  35. #define CAT_MAX_LDAP_DN (CAT_MAX_INTERNAL_FULL_EMAIL)
  36. #define CAT_MAX_REGVALUE_SIZE (1024)
  37. // jstamerj 980305 16:07:47: $$TODO check these values
  38. #define CAT_MAX_ADDRESS_TYPE_STRING (64)
  39. // jstamerj 980319 19:55:15: SMTP/X500/X400/Custom
  40. #define CAT_MAX_ADDRESS_TYPES 4
  41. #define MAX_SEARCH_FILTER_SIZE (CAT_MAX_INTERNAL_FULL_EMAIL + CAT_MAX_INTERNAL_FULL_EMAIL + sizeof("(=)"))
  42. // jstamerj 980504 19:05:10: Define this to whatever IMsg is returning today.
  43. #define CAT_IMSG_E_PROPNOTFOUND MAILMSG_E_PROPNOTFOUND
  44. #define CAT_IMSG_E_DUPLICATE MAILMSG_E_DUPLICATE
  45. // Metabase values
  46. // Formerly MD_ROUTE_USER_NAME
  47. #define CAT_MD_USERNAME (SMTP_MD_ID_BEGIN_RESERVED+84)
  48. // Formerly MD_ROUTE_PASSWORD
  49. #define CAT_MD_PASSWORD (SMTP_MD_ID_BEGIN_RESERVED+85)
  50. // Formerly MD_SMTP_DS_HOST
  51. #define CAT_MD_DOMAIN (SMTP_MD_ID_BEGIN_RESERVED+91)
  52. class CCatAddr;
  53. class CCategorizer;
  54. class CICategorizerListResolveIMP;
  55. #endif //__CATDEFS_H__