Windows 7中的explorer.exe使用哪些API来列出文件? [英] Which APIs are used by explorer.exe in Windows 7 to list files?

查看:169
本文介绍了Windows 7中的explorer.exe使用哪些API来列出文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个类似rootkit的程序,它挂钩了Windows使用的函数来列出文件夹中的文件。
我知道在Windows XP中,explorer.exe每次打开/更新目录时都使用 FindFirstFileW / FindNextFileW 列出该文件夹中包含的文件。
Windows 7的不同之处在于,我无法理解哪些函数在这里用来完成这项工作。

来调用EnumObjects的特定目录。 > IEnumIDList :: Next()


I am coding a rootkit-like program which hooks functions used by Windows to list files in a folder. I know that in Windows XP explorer.exe uses FindFirstFileW / FindNextFileW each time we open/update directory, to list files that are contained in that folder. Different story for Windows 7, and I can't manage to understand which functions are used here to do the job.

解决方案

In windows 7 windows explorer use IShellFolder for every browse of specific directory it call to EnumObjects and from that return value it call to:

IEnumIDList::Next()

这篇关于Windows 7中的explorer.exe使用哪些API来列出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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