Struct com_policy_config::IPolicyConfig
source · #[repr(transparent)]pub struct IPolicyConfig(_);Implementations§
source§impl IPolicyConfig
impl IPolicyConfig
pub unsafe fn GetMixFormat( &self, device_name: impl Into<InParam<PCWSTR>> ) -> Result<*mut WAVEFORMATEX>
pub unsafe fn GetDeviceFormat( &self, device_name: impl Into<InParam<PCWSTR>>, default: impl Into<BOOL> ) -> Result<*mut WAVEFORMATEX>
pub unsafe fn ResetDeviceFormat( &self, device_name: impl Into<InParam<PCWSTR>> ) -> Result<()>
pub unsafe fn SetDeviceFormat( &self, device_name: impl Into<InParam<PCWSTR>>, endpoint_format: WAVEFORMATEX, mix_format: WAVEFORMATEX ) -> Result<()>
pub unsafe fn GetProcessingPeriod( &self, device_name: impl Into<InParam<PCWSTR>>, default: impl Into<BOOL>, default_period: *mut i64, min_period: *mut i64 ) -> Result<()>
pub unsafe fn SetProcessingPeriod( &self, device_name: impl Into<InParam<PCWSTR>>, period: *mut i64 ) -> Result<()>
pub unsafe fn GetPropertyValue( &self, device_name: impl Into<InParam<PCWSTR>>, bFxStore: impl Into<BOOL>, key: *const PROPERTYKEY ) -> Result<PROPVARIANT>
pub unsafe fn SetPropertyValue( &self, device_name: impl Into<InParam<PCWSTR>>, bFxStore: impl Into<BOOL>, key: *const PROPERTYKEY, propvar: *mut PROPVARIANT ) -> Result<()>
pub unsafe fn SetDefaultEndpoint( &self, device_name: impl Into<InParam<PCWSTR>>, role: ERole ) -> Result<()>
pub unsafe fn SetEndpointVisibility( &self, device_name: impl Into<InParam<PCWSTR>>, visible: impl Into<BOOL> ) -> Result<()>
Trait Implementations§
source§impl Clone for IPolicyConfig
impl Clone for IPolicyConfig
source§fn clone(&self) -> IPolicyConfig
fn clone(&self) -> IPolicyConfig
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 IPolicyConfig
impl Debug for IPolicyConfig
source§impl From<&IPolicyConfig> for &IUnknown
impl From<&IPolicyConfig> for &IUnknown
source§fn from(value: &IPolicyConfig) -> Self
fn from(value: &IPolicyConfig) -> Self
Converts to this type from the input type.
source§impl From<&IPolicyConfig> for IUnknown
impl From<&IPolicyConfig> for IUnknown
source§fn from(value: &IPolicyConfig) -> Self
fn from(value: &IPolicyConfig) -> Self
Converts to this type from the input type.
source§impl From<IPolicyConfig> for IUnknown
impl From<IPolicyConfig> for IUnknown
source§fn from(value: IPolicyConfig) -> Self
fn from(value: IPolicyConfig) -> Self
Converts to this type from the input type.
source§impl Interface for IPolicyConfig
impl Interface for IPolicyConfig
source§impl PartialEq<IPolicyConfig> for IPolicyConfig
impl PartialEq<IPolicyConfig> for IPolicyConfig
source§fn eq(&self, other: &IPolicyConfig) -> bool
fn eq(&self, other: &IPolicyConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Vtable for IPolicyConfig
impl Vtable for IPolicyConfig
type Vtable = IPolicyConfig_Vtbl
source§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.source§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.