Important: The information in this document is obsolete and should not be used for new development.
GetScriptLanguageSupport
TheGetScriptLanguageSupport
function determines which languages and scripts a specified text service component supports, including its primary language and script.
FUNCTION GetScriptLanguageSupport (ts: ComponentInstance; VAR scriptHandle: ScriptLanguageSupportHandle): ComponentResult;
ts
- A component instance created by a prior call to the Component Manager
OpenComponent
function.scriptHandle
- A handle to a script-language support record. The handle must be either
NIL
or a valid handle. If it isNIL
, the text service component allocates a new handle. If it is already a valid handle, the text service component resizes it as necessary.DESCRIPTION
TheGetScriptLanguageSupport
function lets a caller find out all scripts and languages that your text service component supports.GetScriptLanguageSupport
should return a list of scripts and languages in thescriptHandle
return parameter. TheComponentResult
return value should contain 0 if the list is correct, or an error value if an error occurred.The component should list all its supported scripts and languages, starting with the primary script and language as specified in the
componentFlags
field of its component description record. See page 7-15.The result is returned in a handle to a script-language support record. See "Identifying the Supported Scripts and Languages" on page 7-42 for a description of the script-language support record.
SEE ALSO
For sample code that shows a text service component responding to theGetScriptLanguageSupport
function, see Listing 7-10 on page 7-43.