To simplify programming, the NSOCR DLL and COM interfaces use only the "integer" type for all objects. In other words, HCFG, HOCR, HIMG, HBLK, and all other nonstandard type names that you can find in the documentation or header files are of the "integer" type. In C++, it looks like this:
typedef int HCFG;
typedef int HOCR;
typedef int HIMG;
typedef int HBLK;
typedef int HSVR;
typedef int HSCAN;
Standard Unicode, null-terminated strings are used for all strings. In Windows, a character is 2 bytes; in Linux, a character is 4 bytes. The UNICODECHAR type is the standard "wchar_t" type: