getsystemdefaultlangid (kernel32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern ushort GetSystemDefaultLangID();

User-Defined Types:

None.

Notes:

This can be very useful while creating the Installers e.g. Wix. User can create custom actions to determine the Windows OS languages and then select the install language.

Tips & Tricks:

None.

Sample Code:

In C#

using System.Runtime.InteropServices;

class Program
{
   [DllImport("kernel32")]
   extern static ushort GetSystemDefaultLangID();

   static void Main(string[] args)
   {
    Console.WriteLine(GetSystemDefaultLangID().ToString());
   }
}

Alternative Managed API:

Do you know one? Please contribute it!

Documentation