@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetKeyboardLayoutName API !!!!C# Signature: [DllImport("user32.dll")] static extern bool GetKeyboardLayoutName([Out] StringBuilder pwszKLID); or you can use this approach (see also the sample code below) [DllImport("user32")] public static extern bool GetKeyboardLayoutName(IntPtr pwszKLID); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: [DllImport("user32")] public static extern bool GetKeyboardLayoutName(IntPtr pwszKLID); System.Text.StringBuilder locale = new System.Text.StringBuilder(new string(' ', 256)); int length; string keyboardLanguage; length = GetKeyboardLayoutName(locale); keyboardLanguage = locale.ToString().Substring(0, length); !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: GetKeyboardLayoutName@msdn on MSDN
Edit user32.GetKeyboar...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.