NdisUnicodeStringToAnsiString macro (ndis.h)

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

Syntax

void NdisUnicodeStringToAnsiString(
   _as,
   _us
);

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.

Return value

None

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 .

Requirements

Requirement Value
Minimum supported client Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlUnicodeStringToAnsiString instead.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Miscellaneous_Function(ndis)

See also

ANSI_STRING

DriverEntry of NDIS Protocol Drivers

MiniportInitializeEx

ProtocolBindAdapterEx

RtlAnsiStringToUnicodeString

RtlInitUnicodeString

UNICODE_STRING