pub struct IFileOperation2(/* private fields */);
Implementations§
Source§impl IFileOperation2
impl IFileOperation2
pub unsafe fn Advise<'a>( &self, pfops: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<u32>
pub unsafe fn Unadvise(&self, dwcookie: u32) -> Result<()>
pub unsafe fn SetOperationFlags(&self, dwoperationflags: u32) -> Result<()>
pub unsafe fn SetProgressMessage<'a>( &self, pszmessage: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn SetProgressDialog<'a>( &self, popd: impl IntoParam<'a, IOperationsProgressDialog>, ) -> Result<()>
pub unsafe fn SetProperties<'a>( &self, pproparray: impl IntoParam<'a, IPropertyChangeArray>, ) -> Result<()>
pub unsafe fn SetOwnerWindow<'a>( &self, hwndowner: impl IntoParam<'a, HWND>, ) -> Result<()>
pub unsafe fn ApplyPropertiesToItem<'a>( &self, psiitem: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn ApplyPropertiesToItems<'a>( &self, punkitems: impl IntoParam<'a, IUnknown>, ) -> Result<()>
pub unsafe fn RenameItem<'a>( &self, psiitem: impl IntoParam<'a, IShellItem>, psznewname: impl IntoParam<'a, PWSTR>, pfopsitem: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<()>
pub unsafe fn RenameItems<'a>( &self, punkitems: impl IntoParam<'a, IUnknown>, psznewname: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn MoveItem<'a>( &self, psiitem: impl IntoParam<'a, IShellItem>, psidestinationfolder: impl IntoParam<'a, IShellItem>, psznewname: impl IntoParam<'a, PWSTR>, pfopsitem: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<()>
pub unsafe fn MoveItems<'a>( &self, punkitems: impl IntoParam<'a, IUnknown>, psidestinationfolder: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn CopyItem<'a>( &self, psiitem: impl IntoParam<'a, IShellItem>, psidestinationfolder: impl IntoParam<'a, IShellItem>, pszcopyname: impl IntoParam<'a, PWSTR>, pfopsitem: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<()>
pub unsafe fn CopyItems<'a>( &self, punkitems: impl IntoParam<'a, IUnknown>, psidestinationfolder: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn DeleteItem<'a>( &self, psiitem: impl IntoParam<'a, IShellItem>, pfopsitem: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<()>
pub unsafe fn DeleteItems<'a>( &self, punkitems: impl IntoParam<'a, IUnknown>, ) -> Result<()>
pub unsafe fn NewItem<'a>( &self, psidestinationfolder: impl IntoParam<'a, IShellItem>, dwfileattributes: u32, pszname: impl IntoParam<'a, PWSTR>, psztemplatename: impl IntoParam<'a, PWSTR>, pfopsitem: impl IntoParam<'a, IFileOperationProgressSink>, ) -> Result<()>
pub unsafe fn PerformOperations(&self) -> Result<()>
pub unsafe fn GetAnyOperationsAborted(&self) -> Result<BOOL>
pub unsafe fn SetOperationFlags2( &self, operationflags2: FILE_OPERATION_FLAGS2, ) -> Result<()>
Trait Implementations§
Source§impl Clone for IFileOperation2
impl Clone for IFileOperation2
Source§fn clone(&self) -> IFileOperation2
fn clone(&self) -> IFileOperation2
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 IFileOperation2
impl Debug for IFileOperation2
Source§impl From<&IFileOperation2> for IFileOperation
impl From<&IFileOperation2> for IFileOperation
Source§fn from(value: &IFileOperation2) -> Self
fn from(value: &IFileOperation2) -> Self
Converts to this type from the input type.
Source§impl From<&IFileOperation2> for IUnknown
impl From<&IFileOperation2> for IUnknown
Source§fn from(value: &IFileOperation2) -> Self
fn from(value: &IFileOperation2) -> Self
Converts to this type from the input type.
Source§impl From<IFileOperation2> for IFileOperation
impl From<IFileOperation2> for IFileOperation
Source§fn from(value: IFileOperation2) -> Self
fn from(value: IFileOperation2) -> Self
Converts to this type from the input type.
Source§impl From<IFileOperation2> for IUnknown
impl From<IFileOperation2> for IUnknown
Source§fn from(value: IFileOperation2) -> Self
fn from(value: IFileOperation2) -> Self
Converts to this type from the input type.
Source§impl Interface for IFileOperation2
impl Interface for IFileOperation2
const IID: Guid
type Vtable = IFileOperation2_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 IFileOperation2
impl PartialEq for IFileOperation2
impl Eq for IFileOperation2
impl StructuralPartialEq for IFileOperation2
Auto Trait Implementations§
impl Freeze for IFileOperation2
impl RefUnwindSafe for IFileOperation2
impl !Send for IFileOperation2
impl !Sync for IFileOperation2
impl Unpin for IFileOperation2
impl UnwindSafe for IFileOperation2
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