Created
September 15, 2019 23:16
-
-
Save xorhex/b5a287790d52e744f06b4f6d7e666ccb to your computer and use it in GitHub Desktop.
Code Snippet 3 - Pin Tool instrumentation function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VOID Image(IMG img, VOID *v) | |
{ | |
RTN sysDefUILangRtn = RTN_FindByName(img, GETSYSTEMDEFAULTUILANGUAGE); | |
if (RTN_Valid(sysDefUILangRtn)) { | |
RTN_Open(sysDefUILangRtn); | |
if (newLangCode > 0) | |
RTN_Replace(sysDefUILangRtn, (AFUNPTR)SetSystemDefaultUILanguage); | |
RTN_Close(sysDefUILangRtn); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment