如何防止操作系统兼容性从父应用程序传递给子应用程序 [英] How to prevent OS compatibility passing from parent application to child
问题描述
非常感谢Michel Godfroid! :)正常!
大家好!
这是我有一个可悲的问题:
有2个应用程序:
1."parent",以与Windows XP兼容的模式在Windows Vista上运行
2.由父级"启动的子级",应在没有兼容模式的情况下运行.
由于子进程"继承了父进程的兼容性,因此我决定编写一个小程序,该程序将从父进程"启动并执行子程序".
但是我找不到一种以编程方式设置操作系统版本的方法.
有什么办法吗?
提前谢谢!
Many thanks to Michel Godfroid!! :) works fine!
Hi all!
here is what a sad problem I have:
There are 2 applications:
1. "parent", that is running on Windows Vista in compatible mode with Windows XP
2. "child", which is launched by "parent", and SHOULD run WITHOUT compatible mode.
As the "child" process inherits the compatibility of the parent one I decided to write a small program, that will be launched from "parent" and will execute the "child" application.
But I cant find a way, to set OS version programmatically.
Is there any way to do this?
Thank you in advance!
参见 ^ ]讨论以获取详细信息
See this[^] discussion for details
谢谢!但是我已经读过了! :)
Thanks! but I''ve already read this! :)
在Windows Vista中是不可能的. Windows 7中可能有更改,但我不确定
This is not possible under Windows Vista. It might have changes in Windows 7 but I am not sure
并且了解到,这是不可能的".但是"Vista兼容性团队"以某种方式做到了....问题是如何? :)
And understand that, this is "not possible". But the "Vista compatibility team" do that somehow.... the question is HOW? :)
推荐答案
通过WMI(/root/CIMV2-> Win32_Process)启动您的进程.在这种情况下,它将不是您的过程的子过程,并且将不会应用垫片.但是,这会使控制过程变得更加困难.
Start your process through WMI (/root/CIMV2->Win32_Process). In that case, it won''t be a child process of your process, and the shims will not be applied. Makes it harder to control your process, though...
在Windows Vista中是不可能的. Windows 7中可能有更改,但我不确定.参见此 [
This is not possible under Windows Vista. It might have changes in Windows 7 but I am not sure. See this[^] discussion for details.
-Saurabh
这篇关于如何防止操作系统兼容性从父应用程序传递给子应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!