Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

PE Tool for creating patches

- - - - -

  • Please log in to reply
672 replies to this topic

#651
rep

rep
  • Member
  • 1 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

Tomasz, you say that UURollup and Update Rollup 2 are "complementary". Does that mean that -- after installing the official MS Update Rollup 1 I should install BOTH of these? Or is it better to choose just one?

 

As an experiment (which I could reverse using a disk image!) I installed UURollup (Windows2000-UURollup-v10d-x86-ENU.exe) but was unable to install Firefox 26 (wanted XP SP2) using the Application Compatibility Launcher. CDRWin 10 installed but wouldn't work.

 

It'd be nice to have an easy way to prolong the life of W2K.




How to remove advertisement from MSFN

#652
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • OS:XP Pro x86
  • Country: Country Flag
I hope to finally do something in the near future to simplify the whole process but at the moment updating Windows 2000 is unfortunately rather complicated :(

The simplest method that I'd recommend would be either to slipstream the OnePiece update pack and then install the unofficial updates, or use Windows Update and let it install everything what's available there, and then apply the unofficial patches.

As for UURollup-v11 (I really wouldn't recommend using v10 at this point), it does officially require UR2. Still, UR2 is just a compilation of the official updates and hotfixes so it's not absolutely necessary as long as you've installed all official updates already.

Together with UR2 and UURollup I'd also highly recommend installing the latest IE cumulative update (that is the one released post-EOL).

I've heard the installer in the new versions of Firefox isn't compatible with the Application Compatibility Launcher. How about checking Firefox Portable? It should work out of the box.
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#653
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Hey everyone, I have three new updates available. They add a bunch of new API calls:

 

Windows2000-KB2479628-v9-x86-ENU.exe

shell32.dll

ShGetFolderPathAndSubDirA
ShGetFolderPathAndSubDirW



Windows2000-KB2393802-v20-x86-ENU.exe

ntoskrnl/ntkrnlpa/ntkrnlmp/ntkrpamp.exe

PsGetCurrentProcess
PsGetCurrentThread
PsGetCurrentProcessSessionId
NtQueryInformationProcess: added support for PROCESSINFOCLASS.ProcessImageFileName (0x1B), required by psapi additions below

psapi.dll

GetProcessImageFileNameA
GetProcessImageFileNameW
GetPerformanceInfo

kernel32.dll

GetUserGeoID
GetGeoInfoA
GetGeoInfoW

 


Windows2000-KB2508429-v12-x86-ENU.exe

dbghelp.dll

SymFromAddr
SymFromName
 

 

In kernel32, I implemented the GetGeoInfo functionality by adding GEOINFO resources to the file with Resource Hacker. They're a set of $-delimited Unicode strings that contain the returned values for Geo info types 1 through 11 (everything that I could dump from a Win7 box). If you need to make a localized version, I strongly recommend adding new localized entries and leaving the existing 1033 (en-US) strings in place: this is because the code that I added will substitute locale 1033 (0x409: en-US) if a program asks for the invariant locale 0x7F (which Win2k doesn't have).

 

At some point I want to add a way to override the OS version information that applications receive: I wanted to try out the Neverwinter MMO, and I was only able to get it to install by trapping a call to GetVersionEx in a debugger and changing the returned values to tell it the build was 5.1.2600 (XP). I hate it when apps try to protect you from yourself! Anyway, once you get past the installation process, it runs just fine with these patches installed.

 

I was also able to play The Witcher, but you have to grab dbghelp.dll from XP SP3 and put it in the game's folder. I've started looking at trying to upgrade 2k's dbghelp.dll to support the API calls it needs, but it's not a trivial process.



#654
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Just a little addendum: I'm working on KB2479628 v10 that integrates all of blackwingcat's additions to shell32.dll (I've done them all except the SHRestricted upgrade). I might try to add a few more API's if I can as well. I already have Firefox 26 running in my VM :D



#655
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • OS:XP Pro x86
  • Country: Country Flag
This is very interesting :) I've always wished the compatibility between yours and BWC versions of the same files was better. There are still many cases where the APIs offered by your version of a file and by a BWC version of the same file are completely different :(
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#656
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

This is very interesting :) I've always wished the compatibility between yours and BWC versions of the same files was better. There are still many cases where the APIs offered by your version of a file and by a BWC version of the same file are completely different :(

 

