pub struct EvenClient<T: Transport> {
pub transport: T,
}Expand description
The high-level MS-EVEN6 client.
Owns a Transport (bound to the remote \pipe\eventlog, RPC bound to
even6_syntax) and tracks the caller’s open handles. Split across trait/impl so
live-DC and test-mock transports plug into the same code path.
Fields§
§transport: TImplementations§
Source§impl<T: Transport> EvenClient<T>
impl<T: Transport> EvenClient<T>
pub fn new(transport: T) -> Self
Sourcepub fn open_log_handle(
&mut self,
channel: &str,
flags: u32,
) -> Result<ContextHandle>
pub fn open_log_handle( &mut self, channel: &str, flags: u32, ) -> Result<ContextHandle>
EvtRpcOpenLogHandle (opnum 0): open a channel by name (e.g. "Security",
"Application") for reading. Returns the CONTEXT_HANDLE the server will accept
on read/clear calls.
Wire (MS-EVEN6 §3.1.4.19): [in,string] wchar_t* Channel, [in] DWORD Flags, [out] CONTEXT_HANDLE_LOG_HANDLE* Handle, [out] RpcInfo* Error.
Sourcepub fn register_log_query(
&mut self,
xpath: &str,
flags: u32,
) -> Result<QueryHandle>
pub fn register_log_query( &mut self, xpath: &str, flags: u32, ) -> Result<QueryHandle>
EvtRpcRegisterLogQuery (opnum 5): register an XPath / structured-XML query and receive a query handle for pulling matching events.
Sourcepub fn query_next(
&mut self,
h: &QueryHandle,
n: u32,
timeout_ms: u32,
) -> Result<Vec<Event>>
pub fn query_next( &mut self, h: &QueryHandle, n: u32, timeout_ms: u32, ) -> Result<Vec<Event>>
EvtRpcQueryNext (opnum 11): pull up to n events from a registered query,
blocking on the server for at most timeout_ms. Empty result means the query
has drained. Each BinXml fragment is decoded into an Event.