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.
BOOL okutil_get_serial_number_language( string * pstrLanguage = NULL, string * pstrLangAbbreiviation = NULL )
Return TRUE if the serial number can be read and is an recognized Origin serial number.
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"); } }
GetVersion
origin.h