home *** CD-ROM | disk | FTP | other *** search
- #include "winvir.h"
-
- HANDLE hLibrary;
-
-
- int initDll();
- void exitDll();
-
- int FAR PASCAL LibMain(HINSTANCE hInst, WORD wDataSeg, WORD cbHeap,
- LPSTR lpszCmdLine )
- {
- hLibrary = hInst;
-
- // vironal(hLibrary); // Bibliothek auf Codeveränderungen überprüfen
-
- initDll();
-
- if(cbHeap >0)
- { UnlockData(wDataSeg);
- }
- return 1;
- }
- int PASCAL FAR WEP( int nParam )
- {
- int nRVal;
-
- switch( nParam )
- {
- case WEP_SYSTEM_EXIT:
- case WEP_FREE_DLL:
- default:
- nRVal = 1;
- exitDll();
- }
- return nRVal;
- }
-