- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 24 for NT_STATUS_SUCCESS (0.07 seconds)
-
src/main/java/jcifs/smb1/smb1/SmbException.java
* negative so it with NT_STATUS_SUCCESS (0) the binary search will not be * performed properly. The effect is that the code at index 1 is never found * (NT_STATUS_UNSUCCESSFUL). So here we factor out NT_STATUS_SUCCESS * as a special case (which it is). */ if (errcode == 0) { return "NT_STATUS_SUCCESS"; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
@Test @DisplayName("Constructor 0 – NT_STATUS_SUCCESS") void testConstructorWithZeroCode() { SmbException ex = new SmbException(0, false); assertEquals("NT_STATUS_SUCCESS", ex.getMessage()); assertEquals(0, ex.getNtStatus()); assertNull(ex.getRootCause(), "root cause should be null for this ctor"); assertEquals("jcifs.smb1.smb1.SmbException: NT_STATUS_SUCCESS", ex.toString()); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java
// Known NT status code - NT_STATUS_UNSUCCESSFUL Arguments.of(0xC0000001, "A device attached to the system is not functioning."), Arguments.of(0x00000000, "NT_STATUS_SUCCESS"), // An error that maps via DOS mapping Arguments.of(0x00000002, SmbException.getMessageByCode(0x00000002)), // Unknown code → hex string (uppercase)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtStatus.java
/* * Don't bother to edit this. Everything within the interface * block is automatically generated from the ntstatus package. */ /** The operation completed successfully */ int NT_STATUS_SUCCESS = 0x00000000; /** The request is pending */ int NT_STATUS_PENDING = 0x00000103; /** A notify change request is being completed and information is being returned */ int NT_STATUS_NOTIFY_ENUM_DIR = 0x0000010C;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 14.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
assertTrue(ex instanceof SmbException, "Should be an SmbException subtype"); // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)"); } // Edge/null/empty: message-only constructor should propagate message and set unsuccessful status @ParameterizedTest
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NtStatus.java
/* 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; /** The requested operation was unsuccessful */ int NT_STATUS_UNSUCCESSFUL = 0xC0000001; /** The requested operation is not implemented */ int NT_STATUS_NOT_IMPLEMENTED = 0xC0000002;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) -
src/main/java/jcifs/smb/SmbException.java
} } // for backward compatibility since this is was different message in the NtStatus.NT_STATUS_CODES than returned // by getMessageByCode errorCodeMessagesTmp.put(0, "NT_STATUS_SUCCESS"); errorCodeMessages = Collections.unmodifiableMap(errorCodeMessagesTmp); dosErrorCodeStatuses = Collections.unmodifiableMap(dosErrorCodeStatusesTmp);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) -
src/test/java/jcifs/smb/NtStatusTest.java
@Test @DisplayName("Should define well-known NT status constants") void testWellKnownStatusConstants() { // Verify important NT status constants are defined assertEquals(0x00000000, NtStatus.NT_STATUS_SUCCESS); assertEquals((int) 0xC0000022L, NtStatus.NT_STATUS_ACCESS_DENIED); assertEquals((int) 0xC0000034L, NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND);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) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
*/ static Stream<Arguments> intErrorCodes() { return Stream.of(Arguments.of(NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_ACCESS_DENIED), Arguments.of(NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_SUCCESS), Arguments.of(0x00001234, NtStatus.NT_STATUS_UNSUCCESSFUL)); } @ParameterizedTest @MethodSource("intErrorCodes")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
Smb2SessionSetupResponse resp = newResponse(); byte[] buf = new byte[256]; int headerStart = 0; buildHeader(buf, headerStart, NtStatus.NT_STATUS_SUCCESS, 0x0001, 0xCAFEBABECAFEF00DL); int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; byte[] blob = new byte[] { 1, 2, 3 }; int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0)