2.1.25.52 okutil_get_serial_number_language


Description

Gets the language string or character associated with the serial number. Contrast okutil_get_current_lang, which gets the run time language that Origin gui displays.

Syntax

BOOL okutil_get_serial_number_language( string * pstrLanguage = NULL, string * pstrLangAbbreiviation = NULL )

Parameters

pstrLanguage
[output] Receives language string. example: "English"
pstrLangAbbreiviation
[output] Receives language initial Example: "E"

Return

Return TRUE if the serial number can be read and is an recognized Origin serial number.

Examples

EX1

void okutil_get_serial_number_language_ex1()
{    
    string strLanguage, strPath;
    BOOL bExists=FALSE;
    if(okutil_get_serial_number_language(&strLanguage))
    {
        bExists = okutil_find_path_from_origin_registry_key(&strPath, "Path", "Origin 7.5", NULL, NULL, strLanguage);
        if(!bExists && !strLanguage.CompareNoCase("English"))
            bExists = okutil_find_path_from_origin_registry_key(&strPath, "Path", "Origin 7.5", NULL, NULL, "English");
    }
        
}

Remark

See Also

GetVersion

Header to Include

origin.h

Reference