共用方式為


2.2.4.18.1 Request

 SMB_Parameters
   {
   UCHAR  WordCount;
 SMB_Data
   {
   USHORT ByteCount;
   }

SMB_Header:

PIDLow (2 bytes): The lowest-order two bytes of the process ID, as an unsigned short.

PIDHigh (2 bytes): If 32-bit PID values are in use, this field MUST contain the two highest-order bytes. If the client is using 16-bit PIDs, then this field MUST be zero.

The server MUST calculate the actual PID by multiplying the value of SMB_Header.PIDHigh by 2^16 and adding the result to the value of SMB_Header.PIDLow.

In Core Protocol, open files (identified by FIDs) and any locks on those files were considered "owned" by the client process. Starting with the LAN Manager 1.0 dialect, FIDs are no longer associated with PIDs. The client MAY allow open file handles to be shared between multiple processes. CIFS clients SHOULD NOT send SMB_COM_PROCESS_EXIT requests. Instead, CIFS clients SHOULD perform all process cleanup operations, sending individual file close operations as needed.


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 (1 byte):


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

WordCount (1 byte): MUST be 0x00. No parameters are sent.

SMB_Data (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

ByteCount

ByteCount (2 bytes): MUST be 0x0000. No data bytes are sent.