Share via


NdisFreeString

This function releases storage that was allocated for a buffered string.

VOID NdisFreeString(
  NDIS_STRING String
);

Parameters

  • String
    [in] Pointer to the buffer containing the string.

Return Values

None.

Remarks

Drivers usually call the NdisInitializeString, NdisInitAnsiString, and/or NdisInitUnicodeString functions when they are initializing, for example, to set up names passed to the NdisXXXConfiguration functions. For each call it makes to an NdisXXXString function, the driver should make a corresponding call to this function before its initialization function returns control.

NDIS drivers can also call this function to release buffers that they allocate for calls to the NdisAnsiStringToUnicodeString and NdisUnicodeStringToAnsiString functions.

Requirements

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

See Also

NdisAnsiStringToUnicodeString | NdisFreeMemory | NdisInitAnsiString | NdisInitializeString | NdisInitUnicodeString | NdisOpenAdapter | NdisRegisterProtocol | NdisUnicodeStringToAnsiString

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.