2.5.6.3.2 NetShareInfo1 Data Structure

The NetShareInfo1 data structure has the following fields.


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

NetworkName (13 bytes)

...

...

...

Pad

Type

RemarkOffsetLow

RemarkOffsetHigh

NetworkName (13 bytes): A 13-character, null-terminated ASCII string that specifies the name of the share. If the name is shorter than 13 bytes, the NetworkName field MUST be filled with null characters up to 13 bytes in length. If the name of the share is longer than 13 bytes, it MUST NOT be included in the enumeration.

Pad (1 byte): Can be set to any arbitrary value when sent, and MUST be ignored on receipt.

Type (2 bytes): A 16-bit unsigned integer that specifies the type of the share. The Type field has the following possible values.

Value

Meaning

0x0000

Disk directory tree

0x0001

Printer queue

0x0002

Communications device

0x0003

Interprocess communication (IPC)

RemarkOffsetLow (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). The string is an optional comment about the share.

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

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