Solved

Monitor API Calls in VB.NET

Posted on 2004-09-01
4
199 Views
Last Modified: 2008-02-20

Hello.
Do you know how to monitor api calls to specific dll functions ?
I know that in VC++ you have to inject your own function between the dll and the system. You have to create a system wide api hook that will track the dll calls and then it will simply call the called dll function.

Do you know any example that is doing this ?

Thank you !
Alexander

0
Comment
Question by:alexr123
4 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 100 total points
ID: 11951789
no because you can't do this in pure vb.net code, you would need to also use unmanaged C++ code to do this (much like doing a global hook http://www.codeproject.com/csharp/GlobalSystemHook.asp could be used as a roadmap for such code) Basically your unmanaged C++ would call into yor vb.net managed code.
0
 
LVL 1

Author Comment

by:alexr123
ID: 11960346
can you do this with C# without using unmanaged code ?
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 66
Video Player 11 23
VB.NET (2008) - Refactoring Question 2 21
Following an example - Why do I need to click Save button twice? 3 25
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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