To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Get the System Language of the OS via a kernel32.dll call, returning the value as HEX.
Description
Get System Language.vi calls GetSystemDefaultLangID() to return a both a numeric and hex representation of the default system language. This value may be compared with the table on this page.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Note this uses the "GetSystemDefaultLangID", which returns the default language of the system, which is the language of the operating system at install time. This won't return the current language. For example, my system is set to UK, yet this returns US as the language. If instead you call the "GetUserDefaultLangID" function you get the actual current language of the logged in user.