2.2.4.19.1 Request
-
SMB_Parameters { UCHAR WordCount; Words { USHORT FID; USHORT Mode; LONG Offset; } } SMB_Data { USHORT ByteCount; }
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SMB_Parameters |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
SMB_Data |
SMB_Parameters (9 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1WordCount
Words
...
...
-
WordCount (1 byte): This field MUST be 0x0004.
-
Words (8 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1FID
Mode
Offset
-
FID (2 bytes): The File ID of the open file within which to seek.
-
Mode (2 bytes): The seek mode. Possible values are as follows.
-
-
-
-
Value
-
-
-
Meaning
-
-
-
0x0000
-
-
-
Seek from the start of the file.
-
-
-
0x0001
-
-
-
Seek from the current position.
-
-
-
0x0002
-
-
-
Seek from the end of the file.
-
-
-
The "current position" is the offset specified in a previous seek request, or the offset plus data length specified in a previous read or write request, whichever is most recent. The next successful read, write, or seek command changes the position of the file pointer.
-
-
-
Offset (4 bytes): A 32-bit signed long value indicating the file position, relative to the position indicated in Mode, to which to set the updated file pointer. The value of Offset ranges from -2 gigabytes to +2 gigabytes ((-2**31) to (2**31 -1) bytes).<30>
-
SMB_Data (2 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1ByteCount
-
ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.