Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello,

I'm currently working on a project to close connections on demand by my application. It is currently able to view all open connections by using the GetTcpTable/GetTcpTable2, GetTcp6Table/GetTcpTable2, GetUdpTable and GetUdp6Table functions in the Windows Iphlpapi.dll. Also I've managed to close any TCP (IPv4) connection obtained by the GetTcpTable/GetTcpTable2 functions by using the SetTcpEntry function also in the Windows Iphlpapi.dll.

Now I want to close a TCP (IPv6) connection obtained by the GetTcp6Table/GetTcp6Table2 functions, but the SetTcpEntry does not accept a MIB_TCP6ROW/MIB_TCP6ROW2 structure, only the MIB_TCPROW/MIB_TCPROW2 structures (with the latter the offloadstate will be automatically skipped).

Do you have any ideas on how to solve this isue?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900