- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 54 for NTSTATUS (0.04 seconds)
-
src/main/java/jcifs/smb/NtStatus.java
* of requested operations. The codes follow the Windows NT status code format. */ public interface NtStatus { /* * 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 */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/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) -
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
@DisplayName("Known DOS error is correctly mapped to NTSTATUS") void testKnownMapping() { final int dosErr = 0x00010001; final int expectedNt = 0xc0000002; Optional<Integer> actual = findNtStatus(dosErr); assertTrue(actual.isPresent(), String.format("Mapping for %08x should exist", dosErr)); assertEquals(expectedNt, actual.get(), String.format("NTSTATUS for %08x should be %08x", dosErr, expectedNt)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3K bytes - Click Count (0) -
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) -
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); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbOperationException.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.5K bytes - Click Count (0) -
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() { // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbException.java
* <p> * The jCIFS client maps DOS error codes to NTSTATUS codes. This means that * the user may recieve a different error from a legacy server than that of * a newer varient 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 IOException implements NtStatus, DosError, WinError {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/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) -
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)