React OS DLLs on Windows

Ask your support questions in here

Moderator: Moderator Team

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

React OS DLLs on Windows

Post by ManUsingComputer » Tue Jun 05, 2012 9:19 pm

React OS on windows
Hello reader, I need some advice
I am interested in using React OS Dll files on windows
The purpose of this is to run new programs on old windows & run old programs on new windows
I want to run React OS Dll files Like KERNEL32.DLL,SHELL32.DLL,USER32.DLL,NTDLL.DLL and others
Alongside there windows equivalents
I will need to rename and modify them so that they can coexist

But I need to know if the way I plan to do this will actually work
So I shall explain how I plan to do it

I noticed SHFOLDER.DLL seems to forward the programs that use it to SHELL32.DLL
Because it only has SHGetFolderPathA & SHGetFolderPathW whitch also exist in SHELL32.DLL
So this could be applied to the other modified react os files


Here is a Scenario
Example1.exe is running on windows and needs KERNEL32.DLL
However it needs to use ExampleFunction7
Which isn’t present in the windows KERNEL32.DLL but is present in the React OS KERNEL32.DLL

So I edit the source code for KERNEL32.DLL and rename it to Modified.DLL
So that the Modified.DLL only has the code for ExampleFunction7
And forwards everything else to the windows KERNEL32.DLL

I then edit Example1.exe in a hex editor and replace all instances of KERNEL32.DLL to Modified.DLL
And that is basically how it is intended to run new programs on old windows & run old programs on new windows
Although I have made it a bit abstract

will this work and if not why not?

BrentNewland
Posts: 175
Joined: Wed Oct 05, 2011 7:32 am

Re: React OS DLLs on Windows

Post by BrentNewland » Tue Jun 05, 2012 9:27 pm

You would have to essentially build a compatibility layer program from scratch that would have to intercept all API calls and redirect them to the proper DLLs.

Possible, yes. Feasible, no. Not without a ton of effort and time and money (because time is money).

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Tue Jun 05, 2012 10:05 pm

time is of no concern to me as i have plenty of it and i am more than willing to dedicate a fraction of my finite existence to work on this


i will start on this soon

SomeGuy
Posts: 586
Joined: Mon Nov 29, 2004 9:48 am
Location: Marietta, GA

Re: React OS DLLs on Windows

Post by SomeGuy » Tue Jun 05, 2012 11:58 pm

If the "older" Windows you are looking at is Windows 98/ME then you should check out KernelEx:
http://sourceforge.net/projects/kernelex/

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Wed Jun 06, 2012 1:22 am

i am using this on Nt4.0 server
i have tried KernelEX but you have to install it and it has to change a few settings
its not portable software
my approach is for the modified Dlls to simply be put in the same folder as the incompatible software
and edit incompatible exe or dll in a hex editor and replace all instances of for example KERNEL32.DLL to Modified.DLL
like in the scenario above

but thank you anyway :D

milon
Posts: 966
Joined: Sat Sep 05, 2009 9:26 pm

Re: React OS DLLs on Windows

Post by milon » Wed Jun 06, 2012 5:18 am

If you haven't, you really should test all the software you want to run in ReactOS first before you try splicing ReactOS dll's into Windows. There's really no guarantee that ROS will run anything that modern Windows doesn't, and vice versa. If ROS doesn't run the software you want, then for now it's a moot question.

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Wed Jun 06, 2012 2:53 pm

the programs i intend to test it with seem to run fine on react os
though we cant guarantee that react os can run stuff newer versions of windows can't
it can run some things older windows can't co i will make the DLLs for Nt 4 95 & 98 and then in the future make some for new windows versions

i will let you know if i have any success
or i will ask you why it doesn't work :D

milon
Posts: 966
Joined: Sat Sep 05, 2009 9:26 pm

Re: React OS DLLs on Windows

Post by milon » Wed Jun 06, 2012 4:09 pm

This is an interesting application of ROS. Please do keep us posted. (At least, I'm curious, but I can't speak for everyone else.)

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Thu Jun 07, 2012 3:58 am

Using the source code found in ReactOS-0.3.14-REL-src.zip
I have made a test file to see if the program will accept the DLL and not be unhappy with it
I have tried it with Microsoft gif animator and the program ran
The Dll does not add any additional functionality yet
i have only added a little bit of code to cards.dll
Any way i opened gif animator in a hex editor and replaced the occurrence of shell32.dll with shell01.dll
And renamed my modified cards.dll to shell01.dll

Now that I know that programs will accept the Dll adding the functions to it will be the next step
Download my test here here
http://www.filedropper.com/cards
the only part of cards.dll i modified for this experiment was cards.spec so it is the only file besides the compiled dll

All the functions from the w95 shell32.dll
Except
Shl1632_ThunkData32
Shl3216_ThunkData32
Because they are not in the nt4 one

p.s. what do you type into Rect os Build Environment if you only want it to compile cards.dll

milon
Posts: 966
Joined: Sat Sep 05, 2009 9:26 pm

Re: React OS DLLs on Windows

Post by milon » Thu Jun 07, 2012 7:34 pm

Kind of off-topic: I'm sure you've seen the builds page, but I do want to mention that current builds are far more advanced than ROS 0.3.14. You may get more mileage out of the dll's of current builds than you would from an old release. Just sayin'.

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Thu Jun 07, 2012 8:56 pm

should i use the latest available versions
http://svn.reactos.org/svn/reactos/trunk/reactos/
http://svn.reactos.org/svn/reactos/trun ... /kernel32/
http://svn.reactos.org/svn/reactos/trun ... 2/shell32/

but what do you type into React os Build Environment if you only want it to compile 1 specific dll
:oops: i have simply typed "make" and waited for it to get to the dll
my computer is slow so its a long wait

Haos
Test Team
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am
Contact:

Re: React OS DLLs on Windows

Post by Haos » Thu Jun 07, 2012 8:59 pm

Try make [modulename]

ManUsingComputer
Posts: 7
Joined: Tue Jun 05, 2012 9:16 pm

Re: React OS DLLs on Windows

Post by ManUsingComputer » Fri Jun 08, 2012 11:35 pm

:D thank you
tried "make kernel32" "make cards" "make shell32"
and it worked perfectly

Haos
Test Team
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am
Contact:

Re: React OS DLLs on Windows

Post by Haos » Sat Jun 09, 2012 3:27 pm

In case of having problems, you can find the proper modulename in CMakeLists.txt in the module dir.

Dave3434
Posts: 323
Joined: Tue Jun 28, 2011 2:14 am

Re: React OS DLLs on Windows

Post by Dave3434 » Tue Jun 12, 2012 1:05 am

if i were you i would be careful using windows nt 4,95 or 98 even there no longer supported there still Microsoft products.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest