summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/netstat.h
blob: f55bdd081fd6abfa67f31487ae51b22e356d7822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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);