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.

102 lines
3.3 KiB

  1. /* Simple MAPI functions */
  2. #ifndef MAPI_H
  3. #include <mapi.h>
  4. #endif
  5. #if defined(__cplusplus)
  6. extern "C"
  7. {
  8. #endif
  9. extern HINSTANCE hlibMAPI;
  10. typedef ULONG (FAR PASCAL *LPFNMAPILOGON)(ULONG ulUIParam, LPSTR lpszProfileName,
  11. LPSTR lpszPassword, FLAGS flFlags, ULONG ulReserved, LPLHANDLE lplhSession);
  12. typedef ULONG (FAR PASCAL *LPFNMAPILOGOFF)(LHANDLE lhSession, ULONG ulUIParam,
  13. FLAGS flFlags, ULONG ulReserved);
  14. typedef ULONG (FAR PASCAL *LPFNMAPISENDMAIL)(LHANDLE lhSession, ULONG ulUIParam,
  15. lpMapiMessage lpMessage, FLAGS flFlags, ULONG ulReserved);
  16. typedef ULONG (FAR PASCAL *LPFNMAPISENDDOCUMENTS)(ULONG ulUIParam, LPSTR lpszDelimChar,
  17. LPSTR lpszFilePaths, LPSTR lpszFileNames, ULONG ulReserved);
  18. typedef ULONG (FAR PASCAL *LPFNMAPIFINDNEXT)(LHANDLE lhSession, ULONG ulUIParam,
  19. LPSTR lpszMessageType, LPSTR lpszSeedMessageID, FLAGS flFlags,
  20. ULONG ulReserved, LPSTR lpszMessageID);
  21. typedef ULONG (FAR PASCAL *LPFNMAPIREADMAIL)(LHANDLE lhSession, ULONG ulUIParam,
  22. LPSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved,
  23. lpMapiMessage FAR *lppMessage);
  24. typedef ULONG (FAR PASCAL *LPFNMAPISAVEMAIL)(LHANDLE lhSession, ULONG ulUIParam,
  25. lpMapiMessage lpMessage, FLAGS flFlags, ULONG ulReserved,
  26. LPSTR lpszMessageID);
  27. typedef ULONG (FAR PASCAL *LPFNMAPIDELETEMAIL)(LHANDLE lhSession, ULONG ulUIParam,
  28. LPSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved);
  29. typedef ULONG (FAR PASCAL *LPFNMAPIFREEBUFFER)(LPVOID pv);
  30. typedef ULONG (FAR PASCAL *LPFNMAPIADDRESS)(LHANDLE lhSession, ULONG ulUIParam,
  31. LPSTR lpszCaption, ULONG nEditFields, LPSTR lpszLabels, ULONG nRecips,
  32. lpMapiRecipDesc lpRecips, FLAGS flFlags, ULONG ulReserved,
  33. LPULONG lpnNewRecips, lpMapiRecipDesc FAR *lppNewRecips);
  34. typedef ULONG (FAR PASCAL *LPFNMAPIDETAILS)(LHANDLE lhSession, ULONG ulUIParam,
  35. lpMapiRecipDesc lpRecip, FLAGS flFlags, ULONG ulReserved);
  36. typedef ULONG (FAR PASCAL *LPFNMAPIRESOLVENAME)(LHANDLE lhSession, ULONG ulUIParam,
  37. LPSTR lpszName, FLAGS flFlags, ULONG ulReserved,
  38. lpMapiRecipDesc FAR *lppRecip);
  39. extern LPFNMAPILOGON lpfnMAPILogon;
  40. extern LPFNMAPILOGOFF lpfnMAPILogoff;
  41. extern LPFNMAPISENDMAIL lpfnMAPISendMail;
  42. extern LPFNMAPISENDDOCUMENTS lpfnMAPISendDocuments;
  43. extern LPFNMAPIFINDNEXT lpfnMAPIFindNext;
  44. extern LPFNMAPIREADMAIL lpfnMAPIReadMail;
  45. extern LPFNMAPISAVEMAIL lpfnMAPISaveMail;
  46. extern LPFNMAPIDELETEMAIL lpfnMAPIDeleteMail;
  47. extern LPFNMAPIFREEBUFFER lpfnMAPIFreeBuffer;
  48. extern LPFNMAPIADDRESS lpfnMAPIAddress;
  49. extern LPFNMAPIDETAILS lpfnMAPIDetails;
  50. extern LPFNMAPIRESOLVENAME lpfnMAPIResolveName;
  51. #undef MAPILogon
  52. #undef MAPILogoff
  53. #undef MAPISendMail
  54. #undef MAPISendDocuments
  55. #undef MAPIFindNext
  56. #undef MAPIReadMail
  57. #undef MAPISaveMail
  58. #undef MAPIDeleteMail
  59. #undef MAPIFreeBuffer
  60. #undef MAPIAddress
  61. #undef MAPIDetails
  62. #undef MAPIResolveName
  63. #define MAPILogon (*lpfnMAPILogon)
  64. #define MAPILogoff (*lpfnMAPILogoff)
  65. #define MAPISendMail (*lpfnMAPISendMail)
  66. #define MAPISendDocuments (*lpfnMAPISendDocuments)
  67. #define MAPIFindNext (*lpfnMAPIFindNext)
  68. #define MAPIReadMail (*lpfnMAPIReadMail)
  69. #define MAPISaveMail (*lpfnMAPISaveMail)
  70. #define MAPIDeleteMail (*lpfnMAPIDeleteMail)
  71. #define MAPIFreeBuffer (*lpfnMAPIFreeBuffer)
  72. #define MAPIAddress (*lpfnMAPIAddress)
  73. #define MAPIDetails (*lpfnMAPIDetails)
  74. #define MAPIResolveName (*lpfnMAPIResolveName)
  75. extern BOOL InitSimpleMAPI(void);
  76. extern void DeinitSimpleMAPI(void);
  77. #if defined(__cplusplus)
  78. }
  79. #endif