The initial load of D3dHook.dll side is finished.
Just loaded. But does not have a Plug-in API as a general.

I will be like this and it's easy.

#include <windows.h>
#include <stdio.h>

BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
	static TCHAR  processName[MAX_PATH];

	switch(ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		GetModuleFileName(0, processName, MAX_PATH);
		processName[MAX_PATH-1] = '\0';

		OutputDebugString("DLL load confirmation auxiliary");
		MessageBox(0, processName, "DLL load confirmation auxiliary",  MB_OK);
		
		OutputDebugString("I lower the priority of a process");
		SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
		break;
	
	case DLL_PROCESS_DETACH:
		OutputDebugString("Confirm DLL unload auxiliary");
		MessageBox(0, processName, "Confirm DLL unload auxiliary",  MB_OK);
		break;
	}
	return TRUE;
}
