Trait windows::Win32::Media::Speech::ISpTaskManager_Impl
pub trait ISpTaskManager_Impl: Sized {
// Required methods
fn SetThreadPoolInfo(&self, ppoolinfo: *const SPTMTHREADINFO) -> Result<()>;
fn GetThreadPoolInfo(&self) -> Result<SPTMTHREADINFO>;
fn QueueTask(
&self,
ptask: Option<&ISpTask>,
pvtaskdata: *const c_void,
hcompevent: HANDLE,
pdwgroupid: *mut u32,
ptaskid: *mut u32,
) -> Result<()>;
fn CreateReoccurringTask(
&self,
ptask: Option<&ISpTask>,
pvtaskdata: *const c_void,
hcompevent: HANDLE,
) -> Result<ISpNotifySink>;
fn CreateThreadControl(
&self,
ptask: Option<&ISpThreadTask>,
pvtaskdata: *const c_void,
npriority: i32,
) -> Result<ISpThreadControl>;
fn TerminateTask(&self, dwtaskid: u32, ulwaitperiod: u32) -> Result<()>;
fn TerminateTaskGroup(
&self,
dwgroupid: u32,
ulwaitperiod: u32,
) -> Result<()>;
}
Required Methods§
fn SetThreadPoolInfo(&self, ppoolinfo: *const SPTMTHREADINFO) -> Result<()>
fn GetThreadPoolInfo(&self) -> Result<SPTMTHREADINFO>
fn QueueTask( &self, ptask: Option<&ISpTask>, pvtaskdata: *const c_void, hcompevent: HANDLE, pdwgroupid: *mut u32, ptaskid: *mut u32, ) -> Result<()>
fn CreateReoccurringTask( &self, ptask: Option<&ISpTask>, pvtaskdata: *const c_void, hcompevent: HANDLE, ) -> Result<ISpNotifySink>
fn CreateThreadControl( &self, ptask: Option<&ISpThreadTask>, pvtaskdata: *const c_void, npriority: i32, ) -> Result<ISpThreadControl>
fn TerminateTask(&self, dwtaskid: u32, ulwaitperiod: u32) -> Result<()>
fn TerminateTaskGroup(&self, dwgroupid: u32, ulwaitperiod: u32) -> Result<()>
Object Safety§
This trait is not object safe.