Freigeben über


NdisInitializeString (Compact 2013)

3/26/2014

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

Syntax

VOID NdisInitializeString(
  PNDIS_STRING DestinationString,
  PUCHAR SourceString
);

Parameters

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

Return Value

None.

Remarks

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

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

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

Requirements

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS String Interface
DriverEntry of NDIS Protocol Drivers
MiniportInitializeEx
NdisAnsiStringToUnicodeString
NdisEqualString
NdisFreeString
NdisInitAnsiString
NdisInitUnicodeString
NdisUnicodeStringToAnsiString