#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef _DEBUG #include "debug.h" #endif #include "resource.h" #include "netstat.h" #include "filter.h" #include "version.h" #include "pid2name.h" #define MAX_SETTING_STR 512 #define PLUGINNAME "ConnectionNotify" #define PLUGINNAMEW L"ConnectionNotify" #define MAX_LENGTH 512 #define STATUS_COUNT 9 #define PLUGINNAME_NEWSOUND PLUGINNAME "_new_sound" // Note: could also use malloc() and free() #define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x)) #define FREE(x) HeapFree(GetProcessHeap(), 0, (x)) struct CMPlugin : public PLUGIN { CMPlugin(); }; void showMsg(wchar_t *pName,DWORD pid,wchar_t *intIp,wchar_t *extIp,int intPort,int extPort,int state); static unsigned __stdcall checkthread(void *dummy); struct CONNECTION * LoadSettingsConnections(); void saveSettingsConnections(struct CONNECTION *connHead);