2.3 Information Levels

The Remote Administration Protocol supports the concept of an information level (or level of detail) required for a particular response. An information level is an unsigned 16-bit integer. A Remote Administration Protocol client requests a particular information level in a request, and the server responds with a structure in the Data field of the response corresponding to that information level. Numerically higher information levels provide more detailed information than lower information levels for a particular request/response pair. The following table specifies the requests, the supported information level for each request, and the response structures returned for this protocol.

 Command

 Information level

 Response structure

NetServerGetInfo

0x0000

NetServerInfo0

0x0001

NetServerInfo1

NetServerEnum2

0x0000

NetServerInfo0

0x0001

NetServerInfo1

NetServerEnum3

0x0000

NetServerInfo0

0x0001

NetServerInfo1

NetShareEnum

0x0000

NetShareInfo0

0x0001

NetShareInfo1

0x0002

NetShareInfo2

NetShareGetInfo

0x0000

NetShareInfo0

0x0001

NetShareInfo1

0x0002

NetShareInfo2

NetPrintQEnum

0x0000

PrintQueue0

0x0001

PrintQueue1

0x0002

PrintQueue1, PrintJobInfo1

0x0003

PrintQueue3

0x0004

PrintQueue3, PrintJobInfo2

0x0005

PrintQueue5

NetPrintQGetInfo

0x0000

PrintQueue0

0x0001

PrintQueue1

0x0002

PrintQueue1, PrintJobInfo1

0x0003

PrintQueue3

0x0004

PrintQueue3, PrintJobInfo2

0x0005

PrintQueue5

NetPrintJobSetInfo

0x0001, 0x0003

NetPrintJobGetInfo

0x0000

PrintJobInfo0

0x0001

PrintJobInfo1

0x0002

PrintJobInfo2

0x0003

PrintJobInfo3

NetUserGetInfo

0x0000

NetUserInfo0

0x0001

NetUserInfo1

0x0002

NetUserInfo2

0x000A

NetUserInfo10

0x000B

NetUserInfo11

NetWkstaGetInfo

0x000A

NetWkstaInfo10

NetWkstaUserLogon

0x0001

NetWkstaUserLogonResponseData

NetWkstaUserLogoff

0x0001

NetWkstaUserLogoffResponseData