KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > knowgate > jcifs > smb > NtStatus


1 /* jcifs smb client library in Java
2  * Copyright (C) 2004 "Michael B. Allen" <jcifs at samba dot org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * 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 NtStatus {
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 NT_STATUS_OK = 0x00000000;
28     public static final int NT_STATUS_UNSUCCESSFUL = 0xC0000001;
29     public static final int NT_STATUS_NOT_IMPLEMENTED = 0xC0000002;
30     public static final int NT_STATUS_INVALID_INFO_CLASS = 0xC0000003;
31     public static final int NT_STATUS_ACCESS_VIOLATION = 0xC0000005;
32     public static final int NT_STATUS_INVALID_HANDLE = 0xC0000008;
33     public static final int NT_STATUS_NO_SUCH_FILE = 0xC000000f;
34     public static final int NT_STATUS_ACCESS_DENIED = 0xC0000022;
35     public static final int NT_STATUS_OBJECT_NAME_INVALID = 0xC0000033;
36     public static final int NT_STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034;
37     public static final int NT_STATUS_OBJECT_NAME_COLLISION = 0xC0000035;
38     public static final int NT_STATUS_PORT_DISCONNECTED = 0xC0000037;
39     public static final int NT_STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003a;
40     public static final int NT_STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003b;
41     public static final int NT_STATUS_SHARING_VIOLATION = 0xC0000043;
42     public static final int NT_STATUS_DELETE_PENDING = 0xC0000056;
43     public static final int NT_STATUS_NO_SUCH_USER = 0xC0000064;
44     public static final int NT_STATUS_WRONG_PASSWORD = 0xC000006a;
45     public static final int NT_STATUS_LOGON_FAILURE = 0xC000006d;
46     public static final int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
47     public static final int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
48     public static final int NT_STATUS_INVALID_WORKSTATION = 0xC0000070;
49     public static final int NT_STATUS_PASSWORD_EXPIRED = 0xC0000071;
50     public static final int NT_STATUS_ACCOUNT_DISABLED = 0xC0000072;
51     public static final int NT_STATUS_INSTANCE_NOT_AVAILABLE = 0xC00000ab;
52     public static final int NT_STATUS_PIPE_NOT_AVAILABLE = 0xC00000ac;
53     public static final int NT_STATUS_INVALID_PIPE_STATE = 0xC00000ad;
54     public static final int NT_STATUS_PIPE_BUSY = 0xC00000ae;
55     public static final int NT_STATUS_PIPE_DISCONNECTED = 0xC00000b0;
56     public static final int NT_STATUS_PIPE_CLOSING = 0xC00000b1;
57     public static final int NT_STATUS_PIPE_LISTENING = 0xC00000b3;
58     public static final int NT_STATUS_FILE_IS_A_DIRECTORY = 0xC00000ba;
59     public static final int NT_STATUS_BAD_NETWORK_NAME = 0xC00000cc;
60     public static final int NT_STATUS_NOT_A_DIRECTORY = 0xC0000103;
61     public static final int NT_STATUS_CANNOT_DELETE = 0xC0000121;
62     public static final int NT_STATUS_PIPE_BROKEN = 0xC000014b;
63     public static final int NT_STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015b;
64     public static final int NT_STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234;
65     public static final int NT_STATUS_PATH_NOT_COVERED = 0xC0000257;
66
67     static final int[] NT_STATUS_CODES = {
68         NT_STATUS_OK,
69         NT_STATUS_UNSUCCESSFUL,
70         NT_STATUS_NOT_IMPLEMENTED,
71         NT_STATUS_INVALID_INFO_CLASS,
72         NT_STATUS_ACCESS_VIOLATION,
73         NT_STATUS_INVALID_HANDLE,
74         NT_STATUS_NO_SUCH_FILE,
75         NT_STATUS_ACCESS_DENIED,
76         NT_STATUS_OBJECT_NAME_INVALID,
77         NT_STATUS_OBJECT_NAME_NOT_FOUND,
78         NT_STATUS_OBJECT_NAME_COLLISION,
79         NT_STATUS_PORT_DISCONNECTED,
80         NT_STATUS_OBJECT_PATH_NOT_FOUND,
81         NT_STATUS_OBJECT_PATH_SYNTAX_BAD,
82         NT_STATUS_SHARING_VIOLATION,
83         NT_STATUS_DELETE_PENDING,
84         NT_STATUS_NO_SUCH_USER,
85         NT_STATUS_WRONG_PASSWORD,
86         NT_STATUS_LOGON_FAILURE,
87         NT_STATUS_ACCOUNT_RESTRICTION,
88         NT_STATUS_INVALID_LOGON_HOURS,
89         NT_STATUS_INVALID_WORKSTATION,
90         NT_STATUS_PASSWORD_EXPIRED,
91         NT_STATUS_ACCOUNT_DISABLED,
92         NT_STATUS_INSTANCE_NOT_AVAILABLE,
93         NT_STATUS_PIPE_NOT_AVAILABLE,
94         NT_STATUS_INVALID_PIPE_STATE,
95         NT_STATUS_PIPE_BUSY,
96         NT_STATUS_PIPE_DISCONNECTED,
97         NT_STATUS_PIPE_CLOSING,
98         NT_STATUS_PIPE_LISTENING,
99         NT_STATUS_FILE_IS_A_DIRECTORY,
100         NT_STATUS_BAD_NETWORK_NAME,
101         NT_STATUS_NOT_A_DIRECTORY,
102         NT_STATUS_CANNOT_DELETE,
103         NT_STATUS_PIPE_BROKEN,
104         NT_STATUS_LOGON_TYPE_NOT_GRANTED,
105         NT_STATUS_ACCOUNT_LOCKED_OUT,
106         NT_STATUS_PATH_NOT_COVERED,
107     };
108
109     static final String JavaDoc[] NT_STATUS_MESSAGES = {
110         "The operation completed successfully.",
111         "A device attached to the system is not functioning.",
112         "Incorrect function.",
113         "The parameter is incorrect.",
114         "Invalid access to memory location.",
115         "The handle is invalid.",
116         "The system cannot find the file specified.",
117         "Access is denied.",
118         "The filename, directory name, or volume label syntax is incorrect.",
119         "The system cannot find the file specified.",
120         "Cannot create a file when that file already exists.",
121         "The handle is invalid.",
122         "The system cannot find the path specified.",
123         "The specified path is invalid.",
124         "The process cannot access the file because it is being used by another process.",
125         "Access is denied.",
126         "The specified user does not exist.",
127         "The specified network password is not correct.",
128         "Logon failure: unknown user name or bad password.",
129         "Logon failure: user account restriction.",
130         "Logon failure: account logon time restriction violation.",
131         "Logon failure: user not allowed to log on to this computer.",
132         "Logon failure: the specified account password has expired.",
133         "Logon failure: account currently disabled.",
134         "All pipe instances are busy.",
135         "All pipe instances are busy.",
136         "The pipe state is invalid.",
137         "All pipe instances are busy.",
138         "No process is on the other end of the pipe.",
139         "The pipe is being closed.",
140         "Waiting for a process to open the other end of the pipe.",
141         "Access is denied.",
142         "The network name cannot be found.",
143         "The directory name is invalid.",
144         "Access is denied.",
145         "The pipe has been ended.",
146         "Logon failure: the user has not been granted the requested logon type at this computer.",
147         "The referenced account is currently locked out and may not be logged on to.",
148         "The remote system is not reachable by the transport.",
149     };
150 }
151
152
Popular Tags