SCRIPT_CACHE (Windows CE 5.0)
This structure is an opaque pointer to a Uniscribe font-metric cache structure.
typedef void *SCRIPT_CACHE;
The client must allocate and retain one SCRIPT_CACHE variable for each character style used. It must be initialized by the client to NULL.
Many script functions take a combination of HDC and SCRIPT_CACHE. Uniscribe will first attempt to access font data by using the SCRIPT_CACHE and will only inspect the HDC if the required data is not already cached.
The HDC may be passed as NULL. If data required by Uniscribe is already cached, the HDC 'will not be accessed, and the operation continues normally.
If the HDC is passed as NULL, and Uniscribe needs to access it for any reason, Uniscribe will return E_PENDING.
E_PENDING is returned quickly, allowing the client to avoid time-consuming SelectObject calls.
OS Versions: Windows CE 5.0 and later.
Send Feedback on this topic to the authors