Partager via


2.5.5.4.2 NetServerInfo1 Data Structure

The NetServerInfo1 structure is returned by the server in the Data field of the SMB_COM_TRANSACTION response that corresponds to a NetServerEnum2 command, a NetServerEnum3 command, or a NetServerGetInfo Command when the InfoLevel parameter to the command is 0x0001.


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

ServerName (16 bytes)

...

...

MajorVersion

MinorVersion

ServerType

...

ServerCommentLow

ServerCommentHigh

ServerName (16 bytes): A 16-character null-terminated ASCII string that MUST contain the NetBIOS name of the server (as specified in [RFC1001] section 5.2). The ServerName field MUST be padded to 16 bytes with null characters.

MajorVersion (1 byte): An 8-bit unsigned integer that represents the major version of the specified server.<12>

MinorVersion (1 byte): An 8-bit unsigned integer that represents the minor version of the specified server.<13>

ServerType (4 bytes): A 32-bit unsigned integer that specifies the type of software the computer is running. This field has the same syntax and semantics as the ServerType specified in section 2.5.5.2.1.

ServerCommentLow (2 bytes): A 16-bit unsigned integer that represents the offset, in bytes, from the start of the response to a null-terminated ASCII string allocated in the response block (see section 2.5.11) that MUST specify the purpose of the server.

Before using this value, the Remote Administration Protocol client MUST subtract the Converter field specified in section 2.5.2 from the ServerCommentLow value and then use that result as the offset within the response.

ServerCommentHigh (2 bytes): Unused. Can be set to any arbitrary value when sent, and MUST be ignored on receipt.