home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / ipmconv.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.2 KB  |  67 lines

  1. // --ipmconv.h----------------------------------------------------------------
  2. //
  3. // API entry points for the inbound and outbound sample gateway
  4. // message conversion DLLs.
  5. //
  6. // The ipm_out DLL converts MAPI messages to an 822-style header.
  7. // This is the "Outbound IPM Converter". 
  8. //
  9. // The ipm_in DLL converts an 822-style header to a MAPI message.
  10. // This is the "Inbound IPM Converter".
  11. //
  12. // Copyright (C) Microsoft Corp., 1986-1996.  All rights reserved.
  13. //
  14. // ---------------------------------------------------------------------------
  15.  
  16. #ifndef _IPMCONV_H
  17. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  18. #define _IPMCONV_H
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. // Supported conversion message class prefixes.
  25. #define IPMENVELOPECLASS    L"ENVELOPE.IPM"
  26. #define IPMREPORTCLASS      L"REPORT.IPM"
  27.  
  28. // $--CONV_OPTIONS-------------------------------------------------------------
  29. //
  30. // Conversion options for the IPM Inbound and Outbound conversion
  31. // DLLs.  This structure is passed to the conversion DLL via the 
  32. // pGatewayDefined field of the EDKCNVENV conversion environment
  33. // structure (defined in convstrc.h).
  34. //
  35. // ----------------------------------------------------------------------------
  36. typedef struct _CONV_OPTIONS
  37. {
  38.     BOOL    fTnefEncode;            // TRUE if want Tnef encoding/decoding
  39.     LPCSTR  lpszAddressType;        // Address type string
  40.  
  41. } CONV_OPTIONS;
  42.  
  43. // $--HrGetExportVector--------------------------------------------------------
  44. //
  45. // DESCRIPTION: Gets pointer to exported functions/vectors structures
  46. //              for either the inbound or outbound converter.
  47. //
  48. // INPUT:       dwVersion   --  version requested
  49. //
  50. // OUTPUT:      ppExportVectors --  pointer to export vector structure pointer
  51. //
  52. // RETURNS:     HRESULT     --  NOERROR if successful,
  53. //                              E_INVALIDARG if invalid parameter,
  54. //
  55. // ---------------------------------------------------------------------------
  56.  
  57. HRESULT HrGetExportVector(
  58.         IN DWORD dwVersion,         // version requested
  59.         OUT PCONVDLLVECT * ppExportVectors);  // pointer to exported functions structure
  60.  
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65. #pragma option pop /*P_O_Pop*/
  66. #endif
  67.