Share via


NdisInitializeString (Windows CE 5.0)

Send Feedback

This function allocates storage for and initializes a counted string in the system-default character set.

VOIDNdisInitializeString(PNDIS_STRINGDestinationString,PUCHARSourceString);

Parameters

  • DestinationString
    [in, out] Specifies NULL when this function is called; on return from this function, points to a buffer containing an initialized counted string.
  • SourceString
    [in] Pointer to a 0-terminated string with which to initialize the counted string.

Return Values

None.

Remarks

This function sets the Length and MaximumLength for the destination string and terminates the destination string with 0.

If SourceString is NULL, the lengths are set to 0.

The buffer allocated by this function should be released promptly with the NdisFreeString function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.
Link Library: Ndis.lib

See Also

NdisAnsiStringToUnicodeString | NdisEqualString | NdisFreeString | NdisInitAnsiString | NdisInitUnicodeString | NdisUnicodeStringToAnsiString

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.