Group: National Language Support - Library: kernel32
int NormalizeString(
_In_ NORM_FORM NormForm,
_In_ LPCWSTR lpSrcString,
_In_ int cwSrcLength,
_Out_opt_ LPWSTR lpDstString,
_In_ int cwDstLength
);
DECLARE INTEGER NormalizeString IN kernel32;
INTEGER NormForm,;
STRING lpSrcString,;
INTEGER cwSrcLength,;
STRING @lpDstString,;
INTEGER cwDstLength
NormForm [in] Normalization form to use. NORM_FORM specifies the standard Unicode normalization forms.
lpSrcString [in] Pointer to the non-normalized source string.
cwSrcLength [in] Length, in characters, of the buffer containing the source string. The application can set this parameter to -1 if the function should assume the string to be null-terminated and calculate the length automatically.
lpDstString [out, optional] Pointer to a buffer in which the function retrieves the destination string.
cwDstLength [in] Length, in characters, of the buffer containing the destination string. Alternatively, the application can set this parameter to 0 to request the function to return the required size for the destination buffer.
Returns the length of the normalized string in the destination buffer.
MSDN: Using Unicode Normalization to Represent Strings
See also: IsNormalizedString.