Skip to main content

ISpSREngineVtbl

Struct ISpSREngineVtbl 

Source
#[repr(C)]
pub struct ISpSREngineVtbl {
Show 30 fields pub parent: IUnknownVtbl, pub SetSite: unsafe extern "system" fn(This: *mut ISpSREngine, pSite: *mut ISpSREngineSite) -> HRESULT, pub GetInputAudioFormat: unsafe extern "system" fn(This: *mut ISpSREngine, pguidSourceFormatId: *const GUID, pSourceWaveFormatEx: *const WAVEFORMATEX, pguidDesiredFormatId: *mut GUID, ppCoMemDesiredWaveFormatEx: *mut WAVEFORMATEX) -> HRESULT, pub RecognizeStream: unsafe extern "system" fn(This: *mut ISpSREngine, rguidFmtId: REFGUID, pWaveFormatEx: *const WAVEFORMATEX, hRequestSync: HANDLE, hDataAvailable: HANDLE, hExit: HANDLE, fNewAudioStream: BOOL, fRealTimeAudio: BOOL, pAudioObjectToken: *mut ISpObjectToken) -> HRESULT, pub SetRecoProfile: unsafe extern "system" fn(This: *mut ISpSREngine, pProfile: *mut ISpObjectToken) -> HRESULT, pub OnCreateGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineRecoContext: *mut c_void, hSAPIGrammar: SPGRAMMARHANDLE, ppvEngineGrammarContext: *mut *mut c_void) -> HRESULT, pub OnDeleteGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT, pub LoadProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataParam: *const c_void, ulDataSize: ULONG, Options: SPLOADOPTIONS) -> HRESULT, pub UnloadProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT, pub SetProprietaryRuleState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE, pcRulesChanged: *mut ULONG) -> HRESULT, pub SetProprietaryRuleIdState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, dwRuleId: DWORD, NewState: SPRULESTATE) -> HRESULT, pub LoadSLM: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszTopicName: LPCWSTR) -> HRESULT, pub UnloadSLM: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT, pub SetSLMState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, NewState: SPRULESTATE) -> HRESULT, pub SetWordSequenceData: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT, pub SetTextSelection: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT, pub IsPronounceable: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE) -> HRESULT, pub OnCreateRecoContext: unsafe extern "system" fn(This: *mut ISpSREngine, hSAPIRecoContext: SPRECOCONTEXTHANDLE, ppvEngineContext: *mut *mut c_void) -> HRESULT, pub OnDeleteRecoContext: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void) -> HRESULT, pub OnPrivateCall: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pCallFrame: PVOID, ulCallFrameSize: ULONG) -> HRESULT, pub SetAdaptationData: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pAdaptationData: *const WCHAR, cch: ULONG) -> HRESULT, pub SetPropertyNum: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: LONG) -> HRESULT, pub GetPropertyNum: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: *mut LONG) -> HRESULT, pub SetPropertyString: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, pValue: LPCWSTR) -> HRESULT, pub GetPropertyString: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, ppCoMemValue: *mut LPWSTR) -> HRESULT, pub SetGrammarState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, eGrammarState: SPGRAMMARSTATE) -> HRESULT, pub WordNotify: unsafe extern "system" fn(This: *mut ISpSREngine, Action: SPCFGNOTIFY, cWords: ULONG, pWords: *const SPWORDENTRY) -> HRESULT, pub RuleNotify: unsafe extern "system" fn(This: *mut ISpSREngine, Action: SPCFGNOTIFY, cRules: ULONG, pRules: *const SPRULEENTRY) -> HRESULT, pub PrivateCallEx: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pInCallFrame: *const c_void, ulInCallFrameSize: ULONG, ppvCoMemResponse: *mut *mut c_void, pulResponseSize: *mut ULONG) -> HRESULT, pub SetContextState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, eContextState: SPCONTEXTSTATE) -> HRESULT,
}

Fields§

