GetOCRLanguages

 

#include “BlackIceDEVMODE.h”

 

BOOL GetOCRLanguages(BlackIceDEVMODE* pBlackIceDevMode, LPTSTR pValue, DWORD* pSize)

Description

Returns the list of selected languages used in the OCR. The list is a string of language codes separated by ‘+’ characters. (E.g.: “eng+deu+fra+jpn”). On the printer driver user interface, it is only possible to select a single language at a time, but with the SetOCRLanguages function or the INI file, multiple languages can be selected. See the following page for the list of possible language codes.

If pValue is NULL and pSize points to a 0 value, the required buffer size will be returned in *pSize.

Parameters

BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure.

LPTSTR pValue      - buffer for list of language codes

DWORD* pSize       - pointer to variable that contains the length of pValue in bytes.

Return value

TRUE on success, FALSE otherwise.

Programming Notes

None

Code Example

None