次の方法で共有


2.2.10.1.1.2 Logon Info Version 2 (TS_LOGON_INFO_VERSION_2)

TS_LOGON_INFO_VERSION_2 is a variable-length structure that contains logon information intended for the client.


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

Version

Size

...

SessionId

...

cbDomain

...

cbUserName

...

Pad (558 bytes)

...

...

Domain (variable)

...

UserName (variable)

...

Version (2 bytes): A 16-bit, unsigned integer. The logon version.

Value

Meaning

SAVE_SESSION_PDU_VERSION_ONE

0x0001

Version 1

Size (4 bytes): A 32-bit, unsigned integer. The total size in bytes of this structure, excluding the Domain and UserName variable-length fields.

SessionId (4 bytes): A 32-bit, unsigned integer. The ID of the session on the remote server according to the server.

cbDomain (4 bytes): A 32-bit, unsigned integer. The size in bytes of the Domain field (including the mandatory null terminator).

cbUserName (4 bytes): A 32-bit, unsigned integer. The size in bytes of the UserName field (including the mandatory null terminator).

Pad (558 bytes): 558 bytes. Padding. Values in this field MUST be ignored.

Domain (variable): Variable-length null-terminated Unicode string containing the name of the domain to which the user is logged on. The size of this field in bytes is given by the cbDomain field.

UserName (variable): Variable-length null-terminated Unicode string containing the user name which was used to log on. The size of this field in bytes is given by the cbUserName field.