如何在 Windows 上暂停和恢复应用程序?

发布于 2024-10-19 18:44:20 字数 203 浏览 1 评论 0原文

有什么方法可以暂停应用程序的执行,将其进程映像存储到文件中,并在以后恢复它(保持应用程序在暂停时的状态)? 我想做的是像 WinXP 上的应用程序“休眠”一样。

有没有任何应用程序能够做到这一点?

到目前为止,我拥有的是一个使用 vmware 的虚拟化系统,我可以在其中暂停和恢复应用程序,但为了完成任务,我必须暂停整个虚拟化系统。

先感谢您。

Is there any way to suspend an application execution, store its process image to a file, and restore it later (keeping the application as it was at the moment of suspension)?
What I want to do is something like an "hibernate" for applications on WinXP.

Is there any application capable of doing this?

What I have so far, is a virtualized system using vmware, where I can suspend and resume applications, but to accomplish the task, I have to suspend the whole virtualized system.

Thank you in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绮筵 2024-10-26 18:44:20

我可以想象,如果您有一个对象可以维护应用程序的状态,并且始终将 UI 基于该状态对象。

当您的应用程序关闭时,可以序列化/保存该状态对象。当应用程序重新启动时,它会加载/反序列化您的状态对象,并将您的 UI 返回到您离开的位置。

I could imagine if you had an object that would maintain the state of your application and always base the UI on that state object.

When your application is closing, that state object could be serialized/saved. When the application starts back up, it would load/de-serialize your state object and bring your UI back to where you left it.

孤檠 2024-10-26 18:44:20

完成此操作后我只能想到一个例子。不幸的是,这并不是在有利的条件下完成的!您可以将操作系统设置为在进程崩溃时创建内存转储。然后可以将此崩溃转储加载到调试器中,调试器可以看到进程崩溃时进程中每个变量的确切状态。我想你想要类似的东西,但进程不会崩溃? ;-)

I can only think of one example when this is done. Unfortunately, it's not done under favourable conditions! You can set up the operating system to create a memory dump whenever a process crashes. This crash dump can then be loaded into a debugger, which can see the exact state of every variable in the process at the time it crashed. I presume you want something similar, but without the process crashing? ;-)

过期情话 2024-10-26 18:44:20

您看过 VMWare ThinApp 吗?听起来它确实实现了您想要实现的目标......

Have you looked at VMWare ThinApp? It sounds like it does what you're trying to achieve...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文