home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / addrlkup.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  3.4 KB  |  79 lines

  1. // --addrlkup.h-----------------------------------------------------------------
  2. // 
  3. //  Header file for address mapping functions.
  4. //
  5. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  6. // -----------------------------------------------------------------------------
  7. #if !defined(_ADDRLKUP_H)
  8. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  9. #define _ADDRLKUP_H
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif // __cplusplus
  14.  
  15. //$--HrFindExchangeGlobalAddressList-------------------------------------------------
  16. // Returns the entry ID of the global address list container in the address
  17. // book.
  18. // -----------------------------------------------------------------------------
  19. HRESULT HrFindExchangeGlobalAddressList( // RETURNS: return code
  20.     IN LPADRBOOK  lpAdrBook,        // address book pointer
  21.     OUT ULONG *lpcbeid,             // pointer to count of bytes in entry ID
  22.     OUT LPENTRYID *lppeid);         // pointer to entry ID pointer
  23.  
  24. //$--HrGWResolveAddress--------------------------------------------------------
  25. // Returns the entry ID for the recipient identified by a given address.
  26. // -----------------------------------------------------------------------------
  27. HRESULT HrGWResolveAddressW(       // RETURNS: return code
  28.     IN LPABCONT lpGalABCont,        // pointer to GAL container
  29.     IN LPCWSTR lpszAddress,         // pointer to proxy address
  30.     OUT BOOL *lpfMapiRecip,         // MAPI recipient
  31.     OUT ULONG *lpcbEntryID,         // count of bytes in entry ID
  32.     OUT LPENTRYID *lppEntryID);     // pointer to entry ID
  33.  
  34. HRESULT HrGWResolveAddressA(       // RETURNS: return code
  35.     IN LPABCONT lpGalABCont,        // pointer to GAL container
  36.     IN LPCSTR lpszAddress,          // pointer to proxy address
  37.     OUT BOOL *lpfMapiRecip,         // MAPI recipient
  38.     OUT ULONG *lpcbEntryID,         // count of bytes in entry ID
  39.     OUT LPENTRYID *lppEntryID);     // pointer to entry ID
  40.  
  41. #ifdef UNICODE
  42. #define HrGWResolveAddress HrGWResolveAddressW
  43. #else
  44. #define HrGWResolveAddress HrGWResolveAddressA
  45. #endif
  46.  
  47. //$--HrGWResolveProxy----------------------------------------------------------
  48. // Returns the address of a specified type for the recipient identified by
  49. // a given entry ID.
  50. // -----------------------------------------------------------------------------
  51. HRESULT HrGWResolveProxyW(         // RETURNS: return code
  52.     IN  LPADRBOOK   lpAdrBook,      // pointer to address book
  53.     IN  ULONG       cbeid,          // count of bytes in the entry ID
  54.     IN  LPENTRYID   lpeid,          // pointer to the entry ID
  55.     IN  LPCWSTR     lpszAddrType,   // pointer to the address type
  56.     OUT BOOL *      lpfMapiRecip,   // MAPI recipient
  57.     OUT LPWSTR *    lppszAddress);  // pointer to the address pointer
  58.  
  59. HRESULT HrGWResolveProxyA(         // RETURNS: return code
  60.     IN  LPADRBOOK   lpAdrBook,      // pointer to address book
  61.     IN  ULONG       cbeid,          // count of bytes in the entry ID
  62.     IN  LPENTRYID   lpeid,          // pointer to the entry ID
  63.     IN  LPCSTR      lpszAddrType,   // pointer to the address type
  64.     OUT BOOL *      lpfMapiRecip,   // MAPI recipient
  65.     OUT LPSTR *     lppszAddress);  // pointer to the address pointer
  66.  
  67. #ifdef UNICODE
  68. #define HrGWResolveProxy   HrGWResolveProxyW
  69. #else
  70. #define HrGWResolveProxy   HrGWResolveProxyA
  71. #endif
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77. #pragma option pop /*P_O_Pop*/
  78. #endif  /* _ADDRLKUP_H */
  79.