@AurevoirXavier yes thx a good explanation for hooking in rust. I have some questions.
You have written Libs and i must use your methods for an special thing when i want to hook messageboxes or are this only examples for messageboxes.
Umm the winapi the last contact i have was on win95/98 and the api is ugly today as is is:). every c/c++ has wrapper libs;).
I have a little bit debugged and it's a flashback;). At the moment i cannot find RegEx but opengl calls for the registry.
My program that i want to hook and overwrite are an Unity/3D-Game that don't use Enviroment-Vars (Unity has a special command to determine LocalLow) but it uses Registry-Entrys:
Search the active Profile and snag the Value for the Profile C:\Users\cyber and then he put manually Appdata/LocalLow at the string. I think so. When i change ProfileImagePath he save in the new changed location.
Why can the UnityEnginge not go the normal way about Enviroment-Variables;).
I think that i want to hook is:
77327AFE | FF15 0C213377 | call dword ptr ds:[<&RegOpenKeyExW>] |
Do you have a little code how i can hook all RegOpenKeyExW and print the values and change the values in RunTime so that the Unity-Prgs became another Value back not the real from the registry?