Capture method

Syntax

HRESULT Capture([in] IWInput* input, [out, retval] IWResult** result);

//This method captures the text from screen according to input parameter and returns it to a WResult object along with other properties.

Errors

E_INVALIDARG
// an invalid argument is passed to “Capture” method.

0x80040211
// capture in progress.

0x80040212
// capture internal error.

0x80040213
// invalid window handle.

0x80040214
// invalid contextul number.

0x80040215
// the specified OCR language is not available.

0x80040216
// the OCR feature is not available.