In this example, the system language is ELangCanadianEnglish and there is no exact match of the resource file on the system. The application calls BaflUtils::NearestLanguageFileV2() to get the closest match. There are three available resource files:
The filename parameter is updated as "c:\\FileMenu.r10" which is the closest resource file for ELangCanadianEnglish. The lang parameter is returned as ELangAmerican (value 10) which is the nearest equivalent language.