Log in

View Full Version : Patching win7/Vista files


Worf
November 8th, 2009, 03:23
Hi.

Does anyone know how to patch Win7\Vista files so that they will work in Win xp? I know it can be done but i just havn't found any tutorials about how to do it.

Many Thanks

Worf

Silkut
November 8th, 2009, 07:08
Quote:
[Originally Posted by Worf;83616]... I know it can be done but ...


Does it ? I only thought about the opposite, i.e. with the compatibility mode..

naides
November 8th, 2009, 10:10
Quote:
[Originally Posted by Worf;83616]Hi.

Does anyone know how to patch Win7\Vista files so that they will work in Win xp? I know it can be done. . .


I somewhat doubt it . . .
Windows OS are well know to have a design phylosophy of back-compatibility, to allow new products to be introduced in the market without every one having to buy all new hardware and new software from scratch with every update.

Forward compatibility? Meaning that the designers of XP somehow previewed, in their crystal balls, the future internal workings of Vista/win7 and made arrangements to accomodate their yet unkown functions???? What would be the point of new, improved OS architecture then?

If the win7 specific code contains system calls and API's that only exist in Win7, tough shit. Either you emulate them in Win XP, ie invent the wheel, or upgrade your OS to Win 7, which IMHO is the sanest choice.

If the snag is a simple OS check, then isolating the check and bypassing it is the way to go. inside .inf files you find lines of the form

oslist=501,600,600.64,601,601.64

Which translate: if the OS is
501 (Windows XP)
501.64 (Windows XP 64) (Sucks)
600 (Vista)
600.64 (Vista 64)
601 (Windows 7)
601.64 (Windows 7 64)


Then install and/or run, otherwise not.

Also there is the GetVersion API's called near the begining of regular code. . .

Remeber that these guards are there for a reason, to adjust the code to the OS, or to prevent the code from running and crashing, if it is in the wrong environment. . .

You bypass them at your own peril.

A workaround solution would be install a VM host in XP tah is able to run Win 7 as a guest (VMWARE 7.0) then run you Win 7 specific program inside the VM, using it as an adaptor. In any case, you need a version of Win 7 installed in your computer, virtually or otherwise.

Worf
November 11th, 2009, 09:02
Hi

Thank you for your replies.

I currently have XP and Win 7 Dual Boot on my system as i use XP for programing and Win 7 for everything else.

I have Vista Sidebar on my XP OS and some other Vista apps which has been patched to work on XP, hence the reason i would like to know how it is done.

Regards

Worf

Silkut
November 11th, 2009, 14:14
BinDiff or no balls