Home > Net >  Use AllocateAndGetTcpExTableFromStack function in c#
Use AllocateAndGetTcpExTableFromStack function in c#

Time:03-01

How can I use that function in c#

I need to use windows IP helper, to get specific process connections

cause it wouldn't work like this

        [DllImport("Iphlpapi.dll", CharSet = CharSet.Ansi)]
        public static extern int AllocateAndGetTcpExTableFromStack();

Cause I get the err:

System.EntryPointNotFoundException: 'Unable to find an entry point named 'AllocateAndGetTcpExTableFromStack' in DLL 'Iphlpapi.dll'.'

CodePudding user response:

According to the documentation, this function is 'no longer available'.

The linked page suggests alternatives, you should use one of those.

  • Related