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?