Partager via


NdisInitAnsiString (Windows Embedded CE 6.0)

1/6/2010

This function initializes a counted ASCII string.

Syntax

VOID NdisInitAnsiString(
  PNDIS_ANSI_STRING DestinationString,
  PCSTR SourceString
);

Parameters

  • DestinationString
    [in, out] Pointer to a caller-allocated buffer in which this function should store the counted ASCII string.
  • SourceString
    [in] Pointer to a 0-terminated string with which to initialize the counted string.

Return Value

None.

Remarks

The DestinationString parameter is initialized to point to the SourceString parameter. The length and maximum length for the DestinationString are initialized to the length of the string at SourceString. If SourceString is NULL, the length is 0.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisAnsiStringToUnicodeString
NdisFreeString
NdisInitializeString
NdisInitUnicodeString
NdisUnicodeStringToAnsiString