NTSTATUS
RtlAnsiStringToUnicodeString(
IN OUT PUNICODE_STRING DestinationString, /* optional */
IN PANSI_STRING SourceString,
IN BOOLEAN AllocateDestinationString
);
RtlAnsiStringToUnicodeString converts the given ANSI source string into a Unicode string. The translation conforms to the current system locale information.
If the conversion succeeds, RtlAnsiStringToUnicodeString returns STATUS_SUCCESS. Otherwise, no storage was allocated, nor was the conversion performed.
Only storage for the DestinationString buffer can be allocated by this routine. The caller must supply the buffer for the input SourceString.
Callers of RtlAnsiStringToUnicodeString must be running at IRQL PASSIVE_LEVEL.
RtlAnsiStringToUnicodeSize, RtlFreeUnicodeString, RtlInitAnsiString, RtlUnicodeStringToAnsiString