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.

71 lines
2.3 KiB

  1. #ifndef __AdLkup_h__
  2. #define __AdLkup_h__
  3. ////////////////////////////////////////////////////////////////////////////
  4. /*
  5. This function was ripped out from the source for AdrLkup.lib
  6. because it is the only function that we use from that lib, and linking
  7. to it required linking to MAPI32.lib as well as C-RunTime LIBs.
  8. */
  9. ////////////////////////////////////////////////////////////////////////////
  10. //$--HrFindExchangeGlobalAddressList-------------------------------------------------
  11. // Returns the entry ID of the global address list container in the address
  12. // book.
  13. // -----------------------------------------------------------------------------
  14. HRESULT HrFindExchangeGlobalAddressList( // RETURNS: return code
  15. IN LPADRBOOK lpAdrBook, // address book pointer
  16. OUT ULONG *lpcbeid, // pointer to count of bytes in entry ID
  17. OUT LPENTRYID *lppeid); // pointer to entry ID pointer
  18. ////////////////////////////////////////////////////////////////////////////
  19. /*
  20. The following constants were ripped out from various header files from
  21. the platform SDK because including the actual headers pulled in a bunch
  22. of stuff that we didn't care about. Because there are so few dependencies
  23. it was better to just grab the constants...
  24. */
  25. ////////////////////////////////////////////////////////////////////////////
  26. // From platform SDK _entryid.h
  27. /*
  28. * The EMS ABPs MAPIUID
  29. *
  30. * This MAPIUID must be unique (see the Service Provider Writer's Guide on
  31. * Constructing Entry IDs)
  32. */
  33. #define MUIDEMSAB {0xDC, 0xA7, 0x40, 0xC8, 0xC0, 0x42, 0x10, 0x1A, \
  34. 0xB4, 0xB9, 0x08, 0x00, 0x2B, 0x2F, 0xE1, 0x82}
  35. // From platform SDK EdkCode.h
  36. // Every HRESULT is built from a serverity value, a facility
  37. // value and an error code value.
  38. #define FACILITY_EDK 11 // EDK facility value
  39. // Pairs of EDK error codes and the HRESULTs built from them.
  40. // EDK functions always return HRESULTs. Console applications
  41. // return exit codes via the _nEcFromHr function.
  42. #define EC_EDK_E_NOT_FOUND 0x0001
  43. #define EDK_E_NOT_FOUND \
  44. MAKE_SCODE(SEVERITY_ERROR, FACILITY_EDK, EC_EDK_E_NOT_FOUND)
  45. // This is taken from emsabTag.h
  46. #define PR_EMS_AB_CONTAINERID PROP_TAG( PT_LONG, 0xFFFD)
  47. #endif // __AdLkup_h__