ISpSREngine

Struct ISpSREngine 

Source
#[repr(C)]
pub struct ISpSREngine { pub lpVtbl: *const ISpSREngineVtbl, }

Fields§

§lpVtbl: *const ISpSREngineVtbl

Implementations§

Source§

impl ISpSREngine

Source

pub unsafe fn SetSite(&self, pSite: *mut ISpSREngineSite) -> HRESULT

Source

pub unsafe fn GetInputAudioFormat( &self, pguidSourceFormatId: *const GUID, pSourceWaveFormatEx: *const WAVEFORMATEX, pguidDesiredFormatId: *mut GUID, ppCoMemDesiredWaveFormatEx: *mut WAVEFORMATEX, ) -> HRESULT

Source

pub unsafe fn RecognizeStream( &self, rguidFmtId: REFGUID, pWaveFormatEx: *const WAVEFORMATEX, hRequestSync: HANDLE, hDataAvailable: HANDLE, hExit: HANDLE, fNewAudioStream: BOOL, fRealTimeAudio: BOOL, pAudioObjectToken: *mut ISpObjectToken, ) -> HRESULT

Source

pub unsafe fn SetRecoProfile(&self, pProfile: *mut ISpObjectToken) -> HRESULT

Source

pub unsafe fn OnCreateGrammar( &self, pvEngineRecoContext: *mut c_void, hSAPIGrammar: SPGRAMMARHANDLE, ppvEngineGrammarContext: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn OnDeleteGrammar(&self, pvEngineGrammar: *mut c_void) -> HRESULT

Source

pub unsafe fn LoadProprietaryGrammar( &self, pvEngineGrammar: *mut c_void, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataParam: *const c_void, ulDataSize: ULONG, Options: SPLOADOPTIONS, ) -> HRESULT

Source

pub unsafe fn UnloadProprietaryGrammar( &self, pvEngineGrammar: *mut c_void, ) -> HRESULT

Source

pub unsafe fn SetProprietaryRuleState( &self, pvEngineGrammar: *mut c_void, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE, pcRulesChanged: *mut ULONG, ) -> HRESULT

Source

pub unsafe fn SetProprietaryRuleIdState( &self, pvEngineGrammar: *mut c_void, dwRuleId: DWORD, NewState: SPRULESTATE, ) -> HRESULT

Source

pub unsafe fn LoadSLM( &self, pvEngineGrammar: *mut c_void, pszTopicName: LPCWSTR, ) -> HRESULT

Source

pub unsafe fn UnloadSLM(&self, pvEngineGrammar: *mut c_void) -> HRESULT

Source

pub unsafe fn SetSLMState( &self, pvEngineGrammar: *mut c_void, NewState: SPRULESTATE, ) -> HRESULT

Source

pub unsafe fn SetWordSequenceData( &self, pvEngineGrammar: *mut c_void, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO, ) -> HRESULT

Source

pub unsafe fn SetTextSelection( &self, pvEngineGrammar: *mut c_void, pInfo: *const SPTEXTSELECTIONINFO, ) -> HRESULT

Source

pub unsafe fn IsPronounceable( &self, pvEngineGrammar: *mut c_void, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE, ) -> HRESULT

Source

pub unsafe fn OnCreateRecoContext( &self, hSAPIRecoContext: SPRECOCONTEXTHANDLE, ppvEngineContext: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn OnDeleteRecoContext( &self, pvEngineContext: *mut c_void, ) -> HRESULT

Source

pub unsafe fn OnPrivateCall( &self, pvEngineContext: *mut c_void, pCallFrame: PVOID, ulCallFrameSize: ULONG, ) -> HRESULT

Source

pub unsafe fn SetAdaptationData( &self, pvEngineContext: *mut c_void, pAdaptationData: *const WCHAR, cch: ULONG, ) -> HRESULT

Source

pub unsafe fn SetPropertyNum( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: LONG, ) -> HRESULT

Source

pub unsafe fn GetPropertyNum( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: *mut LONG, ) -> HRESULT

Source

pub unsafe fn SetPropertyString( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, pValue: LPCWSTR, ) -> HRESULT

Source

pub unsafe fn GetPropertyString( &self, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, ppCoMemValue: *mut LPWSTR, ) -> HRESULT

Source

pub unsafe fn SetGrammarState( &self, pvEngineGrammar: *mut c_void, eGrammarState: SPGRAMMARSTATE, ) -> HRESULT

Source

pub unsafe fn WordNotify( &self, Action: SPCFGNOTIFY, cWords: ULONG, pWords: *const SPWORDENTRY, ) -> HRESULT

Source

pub unsafe fn RuleNotify( &self, Action: SPCFGNOTIFY, cRules: ULONG, pRules: *const SPRULEENTRY, ) -> HRESULT

Source

pub unsafe fn PrivateCallEx( &self, pvEngineContext: *mut c_void, pInCallFrame: *const c_void, ulInCallFrameSize: ULONG, ppvCoMemResponse: *mut *mut c_void, pulResponseSize: *mut ULONG, ) -> HRESULT

Source

pub unsafe fn SetContextState( &self, pvEngineContext: *mut c_void, eContextState: SPCONTEXTSTATE, ) -> HRESULT

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for ISpSREngine

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl Interface for ISpSREngine

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.