summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/netstat.h
diff options
context:
space:
mode:
authorMaciej Wycik <makar@poczta.of.pl>2013-06-03 11:14:59 +0000
committerMaciej Wycik <makar@poczta.of.pl>2013-06-03 11:14:59 +0000
commitde9cbaa3b7e815a2a95e894e796196bf5629543d (patch)
treec2dbe4d2d241d580fc43e238fb5689f1d887aa83 /plugins/ConnectionNotify/src/netstat.h
parentf9944b07bb7623a9c27802c5e83d5f0e3f0e8597 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ConnectionNotify/src/netstat.h')
-rw-r--r--plugins/ConnectionNotify/src/netstat.h21
1 files changed, 21 insertions, 0 deletions
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