RtlInitAnsiString
The RtlInitAnsiString routine initializes a counted ANSI string.
VOID RtlInitAnsiString(
IN OUT PANSI_STRING DestinationString,
IN PCSZ SourceString
);
Parameters
DestinationString
Pointer to the ANSI_STRING structure to be initialized.
SourceString
Pointer to a null-terminated string with which to initialize the counted string.
Return Value
None
Comments
The Buffer member of DestinationString is initialized to point to the SourceString. The length and maximum length for the DestinationString are initialized to the length of the SourceString. If SourceString is NULL, the lengths are zero.