Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My little hex hacks to complement KernelEx

Featured Replies

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 -> SetLastError

CreateActCtxW -> SetLastError

DeactivateActCtx -> SetLastError

FindActCtxSectionStringW -> SetLastError

InitializeSListHead -> SetLastError

InterlockedFlushSList -> SetLastError

InterlockedPopEntrySList -> SetLastError

InterlockedPushEntrySList -> SetLastError

QueryDepthSList -> SetLastError

ReleaseActCtx -> SetLastError

It also seems to work for:

CreateTimerQueue -> SetLastError

CreateTimerQueueTimer -> SetLastError

DecodePointer -> SetLastError

DeleteTimerQueue -> SetLastError

DeleteTimerQueueTimer -> SetLastError

EncodePointer -> SetLastError

But 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/download

According 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/?49bc54r28b94w0x

Luminance HDR 2.1.0: http://sourceforge.net/projects/qtpfsgui/files/luminance/2.1.0/Luminance-HDR-Win32-SETUP-v2.1.0.exe/download

No 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 by loblo


ActivateActCtx -> SetLastError

CreateActCtxW -> SetLastError

DeactivateActCtx -> SetLastError

FindActCtxSectionStringW -> SetLastError

InitializeSListHead -> SetLastError

InterlockedFlushSList -> SetLastError

InterlockedPopEntrySList -> SetLastError

InterlockedPushEntrySList -> SetLastError

QueryDepthSList -> SetLastError

ReleaseActCtx -> SetLastError

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.

  • Author
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

:lol:

If you can come up with something better, and I am certain you've got the potential for that, you are more than welcome. :yes:

Cheers.

Edited by loblo

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

:lol:

If you can come up with something better, and I am certain you've got the potential for that, you are more than welcome. :yes:

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.

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?

  • Author

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/

:thumbup

  • Author

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 by loblo

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.