§parent: IUnknownVtbl§SetSite: unsafe extern "system" fn(This: *mut ISpSREngine, pSite: *mut ISpSREngineSite) -> HRESULT§GetInputAudioFormat: unsafe extern "system" fn(This: *mut ISpSREngine, pguidSourceFormatId: *const GUID, pSourceWaveFormatEx: *const WAVEFORMATEX, pguidDesiredFormatId: *mut GUID, ppCoMemDesiredWaveFormatEx: *mut WAVEFORMATEX) -> HRESULT§RecognizeStream: unsafe extern "system" fn(This: *mut ISpSREngine, rguidFmtId: REFGUID, pWaveFormatEx: *const WAVEFORMATEX, hRequestSync: HANDLE, hDataAvailable: HANDLE, hExit: HANDLE, fNewAudioStream: BOOL, fRealTimeAudio: BOOL, pAudioObjectToken: *mut ISpObjectToken) -> HRESULT§SetRecoProfile: unsafe extern "system" fn(This: *mut ISpSREngine, pProfile: *mut ISpObjectToken) -> HRESULT§OnCreateGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineRecoContext: *mut c_void, hSAPIGrammar: SPGRAMMARHANDLE, ppvEngineGrammarContext: *mut *mut c_void) -> HRESULT§OnDeleteGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT§LoadProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, rguidParam: REFGUID, pszStringParam: LPCWSTR, pvDataParam: *const c_void, ulDataSize: ULONG, Options: SPLOADOPTIONS) -> HRESULT§UnloadProprietaryGrammar: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT§SetProprietaryRuleState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszName: LPCWSTR, pReserved: *mut c_void, NewState: SPRULESTATE, pcRulesChanged: *mut ULONG) -> HRESULT§SetProprietaryRuleIdState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, dwRuleId: DWORD, NewState: SPRULESTATE) -> HRESULT§LoadSLM: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszTopicName: LPCWSTR) -> HRESULT§UnloadSLM: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void) -> HRESULT§SetSLMState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, NewState: SPRULESTATE) -> HRESULT§SetWordSequenceData: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pText: *const WCHAR, cchText: ULONG, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT§SetTextSelection: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pInfo: *const SPTEXTSELECTIONINFO) -> HRESULT§IsPronounceable: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, pszWord: LPCWSTR, pWordPronounceable: *mut SPWORDPRONOUNCEABLE) -> HRESULT§OnCreateRecoContext: unsafe extern "system" fn(This: *mut ISpSREngine, hSAPIRecoContext: SPRECOCONTEXTHANDLE, ppvEngineContext: *mut *mut c_void) -> HRESULT§OnDeleteRecoContext: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void) -> HRESULT§OnPrivateCall: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pCallFrame: PVOID, ulCallFrameSize: ULONG) -> HRESULT§SetAdaptationData: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pAdaptationData: *const WCHAR, cch: ULONG) -> HRESULT§SetPropertyNum: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: LONG) -> HRESULT§GetPropertyNum: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: *const WCHAR, lValue: *mut LONG) -> HRESULT§SetPropertyString: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, pValue: LPCWSTR) -> HRESULT§GetPropertyString: unsafe extern "system" fn(This: *mut ISpSREngine, eSrc: SPPROPSRC, pvSrcObj: *mut c_void, pName: LPCWSTR, ppCoMemValue: *mut LPWSTR) -> HRESULT§SetGrammarState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineGrammar: *mut c_void, eGrammarState: SPGRAMMARSTATE) -> HRESULT§WordNotify: unsafe extern "system" fn(This: *mut ISpSREngine, Action: SPCFGNOTIFY, cWords: ULONG, pWords: *const SPWORDENTRY) -> HRESULT§RuleNotify: unsafe extern "system" fn(This: *mut ISpSREngine, Action: SPCFGNOTIFY, cRules: ULONG, pRules: *const SPRULEENTRY) -> HRESULT§PrivateCallEx: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, pInCallFrame: *const c_void, ulInCallFrameSize: ULONG, ppvCoMemResponse: *mut *mut c_void, pulResponseSize: *mut ULONG) -> HRESULT§SetContextState: unsafe extern "system" fn(This: *mut ISpSREngine, pvEngineContext: *mut c_void, eContextState: SPCONTEXTSTATE) -> HRESULT

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.