Struct memprocfs::VmmRegHive
source · 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: String
Implementations§
source§impl VmmRegHive<'_>
impl VmmRegHive<'_>
sourcepub fn reg_hive_write(&self, ra: u32, data: &Vec<u8>) -> ResultEx<()>
pub fn reg_hive_write(&self, ra: u32, data: &Vec<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> Debug for VmmRegHive<'a>
impl<'a> Debug for VmmRegHive<'a>
source§impl Display for VmmRegHive<'_>
impl Display for VmmRegHive<'_>
source§impl PartialEq<VmmRegHive<'_>> for VmmRegHive<'_>
impl PartialEq<VmmRegHive<'_>> for VmmRegHive<'_>
Auto Trait Implementations§
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