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

Returns

0 if the directory was changed, or -1 if the directory could not be changed.