Struct winsafe::IShellItem2
source · pub struct IShellItem2(/* private fields */);
Available on crate feature
shell
only.Expand description
IShellItem2
COM interface over IShellItem2VT
.
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::IShellItem2>(
"C:\\Temp\\foo.txt",
None::<&w::IBindCtx>,
)?;
Trait Implementations§
source§impl Clone for IShellItem2
impl Clone for IShellItem2
source§impl Drop for IShellItem2
impl Drop for IShellItem2
source§impl ole_IUnknown for IShellItem2
impl ole_IUnknown for IShellItem2
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 IShellItem2
impl shell_IShellItem for IShellItem2
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 moresource§impl shell_IShellItem2 for IShellItem2
impl shell_IShellItem2 for IShellItem2
source§fn GetBool(&self, key: &PROPERTYKEY) -> HrResult<bool>
fn GetBool(&self, key: &PROPERTYKEY) -> HrResult<bool>
IShellItem2::GetBool
method.source§fn GetFileTime(&self, key: &PROPERTYKEY) -> HrResult<FILETIME>
fn GetFileTime(&self, key: &PROPERTYKEY) -> HrResult<FILETIME>
IShellItem2::GetFileTime
method.source§fn GetInt32(&self, key: &PROPERTYKEY) -> HrResult<i32>
fn GetInt32(&self, key: &PROPERTYKEY) -> HrResult<i32>
IShellItem2::GetInt32
method.source§fn GetPropertyStore(&self, flags: GPS) -> HrResult<IPropertyStore>
fn GetPropertyStore(&self, flags: GPS) -> HrResult<IPropertyStore>
IShellItem2::GetPropertyStore
method.source§fn GetUInt32(&self, key: &PROPERTYKEY) -> HrResult<u32>
fn GetUInt32(&self, key: &PROPERTYKEY) -> HrResult<u32>
IShellItem2::GetUInt32
method.source§fn GetUInt64(&self, key: &PROPERTYKEY) -> HrResult<u64>
fn GetUInt64(&self, key: &PROPERTYKEY) -> HrResult<u64>
IShellItem2::GetUInt64
method.source§fn Update(&self, pbc: &impl ole_IBindCtx) -> HrResult<()>
fn Update(&self, pbc: &impl ole_IBindCtx) -> HrResult<()>
IShellItem2::Update
method.impl Send for IShellItem2
Auto Trait Implementations§
impl RefUnwindSafe for IShellItem2
impl !Sync for IShellItem2
impl Unpin for IShellItem2
impl UnwindSafe for IShellItem2
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