有没有办法通过编程方式知道从哪个模块调用的Windows API? (首选C ++语言) [英] Is there any way to know windows API called from which module programmatically? (C++ language is prefered)

查看:67
本文介绍了有没有办法通过编程方式知道从哪个模块调用的Windows API? (首选C ++语言)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我是宋先生。



我正在开发安全计划。



我必须解决一些问题。



在某些情况下是CreateFile API阻止。





例如,



在Office Excel程序中,



1.正常情况



当用户保存文件时,从mso.dll调用CreateFileW API





2.另一个案例。



但是当使用宏程序FileCopy函数时,



从VBA7.dll调用CreateFileW





我必须阻止在所有情况下,在MACRO中使用CreateFile API。





我使用API​​监控工具检查了这一点。



有没有办法知道从哪个模块调用的Windows API?





谢谢。





最好的问候



Mr.Song。



我尝试过:



我检查了API监控工具(来自Rohitab)。



在Excel中



1.从mso.dll调用CreateFile API(Normal SaveAs Routine)

2.从VBA7.dll调用CreateFile API(宏FileCopy例程)

Hi. I'm Mr Song.

I'm developing security program.

I have to solve some issue.

that is CreateFile API blocking in some case.


for example,

In Office Excel Program,

1. Nomal Case

When user save file, CreateFileW API called from mso.dll


2. another Case.

But When using Macro Program FileCopy Function,

CreateFileW is called from VBA7.dll


I have to block CreateFile API using in the MACRO in all case.


I checked this by using API Monitoring Tool.

Is There any way to know windows API called from which module?


Thank you.


Best Regards

Mr.Song.

What I have tried:

I checked API Monitoring tool(from Rohitab).

In Excel

1. CreateFile API is called from mso.dll(Normal SaveAs Routine)
2. CreateFile API is called from VBA7.dll(Macro FileCopy Routine)

推荐答案

为了解决问题 Windows挂钩



考虑到你缺乏这些基本知识,你真的不应该开发一个安全程序,但在尝试这些极端高级的东西之前要扩大你的知识。
For solving that issues are Windows hooks available.

Considering your lack of this basic knowledge you really shouldnt develop a "security program" but widen your knowledge before trying such extremly advanced stuff.


这篇关于有没有办法通过编程方式知道从哪个模块调用的Windows API? (首选C ++语言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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