Sun Java System Web Server 6.1 SP11 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.