2.2.2.16.1.1 NT6_TS_UNICODE_STRING

The NT6_TS_UNICODE_STRING structure contains a Unicode string.

 typedef struct _NT6_TS_UNICODE_STRING {
     USHORT Length;
     USHORT MaximumLength;
 #ifdef __midl
     [size_is(MaximumLength / 2),length_is(Length / 2)]PWSTR  Buffer;
 #else
     PWSTR  Buffer;
 #endif
 } NT6_TS_UNICODE_STRING;

Length: The actual length of the string currently stored in Buffer, in bytes.

MaximumLength: The maximum length of the string that could be stored in Buffer, in bytes.

Buffer: A wide character string that MUST NOT be followed by the terminating NULL character.