GetOCRSupportedLanguages

 

#include “BlackIceDEVMODE.h”

 

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

Description

Returns the list of installed language packs for the OCR. This is not the list of selected languages used by the OCR. To retrieve the selected languages, use the GetOCRLanguages function. Unlike the GetOCRLanguages function, the GetOCRSupportedLanguages function returns a string of language codes separated by ‘,’ characters. (E.g.: “eng,deu,fra,jpn”). 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