ScriptStringValidate function

Checks a SCRIPT_STRING_ANALYSIS structure for invalid sequences.

Syntax


HRESULT ScriptStringValidate(
  _In_  SCRIPT_STRING_ANALYSIS ssa
);

Parameters

ssa [in]

A SCRIPT_STRING_ANALYSIS structure for a string.

Return value

Returns S_OK if no invalid sequences are found. The function returns S_FALSE if one or more invalid sequences are found. The function returns a nonzero HRESULT value if it does not succeed.

Remarks

This function is intended for use in editors that reject the input of invalid sequences.

Invalid sequences are only checked for scripts with the fRejectInvalid member set in the associated SCRIPT_PROPERTIES structure. For example, it is conventional for Notepad to reject invalid Thai character sequences. However, invalid Indian sequences are not conventionally rejected, but instead are displayed in composition with a missing base character symbol.

Important  Starting with Windows 8: To maintain the ability to run on Windows 7, a module that uses Uniscribe must specify Usp10.lib before gdi32.lib in its library list.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Internet Explorer 5 or later on Windows Me/98/95

Header

Usp10.h

Library

Usp10.lib

DLL

Usp10.dll

See also

Uniscribe
Uniscribe Functions
SCRIPT_PROPERTIES
SCRIPT_STRING_ANALYSIS

 

 

Community Additions

ADD
Show:
© 2014 Microsoft