RtfwtcpipEnableInterface

RtfwtcpipEnableInterface enables or disables TCP/IP functionality for a specified network interface.

Syntax

Copy
bool RtfwtcpipEnableInterface(
    [in]  const * pName,
    [in]  bool Enable
);

Parameters

[in] pName

The name of the interface to enable or disable TCP/IP functionality for.

[in] Enable

If TRUE, TCP/IP functionality will be enabled for the interface specified by the pName parameter. If FALSE, TCP/IP functionality will not be enabled for the specified interface.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

RtfwtcpipApi.h

RtfwtcpipApi.lib