mirror of
https://github.com/netchx/netch.git
synced 2026-03-30 19:09:48 +08:00
53 lines
884 B
C++
53 lines
884 B
C++
#pragma once
|
|
#ifndef BASED_H
|
|
#define BASED_H
|
|
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
|
|
#include <stdio.h>
|
|
|
|
#include <map>
|
|
#include <list>
|
|
#include <queue>
|
|
#include <regex>
|
|
#include <mutex>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <thread>
|
|
#include <codecvt>
|
|
#include <iostream>
|
|
|
|
#include <WinSock2.h>
|
|
#include <ws2ipdef.h>
|
|
#include <WS2tcpip.h>
|
|
#include <Windows.h>
|
|
|
|
#include <nfapi.h>
|
|
|
|
using namespace std;
|
|
|
|
typedef enum _AIO_TYPE {
|
|
AIO_FILTERLOOPBACK,
|
|
AIO_FILTERICMP,
|
|
AIO_FILTERTCP,
|
|
AIO_FILTERUDP,
|
|
|
|
AIO_CLRNAME,
|
|
AIO_ADDNAME,
|
|
AIO_BYPNAME,
|
|
|
|
AIO_TCPPORT,
|
|
AIO_UDPPORT
|
|
} AIO_TYPE;
|
|
|
|
typedef struct _TCPINFO {
|
|
DWORD PID;
|
|
PBYTE Client[NF_MAX_ADDRESS_LENGTH];
|
|
PBYTE Target[NF_MAX_ADDRESS_LENGTH];
|
|
} TCPINFO, * PTCPINFO;
|
|
|
|
typedef struct _UDPINFO {
|
|
DWORD PID;
|
|
SOCKET Socket;
|
|
} UDPINFO, * PUDPINFO;
|
|
|
|
#endif
|