Here are some API-Methods for my purposes:
GetTcpTable()
AllocateAndGetTcpExTableFromStack()
GetExtendedTcpTable()
I wrote a small programm that is able to show me all Processes with the
belonging TCP-Ports (with AllocateAndGetTcpExTableFromStack()) running
under Windows XP.
Now my problem is, that under Windows 2000 I can't use
AllocateAndGetTcpExTableFromStack() or GetExtendedTcpTable() so I'm only
able to use GetTcpTable() to list all TCP-Ports but without the
belonging processes.
Did somebody have the same problem or is there another way (.Net or WMI
etc.) to solve my problem?
Thanks in advance,
Werner
Werner Schmidt schrieb:
Thank you very much, Willy. I will give it a try.
Best regards,
Werner
Willy Denoyette [MVP] schrieb:
><ga********@myway.comwrote in message
news:11**********************@j72g2000cwa.googleg roups.com...
>>How do you do this programatically? (determine port that is not launch
netstat).
By calling into iphlpapi.dll using PInvoke interop.
Google around for GetExtendedTcpTable and iphlpapi.dll, I'm sure you
will find some existing stuff.
Willy.