00001
00002 #include "stdafx.h"
00003 #include "../rpcdispatch/rpcdisp.h"
00004 #include "../rpcdispatch/kdcomdisp.h"
00005 #include "../rpcdispatch/reporter.h"
00006
00007 HINSTANCE g_hThisDll;
00008 StatusReporter *g_pReporter = NULL;
00009
00010 void InitializeRpcDispatcher();
00011
00012
00013 BOOL APIENTRY DllMain( HMODULE hModule,
00014 DWORD ul_reason_for_call,
00015 LPVOID lpReserved
00016 )
00017 {
00018 switch (ul_reason_for_call)
00019 {
00020 case DLL_PROCESS_ATTACH:
00021 g_hThisDll = hModule;
00022 g_pReporter = new StatusReporter();
00023 InitializeRpcDispatcher();
00024 break;
00025 case DLL_THREAD_ATTACH:
00026 case DLL_THREAD_DETACH:
00027 case DLL_PROCESS_DETACH:
00028 break;
00029 }
00030 return TRUE;
00031 }
00032