Tim,
Thank you for your reply. The requirement is, given any Exe name, the VI that we develop must be able find out the port number that the Exe is using. Hence the solution to this problem must be independent of any other appication. The reason why we are looking for the port number is that we need to open the application reference.
V I Engineering, Inc., Thanks for your reply. The option of using iphlpapi.dll may be a good one. But the functions may go unsupported in the newer versions of Windows. For example, AllocateAndGetTcpExTableFromStack method in this DLL is not availalbe from Windows Vista. That is the reason why we will have to re-think.
I have one more question. In case, for an application, if the web server is also enabled, we would get 2 port numbers for the same application (when we try to find the ports used by the application using any method like netstat). Assuming we have no control over the application being developed, how do we find out as to which port corresponds to the Web Server and which one corresponds to VI server?
Thank you,
Ganesh Kumar