typedef struct _STRING { USHORT Length; USHORT MaximumLength; PCHAR Buffer; } STRING *PANSI_STRING;
The STRING structure defines a counted string used for ANSI strings.
The STRING structure is used to pass ANSI strings.
If the string is NULL terminated, Length does not include the trailing NULL.
The MaximumLength is used to indicate the length of Buffer so that if the string is passed to a conversion routine such as RtlUnicodeStringToAnsiString the returned string does not exceed the buffer size.
OEM_STRING, UNICODE_STRING, RtlAnsiStringToUnicodeSize , RtlAnsiStringToUnicodeString, RtlFreeAnsiString, RtlInitAnsiString, RtlUnicodeStringToAnsiString