[Solved] Convert .exe to injectable Dll


Try this :

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
   if (dwAttached == DLL_PROCESS_ATTACH) {
    CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)WinMain, NULL, 0, NULL); //starts the routine in anew thread
   }
   return 1;
}

0

solved Convert .exe to injectable Dll