Struct windows::Win32::Devices::PortableDevices::IPortableDeviceValues
pub struct IPortableDeviceValues(/* private fields */);
Implementations§
§impl IPortableDeviceValues
impl IPortableDeviceValues
pub unsafe fn GetCount(&self, pcelt: *const u32) -> Result<()>
pub unsafe fn GetAt( &self, index: u32, pkey: *mut PROPERTYKEY, pvalue: *mut PROPVARIANT, ) -> Result<()>
pub unsafe fn SetValue( &self, key: *const PROPERTYKEY, pvalue: *const PROPVARIANT, ) -> Result<()>
pub unsafe fn GetValue(&self, key: *const PROPERTYKEY) -> Result<PROPVARIANT>
pub unsafe fn SetStringValue<P0>(
&self,
key: *const PROPERTYKEY,
value: P0,
) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn GetStringValue(&self, key: *const PROPERTYKEY) -> Result<PWSTR>
pub unsafe fn SetUnsignedIntegerValue( &self, key: *const PROPERTYKEY, value: u32, ) -> Result<()>
pub unsafe fn GetUnsignedIntegerValue( &self, key: *const PROPERTYKEY, ) -> Result<u32>
pub unsafe fn SetSignedIntegerValue( &self, key: *const PROPERTYKEY, value: i32, ) -> Result<()>
pub unsafe fn GetSignedIntegerValue( &self, key: *const PROPERTYKEY, ) -> Result<i32>
pub unsafe fn SetUnsignedLargeIntegerValue( &self, key: *const PROPERTYKEY, value: u64, ) -> Result<()>
pub unsafe fn GetUnsignedLargeIntegerValue( &self, key: *const PROPERTYKEY, ) -> Result<u64>
pub unsafe fn SetSignedLargeIntegerValue( &self, key: *const PROPERTYKEY, value: i64, ) -> Result<()>
pub unsafe fn GetSignedLargeIntegerValue( &self, key: *const PROPERTYKEY, ) -> Result<i64>
pub unsafe fn SetFloatValue( &self, key: *const PROPERTYKEY, value: f32, ) -> Result<()>
pub unsafe fn GetFloatValue(&self, key: *const PROPERTYKEY) -> Result<f32>
pub unsafe fn SetErrorValue( &self, key: *const PROPERTYKEY, value: HRESULT, ) -> Result<()>
pub unsafe fn GetErrorValue(&self, key: *const PROPERTYKEY) -> Result<HRESULT>
pub unsafe fn SetKeyValue( &self, key: *const PROPERTYKEY, value: *const PROPERTYKEY, ) -> Result<()>
pub unsafe fn GetKeyValue( &self, key: *const PROPERTYKEY, pvalue: *mut PROPERTYKEY, ) -> Result<()>
pub unsafe fn SetBoolValue<P0>(
&self,
key: *const PROPERTYKEY,
value: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn GetBoolValue(&self, key: *const PROPERTYKEY) -> Result<BOOL>
pub unsafe fn SetIUnknownValue<P0>(
&self,
key: *const PROPERTYKEY,
pvalue: P0,
) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn GetIUnknownValue( &self, key: *const PROPERTYKEY, ) -> Result<IUnknown>
pub unsafe fn SetGuidValue( &self, key: *const PROPERTYKEY, value: *const GUID, ) -> Result<()>
pub unsafe fn GetGuidValue(&self, key: *const PROPERTYKEY) -> Result<GUID>
pub unsafe fn SetBufferValue( &self, key: *const PROPERTYKEY, pvalue: &[u8], ) -> Result<()>
pub unsafe fn GetBufferValue( &self, key: *const PROPERTYKEY, ppvalue: *mut *mut u8, pcbvalue: *mut u32, ) -> Result<()>
pub unsafe fn SetIPortableDeviceValuesValue<P0>(
&self,
key: *const PROPERTYKEY,
pvalue: P0,
) -> Result<()>where
P0: Param<IPortableDeviceValues>,
pub unsafe fn GetIPortableDeviceValuesValue( &self, key: *const PROPERTYKEY, ) -> Result<IPortableDeviceValues>
pub unsafe fn SetIPortableDevicePropVariantCollectionValue<P0>(
&self,
key: *const PROPERTYKEY,
pvalue: P0,
) -> Result<()>where
P0: Param<IPortableDevicePropVariantCollection>,
pub unsafe fn GetIPortableDevicePropVariantCollectionValue( &self, key: *const PROPERTYKEY, ) -> Result<IPortableDevicePropVariantCollection>
pub unsafe fn SetIPortableDeviceKeyCollectionValue<P0>(
&self,
key: *const PROPERTYKEY,
pvalue: P0,
) -> Result<()>where
P0: Param<IPortableDeviceKeyCollection>,
pub unsafe fn GetIPortableDeviceKeyCollectionValue( &self, key: *const PROPERTYKEY, ) -> Result<IPortableDeviceKeyCollection>
pub unsafe fn SetIPortableDeviceValuesCollectionValue<P0>(
&self,
key: *const PROPERTYKEY,
pvalue: P0,
) -> Result<()>where
P0: Param<IPortableDeviceValuesCollection>,
pub unsafe fn GetIPortableDeviceValuesCollectionValue( &self, key: *const PROPERTYKEY, ) -> Result<IPortableDeviceValuesCollection>
pub unsafe fn RemoveValue(&self, key: *const PROPERTYKEY) -> Result<()>
pub unsafe fn CopyValuesFromPropertyStore<P0>(&self, pstore: P0) -> Result<()>where
P0: Param<IPropertyStore>,
pub unsafe fn CopyValuesToPropertyStore<P0>(&self, pstore: P0) -> Result<()>where
P0: Param<IPropertyStore>,
pub unsafe fn Clear(&self) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IPortableDeviceValues
impl CanInto<IUnknown> for IPortableDeviceValues
§impl Clone for IPortableDeviceValues
impl Clone for IPortableDeviceValues
§fn clone(&self) -> IPortableDeviceValues
fn clone(&self) -> IPortableDeviceValues
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 IPortableDeviceValues
impl Debug for IPortableDeviceValues
§impl Deref for IPortableDeviceValues
impl Deref for IPortableDeviceValues
§impl From<&IPortableDeviceValues> for &IUnknown
impl From<&IPortableDeviceValues> for &IUnknown
§fn from(value: &IPortableDeviceValues) -> Self
fn from(value: &IPortableDeviceValues) -> Self
Converts to this type from the input type.
§impl From<IPortableDeviceValues> for IUnknown
impl From<IPortableDeviceValues> for IUnknown
§fn from(value: IPortableDeviceValues) -> Self
fn from(value: IPortableDeviceValues) -> Self
Converts to this type from the input type.
§impl Interface for IPortableDeviceValues
impl Interface for IPortableDeviceValues
§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 IPortableDeviceValues
impl PartialEq for IPortableDeviceValues
§fn eq(&self, other: &IPortableDeviceValues) -> bool
fn eq(&self, other: &IPortableDeviceValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IPortableDeviceValues
impl StructuralPartialEq for IPortableDeviceValues
Auto Trait Implementations§
impl Freeze for IPortableDeviceValues
impl RefUnwindSafe for IPortableDeviceValues
impl !Send for IPortableDeviceValues
impl !Sync for IPortableDeviceValues
impl Unpin for IPortableDeviceValues
impl UnwindSafe for IPortableDeviceValues
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
)