newlib-cygwin/winsup/cygwin/lib/dll_main.cc

42 lines
874 B
C++
Raw Normal View History

2000-02-18 03:38:31 +08:00
/* dll_main.cc: Provide the DllMain stub that the user can override.
Copyright 1998, 2000, 2001 Red Hat, Inc.
2000-02-18 03:38:31 +08:00
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#include <windows.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#include <stdio.h>
extern "C"
BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason,
2001-11-05 14:09:15 +08:00
LPVOID reserved /* Not used. */);
2000-02-18 03:38:31 +08:00
BOOL APIENTRY
DllMain (
HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */)
2000-02-18 03:38:31 +08: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;
}