RtfwrlyGetInterfaceSettings

RtfwrlyGetInterfaceSettings returns a Network Relay interface configuration associated with a given name.

Syntax

Copy
bool RtfwrlyGetInterfaceSettings(
    [in]   const TCHAR * pName,
    [out]  RTFW_RLY_INTERFACE * pRLYInterface
);

Parameters

[in] pName

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

[out] pRLYInterface

A pointer to structure RTFW_RLY_INTERFACE that is filled with configuration information for the network interface. This value cannot be NULL, and member Size must be set to sizeof(RTFW_RLY_INTERFACE), otherwise this function fails and sets the last error value to RT_ERROR_STRUCTURE_TOO_SMALL.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE, sets the last error value, and leaves the structure referenced by pRLYInterface with invalid member values. Call GetLastError to obtain an error code.

Possible error codes:

Error code Meaning

RT_ERROR_STRUCTURE_TOO_SMALL

The member Size of a structure is too small.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtfwrlyApi.h

RtfwrlyApi.lib

See Also: