Sun Java System Web Server 7.0 NSAPI Developer's Guide

Returns

The number of bytes actually read (between 1 and sz) if the operation is successful, or the constant IO_EOF or IO_ERROR for end of file or error.