2.1.25.63 okutil_set_resource_lang


Description

set resouce language, E for English, J for Japanese and G for German.

Syntax

BOOL okutil_set_resource_lang( LPCSTR strNext, LPSTR lpszCurr = NULL, LPSTR lpszPrev = NULL, BOOL * p_bAllUsers = NULL )

Parameters

strNext
[input]new language to be setted
lpszCurr
[output]the current language
lpszPrev
[output]the previous language
p_bAllUsers
[input]specify if apply to all users

Return

true for success, otherwise false.

Examples

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.");
}

Remark

See Also

okutil_get_current_lang

Header to Included

origin.h

Reference