Yeah, I generally work on mine independently. If I had a list of the API differences handy I'd probably be able to add whatever is missing.

 

Anyway, Windows2000-KB2479628-v10-x86-ENU.exe is now available. I've integrated blackwingcat's additions, and I'm posting this from Firefox 26!

 

I did make a couple of changes to blackwingcat's code, however. There was one case where he loads a DLL and then unloads it, but leaves the handle to it unchanged. This could cause other API calls to fail because they would think the DLL was loaded when it wasn't. I bypassed the call to UnloadLibrary() for safety's sake.

 

The other change was in how I handle the call to CoCreateInstance(). I call the full routine, which checks to see if it's loaded or not. blackwingcat calls to the middle of it, which seems unsafe to me.

 

Other than that, the functionality is identical.

 

Enjoy!


Edited by WildBill, 16 January 2014 - 12:47 PM.


#657
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Ugh.

 

The good, the bad, and the ugly.

 

 

 

The good:

 

I finally figured out why backup/restore functionality wasn't working in my kernel32 rewrite and fixed it.

 

The bad:

 

It was due to a bug I introduced right when I first started patching kernel32.dll.

 

The ugly:

 

I just posted KB2393802 v21, which is an emergency release that fixes the bug.

 

Any backups you made using KB2393802 prior to v21 will not restore properly.



#658
dencorso

dencorso

    Adiuvat plus qui nihil obstat

  • Supervisor
  • 5,844 posts
  • OS:98SE
  • Country: Country Flag

Donator

So, now, you've completed sucessfully your kernel32 rewrite project? Awesome!  clapping.gif

You do rock!  worship.gif



#659
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

I won't declare it completed, but it's ready for another posting and round of testing ;)

 

http://www.mediafire...-rewrite-v4.zip

 

I still have a lot of API's to add to it that were added since KB2393802 v14, for instance.


Edited by WildBill, 20 January 2014 - 11:04 PM.


#660
MacLover

MacLover

    Newbie

  • Member
  • 30 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

It seems the latest Kernel32 rewrite has a little problem:

I installed it in a Windows 2000 VMware VM and every time I try to log in, it gives me the following BSOD:

STOP: c000021a {Fatal System Error}
The Windows Logon Process system process terminated unexpectedly
with a status of 0xc0000005 (0x00000000 0x00000000)
The system has been shut down

The updates installed on the system are:
Service Pack 4 & Update Rollup 1

Update Rollup 2

Internet Explorer 6 with the April 2013 Cumulative Update (KB2817183) (Custom Support Update)

Windows Script 5.7

KB2360937-v2 (The MS10-084 update)

KB2393802-v21 (MS11-011)

KB2479628-v10 (MS11-012)

KB2508429-v12 (MS11-020)

kernel32-rewrite-v4

 

EDIT: I was able to start up in Safe Mode with Command Prompt to restore the MS11-011 v21 kernel32 however.

 

EDIT2: Forgot to mention IE6


Edited by MacLover, 25 January 2014 - 05:35 AM.


#661
blackwingcat

blackwingcat

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 762 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

I worry that the critical problem on srv.sys (WildBill version) bugs is fixed or not, too.

http://www.msfn.org/...-srvsys-part-2/

 

It seems the latest Kernel32 rewrite has a little problem:

I installed it in a Windows 2000 VMware VM and every time I try to log in, it gives me the following BSOD:

STOP: c000021a {Fatal System Error}
The Windows Logon Process system process terminated unexpectedly
with a status of 0xc0000005 (0x00000000 0x00000000)
The system has been shut down

The updates installed on the system are:
Service Pack 4 & Update Rollup 1

Update Rollup 2

KB2360937-v2 (The MS10-084 update)

