Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide

Returns

A positive number indicates the number of bytes successfully written, including the headers, file contents, and trailers. A negative value indicates an error.