Partager via


SetTcpEntry (Windows Embedded CE 6.0)

1/6/2010

This function sets the state of a TCP connection.

Syntax

DWORD SetTcpEntry(
  PMIB_TCPROW pTcpRow 
);

Parameters

  • pTcpRow
    [in] Pointer to a MIB_TCPROW structure identifying the TCP connection to modify and specifying the new state for the TCP connection. The caller must specify values for all the members in this structure.

Return Value

Returns NO_ERROR if successful. If the function fails, it returns an error code. For a complete list of error codes, see Error Values or the SDK header file Winerror.h.

Remarks

This function operates only on active connections. Therefore, the only state to which a TCP connection can be set is MIB_TCP_STATE_ESTAB.

Requirements

Header iphlpapi.h
Library Iphlpapi.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

IP Helper Functions
MIB_TCPROW