跟踪Windows API调用 [英] Track windows API calls

查看:299
本文介绍了跟踪Windows API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys,



我相信很多人一定都做过。这就是我需要的。

计算在整个系统中运行的任何进程对特定Windows API(Say ReplaceFile或ReadFile或Openfile)的调用次数。如果可能的话,还要跟踪每个进程的呼叫数量。



我打算用VBScript(.vbs)编写代码但欢迎提出建议。



问候,

Darshan



我的尝试:



我尝试过Absolutely Nothing,因为我不知道该怎么做。

Hello Guys,

I'm sure many of you must have done it. This is what I need.
Count number of calls made to specific Windows API (Say ReplaceFile or ReadFile or Openfile) by any process running across the system. Also if possible keep a track of number of calls per process.

I'm planning to code this in VBScript(.vbs) But suggestions are welcome.

Regards,
Darshan

What I have tried:

I have tried Absolutely Nothing as I don't know what to start with.

推荐答案

你不能在VBScript中这样做。



你需要一个API钩子库,比如Detours [ ^ ]。拿出你的支票簿。你需要它。



alternative [ ^ ],但在所有情况下,它们都不是在VBScript中工作。
You cannot do this in VBScript.

You need an API hooking library, like Detours[^]. Get your checkbook out. You're going to need it.

There are alternatives[^], but in all cases, they are not going to work in VBScript.


这篇关于跟踪Windows API调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