windows-nt/Source/XPSP1/NT/com/ole32/stg/utils/compob32/dllentry.c

34 lines
766 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#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;
}