Struct winsafe::IShellItem
source · pub struct IShellItem(/* private fields */);
Available on crate feature
shell
only.Expand description
IShellItem
COM interface over IShellItemVT
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
Usually created with
SHCreateItemFromParsingName
function.
§Examples
use winsafe::{self as w, prelude::*};
let shi = w::SHCreateItemFromParsingName::<w::IShellItem>(
"C:\\Temp\\foo.txt",
None::<&w::IBindCtx>,
)?;
Trait Implementations§
source§impl Clone for IShellItem
impl Clone for IShellItem
source§impl Drop for IShellItem
impl Drop for IShellItem
source§impl ole_IUnknown for IShellItem
impl ole_IUnknown for IShellItem
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.source§impl shell_IShellItem for IShellItem
impl shell_IShellItem for IShellItem
source§fn BindToHandler<T>(
&self,
bind_ctx: Option<&impl ole_IBindCtx>,
bhid: &BHID
) -> HrResult<T>where
T: ole_IUnknown,
fn BindToHandler<T>(
&self,
bind_ctx: Option<&impl ole_IBindCtx>,
bhid: &BHID
) -> HrResult<T>where
T: ole_IUnknown,
IShellItem::BindToHandler
method. Read moresource§fn Compare(
&self,
other: &impl shell_IShellItem,
hint: SICHINTF
) -> HrResult<i32>
fn Compare( &self, other: &impl shell_IShellItem, hint: SICHINTF ) -> HrResult<i32>
IShellItem::Compare
method.source§fn GetAttributes(&self, sfgao_mask: SFGAO) -> HrResult<SFGAO>
fn GetAttributes(&self, sfgao_mask: SFGAO) -> HrResult<SFGAO>
IShellItem::GetAttributes
method.source§fn GetDisplayName(&self, sigdn_name: SIGDN) -> HrResult<String>
fn GetDisplayName(&self, sigdn_name: SIGDN) -> HrResult<String>
IShellItem::GetDisplayName
method. Read moresource§fn GetParent(&self) -> HrResult<IShellItem>
fn GetParent(&self) -> HrResult<IShellItem>
IShellItem::GetParent
method. Read moreimpl Send for IShellItem
Auto Trait Implementations§
impl RefUnwindSafe for IShellItem
impl !Sync for IShellItem
impl Unpin for IShellItem
impl UnwindSafe for IShellItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more