Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ScriptApplyDigitSubstitution function

Applies the specified digit substitution settings to the specified script control and script state structures.

Syntax


HRESULT ScriptApplyDigitSubstitution(
  _In_  const SCRIPT_DIGITSUBSTITUTE *psds,
  _Out_       SCRIPT_CONTROL         *psc,
  _Out_       SCRIPT_STATE           *pss
);

Parameters

psds [in]

Pointer to a SCRIPT_DIGITSUBSTITUTE structure. The application sets this parameter to NULL if the function is to call ScriptRecordDigitSubstitution with LOCALE_USER_DEFAULT.

psc [out]

Pointer to a SCRIPT_CONTROL structure with the fContextDigits and uDefaultLanguage members updated.

pss [out]

Pointer to a SCRIPT_STATE structure with the fDigitSubstitute member updated.

Return value

Returns S_OK if successful. The function returns a nonzero HRESULT value if it does not succeed.

The function returns E_INVALIDARG if it does not recognize the DigitSubstitute member of SCRIPT_DIGITSUBSTITUTE.

Remarks

This function does not actually substitute digits. It just fills in the structures that describe the digit substitution policy. See Displaying Text with Uniscribe for a discussion of the context in which this function is normally called.

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
Displaying Text with Uniscribe
Digit Shapes
ScriptRecordDigitSubstitution
SCRIPT_CONTROL
SCRIPT_DIGITSUBSTITUTE
SCRIPT_STATE

 

 

Community Additions

ADD
Show:
© 2015 Microsoft