次の方法で共有


2.5.6.1.2 RAP NetShareEnumResponse

The RAPOutParams structure for the NetShareEnum command MUST be as follows.<15>


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

EntriesReturned

EntriesAvailable

EntriesReturned (2 bytes): A 16-bit unsigned integer that represents the number of fixed size NetShareInfo0, NetShareInfo1, or NetShareInfo2 data structures returned in the Data field of the SMB_COM_TRANSACTION response to the Remote Administration Protocol NetShareEnumRequest.

EntriesAvailable (2 bytes): A 16-bit unsigned integer that represents the number of shares on the server.

For error conditions and error responses, see section 3.2.5.1.

If the InfoLevel specified in the NetShareEnumRequest is 0, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned NetShareInfo0 structures.

If the InfoLevel specified in the NetShareEnumRequest is 1, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned NetShareInfo1 structures.

If the InfoLevel specified in the NetShareEnumRequest is 2, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned NetShareInfo2 structures.