summaryrefslogtreecommitdiff
path: root/protocols/ConnectionNotify/src/netstat.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-02 12:32:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-02 12:32:55 +0300
commit931a7dc1ac0dbc7e6c1083583ced915e572f5b47 (patch)
tree9fe9a6448d44030e26aa7107ce16044ed413e0d0 /protocols/ConnectionNotify/src/netstat.h
parentdd7d9954042254e66e3bbbec7195c6be8b1a0663 (diff)
all protocols (even virtual ones) moved to the Protocols folder
Diffstat (limited to 'protocols/ConnectionNotify/src/netstat.h')
-rw-r--r--protocols/ConnectionNotify/src/netstat.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/ConnectionNotify/src/netstat.h b/protocols/ConnectionNotify/src/netstat.h
new file mode 100644
index 0000000000..e4d1631775
--- /dev/null
+++ b/protocols/ConnectionNotify/src/netstat.h
@@ -0,0 +1,18 @@
+#pragma once
+
+struct CONNECTION
+{
+ wchar_t strIntIp[16];
+ wchar_t strExtIp[16];
+ int intIntPort;
+ int intExtPort;
+ int state;
+ DWORD Pid;
+ wchar_t PName[260];
+ struct CONNECTION *next;
+};
+
+struct CONNECTION* GetConnectionsTable();
+void deleteConnectionsTable(struct CONNECTION* head);
+struct CONNECTION* searchConnection(struct CONNECTION* head, wchar_t *intIp, wchar_t *extIp, int intPort, int extPort, int state);
+void getDnsName(wchar_t *strIp, wchar_t *strHostName, size_t len);