KB2393802-v21 (MS11-011)

KB2479628-v10 (MS11-012)

KB2508429-v12 (MS11-020)

kernel32-rewrite-v4

 

EDIT: I was able to start up in Safe Mode with Command Prompt to restore the MS11-011 v21 kernel32 however.


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
BlackWingCat =^^=
http://blog.livedoor.jp/blackwingcat/
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

#662
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Ouch. There definitely is a bug there. I'll work on fixing it this weekend.



#663
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

It turned out to be pretty easy to fix, so KB2508429 v13 is now up. Please let me know how it turns out!



#664
MacLover

MacLover

    Newbie

  • Member
  • 30 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

Still the same bluescreen (If it helps, Windows shows a "Restoring Network Connections" dialog (for VMware shared folders) right before the BSOD.)



#665
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

A-ha. There were actually two bugs in the code; EAX was incorrect, but EDX was also incorrect. I fixed the EAX one but not the other. I'll post another update as soon as I fix this one.



#666
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Another easy fix, and it's posted; I'd be very surprised if you still get STOP errors with KB2508429 v14, at least in the same place...



#667
MacLover

MacLover

    Newbie

  • Member
  • 30 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

Still the same BSOD.

 

EDIT: On a whim, I decided to try regular safe mode and it works fine as well.

 

EDIT2: If I disable VMware shared folders, the system boots fine.


Edited by MacLover, 25 January 2014 - 04:20 PM.


#668
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

Are the details from the BSOD the same? I'm wondering if the bug is not in srv.sys.



#669
MacLover

MacLover

    Newbie

  • Member
  • 30 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

Same details. On the other hand, if I disable Shared Folders before booting up and logging in then re-enable it after I've logged in and try to access the network drive, Explorer crashes.

 

EDIT: here are some logs from Dr. Watson:

Attached File  explorer.txt   32.34KB   8 downloads

Attached File  winlogon.txt   32.8KB   4 downloads


Edited by MacLover, 25 January 2014 - 07:17 PM.


#670
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

It looks like the exception occurred somewhere in kernel32.DefineDosDeviceW (address 0x7C5B3DE3). I'll look into it some more during the week, but from what I can see so far it happened when it called CsrFreeCaptureBuffer, which led to RtlZeroHeap, which led to the exception. Maybe it was a bad pointer?


Edited by WildBill, 26 January 2014 - 09:40 PM.


#671
WildBill

WildBill

    Senior Member

  • Developer
  • 695 posts
  • OS:none specified
  • Country: Country Flag

I did some more investigating, and this is something that I'm really going to need help with. The fault during the call to DefineDosDeviceW is really occurring, but it's also a red herring. What's really happening is heap corruption. The stack back trace doesn't have all of the symbols in ntdll that I've figured out by reverse engineering. The actual call hierarchy is like this:

 

ntdll!RtlpCoalesceFreeBlocks

ntdll!RtlFreeHeap

ntdll!CsrFreeCaptureBuffer

kernel32!DefineDosDeviceW

winlogon!Logoff

 

I'm attaching a .dbg file for ntdll that I've generated from my .map file that has lots more symbol info, but the real issue is there is a bug somewhere in the kernel32 rewrite that's corrupting the application heap. I've suspected this for some time but haven't been able to track it down. I *really* need help on this one.

Attached Files


Edited by WildBill, 28 January 2014 - 06:10 AM.


#672
Dubby

Dubby

    Newbie

  • Member
  • 17 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hmmm... I was able to boots just fine even with vmware shared folder enabled using kernel rewrite v.4 ... I'm also have full acces into it...
It's a vanilla system with usp 5.1 if I'm not mistaken..

Sent from my GT-I8190 using Tapatalk



#673
hansonsux

hansonsux
  • Member
  • 1 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag

Attached File  CAP-4.jpg   51.61KB   2 downloadsAttached File  CAP-5.jpg   47.87KB   1 downloadsI installed the patch for the .lnk vauln and my system still fails the suckme test.

 

System is sp4 and up to July 2010, nothing special.

 

 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN