2000-02-17 20:38:31 +01:00
|
|
|
/* dll_main.cc: Provide the DllMain stub that the user can override.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
|
2010-08-30 03:57:37 +02:00
|
|
|
#include "winlean.h"
|
2000-02-17 20:38:31 +01:00
|
|
|
|
|
|
|
extern "C"
|
|
|
|
BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason,
|
2001-11-05 07:09:15 +01:00
|
|
|
LPVOID reserved /* Not used. */);
|
2000-02-17 20:38:31 +01:00
|
|
|
|
|
|
|
BOOL APIENTRY
|
|
|
|
DllMain (
|
|
|
|
HINSTANCE hInst /* Library instance handle. */ ,
|
|
|
|
DWORD reason /* Reason this function is being called. */ ,
|
2001-01-08 05:02:02 +01:00
|
|
|
LPVOID reserved /* Not used. */)
|
2000-02-17 20:38:31 +01:00
|
|
|
{
|
|
|
|
switch (reason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_THREAD_DETACH:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|