2.3.1 userParameters

The userParameters attribute is used by Terminal Services to store the configuration data associated with the user connected to a session running on a terminal server. This configuration data is returned in a USERCONFIG structure by the RpcGetConfigData method. Terminal Services does not use UTF-8 or UTF-16 encoding to store the configuration data in the userParameters attribute. Terminal Services stores the user configuration data in the userParameters attribute in the following format:


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

ReservedData (96 bytes)

...

...

Signature

TSPropertyCount

TSPropertyArray (variable)

...

ReservedData (96 bytes): A 96-byte array of reserved data.<147>

Signature (2 bytes): A 2-byte Unicode character. This field is used by Terminal Services to assert the validity of the TSPropertyCount and TSPropertyArray fields. Terminal Services compares the data contained in this field with Unicode character "P". If this field contains the aforementioned character, then the information inside the TSPropertyArray and TSPropertyCount fields is considered valid. If it contains a different value, then all information inside the TSPropertyCount and TSPropertyArray fields is considered invalid.

TSPropertyCount (2 bytes): A 2-byte unsigned integer indicating the number of elements in TSPropertyArray.

TSPropertyArray (variable): A variable-length array of TSProperty structures. The number of elements in this array is specified by the field TSPropertyCount.