set resouce language, E for English, J for Japanese and G for German.
BOOL okutil_set_resource_lang( LPCSTR strNext, LPSTR lpszCurr = NULL, LPSTR lpszPrev = NULL, BOOL * p_bAllUsers = NULL )
true for success, otherwise false.
EX1
void okutil_set_resource_lang_Ex1() { LPCSTR strNext = "E"; if(okutil_set_resource_lang(strNext)) out_str("set resource lang success."); else out_str("set resource lang failure."); }
EX2
void okutil_set_resource_lang_Ex2() { LPCSTR strNext = "J"; LPSTR lpszCurr = ""; LPSTR lpszPrev = ""; BOOL bAllUsers = true; if(okutil_set_resource_lang(strNext, lpszCurr, lpszPrev, &bAllUsers)) { out_str("set resource lang success."); printf("The current language is %s and the previous language is %s\n", lpszCurr, lpszPrev); //print out current language and previous language. } else out_str("set resource lang failure."); }
okutil_get_current_lang
origin.h