NdisUnicodeStringToAnsiString - NtDoc

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

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

NtDoc

No description available.

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

NdisUnicodeStringToAnsiString macro

Description

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

Parameters

_as

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

_us

A pointer to the Unicode 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 SourceString must be at least twice the size of that at DestinationString .

See also

ANSI_STRING

DriverEntry of NDIS Protocol Drivers

MiniportInitializeEx

ProtocolBindAdapterEx

RtlAnsiStringToUnicodeString

RtlInitUnicodeString

UNICODE_STRING