IsValidLocale (kernel32)
Last changed: -199.64.0.252

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool IsValidLocale(uint Locale, uint dwFlags);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

    [DllImport("kernel32.dll")]
    static extern bool IsValidLocale(uint Locale, uint dwFlags);

    private const int LCID_INSTALLED = 1;
    private const int LCID_SUPPORTED = 2;

    private void setUserLocale()
    {
      if(IsValidLocale(1033,LCID_INSTALLED))
      {
        SetUserDefaultLCID(1033); //Eg: 1033 - en_us
      }
    }

Alternative Managed API:

Do you know one? Please contribute it!

Documentation