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
2.0 KiB

  1. /***********************************************************************
  2. *
  3. * _ENTRYID.H
  4. *
  5. * Internal headers for the WABAPI: entryid.c
  6. *
  7. * Copyright 1996 Microsoft Corporation. All Rights Reserved.
  8. *
  9. * Revision History:
  10. *
  11. * When Who What
  12. * -------- ------------------ ---------------------------------------
  13. * 05.13.96 Bruce Kelley Created
  14. *
  15. ***********************************************************************/
  16. // Types of WAB EntryIDs. This byte sized value indicates what type of
  17. // entryid this is.
  18. enum _WAB_ENTRYID_TYPE {
  19. // Must not use 0, this value is invalid.
  20. WAB_PAB = 1, // "PAB" entryif
  21. WAB_DEF_DL, // Default DistList - used for the DistList Template EIDs (used in CreateEntry/NewEntry)
  22. WAB_DEF_MAILUSER, // Default Mailuser - used for the MailUser Template EIDs (used in CreateEntry/NewEntry)
  23. WAB_ONEOFF, // One Off entryid
  24. WAB_ROOT, // Root object
  25. WAB_DISTLIST, // Distribution list
  26. WAB_CONTAINER, // Container object
  27. WAB_LDAP_CONTAINER, // LDAP containers - these are special because the container really doesn't exist
  28. WAB_LDAP_MAILUSER, // LDAP mailuser entryid
  29. WAB_PABSHARED, // "Shared Contacts" folder which is virtual so needs special treatment
  30. };
  31. // Creates WAB entryids
  32. HRESULT CreateWABEntryID(
  33. BYTE bType,
  34. LPVOID lpData1,
  35. LPVOID lpData2,
  36. LPVOID lpData3,
  37. ULONG cbData1,
  38. ULONG cbData2,
  39. LPVOID lpRoot,
  40. LPULONG lpcbEntryID,
  41. LPENTRYID * lppEntryID);
  42. HRESULT CreateWABEntryIDEx(
  43. BOOL bIsUnicode,
  44. BYTE bType,
  45. LPVOID lpData1,
  46. LPVOID lpData2,
  47. LPVOID lpData3,
  48. ULONG cbData1,
  49. ULONG cbData2,
  50. LPVOID lpRoot,
  51. LPULONG lpcbEntryID,
  52. LPENTRYID * lppEntryID);
  53. // Checks if it's a valid WAB entryID
  54. BYTE IsWABEntryID(
  55. ULONG cbEntryID,
  56. LPENTRYID lpEntryID,
  57. LPVOID * lppData1,
  58. LPVOID * lppData2,
  59. LPVOID * lppData3,
  60. LPVOID * lppData4,
  61. LPVOID * lppData5);