CloneContext Function
CloneContext Function |
Creates a recognizer context that contains the same settings as the original. The new recognizer context does not include the ink or recognition results of the original.
The settings include the recognition guide, character Autocomplete mode, and any factoids that improve the recognition results. An example of a factoid may include whether the ink is a phone number, a name, or a URL. The TextContext and Wordlists are preserved in the new context.
Syntax
[C++]
HRESULT WINAPI CloneContext(
HRECOCONTEXT hrc,
HRECOCONTEXT *pCloneHrc
);
Parameters
hrc
[in] Handle to the recognizer context.
pCloneHrc
[out] New recognizer context.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
E_POINTER | One of the parameters is an invalid pointer. |
E_OUTOFMEMORY | Unable to allocate memory to complete the operation. |
E_FAIL | An unspecified error occurred. |