/***************************************************************************** * * * LIBMAIN.C * * * * Copyright (C) Microsoft Corporation 1991. * * All Rights reserved. * * * ****************************************************************************** * * * Module Description: Main entry point for sample Help DLL * * * *****************************************************************************/ #define NOMINMAX #include #include "dlldemo.h" #ifndef EXPORT #define EXPORT FAR PASCAL #endif #define PRIVATE static /***************************************************************************** * * * Prototypes * * * *****************************************************************************/ BOOL EXPORT LibMain(HANDLE hModule, WORD wDataSeg, WORD cbHeap, LPSTR lpchCmdLine); int EXPORT WEP( int idParam ); /*************************************************************************** * - Name LibMain - * Purpose Called by system (through ewdemo.asm) when library is loaded. * * Arguments hModule Module handle for the library * cbHeap Size of local heap * lpchCmdLine Pointer to the command line * * Returns * * +++ * * Notes * ***************************************************************************/ BOOL EXPORT LibMain( HANDLE hModule, WORD wDataSeg, WORD cbHeap, LPSTR lpchCmdLine ) { if (cbHeap) UnlockData(0); if (!FInitEmbeddedWindow( hModule ) ) return FALSE; /* Initialization failed */ if (!FInitExtendedWindow( hModule ) ) return FALSE; /* Initialization failed */ return TRUE; /* if we got here everything is ok! */ } /*************************************************************************** * - Name WEP - * Purpose Termination routine called by system. * * Arguments idParam (not used) * * Returns 1 * * +++ * * Notes This is optional. * ***************************************************************************/ int EXPORT WEP( int idParam ) { return 1; }