head	1.6;
access;
symbols
	V0-99-8:1.6
	V0-99-7:1.6
	V0-99-6:1.6
	V0-99-5:1.6
	V0-99-4:1.6
	V0-99-2:1.6
	V0-99-1:1.6
	V0-93-14:1.6
	V0-93-13:1.6
	V0-93-12:1.6
	V0-93-11:1.6
	V0-93-10:1.6
	V0-93-9:1.6
	V0-93-8:1.6
	V0-93-7:1.6
	V0-93-5:1.6;
locks; strict;
comment	@ * @;


1.6
date	94.11.11.01.06.15;	author jcooper;	state Exp;
branches;
next	;


desc
@@


1.6
log
@*** empty log message ***
@
text
@
/*
 * $Id: $
 *
 */

#define SZ_MAPILOGON "MAPILogon"
#define SZ_MAPILOGOFF "MAPILogoff"
#define SZ_MAPIADDRESS "MAPIAddress"
#define SZ_MAPISENDMAIL "MAPISendMail"
#define SZ_MAPIFREEBUFFER "MAPIFreeBuffer"

/* following functions not yet required in winvn
   #define SZ_MAPISENDDOC "MAPISendDocuments"
   #define SZ_MAPIFINDNEXT "MAPIFindNext"
   #define SZ_MAPIREADMAIL "MAPIReadMail"
   #define SZ_MAPISAVEMAIL "MAPISaveMail"
   #define SZ_MAPIDELMAIL "MAPIDeleteMail"
   #define SZ_MAPIDETAILS "MAPIDetails"
   #define SZ_MAPIRESOLVENAME "MAPIResolveName"
 */

/* This isn't necessarily correct, because MAPI32 isn't
 * available with win32s.  <sigh>
 */

#ifdef WIN32
#define MAPIDLL "MAPI32.DLL"
#else
#define MAPIDLL "MAPI.DLL"
#endif

#define ERR_LOAD_LIB  0x02
#define ERR_LOAD_FUNC 0x04

/*  not sure about this
   #ifdef MAIN */

ULONG (FAR PASCAL * lpfnMAPILogon) (ULONG, LPSTR, LPSTR, FLAGS, ULONG, LPLHANDLE);

ULONG (FAR PASCAL * lpfnMAPILogoff) (LHANDLE, ULONG, FLAGS, ULONG);

ULONG (FAR PASCAL * lpfnMAPISendMail) (LHANDLE, ULONG, lpMapiMessage, FLAGS,
									   ULONG);

ULONG (FAR PASCAL * lpfnMAPISendDocuments) (ULONG, LPSTR, LPSTR, LPSTR, ULONG);

ULONG (FAR PASCAL * lpfnMAPIFindNext) (LHANDLE, ULONG, LPSTR, LPSTR, FLAGS,
									   ULONG, LPSTR);

ULONG (FAR PASCAL * lpfnMAPIReadMail) (LHANDLE, ULONG, LPSTR, FLAGS, ULONG,
									   lpMapiMessage FAR *);

ULONG (FAR PASCAL * lpfnMAPISaveMail) (LHANDLE, ULONG, lpMapiMessage, FLAGS,
									   ULONG, LPSTR);

ULONG (FAR PASCAL * lpfnMAPIDeleteMail) (LHANDLE, ULONG, LPSTR, FLAGS, ULONG);

ULONG (FAR PASCAL * lpfnMAPIFreeBuffer) (LPVOID);

ULONG (FAR PASCAL * lpfnMAPIAddress) (LHANDLE, ULONG, LPSTR, ULONG, LPSTR,
									  ULONG, lpMapiRecipDesc, FLAGS, ULONG,
									  LPULONG, lpMapiRecipDesc FAR *);

ULONG (FAR PASCAL * lpfnMAPIDetails) (LHANDLE, ULONG, lpMapiRecipDesc, FLAGS,
									  ULONG);

ULONG (FAR PASCAL * lpfnMAPIResolveName) (LHANDLE, ULONG, LPSTR, FLAGS,
										  ULONG, lpMapiRecipDesc FAR *);
/* likewise here 

   #else
   extern ULONG (FAR PASCAL *lpfnMAPILogon)(ULONG, LPSTR, LPSTR, FLAGS, ULONG,
   LPLHANDLE);

   extern ULONG (FAR PASCAL *lpfnMAPILogoff)(LHANDLE, ULONG, FLAGS,ULONG);

   extern ULONG (FAR PASCAL *lpfnMAPISendMail)(LHANDLE, ULONG, lpMapiMessage,
   FLAGS, ULONG);

   extern ULONG (FAR PASCAL *lpfnMAPISendDocuments)(ULONG, LPSTR, LPSTR, LPSTR,
   ULONG);

   extern ULONG (FAR PASCAL *lpfnMAPIFindNext)(LHANDLE, ULONG, LPSTR, LPSTR,
   FLAGS, ULONG, LPSTR);

   extern ULONG (FAR PASCAL *lpfnMAPIReadMail)(LHANDLE, ULONG, LPSTR, FLAGS,
   ULONG, lpMapiMessage FAR *);

   extern ULONG (FAR PASCAL *lpfnMAPISaveMail)(LHANDLE, ULONG, lpMapiMessage,
   FLAGS, ULONG, LPSTR);

   extern ULONG (FAR PASCAL *lpfnMAPIDeleteMail)(LHANDLE, ULONG, LPSTR, FLAGS,
   ULONG);

   extern ULONG (FAR PASCAL *lpfnMAPIFreeBuffer)(LPVOID);

   extern ULONG (FAR PASCAL *lpfnMAPIAddress)(LHANDLE, ULONG, LPSTR, ULONG,
   LPSTR, ULONG, lpMapiRecipDesc,
   FLAGS, ULONG, LPULONG,
   lpMapiRecipDesc FAR *);

   extern ULONG (FAR PASCAL *lpfnMAPIDetails)(LHANDLE, ULONG,lpMapiRecipDesc,
   FLAGS, ULONG);

   extern ULONG (FAR PASCAL *lpfnMAPIResolveName)(LHANDLE, ULONG, LPSTR,
   FLAGS, ULONG,
   lpMapiRecipDesc FAR *);
   #endif

 */

int FAR PASCAL InitMAPI (void);
int FAR PASCAL DeInitMAPI (void);
@
