From de9cbaa3b7e815a2a95e894e796196bf5629543d Mon Sep 17 00:00:00 2001 From: Maciej Wycik Date: Mon, 3 Jun 2013 11:14:59 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@4869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ConnectionNotify/src/netstat.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 plugins/ConnectionNotify/src/netstat.h (limited to 'plugins/ConnectionNotify/src/netstat.h') diff --git a/plugins/ConnectionNotify/src/netstat.h b/plugins/ConnectionNotify/src/netstat.h new file mode 100644 index 0000000000..ccabf3df4b --- /dev/null +++ b/plugins/ConnectionNotify/src/netstat.h @@ -0,0 +1,21 @@ +#pragma once + + + +struct CONNECTION +{ + TCHAR strIntIp[16]; + TCHAR strExtIp[16]; + int intIntPort; + int intExtPort; + int state; + DWORD Pid; + TCHAR PName[260]; + struct CONNECTION *next; +}; + +struct CONNECTION* GetConnectionsTable(); +void deleteConnectionsTable(struct CONNECTION* head); +struct CONNECTION* searchConnection(struct CONNECTION* head,TCHAR *intIp,TCHAR *extIp,int intPort,int extPort,int state); +void getDnsName(TCHAR *strIp,TCHAR *strHostName); +int wildcmp(const TCHAR *wild, const TCHAR *string); \ No newline at end of file -- cgit v1.2.3