KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > 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 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_INVALID_PARAMETER = 0xC000000d;
34     public static final int NT_STATUS_NO_SUCH_DEVICE = 0xC000000e;
35     public static final int NT_STATUS_NO_SUCH_FILE = 0xC000000f;
36     public static final int NT_STATUS_ACCESS_DENIED = 0xC0000022;
37     public static final int NT_STATUS_OBJECT_NAME_INVALID = 0xC0000033;
38     public static final int NT_STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034;
39     public static final int NT_STATUS_OBJECT_NAME_COLLISION = 0xC0000035;
40     public static final int NT_STATUS_PORT_DISCONNECTED = 0xC0000037;
41     public static final int NT_STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003a;
42     public static final int NT_STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003b;
43     public static final int NT_STATUS_SHARING_VIOLATION = 0xC0000043;
44     public static final int NT_STATUS_DELETE_PENDING = 0xC0000056;
45     public static final int NT_STATUS_NO_SUCH_USER = 0xC0000064;
46     public static final int NT_STATUS_WRONG_PASSWORD = 0xC000006a;
47     public static final int NT_STATUS_LOGON_FAILURE = 0xC000006d;
48     public static final int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
49     public static final int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
50     public static final int NT_STATUS_INVALID_WORKSTATION = 0xC0000070;
51     public static final int NT_STATUS_PASSWORD_EXPIRED = 0xC0000071;
52     public static final int NT_STATUS_ACCOUNT_DISABLED = 0xC0000072;
53     public static final int NT_STATUS_INSTANCE_NOT_AVAILABLE = 0xC00000ab;
54     public static final int NT_STATUS_PIPE_NOT_AVAILABLE = 0xC00000ac;
55     public static final int NT_STATUS_INVALID_PIPE_STATE = 0xC00000ad;
56     public static final int NT_STATUS_PIPE_BUSY = 0xC00000ae;
57     public static final int NT_STATUS_PIPE_DISCONNECTED = 0xC00000b0;
58     public static final int NT_STATUS_PIPE_CLOSING = 0xC00000b1;
59     public static final int NT_STATUS_PIPE_LISTENING = 0xC00000b3;
60     public static final int NT_STATUS_FILE_IS_A_DIRECTORY = 0xC00000ba;
61     public static final int NT_STATUS_DUPLICATE_NAME = 0xC00000bd;
62     public static final int NT_STATUS_NETWORK_NAME_DELETED = 0xC00000c9;
63     public static final int NT_STATUS_NETWORK_ACCESS_DENIED = 0xC00000ca;
64     public static final int NT_STATUS_BAD_NETWORK_NAME = 0xC00000cc;
65     public static final int NT_STATUS_NOT_A_DIRECTORY = 0xC0000103;
66     public static final int NT_STATUS_CANNOT_DELETE = 0xC0000121;
67     public static final int NT_STATUS_PIPE_BROKEN = 0xC000014b;
68     public static final int NT_STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015b;
69     public static final int NT_STATUS_TRUSTED_DOMAIN_FAILURE = 0xC000018c;
70     public static final int NT_STATUS_NOT_FOUND = 0xC0000225;
71     public static final int NT_STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234;
72     public static final int NT_STATUS_PATH_NOT_COVERED = 0xC0000257;
73
74     static final int[] NT_STATUS_CODES = {
75         NT_STATUS_OK,
76         NT_STATUS_UNSUCCESSFUL,
77         NT_STATUS_NOT_IMPLEMENTED,
78         NT_STATUS_INVALID_INFO_CLASS,
79         NT_STATUS_ACCESS_VIOLATION,
80         NT_STATUS_INVALID_HANDLE,
81         NT_STATUS_INVALID_PARAMETER,
82         NT_STATUS_NO_SUCH_DEVICE,
83         NT_STATUS_NO_SUCH_FILE,
84         NT_STATUS_ACCESS_DENIED,
85         NT_STATUS_OBJECT_NAME_INVALID,
86         NT_STATUS_OBJECT_NAME_NOT_FOUND,
87         NT_STATUS_OBJECT_NAME_COLLISION,
88         NT_STATUS_PORT_DISCONNECTED,
89         NT_STATUS_OBJECT_PATH_NOT_FOUND,
90         NT_STATUS_OBJECT_PATH_SYNTAX_BAD,
91         NT_STATUS_SHARING_VIOLATION,
92         NT_STATUS_DELETE_PENDING,
93         NT_STATUS_NO_SUCH_USER,
94         NT_STATUS_WRONG_PASSWORD,
95         NT_STATUS_LOGON_FAILURE,
96         NT_STATUS_ACCOUNT_RESTRICTION,
97         NT_STATUS_INVALID_LOGON_HOURS,
98         NT_STATUS_INVALID_WORKSTATION,
99         NT_STATUS_PASSWORD_EXPIRED,
100         NT_STATUS_ACCOUNT_DISABLED,
101         NT_STATUS_INSTANCE_NOT_AVAILABLE,
102         NT_STATUS_PIPE_NOT_AVAILABLE,
103         NT_STATUS_INVALID_PIPE_STATE,
104         NT_STATUS_PIPE_BUSY,
105         NT_STATUS_PIPE_DISCONNECTED,
106         NT_STATUS_PIPE_CLOSING,
107         NT_STATUS_PIPE_LISTENING,
108         NT_STATUS_FILE_IS_A_DIRECTORY,
109         NT_STATUS_DUPLICATE_NAME,
110         NT_STATUS_NETWORK_NAME_DELETED,
111         NT_STATUS_NETWORK_ACCESS_DENIED,
112         NT_STATUS_BAD_NETWORK_NAME,
113         NT_STATUS_NOT_A_DIRECTORY,
114         NT_STATUS_CANNOT_DELETE,
115         NT_STATUS_PIPE_BROKEN,
116         NT_STATUS_LOGON_TYPE_NOT_GRANTED,
117         NT_STATUS_TRUSTED_DOMAIN_FAILURE,
118         NT_STATUS_NOT_FOUND,
119         NT_STATUS_ACCOUNT_LOCKED_OUT,
120         NT_STATUS_PATH_NOT_COVERED,
121     };
122
123     static final String JavaDoc[] NT_STATUS_MESSAGES = {
124         "The operation completed successfully.",
125         "A device attached to the system is not functioning.",
126         "Incorrect function.",
127         "The parameter is incorrect.",
128         "Invalid access to memory location.",
129         "The handle is invalid.",
130         "The parameter is incorrect.",
131         "The system cannot find the file specified.",
132         "The system cannot find the file specified.",
133         "Access is denied.",
134         "The filename, directory name, or volume label syntax is incorrect.",
135         "The system cannot find the file specified.",
136         "Cannot create a file when that file already exists.",
137         "The handle is invalid.",
138         "The system cannot find the path specified.",
139         "The specified path is invalid.",
140         "The process cannot access the file because it is being used by another process.",
141         "Access is denied.",
142         "The specified user does not exist.",
143         "The specified network password is not correct.",
144         "Logon failure: unknown user name or bad password.",
145         "Logon failure: user account restriction.",
146         "Logon failure: account logon time restriction violation.",
147         "Logon failure: user not allowed to log on to this computer.",
148         "Logon failure: the specified account password has expired.",
149         "Logon failure: account currently disabled.",
150         "All pipe instances are busy.",
151         "All pipe instances are busy.",
152         "The pipe state is invalid.",
153         "All pipe instances are busy.",
154         "No process is on the other end of the pipe.",
155         "The pipe is being closed.",
156         "Waiting for a process to open the other end of the pipe.",
157         "Access is denied.",
158         "A duplicate name exists on the network.",
159         "The specified network name is no longer available.",
160         "Network access is denied.",
161         "The network name cannot be found.",
162         "The directory name is invalid.",
163         "Access is denied.",
164         "The pipe has been ended.",
165         "Logon failure: the user has not been granted the requested logon type at this computer.",
166         "The trust relationship between the primary domain and the trusted domain failed.",
167         "NT_STATUS_NOT_FOUND",
168         "The referenced account is currently locked out and may not be logged on to.",
169         "The remote system is not reachable by the transport.",
170     };
171 }
172
173
Popular Tags