/****************************************************************************
**
**  Name:  EINIT.C
**
**  Description:
**      LibMain and WEP entry points for errtext.dll.
**
**  Status:  CODED
**
**  $Log:   S:/tbird/mt2_68k/errtext/einit.c_v  $
** 
**    Rev 1.0   13 Feb 1997 08:46:50   gene
** Initial revision.
** 
**    Rev 1.0   07 Sep 1995 10:22:36   gene
** Initial revision.
** 
**    Rev 1.4   14 Aug 1992 17:20:58   courtney
** Removed WEP since in standard Borland library.
** 
**    Rev 1.3   31 Jul 1992 18:31:16   courtney
** Include basewind.h
** 
**    Rev 1.2   28 Jul 1992 11:41:46   brucea
** Removed: warnings by defining #pragma argsused
** 
**    Rev 1.1   18 May 1992 12:31:40   mindy
** need to register for system errors!
** 
**    Rev 1.0   12 May 1992 17:11:46   courtney
** Initial revision.
** 
**  $Header:   S:/tbird/mt2_68k/errtext/einit.c_v   1.0   13 Feb 1997 08:46:50   gene  $
**
**  Copyright (C) 1992 Microtek International.  All rights reserved.
**
*****************************************************************************/
#ifndef _BASEWIND_
#include "basewind.h"
#endif
#ifndef _HOSTERRS_
#include "hosterrs.h"
#endif
#ifndef _ERRTEXT_
#include "errtext.h"
#endif
/* To exclude WEP */
#define _BORLANDC_

HANDLE hInst;

/*-----------------------------------------------------------------------
** LibMain
**
** One-time initialization for DLL
-------------------------------------------------------------------------*/
#pragma argsused
int FAR PASCAL
LibMain(HANDLE hInstance, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine)
{
	if (cbHeapSize != 0)
	   UnlockData(0);	/* allows heap to grow */
	hInst = hInstance;
    ErrInitDLL(MODULE_SYSTEM, "errtext.dll");
	return (TRUE);
}  /* LibMain */

#ifndef _BORLANDC_
/*-----------------------------------------------------------------------
** WEP
**
** With BCC, does not need to be exported   
-------------------------------------------------------------------------*/
#pragma argsused
BOOL EXPORT WEP(int nParameter)
{
	return (1);
}  /* WEP */
#endif

/******************
* End of EINIT.C
*/
