是否可以使用 c++ 获取与 WinCE 中指定进程关联的所有 Dll 的内存使用情况?

Is it possible to get the memory usage for all the Dll's associated with the specified process in WinCE using c++?

本文关键字:Dll 内存 情况 用情 关联 进程 获取 c++ 可以使 WinCE 是否      更新时间:2023-10-16

我创建了 taskManagerutility 应用程序,该应用程序将为我提供Windows Mobile Device中当前运行的所有过程的信息。

目前,我能够收集如下提到的信息: -

 1. Process Name
 2. Process ID
 3. Thread ID (associated with the specified process)
 4. Thread Count (total number of threads associated with the specified process)
 5. DLL Name (associated with the specified process)
 6. Process Memory Usage
 7. Process Peak Memory Usage
 8. Process CPU Time
 9. Process CPU utilization

有什么方法可以通过与指定过程相关联的所有单个DLL的总内存使用?

是否可以实现相同?有没有可以这样做的API?

如果'否',那为什么不可能?

请指导我,因为我没有任何了解。

预先感谢。

从内核角度来看,dlls并未分配进程的内存,因此无法知道DLL分配了什么内存块。您可以通过使用ToolHelp函数,特别是Heap32ListFirstHeap32ListNext