DLL Not Attaching?
Hello, so I'm just making a really basic function to produce a popup when the DLL attaches. The problem is DllMain never seems to run.
My code:
I just want the popup to appear so the process is "paused" and then I can attach OllyDBG.
Any help or clarification about the issue would be appreciated. Thanks.
My code:
Code:
#include <iostream>
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <d3d9.h>
BOOL _stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved){
DisableThreadLibraryCalls(hinstDLL);
MessageBox(NULL, "Go for it", "", MB_OK);
return false;
}
Any help or clarification about the issue would be appreciated. Thanks.