Process Function
Process Function |
Performs ink recognition synchronously.
Syntax
[C++]
HRESULT WINAPI Process(
HRECOCONTEXT hrc,
BOOL *pbPartialProcessing
);
Parameters
hrc
[in] Handle to the recognizer context.
pbPartialProcessing
[in, out] Specify TRUE to process a subset of the ink. Partial processing reduces the time the recognizer spends performing recognition if more ink is expected.
Typically an application specifies FALSE to process all the ink. The function does not process all the ink if you have not called the EndInkInput function.
The function sets pbPartialProcessing parameter to TRUE if there is enough ink left to continue processing; otherwise, FALSE.
Return Value
HRESULT value | Description |
---|---|
S_OK | Success. |
S_FALSE | The function did not process the ink because the ink has been fully processed, or the EndInkInput function has not been called and the recognizer does not support incremental processing of ink. |
TPC_S_INTERRUPTED | The process was interrupted by a call to the AdviseInkChange function. |
E_POINTER | One of the parameters is an invalid pointer. |
E_FAIL | An unspecified error occurred. |