pub struct Registry { /* private fields */ }
Expand description
Fields related to Windows Registry operations.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn set_key(&mut self, key_arg: String)
pub fn set_key(&mut self, key_arg: String)
Hive-relative path of keys.
§Example
SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winword.exe
Sourcepub fn set_path(&mut self, path_arg: String)
pub fn set_path(&mut self, path_arg: String)
Full path, including hive, key and value
§Example
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winword.exe\Debugger
Sourcepub fn get_data_type(&self) -> Option<&String>
pub fn get_data_type(&self) -> Option<&String>
Standard registry type for encoding contents
Sourcepub fn set_data_type(&mut self, data_type_arg: String)
pub fn set_data_type(&mut self, data_type_arg: String)
Sourcepub fn get_data_strings(&self) -> &Vec<String>
pub fn get_data_strings(&self) -> &Vec<String>
Content when writing string types.
Populated as an array when writing string data to the registry. For single string registry types (REG_SZ, REG_EXPAND_SZ), this should be an array with one string. For sequences of string with REG_MULTI_SZ, this array will be variable length. For numeric data, such as REG_DWORD and REG_QWORD, this should be populated with the decimal representation (e.g "1"
).
Sourcepub fn add_data_string(&mut self, data_string_arg: String)
pub fn add_data_string(&mut self, data_string_arg: String)
Content when writing string types.
Populated as an array when writing string data to the registry. For single string registry types (REG_SZ, REG_EXPAND_SZ), this should be an array with one string. For sequences of string with REG_MULTI_SZ, this array will be variable length. For numeric data, such as REG_DWORD and REG_QWORD, this should be populated with the decimal representation (e.g "1"
).
§Example
["C:\rta\red_ttp\bin\myapp.exe"]
Sourcepub fn get_data_bytes(&self) -> Option<&String>
pub fn get_data_bytes(&self) -> Option<&String>
Original bytes written with base64 encoding.
For Windows registry operations, such as SetValueEx and RegQueryValueEx, this corresponds to the data pointed by lp_data
. This is optional but provides better recoverability and should be populated for REG_BINARY encoded values.
Sourcepub fn set_data_bytes(&mut self, data_bytes_arg: String)
pub fn set_data_bytes(&mut self, data_bytes_arg: String)
Original bytes written with base64 encoding.
For Windows registry operations, such as SetValueEx and RegQueryValueEx, this corresponds to the data pointed by lp_data
. This is optional but provides better recoverability and should be populated for REG_BINARY encoded values.
§Example
ZQBuAC0AVQBTAAAAZQBuAAAAAAA=