pub struct IAudioSessionControl2(/* private fields */);Implementations§
Source§impl IAudioSessionControl2
impl IAudioSessionControl2
pub unsafe fn GetState(&self, pretval: *mut AudioSessionState) -> HRESULT
pub unsafe fn GetDisplayName(&self, pretval: *mut PWSTR) -> HRESULT
pub unsafe fn SetDisplayName<'a>( &self, value: impl IntoParam<'a, PWSTR>, eventcontext: *mut Guid, ) -> HRESULT
pub unsafe fn GetIconPath(&self, pretval: *mut PWSTR) -> HRESULT
pub unsafe fn SetIconPath<'a>( &self, value: impl IntoParam<'a, PWSTR>, eventcontext: *mut Guid, ) -> HRESULT
pub unsafe fn GetGroupingParam(&self, pretval: *mut Guid) -> HRESULT
pub unsafe fn SetGroupingParam( &self, override: *mut Guid, eventcontext: *mut Guid, ) -> HRESULT
pub unsafe fn RegisterAudioSessionNotification<'a>( &self, newnotifications: impl IntoParam<'a, IAudioSessionEvents>, ) -> HRESULT
pub unsafe fn UnregisterAudioSessionNotification<'a>( &self, newnotifications: impl IntoParam<'a, IAudioSessionEvents>, ) -> HRESULT
pub unsafe fn GetSessionIdentifier(&self, pretval: *mut PWSTR) -> HRESULT
pub unsafe fn GetSessionInstanceIdentifier( &self, pretval: *mut PWSTR, ) -> HRESULT
pub unsafe fn GetProcessId(&self, pretval: *mut u32) -> HRESULT
pub unsafe fn IsSystemSoundsSession(&self) -> HRESULT
pub unsafe fn SetDuckingPreference<'a>( &self, optout: impl IntoParam<'a, BOOL>, ) -> HRESULT
Trait Implementations§
Source§impl Clone for IAudioSessionControl2
impl Clone for IAudioSessionControl2
Source§fn clone(&self) -> IAudioSessionControl2
fn clone(&self) -> IAudioSessionControl2
Returns a duplicate 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 IAudioSessionControl2
impl Debug for IAudioSessionControl2
Source§impl From<&IAudioSessionControl2> for IAudioSessionControl
impl From<&IAudioSessionControl2> for IAudioSessionControl
Source§fn from(value: &IAudioSessionControl2) -> Self
fn from(value: &IAudioSessionControl2) -> Self
Converts to this type from the input type.
Source§impl From<&IAudioSessionControl2> for IUnknown
impl From<&IAudioSessionControl2> for IUnknown
Source§fn from(value: &IAudioSessionControl2) -> Self
fn from(value: &IAudioSessionControl2) -> Self
Converts to this type from the input type.
Source§impl From<IAudioSessionControl2> for IAudioSessionControl
impl From<IAudioSessionControl2> for IAudioSessionControl
Source§fn from(value: IAudioSessionControl2) -> Self
fn from(value: IAudioSessionControl2) -> Self
Converts to this type from the input type.
Source§impl From<IAudioSessionControl2> for IUnknown
impl From<IAudioSessionControl2> for IUnknown
Source§fn from(value: IAudioSessionControl2) -> Self
fn from(value: IAudioSessionControl2) -> Self
Converts to this type from the input type.
Source§impl Interface for IAudioSessionControl2
impl Interface for IAudioSessionControl2
const IID: Guid
type Vtable = IAudioSessionControl2_abi
Source§impl<'a> IntoParam<'a, IAudioSessionControl> for &'a IAudioSessionControl2
impl<'a> IntoParam<'a, IAudioSessionControl> for &'a IAudioSessionControl2
fn into_param(self) -> Param<'a, IAudioSessionControl>
Source§impl<'a> IntoParam<'a, IAudioSessionControl> for IAudioSessionControl2
impl<'a> IntoParam<'a, IAudioSessionControl> for IAudioSessionControl2
fn into_param(self) -> Param<'a, IAudioSessionControl>
Source§impl<'a> IntoParam<'a, IUnknown> for &'a IAudioSessionControl2
impl<'a> IntoParam<'a, IUnknown> for &'a IAudioSessionControl2
fn into_param(self) -> Param<'a, IUnknown>
Source§impl<'a> IntoParam<'a, IUnknown> for IAudioSessionControl2
impl<'a> IntoParam<'a, IUnknown> for IAudioSessionControl2
fn into_param(self) -> Param<'a, IUnknown>
Source§impl PartialEq for IAudioSessionControl2
impl PartialEq for IAudioSessionControl2
impl Eq for IAudioSessionControl2
impl StructuralPartialEq for IAudioSessionControl2
Auto Trait Implementations§
impl Freeze for IAudioSessionControl2
impl RefUnwindSafe for IAudioSessionControl2
impl !Send for IAudioSessionControl2
impl !Sync for IAudioSessionControl2
impl Unpin for IAudioSessionControl2
impl UnwindSafe for IAudioSessionControl2
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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