NdisFreeString

VOID
    NdisFreeString(
        IN NDIS_STRING  String
        );

NdisFreeString releases storage that was allocated for a buffered string.

Parameters

String
Points to the buffer containing the string.

Comments

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

NDIS drivers also can call NdisFreeString to release buffers they allocate for calls to NdisAnsiStringToUnicodeString and NdisUnicodeStringToAnsiString.

Callers of NdisFreeString run at IRQL PASSIVE_LEVEL.

See Also

DriverEntry of NDIS Protocol Drivers, MiniportInitialize, NdisAnsiStringToUnicodeString, NdisFreeMemory, NdisInitAnsiString, NdisInitializeString, NdisInitUnicodeString, NdisOpenAdapter, NdisRegisterProtocol, NdisUnicodeStringToAnsiString, ProtocolBindAdapter