DLL Injection in C #

Asked by naziur rahman

I wrote a C # program that injects a DLL into a working process.

But the problem is that the DLL (also written in C #) is injected, but the message does not show.
Do not tell me what could be the problem?

DLL code:



 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices; 

namespace MyDll
{
	public class Class1
	{
		public void Main()
		{
			while (true)
			{
				MessageBox.Show("Hello world!");
			}
		} 
	}
}


If necessary, I can also add the loader code.!

Comments:
Minusiator, you would explain why - glen krisch
before minus, please show how to inject the library. - gon alo
Advise content management system for Rails 3 :: Examples of Openvz user_beancounters :: Simple PHP class for Twitter API on OAuth? :: Multi-level UITableView? :: Python. Restriction of the entered data
Leave Repply for DLL Injection in C #
Useful Links