mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
766 B
33 lines
766 B
#include <stdio.h>
|
|
#include <windows.h>
|
|
|
|
BOOL WINAPI _CRT_INIT (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
|
|
|
|
#ifdef HAS_LIBMAIN
|
|
BOOL __cdecl LibMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved);
|
|
#else
|
|
#define LibMain(h, d, l) TRUE
|
|
#endif
|
|
|
|
BOOL __stdcall DllEntryPoint (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|
{
|
|
BOOL fRc;
|
|
// char msg[80];
|
|
|
|
switch(dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
// DebugBreak();
|
|
break;
|
|
}
|
|
if (fRc = _CRT_INIT(hDll, dwReason, lpReserved))
|
|
fRc = LibMain(hDll, dwReason, lpReserved);
|
|
switch(dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
// sprintf(msg, "Compob32 returning %d on attach\r\n", fRc);
|
|
// OutputDebugStringA(msg);
|
|
break;
|
|
}
|
|
return fRc;
|
|
}
|