【发布时间】:2011-02-27 13:33:51
【问题描述】:
我正在编写一个由第 3 方驱动程序加载的设备驱动程序。我需要一种方法来确定正在加载我的设备驱动程序的第 3 方驱动程序的名称(出于调试目的)。
例如,GetModuleFileName 将为我提供可执行文件的名称。我希望能够获取 DLL 名称。
堆栈跟踪可能是以下之一:
(a)
app0.exe
abc.dll <- detect "abc"
common.dll
my.dll
(b)
app1.exe
xyz.dll <- detect "xyz"
common.dll
my.dll
(c)
app2.exe
common.dll
my.dll
附言- 我只需要 C++\Windows 的方法
【问题讨论】: