Struct winsafe::shell::IShellItem [−][src]
pub struct IShellItem { /* fields omitted */ }
Expand description
IShellItem
COM interface over IShellItemVT
.
Inherits from IUnknown
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
Implementations
Returns the raw pointer to pointer to the COM virtual table.
IUnknown::QueryInterface
method.
Calls
SHCreateItemFromParsingName
function to create a new shell item, using the given folder or file path.
Examples
ⓘ
use winsafe::shell;
let shi = shell::IShellItem::from_path("C:\\Temp\\test.txt")?;
IShellItem::GetAttributes
method.
IShellItem::GetDisplayName
method.
Examples
ⓘ
use winsafe::{co, shell};
let shi = shell::IShellItem::from_path("C:\\Temp\\test.txt")?;
let full_path = shi.GetDisplayName(co::SIGDN::FILESYSPATH)?;
println!("{}", full_path);
IShellItem::GetParent
method.
Examples
ⓘ
use winsafe::{co, shell};
let shi = shell::IShellItem::from_path("C:\\Temp\\test.txt")?;
let parent_shi = shi.GetParent()?;
let full_path = parent_shi.GetDisplayName(co::SIGDN::FILESYSPATH)?;
println!("{}", full_path);
Trait Implementations
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more