Solved

interprocess hooking using dll

Posted on 2004-04-05
2
174 Views
Last Modified: 2008-03-06

Hello, I would like to tell when a different application/process is about to display a messagebox using hooking. Some research has led me to believe that it is not possible to write this entirely in vb.net, and that i need to write a dll in something like c++.net. The reason to use c++ has to do with this type of dll being able to attach itself into the memory space of the thread launching the message box. I know nothing about c++, and was hoping someone would have a working sample of this that they would be willing to share. thanks.
0
Comment
Question by:vbstroehle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
AvonWyss earned 500 total points
ID: 10768170
A very well kept secret is that you actually CAN export methods from any managed DLL. This process is called reverse P/Invoke. See the following link for more information:
http://blong.com/Conferences/BorConUK2002/Interop1/Win32AndDotNetInterop.htm#ExportingMethods
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question