Determines if the NLS version is valid for a given NLS function.
DWORD IsValidNLSVersion(
NLS_FUNCTION function,
LPCWSTR lpLocaleName,
LPNLSVERSIONINFOEX lpVersionInformation
)
function
Type: NLS_FUNCTION
The NLS capability to query. This value must be COMPARE_STRING. See the SYSNLS_FUNCTION enumeration.
lpLocaleName
Type: LPCWSTR
Pointer to a locale name, or one of the following predefined values.
lpVersionInformation
Type: LPNLSVERSIONINFOEX
Pointer to an NLSVERSIONINFOEX structure. The application must initialize the dwNLSVersionInfoSize member to sizeof(NLSVERSIONINFOEX).
Type: DWORD
Returns a nonzero value if the NLS version is valid, or zero if the version is invalid.
Initialize the NLSVERSIONINFOEX structure by calling GetNLSVersionEx. See the Remarks for GetNLSVersionEx for a discussion on how the members of NLSVERSIONINFOEX can be used to determine if a sort version has changed and you need to reindex data.
Beginning in Windows 8: If your app passes language tags to this function from the Windows.Globalization namespace, it must first convert the tags by calling ResolveLocaleName.
Header: Declared in winnls.h.
Library: Use kernelx.lib.