how can i know the window ( or application name ) that open a given connection

for example.

IE open port 340
how can i get a handle to this window ?
Posted on 2003-03-07 12:56:40 by Sa6ry
I guess ur gonna need to first determine the socket handle associated with this known connection... if you can do that, you're on the right track.
iirc you can get the pid of the root process which owns the thread that opened a given socket handle... you can use GetProcessModule to get the module filename and fully qualified pathname...

Good question !! Good Luck !!
Posted on 2003-03-08 22:12:50 by Homer