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.

110 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. mapiwrap.h
  5. Abstract:
  6. Utility functions for working with MAPI
  7. Environment:
  8. Windows XP fax driver user interface
  9. Revision History:
  10. 09/18/96 -davidx-
  11. Created it.
  12. dd-mm-yy -author-
  13. description
  14. --*/
  15. #ifndef _MAPIWRAP_H_
  16. #define _MAPIWRAP_H_
  17. #include <mapix.h>
  18. #include <mapi.h>
  19. #define MAPICALL(p) (p)->lpVtbl
  20. //
  21. // MAPI address type for fax addresses
  22. //
  23. //#define FAX_ADDRESS_TYPE TEXT("FAX:")
  24. //
  25. // Determine whether MAPI is available
  26. //
  27. BOOL
  28. IsMapiAvailable(
  29. VOID
  30. );
  31. //
  32. // Initialize Simple MAPI services if necessary
  33. //
  34. BOOL
  35. InitMapiService(
  36. HWND hDlg
  37. );
  38. //
  39. // Deinitialize Simple MAPI services if necessary
  40. //
  41. VOID
  42. DeinitMapiService(
  43. VOID
  44. );
  45. //
  46. // Call MAPIAddress to display the address dialog
  47. //
  48. BOOL
  49. CallMapiAddress(
  50. HWND hDlg,
  51. PWIZARDUSERMEM pWizardUserMem,
  52. PULONG pnRecips,
  53. lpMapiRecipDesc *ppRecips
  54. );
  55. //
  56. // Expanded the selected addresses and insert them into the recipient list view
  57. //
  58. BOOL
  59. InterpretSelectedAddresses(
  60. HWND hDlg,
  61. PWIZARDUSERMEM pWizardUserMem,
  62. HWND hwndLV,
  63. ULONG nRecips,
  64. lpMapiRecipDesc pRecips
  65. );
  66. //
  67. // Function points to Simple MAPI entrypoints
  68. //
  69. typedef SCODE (*LPSCMAPIXFROMSMAPI)(LHANDLE, ULONG, LPCIID, LPMAPISESSION *);
  70. extern LPMAPILOGONEX lpfnMAPILogon;
  71. extern LPMAPILOGOFF lpfnMAPILogoff;
  72. extern LPMAPIADDRESS lpfnMAPIAddress;
  73. extern LPMAPIFREEBUFFER lpfnMAPIFreeBuffer;
  74. extern LPSCMAPIXFROMSMAPI lpfnScMAPIXFromSMAPI;
  75. extern ULONG lhMapiSession;
  76. extern LPMAPISESSION lpMapiSession;
  77. #endif // !_MAPIWRAP_H_