home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / LISTHORZ / WEP.C_ / WEP.C
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.1 KB  |  53 lines

  1. /*
  2.  * WEP.C
  3.  *
  4.  * Standard routines for a DLL.
  5.  *
  6.  */
  7.  
  8.  
  9. #include <windows.h>
  10.  
  11.  
  12. /*
  13.  * LibMain
  14.  *
  15.  * Purpose:
  16.  *  Called by libentry.obj. Other than that this does very very little
  17.  *  so I won't bother to write much more in this header.
  18.  *
  19.  */
  20.  
  21. int __export CALLBACK LibMain(HANDLE hModule, WORD wDataSeg,
  22.                        WORD cbHeapSize, LPSTR lpszCmdLine)
  23. {
  24.     return 1;
  25. }
  26.  
  27.  
  28. /*
  29.  * WEP
  30.  *
  31.  * Purpose:
  32.  *  Performs cleanup tasks when the DLL is unloaded.  WEP() is
  33.  *  called automatically by Windows when the DLL is unloaded (no
  34.  *  remaining tasks still have the DLL loaded).  It is strongly
  35.  *  recommended that a DLL have a WEP() function, even if it does
  36.  *  nothing but returns success (1), as in this example.
  37.  *
  38.  * Parameters:
  39.  *  bSystemExit int     Flag indicating if the system is shutting
  40.  *                      down or not.
  41.  *
  42.  * Return Value:
  43.  *  1
  44.  *
  45.  */
  46. int __export CALLBACK _WEP (int bSystemExit);
  47. #pragma alloc_text(FIXEDSEG, _WEP)
  48.  
  49. int __export CALLBACK _WEP (int bSystemExit)
  50. {
  51.     return(1);
  52. }
  53.