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.
24 lines
581 B
24 lines
581 B
#include <windows.h>
|
|
#include "globals.hpp"
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
BOOL APIENTRY
|
|
DllMain( HINSTANCE hInst , DWORD dwReason , LPVOID lpReserved )
|
|
{
|
|
switch( dwReason )
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
// initialize the DLL
|
|
break ;
|
|
case DLL_PROCESS_DETACH:
|
|
// make sure that everything was closed properly
|
|
assert( ghInterceptionDll == NULL ) ;
|
|
assert( gpCallbackFn == NULL ) ;
|
|
break ;
|
|
default:
|
|
break ;
|
|
}
|
|
|
|
return TRUE ;
|
|
}
|
|
|