Struct IStillImageW
pub struct IStillImageW(/* private fields */);
Implementations§
§impl IStillImageW
impl IStillImageW
pub unsafe fn Initialize(&self, hinst: HINSTANCE, dwversion: u32) -> Result<()>
pub unsafe fn GetDeviceList( &self, dwtype: u32, dwflags: u32, pdwitemsreturned: *mut u32, ppbuffer: *mut *mut c_void, ) -> Result<()>
pub unsafe fn GetDeviceInfo<P0>(
&self,
pwszdevicename: P0,
ppbuffer: *mut *mut c_void,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn CreateDevice<P0, P3>(
&self,
pwszdevicename: P0,
dwmode: u32,
pdevice: *mut Option<IStiDevice>,
punkouter: P3,
) -> Result<()>where
P0: Param<PCWSTR>,
P3: Param<IUnknown>,
pub unsafe fn GetDeviceValue<P0, P1>(
&self,
pwszdevicename: P0,
pvaluename: P1,
ptype: *mut u32,
pdata: *mut u8,
cbdata: *mut u32,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn SetDeviceValue<P0, P1>(
&self,
pwszdevicename: P0,
pvaluename: P1,
type: u32,
pdata: &[u8],
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn GetSTILaunchInformation( &self, pwszdevicename: &mut [u16; 128], pdweventcode: Option<*mut u32>, pwszeventname: &mut [u16; 128], ) -> Result<()>
pub unsafe fn RegisterLaunchApplication<P0, P1>(
&self,
pwszappname: P0,
pwszcommandline: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn UnregisterLaunchApplication<P0>(
&self,
pwszappname: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn EnableHwNotifications<P0>(
&self,
pwszdevicename: P0,
bnewstate: bool,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetHwNotificationState<P0>(
&self,
pwszdevicename: P0,
) -> Result<BOOL>where
P0: Param<PCWSTR>,
pub unsafe fn RefreshDeviceBus<P0>(&self, pwszdevicename: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn LaunchApplicationForDevice<P0, P1>(
&self,
pwszdevicename: P0,
pwszappname: P1,
pstinotify: *const STINOTIFY,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn SetupDeviceParameters( &self, param0: *mut STI_DEVICE_INFORMATIONW, ) -> Result<()>
pub unsafe fn WriteToErrorLog<P1>(
&self,
dwmessagetype: u32,
pszmessage: P1,
) -> Result<()>where
P1: Param<PCWSTR>,
Trait Implementations§
§impl CanInto<IUnknown> for IStillImageW
impl CanInto<IUnknown> for IStillImageW
§impl Clone for IStillImageW
impl Clone for IStillImageW
§fn clone(&self) -> IStillImageW
fn clone(&self) -> IStillImageW
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 IStillImageW
impl Debug for IStillImageW
§impl From<&IStillImageW> for &IUnknown
impl From<&IStillImageW> for &IUnknown
§fn from(value: &IStillImageW) -> Self
fn from(value: &IStillImageW) -> Self
Converts to this type from the input type.
§impl From<IStillImageW> for IUnknown
impl From<IStillImageW> for IUnknown
§fn from(value: IStillImageW) -> Self
fn from(value: IStillImageW) -> Self
Converts to this type from the input type.
§impl Interface for IStillImageW
impl Interface for IStillImageW
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 IStillImageW
impl PartialEq for IStillImageW
impl Eq for IStillImageW
impl StructuralPartialEq for IStillImageW
Auto Trait Implementations§
impl Freeze for IStillImageW
impl RefUnwindSafe for IStillImageW
impl !Send for IStillImageW
impl !Sync for IStillImageW
impl Unpin for IStillImageW
impl UnwindSafe for IStillImageW
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