Enum NtStatus

  • All Implemented Interfaces:
    EnumWithValue<NtStatus>, java.io.Serializable, java.lang.Comparable<NtStatus>

    public enum NtStatus
    extends java.lang.Enum<NtStatus>
    implements EnumWithValue<NtStatus>
    [MS-ERREF].pdf 2.3.1 NTSTATUS values

    Subset of the possible values which are useful for SMB2 communication

    • Enum Constant Detail

      • STATUS_SUCCESS

        public static final NtStatus STATUS_SUCCESS
      • STATUS_UNSUCCESSFUL

        public static final NtStatus STATUS_UNSUCCESSFUL
      • STATUS_TIMEOUT

        public static final NtStatus STATUS_TIMEOUT
      • STATUS_PENDING

        public static final NtStatus STATUS_PENDING
      • STATUS_NOTIFY_CLEANUP

        public static final NtStatus STATUS_NOTIFY_CLEANUP
      • STATUS_NOTIFY_ENUM_DIR

        public static final NtStatus STATUS_NOTIFY_ENUM_DIR
      • STATUS_BUFFER_OVERFLOW

        public static final NtStatus STATUS_BUFFER_OVERFLOW
      • STATUS_NO_MORE_FILES

        public static final NtStatus STATUS_NO_MORE_FILES
      • STATUS_STOPPED_ON_SYMLINK

        public static final NtStatus STATUS_STOPPED_ON_SYMLINK
      • STATUS_NOT_IMPLEMENTED

        public static final NtStatus STATUS_NOT_IMPLEMENTED
      • STATUS_INVALID_INFO_CLASS

        public static final NtStatus STATUS_INVALID_INFO_CLASS
      • STATUS_INFO_LENGTH_MISMATCH

        public static final NtStatus STATUS_INFO_LENGTH_MISMATCH
      • STATUS_NO_SUCH_FILE

        public static final NtStatus STATUS_NO_SUCH_FILE
      • STATUS_INVALID_PARAMETER

        public static final NtStatus STATUS_INVALID_PARAMETER
      • STATUS_END_OF_FILE

        public static final NtStatus STATUS_END_OF_FILE
      • STATUS_MORE_PROCESSING_REQUIRED

        public static final NtStatus STATUS_MORE_PROCESSING_REQUIRED
      • STATUS_ACCESS_DENIED

        public static final NtStatus STATUS_ACCESS_DENIED
      • STATUS_BUFFER_TOO_SMALL

        public static final NtStatus STATUS_BUFFER_TOO_SMALL
      • STATUS_OBJECT_NAME_INVALID

        public static final NtStatus STATUS_OBJECT_NAME_INVALID
      • STATUS_OBJECT_NAME_NOT_FOUND

        public static final NtStatus STATUS_OBJECT_NAME_NOT_FOUND
      • STATUS_OBJECT_NAME_COLLISION

        public static final NtStatus STATUS_OBJECT_NAME_COLLISION
      • STATUS_OBJECT_PATH_NOT_FOUND

        public static final NtStatus STATUS_OBJECT_PATH_NOT_FOUND
      • STATUS_SHARING_VIOLATION

        public static final NtStatus STATUS_SHARING_VIOLATION
      • STATUS_FILE_LOCK_CONFLICT

        public static final NtStatus STATUS_FILE_LOCK_CONFLICT
      • STATUS_LOCK_NOT_GRANTED

        public static final NtStatus STATUS_LOCK_NOT_GRANTED
      • STATUS_DELETE_PENDING

        public static final NtStatus STATUS_DELETE_PENDING
      • STATUS_PRIVILEGE_NOT_HELD

        public static final NtStatus STATUS_PRIVILEGE_NOT_HELD
      • STATUS_LOGON_FAILURE

        public static final NtStatus STATUS_LOGON_FAILURE
      • STATUS_PASSWORD_EXPIRED

        public static final NtStatus STATUS_PASSWORD_EXPIRED
      • STATUS_ACCOUNT_DISABLED

        public static final NtStatus STATUS_ACCOUNT_DISABLED
      • STATUS_RANGE_NOT_LOCKED

        public static final NtStatus STATUS_RANGE_NOT_LOCKED
      • STATUS_DISK_FULL

        public static final NtStatus STATUS_DISK_FULL
      • STATUS_INSUFFICIENT_RESOURCES

        public static final NtStatus STATUS_INSUFFICIENT_RESOURCES
      • STATUS_PIPE_NOT_AVAILABLE

        public static final NtStatus STATUS_PIPE_NOT_AVAILABLE
      • STATUS_INVALID_PIPE_STATE

        public static final NtStatus STATUS_INVALID_PIPE_STATE
      • STATUS_PIPE_BUSY

        public static final NtStatus STATUS_PIPE_BUSY
      • STATUS_IO_TIMEOUT

        public static final NtStatus STATUS_IO_TIMEOUT
      • STATUS_FILE_IS_A_DIRECTORY

        public static final NtStatus STATUS_FILE_IS_A_DIRECTORY
      • STATUS_NOT_SUPPORTED

        public static final NtStatus STATUS_NOT_SUPPORTED
      • STATUS_BAD_NETWORK_PATH

        public static final NtStatus STATUS_BAD_NETWORK_PATH
      • STATUS_NETWORK_NAME_DELETED

        public static final NtStatus STATUS_NETWORK_NAME_DELETED
      • STATUS_BAD_NETWORK_NAME

        public static final NtStatus STATUS_BAD_NETWORK_NAME
      • STATUS_REQUEST_NOT_ACCEPTED

        public static final NtStatus STATUS_REQUEST_NOT_ACCEPTED
      • STATUS_NET_WRITE_FAULT

        public static final NtStatus STATUS_NET_WRITE_FAULT
      • STATUS_NOT_SAME_DEVICE

        public static final NtStatus STATUS_NOT_SAME_DEVICE
      • STATUS_FILE_RENAMED

        public static final NtStatus STATUS_FILE_RENAMED
      • STATUS_OPLOCK_NOT_GRANTED

        public static final NtStatus STATUS_OPLOCK_NOT_GRANTED
      • STATUS_INTERNAL_ERROR

        public static final NtStatus STATUS_INTERNAL_ERROR
      • STATUS_UNEXPECTED_IO_ERROR

        public static final NtStatus STATUS_UNEXPECTED_IO_ERROR
      • STATUS_DIRECTORY_NOT_EMPTY

        public static final NtStatus STATUS_DIRECTORY_NOT_EMPTY
      • STATUS_NOT_A_DIRECTORY

        public static final NtStatus STATUS_NOT_A_DIRECTORY
      • STATUS_NAME_TOO_LONG

        public static final NtStatus STATUS_NAME_TOO_LONG
      • STATUS_FILES_OPEN

        public static final NtStatus STATUS_FILES_OPEN
      • STATUS_CONNECTION_IN_USE

        public static final NtStatus STATUS_CONNECTION_IN_USE
      • STATUS_TOO_MANY_OPENED_FILES

        public static final NtStatus STATUS_TOO_MANY_OPENED_FILES
      • STATUS_CANCELLED

        public static final NtStatus STATUS_CANCELLED
      • STATUS_CANNOT_DELETE

        public static final NtStatus STATUS_CANNOT_DELETE
      • STATUS_FILE_DELETED

        public static final NtStatus STATUS_FILE_DELETED
      • STATUS_FILE_CLOSED

        public static final NtStatus STATUS_FILE_CLOSED
      • STATUS_OPEN_FAILED

        public static final NtStatus STATUS_OPEN_FAILED
      • STATUS_LOGON_TYPE_NOT_GRANTED

        public static final NtStatus STATUS_LOGON_TYPE_NOT_GRANTED
      • STATUS_TOO_MANY_SIDS

        public static final NtStatus STATUS_TOO_MANY_SIDS
      • STATUS_USER_SESSION_DELETED

        public static final NtStatus STATUS_USER_SESSION_DELETED
      • STATUS_INSUFF_SERVER_RESOURCES

        public static final NtStatus STATUS_INSUFF_SERVER_RESOURCES
      • STATUS_CONNECTION_DISCONNECTED

        public static final NtStatus STATUS_CONNECTION_DISCONNECTED
      • STATUS_CONNECTION_RESET

        public static final NtStatus STATUS_CONNECTION_RESET
      • STATUS_NOT_FOUND

        public static final NtStatus STATUS_NOT_FOUND
      • STATUS_RETRY

        public static final NtStatus STATUS_RETRY
      • STATUS_PATH_NOT_COVERED

        public static final NtStatus STATUS_PATH_NOT_COVERED
      • STATUS_DFS_UNAVAILABLE

        public static final NtStatus STATUS_DFS_UNAVAILABLE
      • STATUS_VOLUME_DISMOUNTED

        public static final NtStatus STATUS_VOLUME_DISMOUNTED
      • STATUS_IO_REPARSE_TAG_NOT_HANDLED

        public static final NtStatus STATUS_IO_REPARSE_TAG_NOT_HANDLED
      • STATUS_FILE_ENCRYPTED

        public static final NtStatus STATUS_FILE_ENCRYPTED
      • STATUS_NETWORK_SESSION_EXPIRED

        public static final NtStatus STATUS_NETWORK_SESSION_EXPIRED
      • STATUS_OTHER

        public static final NtStatus STATUS_OTHER
    • Field Detail

      • value

        private long value
    • Constructor Detail

      • NtStatus

        private NtStatus​(long val)
    • Method Detail

      • values

        public static NtStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NtStatus c : NtStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NtStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • valueOf

        public static NtStatus valueOf​(long statusCode)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        statusCode - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isSuccess

        public boolean isSuccess()
        Check whether the 'Sev' bits are set to 0x0.
        Returns:
      • isSuccess

        public static boolean isSuccess​(long statusCode)
        Check whether the 'Sev' bits are set to 0x0.
        Returns:
      • isInformational

        public boolean isInformational()
        Check whether the 'Sev' bits are set to 0x01.
        Returns:
      • isWarning

        public boolean isWarning()
        Check whether the 'Sev' bits are set to 0x02.
        Returns:
      • isError

        public boolean isError()
        Check whether the 'Sev' bits are set to 0x03.
        Returns:
      • isError

        public static boolean isError​(long statusCode)
        Check whether the 'Sev' bits are set to 0x03.
        Returns: