应用冻结

Application freezing?

本文关键字:冻结 应用      更新时间:2023-10-16

是否有可能编写一个c++程序,为给定的windows进程执行以下操作:

1) pause an application
2) copy the memory of that application to the HDD
3) kill the application
4) at a later point start the application in the exact same state it was before by loading the saved memory

一个人想要这样做有很多原因,我相信它将在调试中特别有帮助。

不可能。进程映像中的一些值是内核句柄。当您恢复映像时,它们将没有相应的内核结构。如果你不相信我,你应该相信Raymond Chen:为什么系统不能只休眠一个进程?

可以创建一个转储文件,参见如何在Windows Vista和Windows 7, .dumpMiniDumpWriteDump中创建用户模式进程转储文件。多年来,开发人员已经成功地使用转储进行调试…