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.

66 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name :
  4. addr821.hxx
  5. Abstract:
  6. Set of functions to parse RFC 821 addresses.
  7. Author:
  8. Keith Lau (KeithLau) 2/17/98
  9. Project:
  10. SMTP Server DLL
  11. Functions Exported:
  12. Revision History:
  13. --*/
  14. #ifndef __ADDR821_HXX__
  15. #define __ADDR821_HXX__
  16. BOOL Extract821AddressFromLine(
  17. char *lpszLine,
  18. char **ppszAddress,
  19. DWORD *pdwAddressLength,
  20. char **ppszTail);
  21. BOOL ExtractCanonical821Address(
  22. char *lpszAddress,
  23. DWORD dwAddressLength,
  24. char **ppszCanonicalAddress,
  25. DWORD *pdwCanonicalAddressLength);
  26. BOOL Validate821Address(
  27. char *lpszAddress,
  28. DWORD dwAddressLength);
  29. BOOL Validate821Domain(
  30. char *lpszDomain,
  31. DWORD dwDomainLength);
  32. BOOL ValidateDRUMSDomain(
  33. char *lpszDomain,
  34. DWORD dwDomainLength);
  35. BOOL Get821AddressDomain(
  36. char *lpszAddress,
  37. DWORD dwAddressLength,
  38. char **ppszDomain);
  39. //NimishK : I made this public as we need it in dirnot
  40. BOOL FindNextUnquotedOccurrence(
  41. char *lpszString,
  42. DWORD dwStringLength,
  43. char cSearch,
  44. char **ppszLocation);
  45. #endif __ADDR821_HXX__