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
vmm.reg_hive_list()
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: &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);