home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / wpj_mag / wpjv1n8.zip / GASH.ZIP / TEST / DLL / TESTDLL.C < prev    next >
C/C++ Source or Header  |  1993-08-11  |  678b  |  42 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include "dll.h"
  5.  
  6.  
  7. HINSTANCE hInst;
  8.  
  9.  
  10. #pragma argsused
  11. int CALLBACK LibMain (HINSTANCE hInstance, WORD wDataSeg,
  12.                       WORD cbHeapSize, LPSTR lpszCmdLine)
  13.   {if (cbHeapSize > 0) UnlockData (0);
  14.  
  15.    hInst = hInstance;
  16.  
  17.    return 1;
  18.   } // end LibMain
  19.  
  20.  
  21. // DLL termination procedure
  22. #pragma argsused
  23. int CALLBACK WEP (int iParam)
  24.   {return 1;
  25.   } // end WEP
  26.  
  27.  
  28. HINSTANCE WINAPI GetDLLInstance (void)
  29.   {return hInst;
  30.   }
  31.  
  32.  
  33. HMODULE WINAPI GetDLLModule (void)
  34.   {return GetInstanceModule (hInst);
  35.   }
  36.  
  37.  
  38. HTASK WINAPI GetDLLTask (void)
  39.   {return GetCurrentTask ();
  40.   }
  41.  
  42.