Commit 44fd9a27 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

usp10: Document ScriptFreeCache, ScriptGetFontProperties, ScriptStringFree and ScriptGetCMap.

parent 21987d3d
...@@ -201,16 +201,25 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) ...@@ -201,16 +201,25 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
/*********************************************************************** /***********************************************************************
* ScriptFreeCache (USP10.@) * ScriptFreeCache (USP10.@)
* *
* Free a script cache.
*
* PARAMS
* psc [I/O] Script cache.
*
* RETURNS
* Success: S_OK
* Failure: Non-zero HRESULT value.
*/ */
HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc) HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
{ {
TRACE("%p\n", psc); TRACE("%p\n", psc);
if (psc) { if (psc)
HeapFree ( GetProcessHeap(), 0, *psc); {
HeapFree(GetProcessHeap(), 0, *psc);
*psc = NULL; *psc = NULL;
} }
return 0; return S_OK;
} }
/*********************************************************************** /***********************************************************************
...@@ -244,6 +253,12 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***props, int *num) ...@@ -244,6 +253,12 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***props, int *num)
/*********************************************************************** /***********************************************************************
* ScriptGetFontProperties (USP10.@) * ScriptGetFontProperties (USP10.@)
* *
* Get information on special glyphs.
*
* PARAMS
* hdc [I] Device context.
* psc [I/O] Opaque pointer to a script cache.
* sfp [O] Font properties structure.
*/ */
HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp) HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp)
{ {
...@@ -776,12 +791,21 @@ HRESULT WINAPI ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS ssa, int iX, int* piCh, ...@@ -776,12 +791,21 @@ HRESULT WINAPI ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS ssa, int iX, int* piCh,
/*********************************************************************** /***********************************************************************
* ScriptStringFree (USP10.@) * ScriptStringFree (USP10.@)
* *
* Free a string analysis.
*
* PARAMS
* pssa [I] string analysis.
*
* RETURNS
* Success: S_OK
* Failure: Non-zero HRESULT value.
*/ */
HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa) HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
{ {
StringAnalysis* analysis; StringAnalysis* analysis;
BOOL invalid; BOOL invalid;
int i; int i;
TRACE("(%p)\n",pssa); TRACE("(%p)\n",pssa);
if(!pssa) if(!pssa)
...@@ -1237,9 +1261,22 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs, ...@@ -1237,9 +1261,22 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs,
/*********************************************************************** /***********************************************************************
* ScriptGetCMap (USP10.@) * ScriptGetCMap (USP10.@)
* *
* Retrieve glyph indices.
*
* PARAMS
* hdc [I] Device context.
* psc [I/O] Opaque pointer to a script cache.
* pwcInChars [I] Array of Unicode characters.
* cChars [I] Number of characters in pwcInChars.
* dwFlags [I] Flags.
* pwOutGlyphs [O] Buffer to receive the array of glyph indices.
*
* RETURNS
* Success: S_OK
* Failure: Non-zero HRESULT value.
*/ */
HRESULT WINAPI ScriptGetCMap(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcInChars, HRESULT WINAPI ScriptGetCMap(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcInChars,
int cChars, DWORD dwFlags, WORD *pwOutGlyphs) int cChars, DWORD dwFlags, WORD *pwOutGlyphs)
{ {
int cnt; int cnt;
HRESULT hr; HRESULT hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment