[DllImport("user32.dll")]
static extern bool GetKeyboardLayoutName([Out] StringBuilder pwszKLID);
[DllImport("user32")]
public static extern bool GetKeyboardLayoutName(IntPtr pwszKLID);
None.
None.
Please add some!
IntPtr ptrMem = System.Runtime.InteropServices.Marshal.AllocHGlobal(255);
Win32Func.GetKeyboardLayoutName(ptrMem);
string sLayout = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(ptrMem);
System.Runtime.InteropServices.Marshal.FreeHGlobal(ptrMem);
Do you know one? Please contribute it!