Nicomsoft OCR: Developer's Guide


Cfg_DeleteOption


Syntax

C++:int Cfg_DeleteOption(HCFG CfgObj, int BlockType, UNICODECHAR* OptionPath)
C#:int Cfg_DeleteOption(int CfgObj, int BlockType, string OptionPath)
Visual Basic:Function Cfg_DeleteOption(ByVal CfgObj As Integer, ByVal BlockType As Integer, ByVal OptionPath As String) As Integer
Java:int Cfg_DeleteOption(HCFG CfgObj, int BlockType, String OptionPath)
Delphi:function Cfg_DeleteOption(CfgObj:HCFG; BlockType:integer; OptionPath:PWCHAR):integer


Description

Removes the specified OCR option. For more details, see the NSOCR Configuration section.


Parameters

CfgObj [IN] – the HCFG variable of the Config object.
BlockType [IN] – the Block type that defines which top-level configuration section will be used to save the option. Use the BT_DEFAULT constant to write to the default section. See the Blk_SetType function for details about block types.
OptionPath [IN] – a Unicode, null-terminated string that contains the full path and name of the OCR option to remove.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

None.