Rtfwnl2RenameInterface

Rtfwnl2RenameInterface renames a Network Link Layer (NL2) interface.

Syntax

Copy
bool Rtfwnl2RenameInterface(
    [in] TCHAR * CurrentName,
    [in] TCHAR * NewName
);

Parameters

[in] CurrentName

A pointer to the name of an existing NL2 interface. This value is not case sensitive.

[in] NewName

The new name of the NL2 interface pointed at by parameter CurrentName. This new name must not exceed 255 characters and be unique among all NL2 interface names. Interface names can contain only these characters: 'a' to 'z', 'A' to 'Z', '0' to '9', '_', and '-'. Spaces are not allowed.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE and sets the last error value.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

Rtfwnl2Api.h

Rtfwnl2Api.lib

See Also: