#ifdef _MSC_VER
#include <windows.h>
extern "C"
{
	char loaderName[261];
	HMODULE hLoaderModule=0;
}

struct PluginInit
{
	PluginInit()
	{
		GetModuleFileNameA (GetModuleHandle(0),loaderName,260);
		hLoaderModule=LoadLibraryA(loaderName);
	}
	~PluginInit()
	{
		FreeLibrary(hLoaderModule);
		hLoaderModule=0;
	}
}pi;
#endif