001: /* jcifs smb client library in Java
002: * Copyright (C) 2004 "Michael B. Allen" <jcifs at samba dot org>
003: *
004: * This library is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License as published by the Free Software Foundation; either
007: * version 2.1 of the License, or (at your option) any later version.
008: *
009: * This library is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public
015: * License along with this library; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017: */
018:
019: package com.knowgate.jcifs.smb;
020:
021: public interface NtStatus {
022:
023: /* Don't bother to edit this. Everthing within the interface
024: * block is automatically generated from the ntstatus package.
025: */
026:
027: public static final int NT_STATUS_OK = 0x00000000;
028: public static final int NT_STATUS_UNSUCCESSFUL = 0xC0000001;
029: public static final int NT_STATUS_NOT_IMPLEMENTED = 0xC0000002;
030: public static final int NT_STATUS_INVALID_INFO_CLASS = 0xC0000003;
031: public static final int NT_STATUS_ACCESS_VIOLATION = 0xC0000005;
032: public static final int NT_STATUS_INVALID_HANDLE = 0xC0000008;
033: public static final int NT_STATUS_NO_SUCH_FILE = 0xC000000f;
034: public static final int NT_STATUS_ACCESS_DENIED = 0xC0000022;
035: public static final int NT_STATUS_OBJECT_NAME_INVALID = 0xC0000033;
036: public static final int NT_STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034;
037: public static final int NT_STATUS_OBJECT_NAME_COLLISION = 0xC0000035;
038: public static final int NT_STATUS_PORT_DISCONNECTED = 0xC0000037;
039: public static final int NT_STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003a;
040: public static final int NT_STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003b;
041: public static final int NT_STATUS_SHARING_VIOLATION = 0xC0000043;
042: public static final int NT_STATUS_DELETE_PENDING = 0xC0000056;
043: public static final int NT_STATUS_NO_SUCH_USER = 0xC0000064;
044: public static final int NT_STATUS_WRONG_PASSWORD = 0xC000006a;
045: public static final int NT_STATUS_LOGON_FAILURE = 0xC000006d;
046: public static final int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
047: public static final int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
048: public static final int NT_STATUS_INVALID_WORKSTATION = 0xC0000070;
049: public static final int NT_STATUS_PASSWORD_EXPIRED = 0xC0000071;
050: public static final int NT_STATUS_ACCOUNT_DISABLED = 0xC0000072;
051: public static final int NT_STATUS_INSTANCE_NOT_AVAILABLE = 0xC00000ab;
052: public static final int NT_STATUS_PIPE_NOT_AVAILABLE = 0xC00000ac;
053: public static final int NT_STATUS_INVALID_PIPE_STATE = 0xC00000ad;
054: public static final int NT_STATUS_PIPE_BUSY = 0xC00000ae;
055: public static final int NT_STATUS_PIPE_DISCONNECTED = 0xC00000b0;
056: public static final int NT_STATUS_PIPE_CLOSING = 0xC00000b1;
057: public static final int NT_STATUS_PIPE_LISTENING = 0xC00000b3;
058: public static final int NT_STATUS_FILE_IS_A_DIRECTORY = 0xC00000ba;
059: public static final int NT_STATUS_BAD_NETWORK_NAME = 0xC00000cc;
060: public static final int NT_STATUS_NOT_A_DIRECTORY = 0xC0000103;
061: public static final int NT_STATUS_CANNOT_DELETE = 0xC0000121;
062: public static final int NT_STATUS_PIPE_BROKEN = 0xC000014b;
063: public static final int NT_STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015b;
064: public static final int NT_STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234;
065: public static final int NT_STATUS_PATH_NOT_COVERED = 0xC0000257;
066:
067: static final int[] NT_STATUS_CODES = { NT_STATUS_OK,
068: NT_STATUS_UNSUCCESSFUL, NT_STATUS_NOT_IMPLEMENTED,
069: NT_STATUS_INVALID_INFO_CLASS, NT_STATUS_ACCESS_VIOLATION,
070: NT_STATUS_INVALID_HANDLE, NT_STATUS_NO_SUCH_FILE,
071: NT_STATUS_ACCESS_DENIED, NT_STATUS_OBJECT_NAME_INVALID,
072: NT_STATUS_OBJECT_NAME_NOT_FOUND,
073: NT_STATUS_OBJECT_NAME_COLLISION,
074: NT_STATUS_PORT_DISCONNECTED,
075: NT_STATUS_OBJECT_PATH_NOT_FOUND,
076: NT_STATUS_OBJECT_PATH_SYNTAX_BAD,
077: NT_STATUS_SHARING_VIOLATION, NT_STATUS_DELETE_PENDING,
078: NT_STATUS_NO_SUCH_USER, NT_STATUS_WRONG_PASSWORD,
079: NT_STATUS_LOGON_FAILURE, NT_STATUS_ACCOUNT_RESTRICTION,
080: NT_STATUS_INVALID_LOGON_HOURS,
081: NT_STATUS_INVALID_WORKSTATION, NT_STATUS_PASSWORD_EXPIRED,
082: NT_STATUS_ACCOUNT_DISABLED,
083: NT_STATUS_INSTANCE_NOT_AVAILABLE,
084: NT_STATUS_PIPE_NOT_AVAILABLE, NT_STATUS_INVALID_PIPE_STATE,
085: NT_STATUS_PIPE_BUSY, NT_STATUS_PIPE_DISCONNECTED,
086: NT_STATUS_PIPE_CLOSING, NT_STATUS_PIPE_LISTENING,
087: NT_STATUS_FILE_IS_A_DIRECTORY, NT_STATUS_BAD_NETWORK_NAME,
088: NT_STATUS_NOT_A_DIRECTORY, NT_STATUS_CANNOT_DELETE,
089: NT_STATUS_PIPE_BROKEN, NT_STATUS_LOGON_TYPE_NOT_GRANTED,
090: NT_STATUS_ACCOUNT_LOCKED_OUT, NT_STATUS_PATH_NOT_COVERED, };
091:
092: static final String[] NT_STATUS_MESSAGES = {
093: "The operation completed successfully.",
094: "A device attached to the system is not functioning.",
095: "Incorrect function.",
096: "The parameter is incorrect.",
097: "Invalid access to memory location.",
098: "The handle is invalid.",
099: "The system cannot find the file specified.",
100: "Access is denied.",
101: "The filename, directory name, or volume label syntax is incorrect.",
102: "The system cannot find the file specified.",
103: "Cannot create a file when that file already exists.",
104: "The handle is invalid.",
105: "The system cannot find the path specified.",
106: "The specified path is invalid.",
107: "The process cannot access the file because it is being used by another process.",
108: "Access is denied.",
109: "The specified user does not exist.",
110: "The specified network password is not correct.",
111: "Logon failure: unknown user name or bad password.",
112: "Logon failure: user account restriction.",
113: "Logon failure: account logon time restriction violation.",
114: "Logon failure: user not allowed to log on to this computer.",
115: "Logon failure: the specified account password has expired.",
116: "Logon failure: account currently disabled.",
117: "All pipe instances are busy.",
118: "All pipe instances are busy.",
119: "The pipe state is invalid.",
120: "All pipe instances are busy.",
121: "No process is on the other end of the pipe.",
122: "The pipe is being closed.",
123: "Waiting for a process to open the other end of the pipe.",
124: "Access is denied.",
125: "The network name cannot be found.",
126: "The directory name is invalid.",
127: "Access is denied.",
128: "The pipe has been ended.",
129: "Logon failure: the user has not been granted the requested logon type at this computer.",
130: "The referenced account is currently locked out and may not be logged on to.",
131: "The remote system is not reachable by the transport.", };
132: }
|