Java Code Examples for jcifs.smb.NtStatus#NT_STATUS_INVALID_PARAMETER

The following examples show how to use jcifs.smb.NtStatus#NT_STATUS_INVALID_PARAMETER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Smb2IoctlResponse.java    From jcifs with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * @see jcifs.internal.smb2.ServerMessageBlock2#isErrorResponseStatus()
 */
@Override
protected boolean isErrorResponseStatus () {
    int status = getStatus();
    return status != NtStatus.NT_STATUS_INVALID_PARAMETER
            && ! ( status == NtStatus.NT_STATUS_INVALID_PARAMETER
                    && ( this.ctlCode == Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK || this.ctlCode == Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK_WRITE ) )
            && ! ( status == NtStatus.NT_STATUS_BUFFER_OVERFLOW && ( this.ctlCode == Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE
                    || this.ctlCode == Smb2IoctlRequest.FSCTL_PIPE_PEEK || this.ctlCode == Smb2IoctlRequest.FSCTL_DFS_GET_REFERRALS ) )
            && super.isErrorResponseStatus();
}
 
Example 2
Source File: Smb2IoctlResponse.java    From jcifs-ng with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * @see jcifs.internal.smb2.ServerMessageBlock2#isErrorResponseStatus()
 */
@Override
protected boolean isErrorResponseStatus () {
    int status = getStatus();
    return status != NtStatus.NT_STATUS_INVALID_PARAMETER
            && ! ( status == NtStatus.NT_STATUS_INVALID_PARAMETER
                    && ( this.ctlCode == Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK || this.ctlCode == Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK_WRITE ) )
            && ! ( status == NtStatus.NT_STATUS_BUFFER_OVERFLOW && ( this.ctlCode == Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE
                    || this.ctlCode == Smb2IoctlRequest.FSCTL_PIPE_PEEK || this.ctlCode == Smb2IoctlRequest.FSCTL_DFS_GET_REFERRALS ) )
            && super.isErrorResponseStatus();
}