pub struct IKnownFolder(/* private fields */);
Implementations§
Source§impl IKnownFolder
impl IKnownFolder
pub unsafe fn GetId(&self) -> Result<Guid>
pub unsafe fn GetCategory(&self) -> Result<KF_CATEGORY>
pub unsafe fn GetShellItem<T: Interface>(&self, dwflags: u32) -> Result<T>
pub unsafe fn GetPath(&self, dwflags: u32) -> Result<PWSTR>
pub unsafe fn SetPath<'a>( &self, dwflags: u32, pszpath: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn GetIDList(&self, dwflags: u32) -> Result<*mut ITEMIDLIST>
pub unsafe fn GetFolderType(&self) -> Result<Guid>
pub unsafe fn GetRedirectionCapabilities(&self) -> Result<u32>
pub unsafe fn GetFolderDefinition(&self) -> Result<KNOWNFOLDER_DEFINITION>
Trait Implementations§
Source§impl Clone for IKnownFolder
impl Clone for IKnownFolder
Source§fn clone(&self) -> IKnownFolder
fn clone(&self) -> IKnownFolder
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 IKnownFolder
impl Debug for IKnownFolder
Source§impl From<&IKnownFolder> for IUnknown
impl From<&IKnownFolder> for IUnknown
Source§fn from(value: &IKnownFolder) -> Self
fn from(value: &IKnownFolder) -> Self
Converts to this type from the input type.
Source§impl From<IKnownFolder> for IUnknown
impl From<IKnownFolder> for IUnknown
Source§fn from(value: IKnownFolder) -> Self
fn from(value: IKnownFolder) -> Self
Converts to this type from the input type.
Source§impl Interface for IKnownFolder
impl Interface for IKnownFolder
const IID: Guid
type Vtable = IKnownFolder_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 IKnownFolder
impl PartialEq for IKnownFolder
impl Eq for IKnownFolder
impl StructuralPartialEq for IKnownFolder
Auto Trait Implementations§
impl Freeze for IKnownFolder
impl RefUnwindSafe for IKnownFolder
impl !Send for IKnownFolder
impl !Sync for IKnownFolder
impl Unpin for IKnownFolder
impl UnwindSafe for IKnownFolder
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