GetBestResultString function (recapis.h)
Retrieves the best result string.
Syntax
HRESULT GetBestResultString(
HRECOCONTEXT hrc,
ULONG *pcSize,
WCHAR *pwcBestResult
);
Parameters
hrc
Handle to the recognizer context.
pcSize
On input, the number of characters the pwcBestResult buffer can hold. On output, the number of characters the pwcBestResult buffer contains. If pwcBestResult is NULL, the function returns the required size of the buffer that you use to allocate the pwcBestResult buffer.
pwcBestResult
Recognition result. If the buffer is too small, the function truncates the string. The string is not NULL-terminated. To determine the required size of the buffer, set pwcBestResult to NULL; use pcSize to allocate the pwcBestResult buffer.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success.
For Latin and East Asian recognizers this result in combination with an empty string in pwcBestResult means that no recognition result exists. |
|
The string is truncated to fit in the pwcBestResult buffer. |
|
One of the parameters is an invalid pointer. |
|
An unspecified error occurred. |
|
An invalid argument was received. |
|
Unexpected parameter or property type. |
|
The recognizer context does not contain results. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | recapis.h |
DLL | inkobjcore.dll |