Files
..
2021-10-04 21:21:38 +08:00
2021-07-19 10:50:14 +08:00
2021-10-16 07:43:59 +08:00
2021-07-16 06:19:08 +08:00
2021-10-19 02:53:31 +08:00
2021-10-18 16:32:44 +08:00
2021-10-18 16:32:44 +08:00
2021-10-18 16:32:44 +08:00
2021-10-17 16:13:43 +08:00
2021-10-17 16:13:43 +08:00
2022-03-22 14:20:23 +08:00
2021-08-01 13:22:02 +08:00
2021-10-18 16:32:44 +08:00
2021-10-18 16:32:44 +08:00
2021-10-15 01:35:52 +08:00
2021-10-17 16:00:37 +08:00
2021-10-14 17:44:35 +08:00
2021-10-14 18:42:17 +08:00
2021-10-14 18:42:17 +08:00

Redirector

typedef enum _AIO_TYPE {
	AIO_FILTERLOOPBACK,
	AIO_FILTERINTRANET,
	AIO_FILTERPARENT,
	AIO_FILTERICMP,
	AIO_FILTERTCP,
	AIO_FILTERUDP,
	AIO_FILTERDNS,

	AIO_ICMPING,

	AIO_DNSONLY,
	AIO_DNSPROX,
	AIO_DNSHOST,
	AIO_DNSPORT,

	AIO_TGTHOST,
	AIO_TGTPORT,
	AIO_TGTUSER,
	AIO_TGTPASS,

	AIO_CLRNAME,
	AIO_ADDNAME,
	AIO_BYPNAME
} AIO_TYPE;

__declspec(dllexport) BOOL __cdecl aio_register(LPWSTR value);
__declspec(dllexport) BOOL __cdecl aio_unregister(LPWSTR value);
__declspec(dllexport) BOOL __cdecl aio_dial(int name, LPWSTR value);
__declspec(dllexport) BOOL __cdecl aio_init();
__declspec(dllexport) void __cdecl aio_free();
__declspec(dllexport) ULONG64 __cdecl aio_getUP();
__declspec(dllexport) ULONG64 __cdecl aio_getDL();
private enum NameList : int
{
	AIO_FILTERLOOPBACK,
	AIO_FILTERINTRANET,
	AIO_FILTERPARENT,
	AIO_FILTERICMP,
	AIO_FILTERTCP,
	AIO_FILTERUDP,
	AIO_FILTERDNS,

	AIO_ICMPING,

	AIO_DNSONLY,
	AIO_DNSPROX,
	AIO_DNSHOST,
	AIO_DNSPORT,

	AIO_TGTHOST,
	AIO_TGTPORT,
	AIO_TGTUSER,
	AIO_TGTPASS,

	AIO_CLRNAME,
	AIO_ADDNAME,
	AIO_BYPNAME
}

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern bool aio_register([MarshalAs(UnmanagedType.LPWStr)] string value);

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern bool aio_unregister([MarshalAs(UnmanagedType.LPWStr)] string value);

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern bool aio_dial(NameList name, [MarshalAs(UnmanagedType.LPWStr)] string value);

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern bool aio_init();

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern void aio_free();

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong aio_getUP();

[DllImport("Redirector.bin", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong aio_getDL();