01: /* jcifs smb client library in Java
02: * Copyright (C) 2004 "Michael B. Allen" <jcifs at samba dot org>
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package com.knowgate.jcifs.smb;
20:
21: public interface WinError {
22:
23: /* Don't bother to edit this. Everthing within the interface
24: * block is automatically generated from the ntstatus package.
25: */
26:
27: public static final int ERROR_SUCCESS = 0;
28: public static final int ERROR_REQ_NOT_ACCEP = 71;
29: public static final int ERROR_BAD_PIPE = 230;
30: public static final int ERROR_PIPE_BUSY = 231;
31: public static final int ERROR_NO_DATA = 232;
32: public static final int ERROR_PIPE_NOT_CONNECTED = 233;
33: public static final int ERROR_MORE_DATA = 234;
34: public static final int ERROR_NO_BROWSER_SERVERS_FOUND = 6118;
35:
36: static final int[] WINERR_CODES = { ERROR_SUCCESS,
37: ERROR_REQ_NOT_ACCEP, ERROR_BAD_PIPE, ERROR_PIPE_BUSY,
38: ERROR_NO_DATA, ERROR_PIPE_NOT_CONNECTED, ERROR_MORE_DATA,
39: ERROR_NO_BROWSER_SERVERS_FOUND };
40:
41: static final String[] WINERR_MESSAGES = {
42: "The operation completed successfully.",
43: "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.",
44: "The pipe state is invalid.",
45: "All pipe instances are busy.",
46: "The pipe is being closed.",
47: "No process is on the other end of the pipe.",
48: "More data is available.",
49: "The list of servers for this workgroup is not currently available." };
50: }
|