Struct owlyshield_ransom::driver_com::Driver [−][src]
pub struct Driver {
handle: HANDLE,
}
Expand description
A minifilter is identified by a port (know in advance), like a named pipe used for communication, and a handle, retrieved by Self::open_kernel_driver_com.
Fields
handle: HANDLE
Implementations
Can be used to properly close the communication (and unregister) with the minifilter. If this fn is not used and the program has stopped, the handle is automatically closed, seemingly without any side-effects.
The usermode running app (this one) has to register itself to the driver.
Try to open a com canal with the minifilter before this app is registered. This fn can fail is the minifilter is unreachable:
- if it is not started (try
sc start owlyshieldransomfilter
first - if a connection is already established: it can accepts only one at a time. In that case the Error is raised by the OS (windows::Error) and is generally readable.
Ask the minifilter to kill all pids related to the given gid. Pids are killed in drivermode by calls to NtClose.