Share via


ScriptFreeCache (Windows Embedded CE 6.0)

1/6/2010

This function frees a SCRIPT_CACHE item.

Syntax

HRESULT WINAPI ScriptFreeCache(
  SCRIPT_CACHE *psc 
);

Parameters

  • psc
    [in, out] Pointer to a SCRIPT_CACHE item to be freed.

Return Value

If the function succeeds, the return value is zero.

If the function fails, it returns a nonzero value. If any other unrecoverable error is encountered, it is returned as an HRESULT.

Remarks

The client may free a SCRIPT_CACHE at any time. Uniscribe maintains reference counts in its font and shaper caches and frees font data only when all sizes of the font are free, and shaper data only when all fonts it supports are freed.

The client should free the SCRIPT_CACHE for a style when it discards that style.

ScriptFreeCache always sets its parameter to NULL to help avoid misreferencing.

Requirements

Header usp10.h
Library Uspce.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

SCRIPT_CACHE

Other Resources

Uniscribe Functions