/*****************************************************************************
 *
 * VERSION:
 *   1.00
 *
 * NOTE:
 *   This file and all accompanying source files are copyrighted (c) 1991 by
 *   Louis Zirkel III.  This source code is include so the individual can
 *   modify this utility for his/her private use.
 *
 *   This code was compiled using BC++ v2.00
 *
 *   See NMSGS.DOC for details on using this utility.
 *
 *****************************************************************************/

#define	MSG_BUFSIZE		128

#define	MSG_ACTIVE		225
#define	MSG_INACTIVE	226


typedef	unsigned char	byte;
typedef	unsigned int	word;
typedef	unsigned long	dword;

#pragma	options	-a-

typedef struct {
	dword	msgHigh;
	dword	msgLow;
	dword	msgActive;
	dword	msgCallers;
	byte	msgLock[6];
	byte	msgReserved[106];
} msgBaseHeader;

typedef struct {
	byte	msgStatus;
	dword	msgNumber;
	dword	msgReference;
	byte	msgBlocks;
	byte	msgEntryDate[8];
	byte	msgEntryTime[5];
	byte	msgUserTo[25];
	dword	msgReplyDate;
	byte	msgReplyTime[5];
	byte	msgReplyFlag;
	byte	msgUserFrom[25];
	byte	msgSubject[25];
	byte	msgPassword[12];
	byte	msgActive;
	byte	msgEcho;
	byte	msgReserved[6];
} msgHeader;

#pragma	options	-a.


extern	int		main(int, char **);
extern	int		msgOpen(char *);
extern	int		msgClose(int);
extern	int		msgRead(int, void *);
extern	int		msgWrite(int, void *);
extern	long	msgSeek(int, byte);
