NdisFreeString

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

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisFreeString( IN NDIS_STRING String );

Parameters

String
Pointer to the buffer containing the string.

Remarks

Drivers usually call the NdisInitializeString, NdisIntiAnsiString, 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 also can call this function to release buffers that they allocate for calls to the NdisAnsiStringToUnicodeString and NdisUnicodeStringToAnsiString functions.

A driver that calls this function runr at IRQL PASSIVE_LEVEL.

See Also

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