Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The IInkRecognizerContextperforms recognition on an IInkStrokescollection and returns recognition results.

Syntax

HRESULT Recognize(
  [in, out] InkRecognitionStatus *recognitionStatus,
  [out, retval] IInkRecognitionResult **RecognitionResult
);

Parameters

recognitionStatus

The most recent InkRecognitionStatusvalue.

RecognitionResult

Returns the IInkRecognitionResultresults of a recognized collection of strokes or returns NULLif the recognizer could not compute a result for the ink.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_UNEXPECTED

Unexpected parameter or property type.

E_INK_EXCEPTION

An exception occurred inside the method.

E_OUTOFMEMORY

Cannot allocate memory operation.

Remarks

This method performs recognition synchronously.

You must use a try/catch block when calling Recognizebecause an exception is thrown when the IInkDispobject contains no strokes or only deleted strokes.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also