can't inject .dlls

Hi all.
I'm trying to basic injection with Dev-C++. There is no compilation error but nothing happens. I just create the new .dll project. Then add MessageBox() so i can see whether the injection is successful or not. Then link with the application. The application is running but no injection happens. The code like this...
1
2
3
4
switch (reason) {
        case DLL_PROCESS_ATTACH:
            MessageBox (NULL, ".dll Attached Successfully", "Message", MB_ICONINFORMATION);
            break;

if someone knows how to do this things please reply. Thanks.
Last edited on
I dont quite understand what you are trying to say here. Can you please show me your DLL code and your code that loads the dll?
DLL injection is something else. You just wrote a DllMain() routine, which is something all DLL's have. Period. You are not injecting the Dll anywhere.

Here are some links about DLL injection:

http://www.edgeofnowhere.cc/viewtopic.php?p=2483118
http://www.dreamincode.net/code/snippet407.htm
http://www.codeproject.com/KB/DLL/DLL_Injection_tutorial.aspx
sorry.
OK thanks.
Topic archived. No new replies allowed.