home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / ipmconv.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  65 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. #define _IPMCONV_H
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. // Supported conversion message class prefixes.
  24. #define IPMENVELOPECLASS    L"ENVELOPE.IPM"
  25. #define IPMREPORTCLASS      L"REPORT.IPM"
  26.  
  27. // $--CONV_OPTIONS-------------------------------------------------------------
  28. //
  29. // Conversion options for the IPM Inbound and Outbound conversion
  30. // DLLs.  This structure is passed to the conversion DLL via the 
  31. // pGatewayDefined field of the EDKCNVENV conversion environment
  32. // structure (defined in convstrc.h).
  33. //
  34. // ----------------------------------------------------------------------------
  35. typedef struct _CONV_OPTIONS
  36. {
  37.     BOOL    fTnefEncode;            // TRUE if want Tnef encoding/decoding
  38.     LPCSTR  lpszAddressType;        // Address type string
  39.  
  40. } CONV_OPTIONS;
  41.  
  42. // $--HrGetExportVector--------------------------------------------------------
  43. //
  44. // DESCRIPTION: Gets pointer to exported functions/vectors structures
  45. //              for either the inbound or outbound converter.
  46. //
  47. // INPUT:       dwVersion   --  version requested
  48. //
  49. // OUTPUT:      ppExportVectors --  pointer to export vector structure pointer
  50. //
  51. // RETURNS:     HRESULT     --  NOERROR if successful,
  52. //                              E_INVALIDARG if invalid parameter,
  53. //
  54. // ---------------------------------------------------------------------------
  55.  
  56. HRESULT HrGetExportVector(
  57.         IN DWORD dwVersion,         // version requested
  58.         OUT PCONVDLLVECT * ppExportVectors);  // pointer to exported functions structure
  59.  
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63.  
  64. #endif
  65.