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 driver for a ReplyIrp, if any. This is a low-level function and the returned object uses C pointers. Managing C pointers requires a special care, because of the Rust timelines. ReplyIrp is optional since the minifilter returns null if there is no new activity.

Ask the minifilter to kill all pids related to the given gid. Pids are killed in drivermode by calls to NtClose.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.