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
use ::status::NTSTATUS;
extern "C"
{
pub fn DbgPrint(Format: *const u8, ...) -> NTSTATUS;
pub fn DbgPrintEx(ComponentId: u32, Level: u32, Format: *const u8, ...) -> NTSTATUS;
}
extern "system"
{
pub fn DbgBreakPoint();
pub fn DbgBreakPointWithStatus(Status: NTSTATUS);
}
#[repr(C)]
pub enum DPFLTR_LEVEL {
ERROR = 0,
WARNING,
TRACE,
INFO,
}
#[repr(C)]
pub enum DPFLTR_ID {
SYSTEM = 0,
SMSS,
SETUP,
NTFS,
IHVDRIVER = 77,
IHVVIDEO,
IHVAUDIO,
IHVNETWORK,
IHVSTREAMING,
IHVBUS,
DEFAULT = 99,
}