Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Monitor API Calls in VB.NET

Posted on 2004-09-01
4
Medium Priority
?
223 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
[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
4 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 400 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

730 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