www.pudn.com > remote_thread.zip > remote.cpp


// remote.cpp : Defines the entry point for the DLL application. 
// 
 
#include  
#include "remote.h" 
 
BOOL APIENTRY DllMain( HMODULE hModule,  
                       DWORD  dwReason,  
                       LPVOID lpReserved 
					 ) 
{ 
	if( dwReason == DLL_PROCESS_ATTACH ) 
	{ 
		//---------------------------------------------------- 
		// 我们不需要处理DLL_THREAD_ATTACH和DLL_THREAD_DETACH 
		//---------------------------------------------------- 
		::DisableThreadLibraryCalls( hModule ); 
 
		g_hInstance = hModule; 
	} 
    return TRUE; 
}