/*DDK*************************************************************************/
/*                                                                           */
/* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
/* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
/*                                                                           */
/*    The following IBM OS/2 WARP source code is provided to you solely for  */
/*    the purpose of assisting you in your development of OS/2 WARP device   */
/*    drivers. You may use this code in accordance with the IBM License      */
/*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
/*    Copyright statement may not be removed.                                */
/*                                                                           */
/*****************************************************************************/

/**************************************************************************
 *
 * SOURCE FILE NAME = INITTERM.C
 *
 * DESCRIPTIVE NAME =
 *
 *
 * VERSION =
 *
 * DATE
 *
 * DESCRIPTION=This file contains the DLL initialization and termination
 *             functions.
 *
 * FUNCTIONS
 *             _DLL_InitTerm
 *
 * NOTES
 *
 *
 * STRUCTURES
 *
 * EXTERNAL REFERENCES
 *
 * EXTERNAL FUNCTIONS
 *
*/#define  INCL_32
#include <os2.h>
#include "init.h"
extern HMODULE hModule;

/***************************************************************************
 *
 * FUNCTION NAME = _DLL_InitTerm
 *
 * DESCRIPTION   = This function initializes the PMPLOT.DRV.
 *                 Saves the HMODULE assigned to us from the OS.
 *
 * INPUT         = ModHandle - Handle to module, assigned to us from OS
 *                 ulFlag    - Initialization flag
 *
 * OUTPUT        = 1L
 *
 * RETURN-NORMAL = NONE
 * RETURN-ERROR  = NONE
 *
 **************************************************************************/
ULONG _System _DLL_InitTerm (HMODULE ModHandle, ULONG ulFlag)
{
   APIRET rc;
   //Int3();
   switch( ulFlag )
   {
       /*  ulFlag is 0 so the DLL is being loaded, get the Module Handle      */
       /*  Might also want to allocate some global heap here, will have to    */
       /*  look into it                                                       */

       case 0:
           hModule = ModHandle;
           break;

       default:
           break;

   }
   return 1L;
}


