在另一个进程上调用 SetProcessDEPPolicy?
一款游戏(具体来说是《模拟人生 3》)的编码很差,让它停止随机崩溃的方法之一是将其添加到 DEP 例外列表中。如果不需要的话,我真的不想这样做,所以我想知道是否有一种方法可以在外部进程上使用 SetProcessDEPPolicy 来禁用它的 DEP?无论如何,我都不是一个出色的程序员,所以您提供的信息越多越好。
A game (Sims 3 to be specific) is poorly coded, and one of the ways to get it to stop randomly crashing is to add it to your DEP exception list. I don't really want to do that if I don't have to, so I was wondering if there was a way to use SetProcessDEPPolicy on an external process to disable DEP on it? I'm not a brilliant programmer by any means, so the more information you can give, the better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过将线程注入远程进程来做到这一点:
但这通常是一个坏主意;进程启动和执行线程注入之间存在一个时间窗口,在此期间启用 DEP,反作弊或 DRM 功能可能会将线程注入视为试图破解程序。简单地设置 DEP 例外列表要可靠得多,并且具有相同的效果。
It is possible to do so by injecting a thread into the remote process:
However this is generally a bad idea; there's a time window between when the process starts and when you perform the thread injection during which DEP is enabled, and anti-cheat or DRM functionality might see the thread injection as an attempt to hack the program. It's far more reliable to simply set the DEP exception list, and has the same effect.