pub struct VmmRegHive<'a> {
pub va: u64,
pub va_baseblock: u64,
pub size: u32,
pub name: String,
pub name_short: String,
pub path: String,
/* private fields */
}Expand description
Registry Hive API.
The VmmRegHive info struct allows for access to the registry hive by
exposed fields and various methods.
§Created By
§Examples
let hive_all = vmm.reg_hive_list()?;
for hive in hive_all {
println!("{hive} size={} path={}", hive.size, hive.path);
}Fields§
§va: u64§va_baseblock: u64§size: u32§name: String§name_short: String§path: StringImplementations§
Source§impl VmmRegHive<'_>
impl VmmRegHive<'_>
Sourcepub fn reg_hive_write(&self, ra: u32, data: &[u8]) -> ResultEx<()>
pub fn reg_hive_write(&self, ra: u32, data: &[u8]) -> ResultEx<()>
Write registry hive data.
Writing to registry hives is extemely unsafe and may lead to registry corruption and unusable systems. Use with extreme care!
§Arguments
ra- Registry hive address to start writing from.data- Byte data to write.
§Examples
let data_to_write = [0x56u8, 0x4d, 0x4d, 0x52, 0x55, 0x53, 0x54].to_vec();
let _r = hive.reg_hive_write(0x1000, &data_to_write);Trait Implementations§
Source§impl<'a> Clone for VmmRegHive<'a>
impl<'a> Clone for VmmRegHive<'a>
Source§fn clone(&self) -> VmmRegHive<'a>
fn clone(&self) -> VmmRegHive<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for VmmRegHive<'a>
impl<'a> Debug for VmmRegHive<'a>
Source§impl Display for VmmRegHive<'_>
impl Display for VmmRegHive<'_>
Source§impl PartialEq for VmmRegHive<'_>
impl PartialEq for VmmRegHive<'_>
Auto Trait Implementations§
impl<'a> Freeze for VmmRegHive<'a>
impl<'a> RefUnwindSafe for VmmRegHive<'a>
impl<'a> Send for VmmRegHive<'a>
impl<'a> Sync for VmmRegHive<'a>
impl<'a> Unpin for VmmRegHive<'a>
impl<'a> UnwindSafe for VmmRegHive<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more