MCPcopy Create free account
hub / github.com/PowerShell/DSC / convert_configreg_data

Function convert_configreg_data

archive/registry/src/regconfighelper.rs:362–371  ·  view source on GitHub ↗
(reg_data: &RegistryValueData)

Source from the content-addressed store, hash-verified

360}
361
362fn convert_configreg_data(reg_data: &RegistryValueData) -> NtRegistryValueData {
363 match reg_data {
364 RegistryValueData::String(data) => NtRegistryValueData::String(data.clone()),
365 RegistryValueData::MultiString(data) => NtRegistryValueData::MultiString(data.clone()),
366 RegistryValueData::Binary(data) => NtRegistryValueData::Binary(data.clone()),
367 RegistryValueData::DWord(data) => NtRegistryValueData::DWord(*data),
368 RegistryValueData::QWord(data) => NtRegistryValueData::QWord(*data),
369 RegistryValueData::ExpandString(data) => NtRegistryValueData::ExpandString(data.clone()),
370 }
371}
372
373#[test]
374fn test_registry_value_present() {

Callers 1

config_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected