Hacker News new | ask | show | jobs
by pjmlp 54 days ago
This has been a thing since the whole Windows MinWin project.

https://en.wikipedia.org/wiki/MinWin

https://techcommunity.microsoft.com/blog/windowsosplatform/o...

Detours like technology is used in API Sets, to redirect legacy DLLS into the new refactored ones.

https://learn.microsoft.com/en-us/windows/win32/apiindex/win...

2 comments

No. API Sets use forwarding within the loader and are largely transparent to regular/delayed binding and GetProcAddress(). That would be fine. This is overwriting the prologue of the function in user32.dll similar to any other user-space hooking library.
Why would they need runtime patching instead of just replacing the legacy DLLs with ones that redirect to the new ones?
I was mistaken, the redirection workflow, takes another approach.

https://learn.microsoft.com/en-us/windows/win32/apiindex/api...