loblo Posted October 1, 2011 Posted October 1, 2011 (edited) Since KernelEx development has stalled and that I am no progammer and that I was keen on running certain applications that don't run even with KernelEx, I embarked into some experiments involving hexing functions neither present in in Windows 98/Me nor catered for by KernelEX for other ones present in Windows 98/ME and I can report some interesting successes:ActivateActCtx -> SetLastErrorCreateActCtxW -> SetLastErrorDeactivateActCtx -> SetLastErrorFindActCtxSectionStringW -> SetLastErrorInitializeSListHead -> SetLastErrorInterlockedFlushSList -> SetLastErrorInterlockedPopEntrySList -> SetLastErrorInterlockedPushEntrySList -> SetLastErrorQueryDepthSList -> SetLastErrorReleaseActCtx -> SetLastErrorIt also seems to work for:CreateTimerQueue -> SetLastErrorCreateTimerQueueTimer -> SetLastErrorDecodePointer -> SetLastErrorDeleteTimerQueue -> SetLastErrorDeleteTimerQueueTimer -> SetLastErrorEncodePointer -> SetLastErrorBut those are already catered for by KernelEx but when I started those experiments I didn't figure out they were.HeapQueryInformation -> SetLastError also seems to work but only when the function HeapSetInformation isn't also required, and for example you can make the latest FFDShow Tryout clsid build from Sourceforge work by merely replacing the string HeapQueryInformation by the string SetLastError in the file ffdshow.ax with an hex editor.http://sourceforge.net/projects/ffdshow-tryout/files/SVN%20builds%20by%20clsid/generic%20builds/ffdshow_rev3984_20110922_clsid.exe/downloadAccording to the above rules I have hexed both msvcr100.dll and msvcp100.dll and I use them to succesfully run without issues the latest Luminance HDR build which relies on them:Hacked MSVCR100 and MSVCP100: http://www.mediafire.com/?49bc54r28b94w0xLuminance HDR 2.1.0: http://sourceforge.net/projects/qtpfsgui/files/luminance/2.1.0/Luminance-HDR-Win32-SETUP-v2.1.0.exe/downloadNo guarantee those tricks will work on everything as they must be ugly as hell but it's working very well on quite a few things I now have tried them on so i thought I'd share that with everyone.Cheers Edited October 1, 2011 by loblo
rloew Posted October 1, 2011 Posted October 1, 2011 ActivateActCtx -> SetLastErrorCreateActCtxW -> SetLastErrorDeactivateActCtx -> SetLastErrorFindActCtxSectionStringW -> SetLastErrorInitializeSListHead -> SetLastErrorInterlockedFlushSList -> SetLastErrorInterlockedPopEntrySList -> SetLastErrorInterlockedPushEntrySList -> SetLastErrorQueryDepthSList -> SetLastErrorReleaseActCtx -> SetLastErrorThe number of arguments used by many of these functions is not the same as SetLastError. This can cause Stack Faults depending upon how they are used.
loblo Posted October 2, 2011 Author Posted October 2, 2011 (edited) The number of arguments used by many of these functions is not the same as SetLastError. This can cause Stack Faults depending upon how they are used.Well, as I have said: No guarantee those tricks will work on everything as they must be ugly as hell If you can come up with something better, and I am certain you've got the potential for that, you are more than welcome. Cheers. Edited October 2, 2011 by loblo
rloew Posted October 2, 2011 Posted October 2, 2011 The number of arguments used by many of these functions is not the same as SetLastError. This can cause Stack Faults depending upon how they are used.Well, as I have said: No guarantee those tricks will work on everything as they must be ugly as hell If you can come up with something better, and I am certain you've got the potential for that, you are more than welcome. Cheers.I do have a redirector that is in my Large File Emulator. Creating a stub DLL with separate stubs for each different parameter count would be simple. Different return codes could be handled as well.
M()zart Posted October 3, 2011 Posted October 3, 2011 It's easy to add stubs in the KernelEx code itself (to the libraries that already are there, I didn't figure out how to add a functions to the DLLs that are not already there in the apilibs folder. May be I just have not tried well.) May be it's better to add stubs to KernelEx than to edit exe files?
loblo Posted October 4, 2011 Author Posted October 4, 2011 Jeskola XS-1, (the best soundfont player VST there is IMO) runs absolutely fine with the hacked MSVCR100 and MSVCP100 I posted above.http://jeskola.net/xs1/
loblo Posted October 4, 2011 Author Posted October 4, 2011 (edited) It's easy to add stubs in the KernelEx code itself (to the libraries that already are there, I didn't figure out how to add a functions to the DLLs that are not already there in the apilibs folder. May be I just have not tried well.) May be it's better to add stubs to KernelEx than to edit exe files?I don't think that stuff should be added to KernelEx since none of those functions are properly emulated. I think it works because those functions are useless and are bypassed by using instead a function that is used anyway and can be run several time without changing anything and returns nothing. (If this is not correct, I am more than willing to learn from the mouth of someone who is knowldgeable enough why this works so well.)I couldn't get MFC100 to work so far unfortunately and I don't think I'll be able to. Edited October 4, 2011 by loblo
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now