home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / proxyinf.h < prev    next >
Text File  |  1998-04-25  |  2KB  |  55 lines

  1. //$--ProxyInf.h-----------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corp. 1986-1996. All Rights Reserved.
  4. //
  5. //    Definition of structures which are passed to the proxy generation functions
  6. //    in order to generate proxy addresses for installed address types.
  7. //
  8. //    This file should be included by the writer of the proxy generation DLL
  9. //    as well as by the calling code.
  10. //
  11. //------------------------------------------------------------------------------
  12.  
  13. #if !defined(_PROXYINF_H)
  14. #define _PROXYINF_H
  15.  
  16.  
  17.  
  18. //$--RECIPIENTINFO--------------------------------------------------------------
  19. //    This structure stores the information associated with each user which in 
  20. //    conjunction with a site proxy could be used to generate a 
  21. //    site-unique recipient proxy. This is filled by the calling code and passed
  22. //    to the proxy generation DLL for read-only use. 
  23. //------------------------------------------------------------------------------
  24. typedef struct _RECIPIENTINFO {
  25.     LPWSTR        pszCommonName;        // Common Name (aka mailbox name). 
  26.     LPWSTR        pszFirstName;        // Given Name
  27.     LPWSTR        pszLastName;        // Surname
  28.     LPWSTR        pszDisplayName;        // Display Name
  29.     LPWSTR        pszInitials;        // Initials
  30. } RECIPIENTINFO, * PRECIPIENTINFO;
  31.  
  32.  
  33. // Maximum field sizes (in characters, not bytes)
  34.  
  35. // PC Mail Constants (MS:Network/Postoffice/Name) [See \tr\src\admin\pcproxy\pcproxy.c]
  36. #define cchMaxCreateMSNetwork        (10 + 1)
  37. #define cchMaxCreateMSPostoffice     (10 + 1)
  38. #define cchMaxCreateMSName            (10 + 1)
  39.  
  40. #define cchMaxValidateMSNetwork        (10 + 1)
  41. #define cchMaxValidateMSPostoffice    (10 + 1)
  42. #define cchMaxValidateMSName        (10 + 1)
  43.  
  44. // Maximum Length for Integers (Input numbers up to 4294967295)
  45. #define cchMaxNumber                (10 + 1)
  46.  
  47. // Number of X400 Organizational Units
  48. #define nMaxOrgUnits            4
  49.  
  50. #define cchMaxProxyValue            (1110+1)    // maximum character length of a proxy plus a null terminator
  51.  
  52. #define CP_ANSI                        1252        // ANSI code page
  53.  
  54. #endif
  55.