I'm a newbie at Visual C++ and Windows programming. Do you guys know how to get all ports opened by a specified process? It's hard for me to find out the answer. Pls help me! :((
Printable View
I'm a newbie at Visual C++ and Windows programming. Do you guys know how to get all ports opened by a specified process? It's hard for me to find out the answer. Pls help me! :((
At one time, there was an undocumented function named AllocateAndGetTCPExTableFromStack() which would help. The function is now deprecated and no longer available in Vista or above, and it would appear that GetExtendedTcpTable() must now be used.
See http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx and http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx