[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.U4)] public static extern uint GetUserPreferredUILanguages( uint dwFlags, ref uint pulNumLanguages, StringBuilder pwszLanguagesBuffer, ref uint pcchLanguagesBuffer );
Microsoft documentation: Link
Last updated 1 year ago