다음을 통해 공유


2.2.4.61.2 Response

 SMB_Parameters
   {
   UCHAR  WordCount;
   Words
     {
     USHORT Count;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   Bytes
     {
     UCHAR  BufferFormat;
     USHORT DataLength;
     }
   }
            


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

SMB_Parameters

SMB_Data

...

SMB_Parameters (3 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

WordCount

Words

WordCount (1 byte): This field MUST be 0x01.

Words (2 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Count

Count (2 bytes): The server SHOULD set this field to 0x0000, and the client MUST ignore the value of this field. No entries are returned in the response.

SMB_Data (5 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ByteCount

Bytes

...

ByteCount (2 bytes): This field SHOULD<112> be 0x0003.

Bytes (3 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

BufferFormat

DataLength

BufferFormat (1 byte): If sent, this field MUST be 0x05, which indicates that a variable-size block follows.

DataLength (2 bytes): If sent, this field MUST be 0x0000. No DirectoryInformationData records are returned.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

(0x01)

ERRbadpath (0x0003)

STATUS_OBJECT_PATH_NOT_FOUND

(0xC000003A)

STATUS_OBJECT_PATH_SYNTAX_BAD

(0xC000003B)

ENOTDIR

A non-terminal component of the specified path was not a directory OR the path syntax is invalid.

ERRDOS

(0x01)

ERRnoaccess (0x0005)

STATUS_ACCESS_DENIED

(0xC0000022)

EACCES

No file system permission on the specified pathname.

ERRDOS

(0x01)

ERRbadfid (0x0006)

STATUS_INVALID_HANDLE

(0xC0000008)

STATUS_SMB_BAD_FID

(0x00060001)

ENFILE

Attempt to resume a search that was not active on the server.

ERRDOS

(0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

The server is out of resources.

ERRDOS

(0x01)

ERRnofiles (0x0012)

STATUS_NO_MORE_FILES

(0x80000006)

EOF

No more matching files found on the server.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

Invalid SMB request.

ERRSRV

(0x02)

ERRinvtid

(0x0005)

STATUS_SMB_BAD_TID

(0x00050002)

The TID is no longer valid.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID in the header is not valid for this session, or the user identified by the UID does not have sufficient privileges.

ERRHRD (0x03)

ERRdata

(0x0017)

STATUS_CRC_ERROR

(0xC000003F)

EIO

Data I/O error (incorrect CRC on device).