Function winsafe::SHCreateItemFromParsingName
source · pub fn SHCreateItemFromParsingName<T>(
file_or_folder_path: &str,
bind_ctx: Option<&impl ole_IBindCtx>
) -> HrResult<T>where
T: shell_IShellItem,
Available on crate feature
shell
only.Expand description
SHCreateItemFromParsingName
function.
§Examples
use winsafe::{self as w, prelude::*};
let shi = w::SHCreateItemFromParsingName::<w::IShellItem2>(
"C:\\Temp\\foo.txt",
None::<&w::IBindCtx>,
)?;