blob: ccabf3df4bbd615b524f6dff2cc00588d9cab440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
|