Source code of Windows XP (NT5)
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
1.6 KiB

  1. /***********************************************************************
  2. *
  3. * _TID.H
  4. *
  5. * Header file for code in TID.C
  6. *
  7. * Copyright 1992, 1994 Microsoft Corporation. All Rights Reserved.
  8. *
  9. ***********************************************************************/
  10. //
  11. // Function prototypes
  12. //
  13. #undef INTERFACE
  14. #define INTERFACE struct _TID
  15. #undef MAPIMETHOD_
  16. #define MAPIMETHOD_(type, method) MAPIMETHOD_DECLARE(type, method, TID_)
  17. MAPI_IUNKNOWN_METHODS(IMPL)
  18. MAPI_IMAPIPROP_METHODS(IMPL)
  19. #undef MAPIMETHOD_
  20. #define MAPIMETHOD_(type, method) MAPIMETHOD_TYPEDEF(type, method, TID_)
  21. MAPI_IUNKNOWN_METHODS(IMPL)
  22. MAPI_IMAPIPROP_METHODS(IMPL)
  23. #undef MAPIMETHOD_
  24. #define MAPIMETHOD_(type, method) STDMETHOD_(type, method)
  25. DECLARE_MAPI_INTERFACE(TID_)
  26. {
  27. MAPI_IUNKNOWN_METHODS(IMPL)
  28. MAPI_IMAPIPROP_METHODS(IMPL)
  29. };
  30. typedef struct _TID {
  31. const TID_Vtbl * lpVtbl;
  32. FAB_Wrapped;
  33. /*
  34. * Private data
  35. */
  36. LPMAILUSER lpABUser;
  37. } TID, *LPTID;
  38. #define CBTID sizeof(TID)
  39. /*
  40. * Creates a new templateID object that's associated with
  41. * a FAB mailuser object.
  42. */
  43. HRESULT
  44. HrNewTID ( LPMAPIPROP * lppMAPIPropNew,
  45. ULONG cbTemplateId,
  46. LPENTRYID lpTemplateId,
  47. ULONG ulTemplateFlags,
  48. LPMAPIPROP lpMAPIPropData,
  49. LPABLOGON lpABPLogon,
  50. LPCIID lpInterface,
  51. HINSTANCE hLibrary,
  52. LPALLOCATEBUFFER lpAllocBuff,
  53. LPALLOCATEMORE lpAllocMore,
  54. LPFREEBUFFER lpFreeBuff,
  55. LPMALLOC lpMalloc );