Re: Notification for open/closed TCP/UDP Connection
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 14:50:11 +0200
If you want the title of the main window ( that I appreciate you mean by
"actual name of the application" ) you need to enumerate parent ( top )
windows and use
GetWindowModuleFileName() to compare
Arkady
"Manish" <Manish@xxxxxxxxxxxxxxxxx> wrote in message
news:Oum7Y0OmGHA.2056@xxxxxxxxxxxxxxxxxxxxxxx
Hi Arkady,
Thanks a lot for your suggestions. Actually it is very time critical
application. So, it will be good for me to get the notification. And the
second thing is using netstatp, i can get only process name. In that case,
if i change the name of the executable it will reflect the changed name in
netstatp. But, i want actual name of the application.
As example if someone change the name of "internet explorer" to "ie", in
netstap i will get the name "ie" but i want to know the actual name which
is "internet explorer".
Thanks again for your valuable time.
Thanks & Regards,
Manish
Arkady Frenkel wrote:
Additionally, to find processes , you can use netstatp from
http://www.sysinternals.com/utilities/tcpview.html
Arkady
"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:eR0RK8slGHA.4244@xxxxxxxxxxxxxxxxxxxxxxx
I don't know notifications of such kind , but you can use polling of TCP
table ( GetTcpTable() ) e.g.
Arkady
"Manish" <Manish@xxxxxxxxxxxxxxxxx> wrote in message
news:%23OqIOyplGHA.4864@xxxxxxxxxxxxxxxxxxxxxxx
I am writing one program using VS2005, C++. I am using winsock library
and iphelper library.
The problem I am facing is: I want notification in my program when any
application opens or closes TCP/UDP connections. And with that
notification I want to get the information about the application
(particularly application name) which has opened/closed the ports and
port number.
I have gone through the MSDN and also, searched on the net. But I was
not able to find any message or callback function which I can register
with OS to get such notification.
Then I came across the windows firewall documentation. And I found that
windows firewall uses such notification scheme to get informed about
the open and closed port with application information.
So, can you guide me how to get such notifications?
I am using windows xp sp2.
.
- References:
- Notification for open/closed TCP/UDP Connection
- From: Manish
- Re: Notification for open/closed TCP/UDP Connection
- From: Arkady Frenkel
- Re: Notification for open/closed TCP/UDP Connection
- From: Arkady Frenkel
- Re: Notification for open/closed TCP/UDP Connection
- From: Manish
- Notification for open/closed TCP/UDP Connection
- Prev by Date: LogonUser question
- Next by Date: Re: How do I copy files in workgroup
- Previous by thread: Re: Notification for open/closed TCP/UDP Connection
- Next by thread: Re: P2P Stopped Working - McAfee Privacy Service at Fault?
- Index(es):
Relevant Pages
|
|