Is a Thunk wrapper for NT systems possible?

Getting old Windows games working.

Is a Thunk wrapper for NT systems possible?

Postby marzsyndrome » 2017-10-07 @ 15:24

I've noticed that with a select few games certain 9x-only functions are explicitly required, namely "SMapLS_IP_EBP", "SUnMapLS_IP_EBP", "ThunkConnect32" and "QT_Thunk". They all seem to be related to Thunk (as proven by this random page I discovered).

Swiv 3D for instance uses ThunkConnect32 within its crucial DLL file, DLL32.dll, but this can actually be gotten around by replacing it with GetProcessHeap (as proven with an existing XP patch for the game).

There's a few others, however, which I have not been able to get around so easily. Lemmings Paintball won't go into fullscreen mode because it relies on DispDib32.dll, which won't even load because it can't find the above-mentioned SMap and SUnMap functions within Kernel32.dll. I thought I could get around it by using this Windows 2000 API wrapper set, but it turns out it only adds SUnMap and not SMap also. I'm aware that Baku Baku Animal and Resident Evil's installation programs expect these functions as well (but will still try and install the game, albeit with dodgy behaviour).

Finally, there's a Windows version of the late 90's Malaysian shoot 'em up Vanguard Ace, and two of its DLL files - DD32 and Video - expect QT_Thunk. I doubt it's related to QuickTime btw, but likely related to display/video output nevertheless.

Considering some of the impressive work that we've seen over the years trying to restore compatibility with many older titles, I was wondering if coming up with alternative/wrapper DLLs utilising (or even replacing) these missing functions would be a feasible prospect in the future?
marzsyndrome
Newbie
 
Posts: 53
Joined: 2007-3-28 @ 14:33

Re: Is a Thunk wrapper for NT systems possible?

Postby liqmat » 2017-10-10 @ 21:33

Ah. You are one of the very people that has ever mentioned Baku Baku for PC. I had a 3-in-1 Sega PC CD with Baku Baku on it. I've always loved that puzzle game since my first exposure to it on a Sega Game Gear. It was so frustrating that the PC version was stuck in a tiny window I just finally broke down and bought the Sega Saturn version and use it on the excellent SSF Saturn emulator. The Sega Saturn version ends up being the best version of Baku Baku, but I would still love to find a way to get the PC version working better than it does.
User avatar
liqmat
Oldbie
 
Posts: 520
Joined: 2015-7-07 @ 21:59


Return to Windows

Who is online

Users browsing this forum: No registered users and 3 guests