2.2.3.1 STRING

The STRING structure holds a counted string encoded in the OEM code page.

This structure has no effect on message processing in any environment.

 typedef struct _STRING {
   unsigned short Length;
   unsigned short MaximumLength;
   [size_is(MaximumLength), length_is(Length)] 
     char* Buffer;
 } STRING,
  *PSTRING;

Length: The length, in bytes, of the string pointed to by the Buffer member, not including the terminating null character (if any).

MaximumLength: This field contains the total number of bytes in the Buffer field.

Buffer: A pointer to the actual string. If Length is greater than 0, this field MUST contain a non-NULL value. If Length is 0, this field MUST be ignored.