| 1 |
/*************************************************************************** |
| 2 |
gpuPeopsSoft.c - description |
| 3 |
------------------- |
| 4 |
begin : Sun Oct 28 2001 |
| 5 |
copyright : (C) 2001 by Pete Bernert |
| 6 |
email : [email protected] |
| 7 |
***************************************************************************/ |
| 8 |
|
| 9 |
/*************************************************************************** |
| 10 |
* * |
| 11 |
* This program is free software; you can redistribute it and/or modify * |
| 12 |
* it under the terms of the GNU General Public License as published by * |
| 13 |
* the Free Software Foundation; either version 2 of the License, or * |
| 14 |
* (at your option) any later version. See also the license.txt file for * |
| 15 |
* additional informations. * |
| 16 |
* * |
| 17 |
***************************************************************************/ |
| 18 |
|
| 19 |
#include "externals.h" |
| 20 |
|
| 21 |
HINSTANCE hInst = NULL; |
| 22 |
HMODULE hDDrawDLL = NULL; |
| 23 |
|
| 24 |
BOOL APIENTRY DllMain(HANDLE hModule, // DLL INIT |
| 25 |
DWORD dwReason, |
| 26 |
LPVOID lpReserved) |
| 27 |
{ |
| 28 |
switch (dwReason) { |
| 29 |
case DLL_PROCESS_ATTACH: |
| 30 |
hInst = (HINSTANCE)hModule; |
| 31 |
hDDrawDLL = LoadLibrary(TEXT("DDRAW.DLL")); |
| 32 |
break; |
| 33 |
|
| 34 |
case DLL_PROCESS_DETACH: |
| 35 |
if (hDDrawDLL) FreeLibrary(hDDrawDLL); |
| 36 |
break; |
| 37 |
} |
| 38 |
|
| 39 |
return TRUE; // very quick :) |
| 40 |
} |
| 41 |
|