The Net functions return zero on success; a nonzero return code indicates an error. Because the Net functions use RPC, the error definitions include RPC error codes. For more information, see Net Errors.