Struct windows::Win32::Storage::Xps::IXpsSignatureManager
pub struct IXpsSignatureManager(/* private fields */);
Implementations§
§impl IXpsSignatureManager
impl IXpsSignatureManager
pub unsafe fn LoadPackageFile<P0>(&self, filename: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn LoadPackageStream<P0>(&self, stream: P0) -> Result<()>where
P0: Param<IStream>,
pub unsafe fn Sign<P0>(
&self,
signoptions: P0,
x509certificate: *const CERT_CONTEXT,
) -> Result<IXpsSignature>where
P0: Param<IXpsSigningOptions>,
pub unsafe fn GetSignatureOriginPartName(&self) -> Result<IOpcPartUri>
pub unsafe fn SetSignatureOriginPartName<P0>(
&self,
signatureoriginpartname: P0,
) -> Result<()>where
P0: Param<IOpcPartUri>,
pub unsafe fn GetSignatures(&self) -> Result<IXpsSignatureCollection>
pub unsafe fn AddSignatureBlock<P0>(
&self,
partname: P0,
fixeddocumentindex: u32,
) -> Result<IXpsSignatureBlock>where
P0: Param<IOpcPartUri>,
pub unsafe fn GetSignatureBlocks(&self) -> Result<IXpsSignatureBlockCollection>
pub unsafe fn CreateSigningOptions(&self) -> Result<IXpsSigningOptions>
pub unsafe fn SavePackageToFile<P0>(
&self,
filename: P0,
securityattributes: *const SECURITY_ATTRIBUTES,
flagsandattributes: u32,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SavePackageToStream<P0>(&self, stream: P0) -> Result<()>where
P0: Param<IStream>,
Trait Implementations§
§impl CanInto<IUnknown> for IXpsSignatureManager
impl CanInto<IUnknown> for IXpsSignatureManager
§impl Clone for IXpsSignatureManager
impl Clone for IXpsSignatureManager
§fn clone(&self) -> IXpsSignatureManager
fn clone(&self) -> IXpsSignatureManager
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 IXpsSignatureManager
impl Debug for IXpsSignatureManager
§impl Deref for IXpsSignatureManager
impl Deref for IXpsSignatureManager
§impl From<&IXpsSignatureManager> for &IUnknown
impl From<&IXpsSignatureManager> for &IUnknown
§fn from(value: &IXpsSignatureManager) -> Self
fn from(value: &IXpsSignatureManager) -> Self
Converts to this type from the input type.
§impl From<IXpsSignatureManager> for IUnknown
impl From<IXpsSignatureManager> for IUnknown
§fn from(value: IXpsSignatureManager) -> Self
fn from(value: IXpsSignatureManager) -> Self
Converts to this type from the input type.
§impl Interface for IXpsSignatureManager
impl Interface for IXpsSignatureManager
§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 IXpsSignatureManager
impl PartialEq for IXpsSignatureManager
§fn eq(&self, other: &IXpsSignatureManager) -> bool
fn eq(&self, other: &IXpsSignatureManager) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IXpsSignatureManager
impl StructuralPartialEq for IXpsSignatureManager
Auto Trait Implementations§
impl Freeze for IXpsSignatureManager
impl RefUnwindSafe for IXpsSignatureManager
impl !Send for IXpsSignatureManager
impl !Sync for IXpsSignatureManager
impl Unpin for IXpsSignatureManager
impl UnwindSafe for IXpsSignatureManager
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
)