GetKeyboardLayoutList

[DllImport("user32.dll")]
public static extern int GetKeyboardLayoutList(
   int nBuff,
   [Out] IntPtr[] lpList
);

Microsoft documentation: Link

Last updated