Struct windows::Win32::Storage::Vss::IVssComponentEx2
pub struct IVssComponentEx2(/* private fields */);
Implementations§
§impl IVssComponentEx2
impl IVssComponentEx2
pub unsafe fn SetFailure<P0>(
&self,
hr: HRESULT,
hrapplication: HRESULT,
wszapplicationmessage: P0,
dwreserved: u32,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetFailure( &self, phr: *mut HRESULT, phrapplication: *mut HRESULT, pbstrapplicationmessage: *mut BSTR, pdwreserved: *mut u32, ) -> Result<()>
Methods from Deref<Target = IVssComponentEx>§
pub unsafe fn SetPrepareForBackupFailureMsg<P0>(
&self,
wszfailuremsg: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetPostSnapshotFailureMsg<P0>(
&self,
wszfailuremsg: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> Result<BSTR>
pub unsafe fn GetPostSnapshotFailureMsg(&self) -> Result<BSTR>
pub unsafe fn GetAuthoritativeRestore(&self) -> Result<bool>
pub unsafe fn GetRollForward( &self, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut BSTR, ) -> Result<()>
pub unsafe fn GetRestoreName(&self) -> Result<BSTR>
Methods from Deref<Target = IVssComponent>§
pub unsafe fn GetLogicalPath(&self, pbstrpath: *mut BSTR) -> Result<()>
pub unsafe fn GetComponentType( &self, pct: *mut VSS_COMPONENT_TYPE, ) -> Result<()>
pub unsafe fn GetComponentName(&self, pbstrname: *mut BSTR) -> Result<()>
pub unsafe fn GetBackupSucceeded(&self, pbsucceeded: *mut bool) -> Result<()>
pub unsafe fn GetAlternateLocationMappingCount( &self, pcmappings: *mut u32, ) -> Result<()>
pub unsafe fn GetAlternateLocationMapping( &self, imapping: u32, ) -> Result<IVssWMFiledesc>
pub unsafe fn SetBackupMetadata<P0>(&self, wszdata: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetBackupMetadata(&self, pbstrdata: *mut BSTR) -> Result<()>
pub unsafe fn AddPartialFile<P0, P1, P2, P3>(
&self,
wszpath: P0,
wszfilename: P1,
wszranges: P2,
wszmetadata: P3,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
P3: Param<PCWSTR>,
pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> Result<()>
pub unsafe fn GetPartialFile( &self, ipartialfile: u32, pbstrpath: *mut BSTR, pbstrfilename: *mut BSTR, pbstrrange: *mut BSTR, pbstrmetadata: *mut BSTR, ) -> Result<()>
pub unsafe fn IsSelectedForRestore( &self, pbselectedforrestore: *mut bool, ) -> Result<()>
pub unsafe fn GetAdditionalRestores( &self, pbadditionalrestores: *mut bool, ) -> Result<()>
pub unsafe fn GetNewTargetCount(&self, pcnewtarget: *mut u32) -> Result<()>
pub unsafe fn GetNewTarget(&self, inewtarget: u32) -> Result<IVssWMFiledesc>
pub unsafe fn AddDirectedTarget<P0, P1, P2, P3, P4, P5>(
&self,
wszsourcepath: P0,
wszsourcefilename: P1,
wszsourcerangelist: P2,
wszdestinationpath: P3,
wszdestinationfilename: P4,
wszdestinationrangelist: P5,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
P3: Param<PCWSTR>,
P4: Param<PCWSTR>,
P5: Param<PCWSTR>,
pub unsafe fn GetDirectedTargetCount( &self, pcdirectedtarget: *mut u32, ) -> Result<()>
pub unsafe fn GetDirectedTarget( &self, idirectedtarget: u32, pbstrsourcepath: *mut BSTR, pbstrsourcefilename: *mut BSTR, pbstrsourcerangelist: *mut BSTR, pbstrdestinationpath: *mut BSTR, pbstrdestinationfilename: *mut BSTR, pbstrdestinationrangelist: *mut BSTR, ) -> Result<()>
pub unsafe fn SetRestoreMetadata<P0>(
&self,
wszrestoremetadata: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetRestoreMetadata( &self, pbstrrestoremetadata: *mut BSTR, ) -> Result<()>
pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> Result<()>
pub unsafe fn GetRestoreTarget( &self, ptarget: *mut VSS_RESTORE_TARGET, ) -> Result<()>
pub unsafe fn SetPreRestoreFailureMsg<P0>(
&self,
wszprerestorefailuremsg: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetPreRestoreFailureMsg( &self, pbstrprerestorefailuremsg: *mut BSTR, ) -> Result<()>
pub unsafe fn SetPostRestoreFailureMsg<P0>(
&self,
wszpostrestorefailuremsg: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetPostRestoreFailureMsg( &self, pbstrpostrestorefailuremsg: *mut BSTR, ) -> Result<()>
pub unsafe fn SetBackupStamp<P0>(&self, wszbackupstamp: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: *mut BSTR) -> Result<()>
pub unsafe fn GetPreviousBackupStamp( &self, pbstrbackupstamp: *mut BSTR, ) -> Result<()>
pub unsafe fn GetBackupOptions( &self, pbstrbackupoptions: *mut BSTR, ) -> Result<()>
pub unsafe fn GetRestoreOptions( &self, pbstrrestoreoptions: *mut BSTR, ) -> Result<()>
pub unsafe fn GetRestoreSubcomponentCount( &self, pcrestoresubcomponent: *mut u32, ) -> Result<()>
pub unsafe fn GetRestoreSubcomponent( &self, icomponent: u32, pbstrlogicalpath: *mut BSTR, pbstrcomponentname: *mut BSTR, pbrepair: *mut bool, ) -> Result<()>
pub unsafe fn GetFileRestoreStatus( &self, pstatus: *mut VSS_FILE_RESTORE_STATUS, ) -> Result<()>
pub unsafe fn AddDifferencedFilesByLastModifyTime<P0, P1, P2>(
&self,
wszpath: P0,
wszfilespec: P1,
brecursive: P2,
ftlastmodifytime: FILETIME,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
P2: Param<BOOL>,
pub unsafe fn AddDifferencedFilesByLastModifyLSN<P0, P1, P2, P3>(
&self,
wszpath: P0,
wszfilespec: P1,
brecursive: P2,
bstrlsnstring: P3,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
P2: Param<BOOL>,
P3: Param<BSTR>,
pub unsafe fn GetDifferencedFilesCount( &self, pcdifferencedfiles: *mut u32, ) -> Result<()>
pub unsafe fn GetDifferencedFile( &self, idifferencedfile: u32, pbstrpath: *mut BSTR, pbstrfilespec: *mut BSTR, pbrecursive: *mut BOOL, pbstrlsnstring: *mut BSTR, pftlastmodifytime: *mut FILETIME, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IVssComponentEx2
impl CanInto<IUnknown> for IVssComponentEx2
§impl CanInto<IVssComponent> for IVssComponentEx2
impl CanInto<IVssComponent> for IVssComponentEx2
§impl CanInto<IVssComponentEx> for IVssComponentEx2
impl CanInto<IVssComponentEx> for IVssComponentEx2
§impl Clone for IVssComponentEx2
impl Clone for IVssComponentEx2
§fn clone(&self) -> IVssComponentEx2
fn clone(&self) -> IVssComponentEx2
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 more§impl Debug for IVssComponentEx2
impl Debug for IVssComponentEx2
§impl Deref for IVssComponentEx2
impl Deref for IVssComponentEx2
§impl From<&IVssComponentEx2> for &IUnknown
impl From<&IVssComponentEx2> for &IUnknown
§fn from(value: &IVssComponentEx2) -> Self
fn from(value: &IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl From<&IVssComponentEx2> for &IVssComponent
impl From<&IVssComponentEx2> for &IVssComponent
§fn from(value: &IVssComponentEx2) -> Self
fn from(value: &IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl From<&IVssComponentEx2> for &IVssComponentEx
impl From<&IVssComponentEx2> for &IVssComponentEx
§fn from(value: &IVssComponentEx2) -> Self
fn from(value: &IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl From<IVssComponentEx2> for IUnknown
impl From<IVssComponentEx2> for IUnknown
§fn from(value: IVssComponentEx2) -> Self
fn from(value: IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl From<IVssComponentEx2> for IVssComponent
impl From<IVssComponentEx2> for IVssComponent
§fn from(value: IVssComponentEx2) -> Self
fn from(value: IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl From<IVssComponentEx2> for IVssComponentEx
impl From<IVssComponentEx2> for IVssComponentEx
§fn from(value: IVssComponentEx2) -> Self
fn from(value: IVssComponentEx2) -> Self
Converts to this type from the input type.
§impl Interface for IVssComponentEx2
impl Interface for IVssComponentEx2
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IVssComponentEx2
impl PartialEq for IVssComponentEx2
§fn eq(&self, other: &IVssComponentEx2) -> bool
fn eq(&self, other: &IVssComponentEx2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IVssComponentEx2
impl StructuralPartialEq for IVssComponentEx2
Auto Trait Implementations§
impl Freeze for IVssComponentEx2
impl RefUnwindSafe for IVssComponentEx2
impl !Send for IVssComponentEx2
impl !Sync for IVssComponentEx2
impl Unpin for IVssComponentEx2
impl UnwindSafe for IVssComponentEx2
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)