Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!

Saurabh.Garg wrote:
See this[^] discussion for details

Thanks! but I've already read this! :)

Saurabh.Garg wrote:
This is not possible under Windows Vista. It might have changes in Windows 7 but I am not sure

And understand that, this is "not possible". But the "Vista compatibility team" do that somehow.... the question is HOW? :)
Posted
Updated 4-May-10 21:16pm
v5
Comments
Michel Godfroid 5-May-10 4:44am    
Thanks for the ref, mate :-)

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...
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900