Struct winsafe::IMediaControl
source · pub struct IMediaControl(/* private fields */);
Available on crate feature
dshow
only.Expand description
IMediaControl
COM interface over IMediaControlVT
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*};
let graph_builder: w::IGraphBuilder; // initialized somewhere
let media_control = graph_builder
.QueryInterface::<w::IMediaControl>()?;
Trait Implementations§
source§impl Clone for IMediaControl
impl Clone for IMediaControl
source§impl Drop for IMediaControl
impl Drop for IMediaControl
source§impl dshow_IMediaControl for IMediaControl
impl dshow_IMediaControl for IMediaControl
source§fn AddSourceFilter(&self, file_name: &str) -> HrResult<IDispatch>
fn AddSourceFilter(&self, file_name: &str) -> HrResult<IDispatch>
IMediaControl::AddSourceFilter
method.source§fn GetState(&self, ms_timeout: Option<i32>) -> HrResult<FILTER_STATE>
fn GetState(&self, ms_timeout: Option<i32>) -> HrResult<FILTER_STATE>
IMediaControl::GetState
method.source§fn RenderFile(&self, file_name: &str) -> HrResult<()>
fn RenderFile(&self, file_name: &str) -> HrResult<()>
IMediaControl::RenderFile
method.source§fn StopWhenReady(&self) -> HrResult<bool>
fn StopWhenReady(&self) -> HrResult<bool>
IMediaControl::StopWhenReady
method.source§impl ole_IUnknown for IMediaControl
impl ole_IUnknown for IMediaControl
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.source§impl oleaut_IDispatch for IMediaControl
impl oleaut_IDispatch for IMediaControl
source§fn GetIDsOfNames(
&self,
names: &[impl AsRef<str>],
lcid: LCID
) -> HrResult<Vec<i32>>
fn GetIDsOfNames( &self, names: &[impl AsRef<str>], lcid: LCID ) -> HrResult<Vec<i32>>
Available on crate feature
oleaut
only.IDispatch::GetIDsOfNames
method.source§fn GetTypeInfoCount(&self) -> HrResult<u32>
fn GetTypeInfoCount(&self) -> HrResult<u32>
Available on crate feature
oleaut
only.IDispatch::GetTypeInfoCount
method.source§fn GetTypeInfo(&self, info_type: u32, lcid: LCID) -> HrResult<ITypeInfo>
fn GetTypeInfo(&self, info_type: u32, lcid: LCID) -> HrResult<ITypeInfo>
Available on crate feature
oleaut
only.IDispatch::GetTypeInfo
method.impl Send for IMediaControl
Auto Trait Implementations§
impl RefUnwindSafe for IMediaControl
impl !Sync for IMediaControl
impl Unpin for IMediaControl
impl UnwindSafe for IMediaControl
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