HFILEERROR
HFILEERROR is a sentinel value used in legacy file I/O APIs that operate on an HFILE handle. It signals that a function attempting to return an HFILE has failed. In most documentation and code, this value is defined as an invalid handle, typically represented as -1, and cast to the HFILE type.
In the OS/2 and DOS high-level file I/O libraries, many operations such as opening, reading, writing, or
HFILE handles and the HFILE_ERROR sentinel are part of legacy 16-bit and early 32-bit environments. They were