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.
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...49bc54r28b94w0x
Luminance HDR 2.1.0: http://sourceforge.n....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.
Edited by loblo, 01 October 2011 - 04:51 AM.