是否可以使用 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++?
我创建了 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函数,特别是Heap32ListFirst
和Heap32ListNext
。
相关文章:
- 在调用FreeLibrary后,释放动态链接到具有相同版本的CRT堆的DLL的内存
- 在 Microsoft Access SQL 中调用自定义 DLL 函数时传递的内存地址无效
- C++ DLL 堆内存分配问题
- 读取进程内存多级指针(DLL 注入)
- 从C/C++(Win64)中的内存加载64位DLL
- 从 JNI 调用的 DLL 从哪里获取其内存以进行分配,例如 Malloc
- 本机 dll 中的动态内存分配
- 放置在外部 DLL 中的类中的字符串数据的内存损坏
- 在特定 Windows DLL 模块中分配内存
- 延迟加载的 DLL 在内存中彼此相距太远
- 内存损坏从vb.net调用c dll
- 从 /MD Exe 文件中删除 /MDd 的 DLL 内存会导致堆损坏
- AccessViolationException从C++/CLI DLL读取C++应用程序中分配的内存
- 发生 JNI 调用 c++ dll "不满意链接错误: 对内存位置的无效访问"
- 在DLL中分配内存并将其指针提供给客户端应用程序,这是不是一种糟糕的做法
- 尝试读取或写入受保护的内存.这通常表示其他内存已损坏.在C++Dll中
- C#调用C++dll试图读取或写入受保护的内存
- DLL内存损坏
- c++ DLL内存读取崩溃
- 本机C++dll/C#内存问题