Partager via


NdisUnicodeStringToAnsiString (Compact 2013)

3/26/2014

This function converts a specified counted Unicode string into a counted ASCII string. The translation complies with the current system locale information.

Syntax

NDIS_STATUS NdisUnicodeStringToAnsiString(
  PNDIS_ANSI_STRING DestinationString,
  PNDIS_STRING SourceString
);

Parameters

  • DestinationString
    [in, out] Pointer to a caller-allocated buffer in which this function should return the converted ASCII string.
  • SourceString
    [out] Points to the Unicode string to be converted.

Return Value

NDIS_STATUS_SUCCESS indicates success. Otherwise, the contents of the buffer at DestinationString are unaffected.

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 two times the size of that at DestinationString.

Requirements

Header

ndis.h

See Also

Reference

NDIS String Interface
DriverEntry of NDIS Protocol Drivers
MiniportInitializeEx
NdisAnsiStringToUnicodeString
NdisInitAnsiString
NdisInitializeString
NdisInitUnicodeString
ProtocolBindAdapterEx