1
+ use fxhash:: FxHasher ;
2
+ use memoffset:: offset_of;
3
+ pub use windows:: core:: GUID ;
1
4
use windows:: core:: { h, HSTRING , PWSTR } ;
2
5
use windows:: Win32 :: Foundation :: {
3
6
GetLastError , ERROR_INSUFFICIENT_BUFFER , ERROR_MORE_DATA , MAX_PATH ,
4
7
} ;
8
+ use windows:: Win32 :: System :: Diagnostics :: Etw ;
5
9
use windows:: Win32 :: System :: Diagnostics :: Etw :: {
6
10
EnumerateTraceGuids , EnumerateTraceGuidsEx , TraceGuidQueryInfo , TraceGuidQueryList ,
7
11
CONTROLTRACE_HANDLE , EVENT_TRACE_FLAG , TRACE_GUID_INFO , TRACE_GUID_PROPERTIES ,
8
12
TRACE_PROVIDER_INSTANCE_INFO ,
9
13
} ;
10
14
11
- use crate :: parser:: { Parser , ParserError , TryParse } ;
12
- use crate :: schema:: SchemaLocator ;
13
- use crate :: tdh_types:: { PrimitiveDesc , PropertyDesc , TdhInType } ;
14
- use crate :: traits:: EncodeUtf16 ;
15
-
16
- #[ macro_use]
17
- extern crate memoffset;
18
-
19
15
use std:: borrow:: Cow ;
20
16
use std:: collections:: HashMap ;
21
17
use std:: hash:: BuildHasherDefault ;
22
18
use std:: mem;
23
19
use std:: path:: Path ;
24
20
25
- use etw_types:: EventRecord ;
26
- use fxhash:: FxHasher ;
27
- use tdh_types:: { Property , TdhOutType } ;
28
- use windows:: Win32 :: System :: Diagnostics :: Etw ;
29
-
30
21
// typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
31
22
pub ( crate ) type TraceHandle = u64 ;
32
23
pub const INVALID_TRACE_HANDLE : TraceHandle = u64:: MAX ;
@@ -46,7 +37,12 @@ pub mod utils;
46
37
//pub mod trace;
47
38
//pub mod provider;
48
39
49
- pub use windows:: core:: GUID ;
40
+ use etw_types:: EventRecord ;
41
+ use parser:: { Parser , ParserError , TryParse } ;
42
+ use schema:: SchemaLocator ;
43
+ use tdh_types:: { PrimitiveDesc , PropertyDesc , TdhInType } ;
44
+ use tdh_types:: { Property , TdhOutType } ;
45
+ use traits:: EncodeUtf16 ;
50
46
51
47
pub type FastHashMap < K , V > = HashMap < K , V , BuildHasherDefault < FxHasher > > ;
52
48
#[ repr( C ) ]
0 commit comments