pub struct IShellItem2(/* private fields */);
Implementations§
Source§impl IShellItem2
impl IShellItem2
pub unsafe fn BindToHandler<'a, T: Interface>( &self, pbc: impl IntoParam<'a, IBindCtx>, bhid: *const Guid, ) -> Result<T>
pub unsafe fn GetParent(&self) -> Result<IShellItem>
pub unsafe fn GetDisplayName(&self, sigdnname: SIGDN) -> Result<PWSTR>
pub unsafe fn GetAttributes(&self, sfgaomask: u32) -> Result<u32>
pub unsafe fn Compare<'a>( &self, psi: impl IntoParam<'a, IShellItem>, hint: u32, ) -> Result<i32>
pub unsafe fn GetPropertyStore<T: Interface>( &self, flags: GETPROPERTYSTOREFLAGS, ) -> Result<T>
pub unsafe fn GetPropertyStoreWithCreateObject<'a, T: Interface>( &self, flags: GETPROPERTYSTOREFLAGS, punkcreateobject: impl IntoParam<'a, IUnknown>, ) -> Result<T>
pub unsafe fn GetPropertyStoreForKeys<T: Interface>( &self, rgkeys: *const PROPERTYKEY, ckeys: u32, flags: GETPROPERTYSTOREFLAGS, ) -> Result<T>
pub unsafe fn GetPropertyDescriptionList<T: Interface>( &self, keytype: *const PROPERTYKEY, ) -> Result<T>
pub unsafe fn Update<'a>(&self, pbc: impl IntoParam<'a, IBindCtx>) -> Result<()>
pub unsafe fn GetProperty(&self, key: *const PROPERTYKEY) -> Result<PROPVARIANT>
pub unsafe fn GetCLSID(&self, key: *const PROPERTYKEY) -> Result<Guid>
pub unsafe fn GetFileTime(&self, key: *const PROPERTYKEY) -> Result<FILETIME>
pub unsafe fn GetInt32(&self, key: *const PROPERTYKEY) -> Result<i32>
pub unsafe fn GetString(&self, key: *const PROPERTYKEY) -> Result<PWSTR>
pub unsafe fn GetUInt32(&self, key: *const PROPERTYKEY) -> Result<u32>
pub unsafe fn GetUInt64(&self, key: *const PROPERTYKEY) -> Result<u64>
pub unsafe fn GetBool(&self, key: *const PROPERTYKEY) -> Result<BOOL>
Trait Implementations§
Source§impl Clone for IShellItem2
impl Clone for IShellItem2
Source§fn clone(&self) -> IShellItem2
fn clone(&self) -> IShellItem2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IShellItem2
impl Debug for IShellItem2
Source§impl From<&IShellItem2> for IShellItem
impl From<&IShellItem2> for IShellItem
Source§fn from(value: &IShellItem2) -> Self
fn from(value: &IShellItem2) -> Self
Converts to this type from the input type.
Source§impl From<&IShellItem2> for IUnknown
impl From<&IShellItem2> for IUnknown
Source§fn from(value: &IShellItem2) -> Self
fn from(value: &IShellItem2) -> Self
Converts to this type from the input type.
Source§impl From<IShellItem2> for IShellItem
impl From<IShellItem2> for IShellItem
Source§fn from(value: IShellItem2) -> Self
fn from(value: IShellItem2) -> Self
Converts to this type from the input type.
Source§impl From<IShellItem2> for IUnknown
impl From<IShellItem2> for IUnknown
Source§fn from(value: IShellItem2) -> Self
fn from(value: IShellItem2) -> Self
Converts to this type from the input type.
Source§impl Interface for IShellItem2
impl Interface for IShellItem2
const IID: Guid
type Vtable = IShellItem2_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IShellItem2
impl PartialEq for IShellItem2
impl Eq for IShellItem2
impl StructuralPartialEq for IShellItem2
Auto Trait Implementations§
impl Freeze for IShellItem2
impl RefUnwindSafe for IShellItem2
impl !Send for IShellItem2
impl !Sync for IShellItem2
impl Unpin for IShellItem2
impl UnwindSafe for IShellItem2
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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