Function winsafe::WritePrivateProfileString
source · pub fn WritePrivateProfileString(
section_name: &str,
key_name: Option<&str>,
new_val: Option<&str>,
file_name: &str
) -> SysResult<()>
Available on crate feature
kernel
only.Expand description
WritePrivateProfileString
function.
§Examples
Writing value into an INI file:
use winsafe::{self as w, prelude::*};
w::WritePrivateProfileString(
"MySection",
Some("MyKey"),
Some("new value"),
"C:\\Temp\\foo.ini",
)?;