Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 38 for NTSTATUS (0.19 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb1/smb1/NtStatus.java

     * of requested operations. The codes follow the Windows NT status code format.
     */
    public interface NtStatus {
    
        /* Don't bother to edit this. Everthing within the interface
         * block is automatically generated from the ntstatus package.
         */
    
        /** The operation completed successfully */
        int NT_STATUS_SUCCESS = 0x00000000;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/NtStatusTest.java

            // Verify important constants exist
            assertTrue(NtStatus.NT_STATUS_SUCCESS == 0x00000000);
            assertTrue(NtStatus.NT_STATUS_ACCESS_DENIED != 0);
            assertTrue(NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND != 0);
            assertTrue(NtStatus.NT_STATUS_SHARING_VIOLATION != 0);
            assertTrue(NtStatus.NT_STATUS_INVALID_PARAMETER != 0);
            assertTrue(NtStatus.NT_STATUS_LOGON_FAILURE != 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbExceptionTest.java

        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND,
                NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various NT status codes")
        void testVariousNTStatusCodes(int ntStatus) {
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/DosErrorTest.java

        @DisplayName("Happy path: known DOS codes map to expected NTSTATUS")
        void mapsKnownDosCodesToNtStatus(int dosCode, int expectedNtStatus) {
            // Act
            int actual = findNtStatusOrMinusOne(dosCode);
    
            // Assert
            assertEquals(expectedNtStatus, actual, "Mapping must match table entry");
        }
    
        @Test
        @DisplayName("Edge: zero DOS code maps to zero NTSTATUS")
        void zeroCodeMapsToZero() {
            // Act
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            assertTrue(ex.getMessage().contains("Did not receive response"));
        }
    
        // If the request is cancelled (NTSTATUS 0xC0000120), return null
        @Test
        @DisplayName("watch() returns null when request cancelled (NTSTATUS 0xC0000120)")
        void watch_sendCancelled_returnsNull() throws Exception {
            when(handle.isValid()).thenReturn(true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
            // In smb1, non-NTSTATUS error codes get mapped to NT_STATUS_UNSUCCESSFUL (0xC0000001)
            assertEquals(0xC0000001, thrown.getNtStatus()); // NT_STATUS_UNSUCCESSFUL
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbException.java

     * <p>
     * The jCIFS client maps DOS error codes to NTSTATUS codes. This means that
     * the user may receive a different error from a legacy server than that of
     * a newer variant such as Windows NT and above. If you should encounter
     * such a case, please report it to jcifs at samba dot org and we will
     * change the mapping.
     */
    
    public class SmbException extends CIFSException implements NtStatus, DosError, WinError {
    
        /**
         *
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/smb1/DosError.java

                        { 0x08bf0002, 0xC0000193 }, { 0x08c00002, 0xC0000070 }, { 0x08c10002, 0xC000006f }, { 0x08c20002, 0xC0000071 }, };
    
        /* These aren't really used by jCIFS -- the map above is used
         * to immediately map to NTSTATUS codes.
         */
        /**
         * Human-readable error messages corresponding to DOS error codes.
         * Array of descriptive strings for each DOS error condition.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/DosError.java

         * Provides descriptive text for each error condition.
         */
        /*
         * These aren't really used by jCIFS--
         * the map above is used to immediately
         * map to NTSTATUS codes.
         */
        /**
         * Human-readable error messages corresponding to DOS error codes.
         * Array of descriptive strings for each DOS error condition.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/WinError.java

     */
    public interface WinError {
    
        /*
         * Don't bother to edit this. Everything within the interface
         * block is automatically generated from the ntstatus package.
         */
    
        /** The operation completed successfully */
        int ERROR_SUCCESS = 0;
        /** Access is denied */
        int ERROR_ACCESS_DENIED = 5;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top