Jump to content

PE Tool for creating patches


WildBill

Recommended Posts

Add it to the to-do pile, LOL. ;)

A little update, since I've been silent for quite a while. For the past few months I've been working just about every day on getting SxS support into 2k, which would let us have all of the kernel32 .....ActCtx API routines. I *think* I'm nearing completion, but there have been so many layers to this onion I'm reluctant to say for sure. So far I had to expand the PEB and TEB structures in the kernel, expand internal timer and wait structures, upgrade how the kernel handles work items, add a ton of routines to ntdll, add a bunch to kernel32 (and upgrade even more), upgrade basesrv, add sxs.dll from the latest XP hotfix, and I'm still not done yet. At present I'm eyeball-deep in kernel32's CreateProcessInternalW, which needs to be upgraded before I can complete the internal connections in basesrv. And then, we'll see if the onion has more layers to unwrap.

So far, nothing seems to be broken per se, and 2k nicely creates and populates the WINNT\winsxs folder automatically, but Adobe Reader 9 barfs with an MSVC error. This is because it's detecting the new ActCtx routines and (now thinking it's on an XP machine) trying to create an activation context using CSRSS, which is why I have to upgrade basesrv. But I can't complete that until I upgrade CreateProcessInternalW to give basesrv the extra information it needs to do that. I have all of the extra code I need into basesrv at the moment, but the new stuff isn't connected and can't be until this kernel32 change is done.

All I can say is, thank God for ReactOS. Their source has been invaluable in figuring out some of the structures involved.

Edited by WildBill
Link to comment
Share on other sites


If you force install VirtualBox 3.x and 4.x , they would not work on Windows 2000.

Because it seems to depend on Shadow Image Copy Service it does not supported on Windows 2000.

So I always use VMWare Player 3.1 or Virtual PC 2005 on Windows 2000.

I didn't notice it before but VirtualBox needs two more APIs to install properly:

SETUPAPI.DLL -> SetupSetNonInteractiveMode

SETUPAPI.DLL -> SetupUninstallOEMInfW

As I said before, no rush on getting these in but it would be nice to have the ability to run VirtualBox 4.x on Windows 2000. :)

Again, keep up the great work!

Did you try BlackWingCat's setupapi.dll? I don't know if it supports those two functions, but it is probably worth a try.

http://blog.livedoor.jp/blackwingcat/archives/873798.html

BWC's SETUPAPI.DLL doesn't support SetupSetNonInteractiveMode, therefore I cannot install VirtualBox 4 even with a modified MSI to allow installation on Win2k. It does have SetupUninstallOEMInfW though.

Link to comment
Share on other sites

When I use hotfix: kb2393802-v8 and set c:\boot.ini /PAE option, Windows doesn't start properly. Only STOP error:

0x0000001E (0xC0000005, 0x8046473E, 0x00000000, 0x0000000C)

KMODE_EXCEPTION_NOT_HANDLED

*** Address 8046473E base at 80400000, DateStamp 4ed3fc2c - ntoskrnl.exe

Link to comment
Share on other sites

When I use hotfix: kb2393802-v8 and set c:\boot.ini /PAE option, Windows doesn't start properly. Only STOP error:

0x0000001E (0xC0000005, 0x8046473E, 0x00000000, 0x0000000C)

KMODE_EXCEPTION_NOT_HANDLED

*** Address 8046473E base at 80400000, DateStamp 4ed3fc2c - ntoskrnl.exe

Does Windows create a minidump file? The error is occurring in strstr(), but if I can identify how it got there it might not be hard to fix. I'll remember to investigate it before posting v9.

Link to comment
Share on other sites

When I use hotfix: kb2393802-v8 and set c:\boot.ini /PAE option, Windows doesn't start properly. Only STOP error:

0x0000001E (0xC0000005, 0x8046473E, 0x00000000, 0x0000000C)

KMODE_EXCEPTION_NOT_HANDLED

*** Address 8046473E base at 80400000, DateStamp 4ed3fc2c - ntoskrnl.exe

Does Windows create a minidump file? The error is occurring in strstr(), but if I can identify how it got there it might not be hard to fix. I'll remember to investigate it before posting v9.

I think I found the problem, though I can't really test it here. I guess we'll see what happens when I post v9...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...