#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

BOOL APIENTRY DllMain( HMODULE hModule,
					   DWORD   ul_reason_for_call,
					   LPVOID  lpReserved )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH: