home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / addrlkup.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  77 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. #define _ADDRLKUP_H
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif // __cplusplus
  13.  
  14. //$--HrFindExchangeGlobalAddressList-------------------------------------------------
  15. // Returns the entry ID of the global address list container in the address
  16. // book.
  17. // -----------------------------------------------------------------------------
  18. HRESULT HrFindExchangeGlobalAddressList( // RETURNS: return code
  19.     IN LPADRBOOK  lpAdrBook,        // address book pointer
  20.     OUT ULONG *lpcbeid,             // pointer to count of bytes in entry ID
  21.     OUT LPENTRYID *lppeid);         // pointer to entry ID pointer
  22.  
  23. //$--HrGWResolveAddress--------------------------------------------------------
  24. // Returns the entry ID for the recipient identified by a given address.
  25. // -----------------------------------------------------------------------------
  26. HRESULT HrGWResolveAddressW(       // RETURNS: return code
  27.     IN LPABCONT lpGalABCont,        // pointer to GAL container
  28.     IN LPCWSTR lpszAddress,         // pointer to proxy address
  29.     OUT BOOL *lpfMapiRecip,         // MAPI recipient
  30.     OUT ULONG *lpcbEntryID,         // count of bytes in entry ID
  31.     OUT LPENTRYID *lppEntryID);     // pointer to entry ID
  32.  
  33. HRESULT HrGWResolveAddressA(       // RETURNS: return code
  34.     IN LPABCONT lpGalABCont,        // pointer to GAL container
  35.     IN LPCSTR lpszAddress,          // pointer to proxy address
  36.     OUT BOOL *lpfMapiRecip,         // MAPI recipient
  37.     OUT ULONG *lpcbEntryID,         // count of bytes in entry ID
  38.     OUT LPENTRYID *lppEntryID);     // pointer to entry ID
  39.  
  40. #ifdef UNICODE
  41. #define HrGWResolveAddress HrGWResolveAddressW
  42. #else
  43. #define HrGWResolveAddress HrGWResolveAddressA
  44. #endif
  45.  
  46. //$--HrGWResolveProxy----------------------------------------------------------
  47. // Returns the address of a specified type for the recipient identified by
  48. // a given entry ID.
  49. // -----------------------------------------------------------------------------
  50. HRESULT HrGWResolveProxyW(         // RETURNS: return code
  51.     IN  LPADRBOOK   lpAdrBook,      // pointer to address book
  52.     IN  ULONG       cbeid,          // count of bytes in the entry ID
  53.     IN  LPENTRYID   lpeid,          // pointer to the entry ID
  54.     IN  LPCWSTR     lpszAddrType,   // pointer to the address type
  55.     OUT BOOL *      lpfMapiRecip,   // MAPI recipient
  56.     OUT LPWSTR *    lppszAddress);  // pointer to the address pointer
  57.  
  58. HRESULT HrGWResolveProxyA(         // RETURNS: return code
  59.     IN  LPADRBOOK   lpAdrBook,      // pointer to address book
  60.     IN  ULONG       cbeid,          // count of bytes in the entry ID
  61.     IN  LPENTRYID   lpeid,          // pointer to the entry ID
  62.     IN  LPCSTR      lpszAddrType,   // pointer to the address type
  63.     OUT BOOL *      lpfMapiRecip,   // MAPI recipient
  64.     OUT LPSTR *     lppszAddress);  // pointer to the address pointer
  65.  
  66. #ifdef UNICODE
  67. #define HrGWResolveProxy   HrGWResolveProxyW
  68. #else
  69. #define HrGWResolveProxy   HrGWResolveProxyA
  70. #endif
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76. #endif  /* _ADDRLKUP_H */
  77.