forked from henrypp/simplewall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.h
118 lines (94 loc) · 2.25 KB
/
log.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// simplewall
// Copyright (c) 2016-2024 Henry++
#pragma once
// FwpmNetEventSubscribe4 (win10rs5+)
typedef ULONG (WINAPI *FWPMNES4)(
_In_ HANDLE engine_handle,
_In_ const FWPM_NET_EVENT_SUBSCRIPTION0 *subscription,
_In_ FWPM_NET_EVENT_CALLBACK4 callback,
_In_opt_ PVOID context,
_Out_ PHANDLE events_handle
);
// FwpmNetEventSubscribe3 (win10rs4+)
typedef ULONG (WINAPI *FWPMNES3)(
_In_ HANDLE engine_handle,
_In_ const FWPM_NET_EVENT_SUBSCRIPTION0 *subscription,
_In_ FWPM_NET_EVENT_CALLBACK3 callback,
_In_opt_ PVOID context,
_Out_ PHANDLE events_handle
);
// FwpmNetEventSubscribe2 (win10rs1+)
typedef ULONG (WINAPI *FWPMNES2)(
_In_ HANDLE engine_handle,
_In_ const FWPM_NET_EVENT_SUBSCRIPTION0 *subscription,
_In_ FWPM_NET_EVENT_CALLBACK2 callback,
_In_opt_ PVOID context,
_Out_ PHANDLE events_handle
);
VOID _app_loginit (
_In_ BOOLEAN is_install
);
VOID _app_loginitfile (
_In_ HANDLE hfile
);
ULONG_PTR _app_getloghash (
_In_ PITEM_LOG ptr_log
);
PR_STRING _app_getlogpath ();
PR_STRING _app_getlogviewer ();
BOOLEAN _app_islogfound (
_In_ ULONG_PTR log_hash
);
BOOLEAN _app_logislimitreached (
_In_ HANDLE hfile
);
VOID _app_logclear (
_In_opt_ HANDLE hfile
);
VOID _app_logclear_ui (
_In_ HWND hwnd
);
VOID _app_logwrite (
_In_ PITEM_LOG ptr_log
);
VOID _app_logwrite_ui (
_In_ HWND hwnd,
_In_ PITEM_LOG ptr_log
);
VOID _wfp_logsubscribe (
_In_opt_ HWND hwnd,
_In_ HANDLE engine_handle
);
VOID _wfp_logunsubscribe (
_In_ HANDLE engine_handle
);
VOID _wfp_logsetoption (
_In_ HANDLE engine_handle
);
VOID CALLBACK _wfp_logcallback (
_In_ PITEM_LOG_CALLBACK log
);
// win8+ callback
VOID CALLBACK _wfp_logcallback1 (
_In_ PVOID context,
_In_ const FWPM_NET_EVENT2* event_data
);
// win10rs1+ callback
VOID CALLBACK _wfp_logcallback2 (
_In_ PVOID context,
_In_ const FWPM_NET_EVENT3* event_data
);
// win10rs4+ callback
VOID CALLBACK _wfp_logcallback3 (
_In_ PVOID context,
_In_ const FWPM_NET_EVENT4* event_data
);
// win10rs5+ callback
VOID CALLBACK _wfp_logcallback4 (
_In_ PVOID context,
_In_ const FWPM_NET_EVENT5* event_data
);
VOID NTAPI _app_logthread (
_In_ PVOID arglist,
_In_ ULONG busy_count
);