NdisAnsiStringToUnicodeString - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

void NdisAnsiStringToUnicodeString(
  _us,
  _as
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndisansistringtounicodestring)

NdisAnsiStringToUnicodeString macro

Description

The NdisAnsiStringToUnicodeString function converts a given counted ANSI string into a counted Unicode string. The translation conforms to the current system locale information.

Parameters

_us

A pointer to a caller-allocated buffer in which this function should return the converted Unicode string.

_as

A pointer to the ANSI string to be converted.

Remarks

The caller must allocate storage for both the source and destination strings and release these buffers as soon as the strings are no longer needed. The buffer at DestinationString must be at least twice the size of the buffer at SourceString .

See also

ANSI_STRING

DriverEntry of NDIS Protocol Drivers

MiniportInitializeEx

ProtocolBindAdapterEx

RtlInitUnicodeString

RtlUnicodeStringToAnsiString

UNICODE_STRING