CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    5

    Process and port

    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! (

  2. #2
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: Process and port

    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

  3. #3
    Join Date
    Jan 2008
    Posts
    5

    Smile Re: Process and port

    Quote Originally Posted by MikeAThon View Post
    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
    Thanks guy! You did help me out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured