pub struct IShellLibrary(/* private fields */);
Implementations§
Source§impl IShellLibrary
impl IShellLibrary
pub unsafe fn LoadLibraryFromItem<'a>( &self, psilibrary: impl IntoParam<'a, IShellItem>, grfmode: u32, ) -> Result<()>
pub unsafe fn LoadLibraryFromKnownFolder( &self, kfidlibrary: *const Guid, grfmode: u32, ) -> Result<()>
pub unsafe fn AddFolder<'a>( &self, psilocation: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn RemoveFolder<'a>( &self, psilocation: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn GetFolders<T: Interface>( &self, lff: LIBRARYFOLDERFILTER, ) -> Result<T>
pub unsafe fn ResolveFolder<'a, T: Interface>( &self, psifoldertoresolve: impl IntoParam<'a, IShellItem>, dwtimeout: u32, ) -> Result<T>
pub unsafe fn GetDefaultSaveFolder<T: Interface>( &self, dsft: DEFAULTSAVEFOLDERTYPE, ) -> Result<T>
pub unsafe fn SetDefaultSaveFolder<'a>( &self, dsft: DEFAULTSAVEFOLDERTYPE, psi: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn GetOptions(&self) -> Result<LIBRARYOPTIONFLAGS>
pub unsafe fn SetOptions( &self, lofmask: LIBRARYOPTIONFLAGS, lofoptions: LIBRARYOPTIONFLAGS, ) -> Result<()>
pub unsafe fn GetFolderType(&self) -> Result<Guid>
pub unsafe fn SetFolderType(&self, ftid: *const Guid) -> Result<()>
pub unsafe fn GetIcon(&self) -> Result<PWSTR>
pub unsafe fn SetIcon<'a>( &self, pszicon: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn Commit(&self) -> Result<()>
pub unsafe fn Save<'a>( &self, psifoldertosavein: impl IntoParam<'a, IShellItem>, pszlibraryname: impl IntoParam<'a, PWSTR>, lsf: LIBRARYSAVEFLAGS, ) -> Result<IShellItem>
pub unsafe fn SaveInKnownFolder<'a>( &self, kfidtosavein: *const Guid, pszlibraryname: impl IntoParam<'a, PWSTR>, lsf: LIBRARYSAVEFLAGS, ) -> Result<IShellItem>
Trait Implementations§
Source§impl Clone for IShellLibrary
impl Clone for IShellLibrary
Source§fn clone(&self) -> IShellLibrary
fn clone(&self) -> IShellLibrary
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 IShellLibrary
impl Debug for IShellLibrary
Source§impl From<&IShellLibrary> for IUnknown
impl From<&IShellLibrary> for IUnknown
Source§fn from(value: &IShellLibrary) -> Self
fn from(value: &IShellLibrary) -> Self
Converts to this type from the input type.
Source§impl From<IShellLibrary> for IUnknown
impl From<IShellLibrary> for IUnknown
Source§fn from(value: IShellLibrary) -> Self
fn from(value: IShellLibrary) -> Self
Converts to this type from the input type.
Source§impl Interface for IShellLibrary
impl Interface for IShellLibrary
const IID: Guid
type Vtable = IShellLibrary_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 IShellLibrary
impl PartialEq for IShellLibrary
impl Eq for IShellLibrary
impl StructuralPartialEq for IShellLibrary
Auto Trait Implementations§
impl Freeze for IShellLibrary
impl RefUnwindSafe for IShellLibrary
impl !Send for IShellLibrary
impl !Sync for IShellLibrary
impl Unpin for IShellLibrary
impl UnwindSafe for IShellLibrary
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