I need to write a novel and customized algorithm for handling and rendering right-to-left and left-to-right pieces of strings in a text-box, and then I need to make all text-boxes in windows, to use this algorithm.
My question is about the second job, that is, how can I change the rendering mechanism of all the text-boxes in a windows machine? From which part of Win32 API should I start? Is it some kind of hacking existing system dlls or there’s some API for doing such things?
Whatever you do, you will never cover all programs with this! If a program uses its own toolkit, or a toolkit not using Win32 built in widgets, any hacks on the Win32 API will have no effect.
Tinkering with the Win32 API is possible by injecting a DLL in every process, that hooks into Win32 API calls through debugging mechanisms. Technically this means you’ll have to reimplement the whole parts of the Win32 API which behaviour you’d like to alter. Also these kinds of methods are also used by malware software, so antivirus programs will go haywire.
In conclusion: Doing this is a huge effort, error prone, will never cover all applications and causes serious problems.