Function winsafe::ExpandEnvironmentStrings

source ·
pub fn ExpandEnvironmentStrings(src: &str) -> SysResult<String>
Available on crate feature kernel only.
Expand description

ExpandEnvironmentStrings function.

§Examples

use winsafe::{self as w, prelude::*};

let expanded = w::ExpandEnvironmentStrings(
    "Os %OS%, home %HOMEPATH% and temp %TEMP%",
)?;

println!("{}", expanded);