sapiddk.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:136k
- };
-
- #else /* C style interface */
- typedef struct ISpTTSEngineVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpTTSEngine * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpTTSEngine * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpTTSEngine * This);
-
- HRESULT ( STDMETHODCALLTYPE *Speak )(
- ISpTTSEngine * This,
- /* [in] */ DWORD dwSpeakFlags,
- /* [in] */ REFGUID rguidFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx,
- /* [in] */ const SPVTEXTFRAG *pTextFragList,
- /* [in] */ ISpTTSEngineSite *pOutputSite);
-
- HRESULT ( STDMETHODCALLTYPE *GetOutputFormat )(
- ISpTTSEngine * This,
- /* [in] */ const GUID *pTargetFmtId,
- /* [in] */ const WAVEFORMATEX *pTargetWaveFormatEx,
- /* [out] */ GUID *pOutputFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemOutputWaveFormatEx);
-
- END_INTERFACE
- } ISpTTSEngineVtbl;
- interface ISpTTSEngine
- {
- CONST_VTBL struct ISpTTSEngineVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpTTSEngine_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpTTSEngine_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpTTSEngine_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpTTSEngine_Speak(This,dwSpeakFlags,rguidFormatId,pWaveFormatEx,pTextFragList,pOutputSite)
- (This)->lpVtbl -> Speak(This,dwSpeakFlags,rguidFormatId,pWaveFormatEx,pTextFragList,pOutputSite)
- #define ISpTTSEngine_GetOutputFormat(This,pTargetFmtId,pTargetWaveFormatEx,pOutputFormatId,ppCoMemOutputWaveFormatEx)
- (This)->lpVtbl -> GetOutputFormat(This,pTargetFmtId,pTargetWaveFormatEx,pOutputFormatId,ppCoMemOutputWaveFormatEx)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpTTSEngine_Speak_Proxy(
- ISpTTSEngine * This,
- /* [in] */ DWORD dwSpeakFlags,
- /* [in] */ REFGUID rguidFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx,
- /* [in] */ const SPVTEXTFRAG *pTextFragList,
- /* [in] */ ISpTTSEngineSite *pOutputSite);
- void __RPC_STUB ISpTTSEngine_Speak_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpTTSEngine_GetOutputFormat_Proxy(
- ISpTTSEngine * This,
- /* [in] */ const GUID *pTargetFmtId,
- /* [in] */ const WAVEFORMATEX *pTargetWaveFormatEx,
- /* [out] */ GUID *pOutputFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemOutputWaveFormatEx);
- void __RPC_STUB ISpTTSEngine_GetOutputFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpTTSEngine_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapiddk_0348 */
- /* [local] */
- typedef /* [restricted] */ struct SPWORDENTRY
- {
- SPWORDHANDLE hWord;
- WORD LangID;
- WCHAR *pszDisplayText;
- WCHAR *pszLexicalForm;
- SPPHONEID *aPhoneId;
- void *pvClientContext;
- } SPWORDENTRY;
- typedef /* [restricted] */ struct SPRULEENTRY
- {
- SPRULEHANDLE hRule;
- SPSTATEHANDLE hInitialState;
- DWORD Attributes;
- void *pvClientRuleContext;
- void *pvClientGrammarContext;
- } SPRULEENTRY;
- typedef
- enum SPTRANSITIONTYPE
- { SPTRANSEPSILON = 0,
- SPTRANSWORD = SPTRANSEPSILON + 1,
- SPTRANSRULE = SPTRANSWORD + 1,
- SPTRANSTEXTBUF = SPTRANSRULE + 1,
- SPTRANSWILDCARD = SPTRANSTEXTBUF + 1,
- SPTRANSDICTATION = SPTRANSWILDCARD + 1
- } SPTRANSITIONTYPE;
- typedef /* [restricted] */ struct SPTRANSITIONENTRY
- {
- SPTRANSITIONID ID;
- SPSTATEHANDLE hNextState;
- BYTE Type;
- char RequiredConfidence;
- struct
- {
- DWORD fHasProperty;
- } ;
- float Weight;
- union
- {
- struct
- {
- SPSTATEHANDLE hRuleInitialState;
- SPRULEHANDLE hRule;
- void *pvClientRuleContext;
- } ;
- struct
- {
- SPWORDHANDLE hWord;
- void *pvClientWordContext;
- } ;
- struct
- {
- void *pvGrammarCookie;
- } ;
- } ;
- } SPTRANSITIONENTRY;
- typedef /* [restricted] */ struct SPTRANSITIONPROPERTY
- {
- const WCHAR *pszName;
- ULONG ulId;
- const WCHAR *pszValue;
- VARIANT vValue;
- } SPTRANSITIONPROPERTY;
- typedef /* [restricted] */ struct SPSTATEINFO
- {
- ULONG cAllocatedEntries;
- SPTRANSITIONENTRY *pTransitions;
- ULONG cEpsilons;
- ULONG cRules;
- ULONG cWords;
- ULONG cSpecialTransitions;
- } SPSTATEINFO;
- typedef /* [restricted] */ struct SPPATHENTRY
- {
- SPTRANSITIONID hTransition;
- SPPHRASEELEMENT elem;
- } SPPATHENTRY;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0348_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0348_v0_0_s_ifspec;
- #ifndef __ISpCFGInterpreterSite_INTERFACE_DEFINED__
- #define __ISpCFGInterpreterSite_INTERFACE_DEFINED__
- /* interface ISpCFGInterpreterSite */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpCFGInterpreterSite;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("6A6FFAD8-78B6-473d-B844-98152E4FB16B")
- ISpCFGInterpreterSite : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE AddTextReplacement(
- /* [in] */ SPPHRASEREPLACEMENT *pReplace) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddProperty(
- /* [in] */ const SPPHRASEPROPERTY *pProperty) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetResourceValue(
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpCFGInterpreterSiteVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpCFGInterpreterSite * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpCFGInterpreterSite * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpCFGInterpreterSite * This);
-
- HRESULT ( STDMETHODCALLTYPE *AddTextReplacement )(
- ISpCFGInterpreterSite * This,
- /* [in] */ SPPHRASEREPLACEMENT *pReplace);
-
- HRESULT ( STDMETHODCALLTYPE *AddProperty )(
- ISpCFGInterpreterSite * This,
- /* [in] */ const SPPHRASEPROPERTY *pProperty);
-
- HRESULT ( STDMETHODCALLTYPE *GetResourceValue )(
- ISpCFGInterpreterSite * This,
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource);
-
- END_INTERFACE
- } ISpCFGInterpreterSiteVtbl;
- interface ISpCFGInterpreterSite
- {
- CONST_VTBL struct ISpCFGInterpreterSiteVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpCFGInterpreterSite_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpCFGInterpreterSite_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpCFGInterpreterSite_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpCFGInterpreterSite_AddTextReplacement(This,pReplace)
- (This)->lpVtbl -> AddTextReplacement(This,pReplace)
- #define ISpCFGInterpreterSite_AddProperty(This,pProperty)
- (This)->lpVtbl -> AddProperty(This,pProperty)
- #define ISpCFGInterpreterSite_GetResourceValue(This,pszResourceName,ppCoMemResource)
- (This)->lpVtbl -> GetResourceValue(This,pszResourceName,ppCoMemResource)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpCFGInterpreterSite_AddTextReplacement_Proxy(
- ISpCFGInterpreterSite * This,
- /* [in] */ SPPHRASEREPLACEMENT *pReplace);
- void __RPC_STUB ISpCFGInterpreterSite_AddTextReplacement_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpCFGInterpreterSite_AddProperty_Proxy(
- ISpCFGInterpreterSite * This,
- /* [in] */ const SPPHRASEPROPERTY *pProperty);
- void __RPC_STUB ISpCFGInterpreterSite_AddProperty_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpCFGInterpreterSite_GetResourceValue_Proxy(
- ISpCFGInterpreterSite * This,
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource);
- void __RPC_STUB ISpCFGInterpreterSite_GetResourceValue_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpCFGInterpreterSite_INTERFACE_DEFINED__ */
- #ifndef __ISpCFGInterpreter_INTERFACE_DEFINED__
- #define __ISpCFGInterpreter_INTERFACE_DEFINED__
- /* interface ISpCFGInterpreter */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpCFGInterpreter;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("F3D3F926-11FC-11d3-BB97-00C04F8EE6C0")
- ISpCFGInterpreter : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE InitGrammar(
- /* [in] */ const WCHAR *pszGrammarName,
- /* [in] */ const void **pvGrammarData) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Interpret(
- /* [in] */ ISpPhraseBuilder *pPhrase,
- /* [in] */ const ULONG ulFirstElement,
- /* [in] */ const ULONG ulCountOfElements,
- /* [in] */ ISpCFGInterpreterSite *pSite) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpCFGInterpreterVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpCFGInterpreter * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpCFGInterpreter * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpCFGInterpreter * This);
-
- HRESULT ( STDMETHODCALLTYPE *InitGrammar )(
- ISpCFGInterpreter * This,
- /* [in] */ const WCHAR *pszGrammarName,
- /* [in] */ const void **pvGrammarData);
-
- HRESULT ( STDMETHODCALLTYPE *Interpret )(
- ISpCFGInterpreter * This,
- /* [in] */ ISpPhraseBuilder *pPhrase,
- /* [in] */ const ULONG ulFirstElement,
- /* [in] */ const ULONG ulCountOfElements,
- /* [in] */ ISpCFGInterpreterSite *pSite);
-
- END_INTERFACE
- } ISpCFGInterpreterVtbl;
- interface ISpCFGInterpreter
- {
- CONST_VTBL struct ISpCFGInterpreterVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpCFGInterpreter_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpCFGInterpreter_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpCFGInterpreter_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpCFGInterpreter_InitGrammar(This,pszGrammarName,pvGrammarData)
- (This)->lpVtbl -> InitGrammar(This,pszGrammarName,pvGrammarData)
- #define ISpCFGInterpreter_Interpret(This,pPhrase,ulFirstElement,ulCountOfElements,pSite)
- (This)->lpVtbl -> Interpret(This,pPhrase,ulFirstElement,ulCountOfElements,pSite)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpCFGInterpreter_InitGrammar_Proxy(
- ISpCFGInterpreter * This,
- /* [in] */ const WCHAR *pszGrammarName,
- /* [in] */ const void **pvGrammarData);
- void __RPC_STUB ISpCFGInterpreter_InitGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpCFGInterpreter_Interpret_Proxy(
- ISpCFGInterpreter * This,
- /* [in] */ ISpPhraseBuilder *pPhrase,
- /* [in] */ const ULONG ulFirstElement,
- /* [in] */ const ULONG ulCountOfElements,
- /* [in] */ ISpCFGInterpreterSite *pSite);
- void __RPC_STUB ISpCFGInterpreter_Interpret_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpCFGInterpreter_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapiddk_0350 */
- /* [local] */
- typedef
- enum SPCFGNOTIFY
- { SPCFGN_ADD = 0,
- SPCFGN_REMOVE = SPCFGN_ADD + 1,
- SPCFGN_INVALIDATE = SPCFGN_REMOVE + 1,
- SPCFGN_ACTIVATE = SPCFGN_INVALIDATE + 1,
- SPCFGN_DEACTIVATE = SPCFGN_ACTIVATE + 1
- } SPCFGNOTIFY;
- typedef
- enum SPRESULTTYPE
- { SPRT_CFG = 0,
- SPRT_SLM = 1,
- SPRT_PROPRIETARY = 2,
- SPRT_FALSE_RECOGNITION = 1L << 2
- } SPRESULTTYPE;
- typedef struct tagSPPHRASEALT
- {
- ISpPhraseBuilder *pPhrase;
- ULONG ulStartElementInParent;
- ULONG cElementsInParent;
- ULONG cElementsInAlternate;
- void *pvAltExtra;
- ULONG cbAltExtra;
- } SPPHRASEALT;
- typedef struct SPRECORESULTINFO
- {
- ULONG cbSize;
- SPRESULTTYPE eResultType;
- BOOL fHypothesis;
- BOOL fProprietaryAutoPause;
- ULONGLONG ullStreamPosStart;
- ULONGLONG ullStreamPosEnd;
- SPGRAMMARHANDLE hGrammar;
- ULONG ulSizeEngineData;
- void *pvEngineData;
- ISpPhraseBuilder *pPhrase;
- SPPHRASEALT *aPhraseAlts;
- ULONG ulNumAlts;
- } SPRECORESULTINFO;
- typedef
- enum SPWORDINFOOPT
- { SPWIO_NONE = 0,
- SPWIO_WANT_TEXT = 1
- } SPWORDINFOOPT;
- typedef
- enum SPRULEINFOOPT
- { SPRIO_NONE = 0
- } SPRULEINFOOPT;
- typedef struct SPPARSEINFO
- {
- ULONG cbSize;
- SPRULEHANDLE hRule;
- ULONGLONG ullAudioStreamPosition;
- ULONG ulAudioSize;
- ULONG cTransitions;
- SPPATHENTRY *pPath;
- GUID SREngineID;
- ULONG ulSREnginePrivateDataSize;
- const BYTE *pSREnginePrivateData;
- BOOL fHypothesis;
- } SPPARSEINFO;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0350_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0350_v0_0_s_ifspec;
- #ifndef __ISpSREngineSite_INTERFACE_DEFINED__
- #define __ISpSREngineSite_INTERFACE_DEFINED__
- /* interface ISpSREngineSite */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpSREngineSite;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("3B414AEC-720C-4883-B9EF-178CD394FB3A")
- ISpSREngineSite : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE Read(
- /* [in] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE DataAvailable(
- ULONG *pcb) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetBufferNotifySize(
- /* [in] */ ULONG cbSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ParseFromTransitions(
- /* [in] */ const SPPARSEINFO *pParseInfo,
- /* [out] */ ISpPhraseBuilder **ppNewPhrase) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Recognition(
- /* [in] */ const SPRECORESULTINFO *pResultInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddEvent(
- /* [in] */ const SPEVENT *pEvent,
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Synchronize(
- /* [in] */ ULONGLONG ullProcessedThruPos) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetWordInfo(
- /* [out][in] */ SPWORDENTRY *pWordEntry,
- /* [in] */ SPWORDINFOOPT Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetWordClientContext(
- SPWORDHANDLE hWord,
- void *pvClientContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRuleInfo(
- /* [out][in] */ SPRULEENTRY *pRuleEntry,
- /* [in] */ SPRULEINFOOPT Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRuleClientContext(
- SPRULEHANDLE hRule,
- void *pvClientContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStateInfo(
- SPSTATEHANDLE hState,
- SPSTATEINFO *pStateInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetResource(
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetTransitionProperty(
- /* [in] */ SPTRANSITIONID ID,
- /* [out] */ SPTRANSITIONPROPERTY **ppCoMemProperty) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsAlternate(
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ SPRULEHANDLE hAltRule) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetMaxAlternates(
- /* [in] */ SPRULEHANDLE hRule,
- /* [out] */ ULONG *pulNumAlts) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetContextMaxAlternates(
- /* [in] */ SPRECOCONTEXTHANDLE hContext,
- /* [out] */ ULONG *pulNumAlts) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE UpdateRecoPos(
- /* [in] */ ULONGLONG ullCurrentRecoPos) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpSREngineSiteVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpSREngineSite * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpSREngineSite * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpSREngineSite * This);
-
- HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpSREngineSite * This,
- /* [in] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- HRESULT ( STDMETHODCALLTYPE *DataAvailable )(
- ISpSREngineSite * This,
- ULONG *pcb);
-
- HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
- ISpSREngineSite * This,
- /* [in] */ ULONG cbSize);
-
- HRESULT ( STDMETHODCALLTYPE *ParseFromTransitions )(
- ISpSREngineSite * This,
- /* [in] */ const SPPARSEINFO *pParseInfo,
- /* [out] */ ISpPhraseBuilder **ppNewPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *Recognition )(
- ISpSREngineSite * This,
- /* [in] */ const SPRECORESULTINFO *pResultInfo);
-
- HRESULT ( STDMETHODCALLTYPE *AddEvent )(
- ISpSREngineSite * This,
- /* [in] */ const SPEVENT *pEvent,
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext);
-
- HRESULT ( STDMETHODCALLTYPE *Synchronize )(
- ISpSREngineSite * This,
- /* [in] */ ULONGLONG ullProcessedThruPos);
-
- HRESULT ( STDMETHODCALLTYPE *GetWordInfo )(
- ISpSREngineSite * This,
- /* [out][in] */ SPWORDENTRY *pWordEntry,
- /* [in] */ SPWORDINFOOPT Options);
-
- HRESULT ( STDMETHODCALLTYPE *SetWordClientContext )(
- ISpSREngineSite * This,
- SPWORDHANDLE hWord,
- void *pvClientContext);
-
- HRESULT ( STDMETHODCALLTYPE *GetRuleInfo )(
- ISpSREngineSite * This,
- /* [out][in] */ SPRULEENTRY *pRuleEntry,
- /* [in] */ SPRULEINFOOPT Options);
-
- HRESULT ( STDMETHODCALLTYPE *SetRuleClientContext )(
- ISpSREngineSite * This,
- SPRULEHANDLE hRule,
- void *pvClientContext);
-
- HRESULT ( STDMETHODCALLTYPE *GetStateInfo )(
- ISpSREngineSite * This,
- SPSTATEHANDLE hState,
- SPSTATEINFO *pStateInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetResource )(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource);
-
- HRESULT ( STDMETHODCALLTYPE *GetTransitionProperty )(
- ISpSREngineSite * This,
- /* [in] */ SPTRANSITIONID ID,
- /* [out] */ SPTRANSITIONPROPERTY **ppCoMemProperty);
-
- HRESULT ( STDMETHODCALLTYPE *IsAlternate )(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ SPRULEHANDLE hAltRule);
-
- HRESULT ( STDMETHODCALLTYPE *GetMaxAlternates )(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [out] */ ULONG *pulNumAlts);
-
- HRESULT ( STDMETHODCALLTYPE *GetContextMaxAlternates )(
- ISpSREngineSite * This,
- /* [in] */ SPRECOCONTEXTHANDLE hContext,
- /* [out] */ ULONG *pulNumAlts);
-
- HRESULT ( STDMETHODCALLTYPE *UpdateRecoPos )(
- ISpSREngineSite * This,
- /* [in] */ ULONGLONG ullCurrentRecoPos);
-
- END_INTERFACE
- } ISpSREngineSiteVtbl;
- interface ISpSREngineSite
- {
- CONST_VTBL struct ISpSREngineSiteVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpSREngineSite_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpSREngineSite_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpSREngineSite_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpSREngineSite_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpSREngineSite_DataAvailable(This,pcb)
- (This)->lpVtbl -> DataAvailable(This,pcb)
- #define ISpSREngineSite_SetBufferNotifySize(This,cbSize)
- (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
- #define ISpSREngineSite_ParseFromTransitions(This,pParseInfo,ppNewPhrase)
- (This)->lpVtbl -> ParseFromTransitions(This,pParseInfo,ppNewPhrase)
- #define ISpSREngineSite_Recognition(This,pResultInfo)
- (This)->lpVtbl -> Recognition(This,pResultInfo)
- #define ISpSREngineSite_AddEvent(This,pEvent,hSAPIRecoContext)
- (This)->lpVtbl -> AddEvent(This,pEvent,hSAPIRecoContext)
- #define ISpSREngineSite_Synchronize(This,ullProcessedThruPos)
- (This)->lpVtbl -> Synchronize(This,ullProcessedThruPos)
- #define ISpSREngineSite_GetWordInfo(This,pWordEntry,Options)
- (This)->lpVtbl -> GetWordInfo(This,pWordEntry,Options)
- #define ISpSREngineSite_SetWordClientContext(This,hWord,pvClientContext)
- (This)->lpVtbl -> SetWordClientContext(This,hWord,pvClientContext)
- #define ISpSREngineSite_GetRuleInfo(This,pRuleEntry,Options)
- (This)->lpVtbl -> GetRuleInfo(This,pRuleEntry,Options)
- #define ISpSREngineSite_SetRuleClientContext(This,hRule,pvClientContext)
- (This)->lpVtbl -> SetRuleClientContext(This,hRule,pvClientContext)
- #define ISpSREngineSite_GetStateInfo(This,hState,pStateInfo)
- (This)->lpVtbl -> GetStateInfo(This,hState,pStateInfo)
- #define ISpSREngineSite_GetResource(This,hRule,pszResourceName,ppCoMemResource)
- (This)->lpVtbl -> GetResource(This,hRule,pszResourceName,ppCoMemResource)
- #define ISpSREngineSite_GetTransitionProperty(This,ID,ppCoMemProperty)
- (This)->lpVtbl -> GetTransitionProperty(This,ID,ppCoMemProperty)
- #define ISpSREngineSite_IsAlternate(This,hRule,hAltRule)
- (This)->lpVtbl -> IsAlternate(This,hRule,hAltRule)
- #define ISpSREngineSite_GetMaxAlternates(This,hRule,pulNumAlts)
- (This)->lpVtbl -> GetMaxAlternates(This,hRule,pulNumAlts)
- #define ISpSREngineSite_GetContextMaxAlternates(This,hContext,pulNumAlts)
- (This)->lpVtbl -> GetContextMaxAlternates(This,hContext,pulNumAlts)
- #define ISpSREngineSite_UpdateRecoPos(This,ullCurrentRecoPos)
- (This)->lpVtbl -> UpdateRecoPos(This,ullCurrentRecoPos)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_Read_Proxy(
- ISpSREngineSite * This,
- /* [in] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
- void __RPC_STUB ISpSREngineSite_Read_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_DataAvailable_Proxy(
- ISpSREngineSite * This,
- ULONG *pcb);
- void __RPC_STUB ISpSREngineSite_DataAvailable_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_SetBufferNotifySize_Proxy(
- ISpSREngineSite * This,
- /* [in] */ ULONG cbSize);
- void __RPC_STUB ISpSREngineSite_SetBufferNotifySize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_ParseFromTransitions_Proxy(
- ISpSREngineSite * This,
- /* [in] */ const SPPARSEINFO *pParseInfo,
- /* [out] */ ISpPhraseBuilder **ppNewPhrase);
- void __RPC_STUB ISpSREngineSite_ParseFromTransitions_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_Recognition_Proxy(
- ISpSREngineSite * This,
- /* [in] */ const SPRECORESULTINFO *pResultInfo);
- void __RPC_STUB ISpSREngineSite_Recognition_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_AddEvent_Proxy(
- ISpSREngineSite * This,
- /* [in] */ const SPEVENT *pEvent,
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext);
- void __RPC_STUB ISpSREngineSite_AddEvent_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_Synchronize_Proxy(
- ISpSREngineSite * This,
- /* [in] */ ULONGLONG ullProcessedThruPos);
- void __RPC_STUB ISpSREngineSite_Synchronize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetWordInfo_Proxy(
- ISpSREngineSite * This,
- /* [out][in] */ SPWORDENTRY *pWordEntry,
- /* [in] */ SPWORDINFOOPT Options);
- void __RPC_STUB ISpSREngineSite_GetWordInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_SetWordClientContext_Proxy(
- ISpSREngineSite * This,
- SPWORDHANDLE hWord,
- void *pvClientContext);
- void __RPC_STUB ISpSREngineSite_SetWordClientContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetRuleInfo_Proxy(
- ISpSREngineSite * This,
- /* [out][in] */ SPRULEENTRY *pRuleEntry,
- /* [in] */ SPRULEINFOOPT Options);
- void __RPC_STUB ISpSREngineSite_GetRuleInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_SetRuleClientContext_Proxy(
- ISpSREngineSite * This,
- SPRULEHANDLE hRule,
- void *pvClientContext);
- void __RPC_STUB ISpSREngineSite_SetRuleClientContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetStateInfo_Proxy(
- ISpSREngineSite * This,
- SPSTATEHANDLE hState,
- SPSTATEINFO *pStateInfo);
- void __RPC_STUB ISpSREngineSite_GetStateInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetResource_Proxy(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ const WCHAR *pszResourceName,
- /* [out] */ WCHAR **ppCoMemResource);
- void __RPC_STUB ISpSREngineSite_GetResource_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetTransitionProperty_Proxy(
- ISpSREngineSite * This,
- /* [in] */ SPTRANSITIONID ID,
- /* [out] */ SPTRANSITIONPROPERTY **ppCoMemProperty);
- void __RPC_STUB ISpSREngineSite_GetTransitionProperty_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_IsAlternate_Proxy(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [in] */ SPRULEHANDLE hAltRule);
- void __RPC_STUB ISpSREngineSite_IsAlternate_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetMaxAlternates_Proxy(
- ISpSREngineSite * This,
- /* [in] */ SPRULEHANDLE hRule,
- /* [out] */ ULONG *pulNumAlts);
- void __RPC_STUB ISpSREngineSite_GetMaxAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_GetContextMaxAlternates_Proxy(
- ISpSREngineSite * This,
- /* [in] */ SPRECOCONTEXTHANDLE hContext,
- /* [out] */ ULONG *pulNumAlts);
- void __RPC_STUB ISpSREngineSite_GetContextMaxAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngineSite_UpdateRecoPos_Proxy(
- ISpSREngineSite * This,
- /* [in] */ ULONGLONG ullCurrentRecoPos);
- void __RPC_STUB ISpSREngineSite_UpdateRecoPos_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpSREngineSite_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapiddk_0351 */
- /* [local] */
- typedef
- enum SPPROPSRC
- { SPPROPSRC_RECO_INST = 0,
- SPPROPSRC_RECO_CTX = SPPROPSRC_RECO_INST + 1,
- SPPROPSRC_RECO_GRAMMAR = SPPROPSRC_RECO_CTX + 1
- } SPPROPSRC;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0351_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0351_v0_0_s_ifspec;
- #ifndef __ISpSREngine_INTERFACE_DEFINED__
- #define __ISpSREngine_INTERFACE_DEFINED__
- /* interface ISpSREngine */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpSREngine;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("2F472991-854B-4465-B613-FBAFB3AD8ED8")
- ISpSREngine : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetSite(
- /* [in] */ ISpSREngineSite *pSite) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetInputAudioFormat(
- /* [in] */ const GUID *pguidSourceFormatId,
- /* [in] */ const WAVEFORMATEX *pSourceWaveFormatEx,
- /* [out] */ GUID *pguidDesiredFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemDesiredWaveFormatEx) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE RecognizeStream(
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx,
- /* [in] */ HANDLE hRequestSync,
- /* [in] */ HANDLE hDataAvailable,
- /* [in] */ HANDLE hExit,
- /* [in] */ BOOL fNewAudioStream,
- /* [in] */ BOOL fRealTimeAudio,
- /* [in] */ ISpObjectToken *pAudioObjectToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRecoProfile(
- ISpObjectToken *pProfile) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE OnCreateGrammar(
- /* [in] */ void *pvEngineRecoContext,
- /* [in] */ SPGRAMMARHANDLE hSAPIGrammar,
- /* [out] */ void **ppvEngineGrammarContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE OnDeleteGrammar(
- /* [in] */ void *pvEngineGrammar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadProprietaryGrammar(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataParam,
- /* [in] */ ULONG ulDataSize,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE UnloadProprietaryGrammar(
- /* [in] */ void *pvEngineGrammar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetProprietaryRuleState(
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszName,
- /* [in] */ void *pReserved,
- /* [in] */ SPRULESTATE NewState,
- /* [out] */ ULONG *pcRulesChanged) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetProprietaryRuleIdState(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ SPRULESTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadSLM(
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszTopicName) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE UnloadSLM(
- /* [in] */ void *pvEngineGrammar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetSLMState(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPRULESTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE OnCreateRecoContext(
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext,
- /* [out] */ void **ppvEngineContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE OnDeleteRecoContext(
- /* [in] */ void *pvEngineContext) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE PrivateCall(
- /* [in] */ void *pvEngineContext,
- /* [out][in] */ PVOID pCallFrame,
- /* [in] */ ULONG ulCallFrameSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
- /* [in] */ void *pvEngineContext,
- const WCHAR *pAdaptationData,
- const ULONG cch) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetPropertyNum(
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetPropertyNum(
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *lValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetGrammarState(
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPGRAMMARSTATE eGrammarState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE WordNotify(
- SPCFGNOTIFY Action,
- ULONG cWords,
- const SPWORDENTRY *pWords) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE RuleNotify(
- SPCFGNOTIFY Action,
- ULONG cRules,
- const SPRULEENTRY *pRules) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE PrivateCallEx(
- /* [in] */ void *pvEngineContext,
- /* [in] */ const void *pInCallFrame,
- /* [in] */ ULONG ulInCallFrameSize,
- /* [out] */ void **ppvCoMemResponse,
- /* [out] */ ULONG *pulResponseSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetContextState(
- /* [in] */ void *pvEngineContext,
- /* [in] */ SPCONTEXTSTATE eContextState) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpSREngineVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpSREngine * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpSREngine * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpSREngine * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetSite )(
- ISpSREngine * This,
- /* [in] */ ISpSREngineSite *pSite);
-
- HRESULT ( STDMETHODCALLTYPE *GetInputAudioFormat )(
- ISpSREngine * This,
- /* [in] */ const GUID *pguidSourceFormatId,
- /* [in] */ const WAVEFORMATEX *pSourceWaveFormatEx,
- /* [out] */ GUID *pguidDesiredFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemDesiredWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *RecognizeStream )(
- ISpSREngine * This,
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx,
- /* [in] */ HANDLE hRequestSync,
- /* [in] */ HANDLE hDataAvailable,
- /* [in] */ HANDLE hExit,
- /* [in] */ BOOL fNewAudioStream,
- /* [in] */ BOOL fRealTimeAudio,
- /* [in] */ ISpObjectToken *pAudioObjectToken);
-
- HRESULT ( STDMETHODCALLTYPE *SetRecoProfile )(
- ISpSREngine * This,
- ISpObjectToken *pProfile);
-
- HRESULT ( STDMETHODCALLTYPE *OnCreateGrammar )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineRecoContext,
- /* [in] */ SPGRAMMARHANDLE hSAPIGrammar,
- /* [out] */ void **ppvEngineGrammarContext);
-
- HRESULT ( STDMETHODCALLTYPE *OnDeleteGrammar )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
-
- HRESULT ( STDMETHODCALLTYPE *LoadProprietaryGrammar )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataParam,
- /* [in] */ ULONG ulDataSize,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *UnloadProprietaryGrammar )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
-
- HRESULT ( STDMETHODCALLTYPE *SetProprietaryRuleState )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszName,
- /* [in] */ void *pReserved,
- /* [in] */ SPRULESTATE NewState,
- /* [out] */ ULONG *pcRulesChanged);
-
- HRESULT ( STDMETHODCALLTYPE *SetProprietaryRuleIdState )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ SPRULESTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *LoadSLM )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszTopicName);
-
- HRESULT ( STDMETHODCALLTYPE *UnloadSLM )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
-
- HRESULT ( STDMETHODCALLTYPE *SetSLMState )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPRULESTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
-
- HRESULT ( STDMETHODCALLTYPE *OnCreateRecoContext )(
- ISpSREngine * This,
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext,
- /* [out] */ void **ppvEngineContext);
-
- HRESULT ( STDMETHODCALLTYPE *OnDeleteRecoContext )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext);
-
- HRESULT ( STDMETHODCALLTYPE *PrivateCall )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [out][in] */ PVOID pCallFrame,
- /* [in] */ ULONG ulCallFrameSize);
-
- HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- const WCHAR *pAdaptationData,
- const ULONG cch);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *lValue);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue);
-
- HRESULT ( STDMETHODCALLTYPE *SetGrammarState )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPGRAMMARSTATE eGrammarState);
-
- HRESULT ( STDMETHODCALLTYPE *WordNotify )(
- ISpSREngine * This,
- SPCFGNOTIFY Action,
- ULONG cWords,
- const SPWORDENTRY *pWords);
-
- HRESULT ( STDMETHODCALLTYPE *RuleNotify )(
- ISpSREngine * This,
- SPCFGNOTIFY Action,
- ULONG cRules,
- const SPRULEENTRY *pRules);
-
- HRESULT ( STDMETHODCALLTYPE *PrivateCallEx )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [in] */ const void *pInCallFrame,
- /* [in] */ ULONG ulInCallFrameSize,
- /* [out] */ void **ppvCoMemResponse,
- /* [out] */ ULONG *pulResponseSize);
-
- HRESULT ( STDMETHODCALLTYPE *SetContextState )(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [in] */ SPCONTEXTSTATE eContextState);
-
- END_INTERFACE
- } ISpSREngineVtbl;
- interface ISpSREngine
- {
- CONST_VTBL struct ISpSREngineVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpSREngine_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpSREngine_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpSREngine_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpSREngine_SetSite(This,pSite)
- (This)->lpVtbl -> SetSite(This,pSite)
- #define ISpSREngine_GetInputAudioFormat(This,pguidSourceFormatId,pSourceWaveFormatEx,pguidDesiredFormatId,ppCoMemDesiredWaveFormatEx)
- (This)->lpVtbl -> GetInputAudioFormat(This,pguidSourceFormatId,pSourceWaveFormatEx,pguidDesiredFormatId,ppCoMemDesiredWaveFormatEx)
- #define ISpSREngine_RecognizeStream(This,rguidFmtId,pWaveFormatEx,hRequestSync,hDataAvailable,hExit,fNewAudioStream,fRealTimeAudio,pAudioObjectToken)
- (This)->lpVtbl -> RecognizeStream(This,rguidFmtId,pWaveFormatEx,hRequestSync,hDataAvailable,hExit,fNewAudioStream,fRealTimeAudio,pAudioObjectToken)
- #define ISpSREngine_SetRecoProfile(This,pProfile)
- (This)->lpVtbl -> SetRecoProfile(This,pProfile)
- #define ISpSREngine_OnCreateGrammar(This,pvEngineRecoContext,hSAPIGrammar,ppvEngineGrammarContext)
- (This)->lpVtbl -> OnCreateGrammar(This,pvEngineRecoContext,hSAPIGrammar,ppvEngineGrammarContext)
- #define ISpSREngine_OnDeleteGrammar(This,pvEngineGrammar)
- (This)->lpVtbl -> OnDeleteGrammar(This,pvEngineGrammar)
- #define ISpSREngine_LoadProprietaryGrammar(This,pvEngineGrammar,rguidParam,pszStringParam,pvDataParam,ulDataSize,Options)
- (This)->lpVtbl -> LoadProprietaryGrammar(This,pvEngineGrammar,rguidParam,pszStringParam,pvDataParam,ulDataSize,Options)
- #define ISpSREngine_UnloadProprietaryGrammar(This,pvEngineGrammar)
- (This)->lpVtbl -> UnloadProprietaryGrammar(This,pvEngineGrammar)
- #define ISpSREngine_SetProprietaryRuleState(This,pvEngineGrammar,pszName,pReserved,NewState,pcRulesChanged)
- (This)->lpVtbl -> SetProprietaryRuleState(This,pvEngineGrammar,pszName,pReserved,NewState,pcRulesChanged)
- #define ISpSREngine_SetProprietaryRuleIdState(This,pvEngineGrammar,dwRuleId,NewState)
- (This)->lpVtbl -> SetProprietaryRuleIdState(This,pvEngineGrammar,dwRuleId,NewState)
- #define ISpSREngine_LoadSLM(This,pvEngineGrammar,pszTopicName)
- (This)->lpVtbl -> LoadSLM(This,pvEngineGrammar,pszTopicName)
- #define ISpSREngine_UnloadSLM(This,pvEngineGrammar)
- (This)->lpVtbl -> UnloadSLM(This,pvEngineGrammar)
- #define ISpSREngine_SetSLMState(This,pvEngineGrammar,NewState)
- (This)->lpVtbl -> SetSLMState(This,pvEngineGrammar,NewState)
- #define ISpSREngine_SetWordSequenceData(This,pvEngineGrammar,pText,cchText,pInfo)
- (This)->lpVtbl -> SetWordSequenceData(This,pvEngineGrammar,pText,cchText,pInfo)
- #define ISpSREngine_SetTextSelection(This,pvEngineGrammar,pInfo)
- (This)->lpVtbl -> SetTextSelection(This,pvEngineGrammar,pInfo)
- #define ISpSREngine_IsPronounceable(This,pvEngineGrammar,pszWord,pWordPronounceable)
- (This)->lpVtbl -> IsPronounceable(This,pvEngineGrammar,pszWord,pWordPronounceable)
- #define ISpSREngine_OnCreateRecoContext(This,hSAPIRecoContext,ppvEngineContext)
- (This)->lpVtbl -> OnCreateRecoContext(This,hSAPIRecoContext,ppvEngineContext)
- #define ISpSREngine_OnDeleteRecoContext(This,pvEngineContext)
- (This)->lpVtbl -> OnDeleteRecoContext(This,pvEngineContext)
- #define ISpSREngine_PrivateCall(This,pvEngineContext,pCallFrame,ulCallFrameSize)
- (This)->lpVtbl -> PrivateCall(This,pvEngineContext,pCallFrame,ulCallFrameSize)
- #define ISpSREngine_SetAdaptationData(This,pvEngineContext,pAdaptationData,cch)
- (This)->lpVtbl -> SetAdaptationData(This,pvEngineContext,pAdaptationData,cch)
- #define ISpSREngine_SetPropertyNum(This,eSrc,pvSrcObj,pName,lValue)
- (This)->lpVtbl -> SetPropertyNum(This,eSrc,pvSrcObj,pName,lValue)
- #define ISpSREngine_GetPropertyNum(This,eSrc,pvSrcObj,pName,lValue)
- (This)->lpVtbl -> GetPropertyNum(This,eSrc,pvSrcObj,pName,lValue)
- #define ISpSREngine_SetPropertyString(This,eSrc,pvSrcObj,pName,pValue)
- (This)->lpVtbl -> SetPropertyString(This,eSrc,pvSrcObj,pName,pValue)
- #define ISpSREngine_GetPropertyString(This,eSrc,pvSrcObj,pName,ppCoMemValue)
- (This)->lpVtbl -> GetPropertyString(This,eSrc,pvSrcObj,pName,ppCoMemValue)
- #define ISpSREngine_SetGrammarState(This,pvEngineGrammar,eGrammarState)
- (This)->lpVtbl -> SetGrammarState(This,pvEngineGrammar,eGrammarState)
- #define ISpSREngine_WordNotify(This,Action,cWords,pWords)
- (This)->lpVtbl -> WordNotify(This,Action,cWords,pWords)
- #define ISpSREngine_RuleNotify(This,Action,cRules,pRules)
- (This)->lpVtbl -> RuleNotify(This,Action,cRules,pRules)
- #define ISpSREngine_PrivateCallEx(This,pvEngineContext,pInCallFrame,ulInCallFrameSize,ppvCoMemResponse,pulResponseSize)
- (This)->lpVtbl -> PrivateCallEx(This,pvEngineContext,pInCallFrame,ulInCallFrameSize,ppvCoMemResponse,pulResponseSize)
- #define ISpSREngine_SetContextState(This,pvEngineContext,eContextState)
- (This)->lpVtbl -> SetContextState(This,pvEngineContext,eContextState)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetSite_Proxy(
- ISpSREngine * This,
- /* [in] */ ISpSREngineSite *pSite);
- void __RPC_STUB ISpSREngine_SetSite_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_GetInputAudioFormat_Proxy(
- ISpSREngine * This,
- /* [in] */ const GUID *pguidSourceFormatId,
- /* [in] */ const WAVEFORMATEX *pSourceWaveFormatEx,
- /* [out] */ GUID *pguidDesiredFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemDesiredWaveFormatEx);
- void __RPC_STUB ISpSREngine_GetInputAudioFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_RecognizeStream_Proxy(
- ISpSREngine * This,
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx,
- /* [in] */ HANDLE hRequestSync,
- /* [in] */ HANDLE hDataAvailable,
- /* [in] */ HANDLE hExit,
- /* [in] */ BOOL fNewAudioStream,
- /* [in] */ BOOL fRealTimeAudio,
- /* [in] */ ISpObjectToken *pAudioObjectToken);
- void __RPC_STUB ISpSREngine_RecognizeStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetRecoProfile_Proxy(
- ISpSREngine * This,
- ISpObjectToken *pProfile);
- void __RPC_STUB ISpSREngine_SetRecoProfile_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_OnCreateGrammar_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineRecoContext,
- /* [in] */ SPGRAMMARHANDLE hSAPIGrammar,
- /* [out] */ void **ppvEngineGrammarContext);
- void __RPC_STUB ISpSREngine_OnCreateGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_OnDeleteGrammar_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
- void __RPC_STUB ISpSREngine_OnDeleteGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_LoadProprietaryGrammar_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataParam,
- /* [in] */ ULONG ulDataSize,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpSREngine_LoadProprietaryGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_UnloadProprietaryGrammar_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
- void __RPC_STUB ISpSREngine_UnloadProprietaryGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetProprietaryRuleState_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszName,
- /* [in] */ void *pReserved,
- /* [in] */ SPRULESTATE NewState,
- /* [out] */ ULONG *pcRulesChanged);
- void __RPC_STUB ISpSREngine_SetProprietaryRuleState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetProprietaryRuleIdState_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ SPRULESTATE NewState);
- void __RPC_STUB ISpSREngine_SetProprietaryRuleIdState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_LoadSLM_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszTopicName);
- void __RPC_STUB ISpSREngine_LoadSLM_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_UnloadSLM_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar);
- void __RPC_STUB ISpSREngine_UnloadSLM_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetSLMState_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPRULESTATE NewState);
- void __RPC_STUB ISpSREngine_SetSLMState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetWordSequenceData_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
- void __RPC_STUB ISpSREngine_SetWordSequenceData_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetTextSelection_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
- void __RPC_STUB ISpSREngine_SetTextSelection_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_IsPronounceable_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
- void __RPC_STUB ISpSREngine_IsPronounceable_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_OnCreateRecoContext_Proxy(
- ISpSREngine * This,
- /* [in] */ SPRECOCONTEXTHANDLE hSAPIRecoContext,
- /* [out] */ void **ppvEngineContext);
- void __RPC_STUB ISpSREngine_OnCreateRecoContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_OnDeleteRecoContext_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext);
- void __RPC_STUB ISpSREngine_OnDeleteRecoContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_PrivateCall_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [out][in] */ PVOID pCallFrame,
- /* [in] */ ULONG ulCallFrameSize);
- void __RPC_STUB ISpSREngine_PrivateCall_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetAdaptationData_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- const WCHAR *pAdaptationData,
- const ULONG cch);
- void __RPC_STUB ISpSREngine_SetAdaptationData_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetPropertyNum_Proxy(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue);
- void __RPC_STUB ISpSREngine_SetPropertyNum_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_GetPropertyNum_Proxy(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *lValue);
- void __RPC_STUB ISpSREngine_GetPropertyNum_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetPropertyString_Proxy(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue);
- void __RPC_STUB ISpSREngine_SetPropertyString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_GetPropertyString_Proxy(
- ISpSREngine * This,
- /* [in] */ SPPROPSRC eSrc,
- /* [in] */ void *pvSrcObj,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue);
- void __RPC_STUB ISpSREngine_GetPropertyString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetGrammarState_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineGrammar,
- /* [in] */ SPGRAMMARSTATE eGrammarState);
- void __RPC_STUB ISpSREngine_SetGrammarState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_WordNotify_Proxy(
- ISpSREngine * This,
- SPCFGNOTIFY Action,
- ULONG cWords,
- const SPWORDENTRY *pWords);
- void __RPC_STUB ISpSREngine_WordNotify_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_RuleNotify_Proxy(
- ISpSREngine * This,
- SPCFGNOTIFY Action,
- ULONG cRules,
- const SPRULEENTRY *pRules);
- void __RPC_STUB ISpSREngine_RuleNotify_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_PrivateCallEx_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [in] */ const void *pInCallFrame,
- /* [in] */ ULONG ulInCallFrameSize,
- /* [out] */ void **ppvCoMemResponse,
- /* [out] */ ULONG *pulResponseSize);
- void __RPC_STUB ISpSREngine_PrivateCallEx_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSREngine_SetContextState_Proxy(
- ISpSREngine * This,
- /* [in] */ void *pvEngineContext,
- /* [in] */ SPCONTEXTSTATE eContextState);
- void __RPC_STUB ISpSREngine_SetContextState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpSREngine_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapiddk_0352 */
- /* [local] */
- typedef struct tagSPPHRASEALTREQUEST
- {
- ULONG ulStartElement;
- ULONG cElements;
- ULONG ulRequestAltCount;
- void *pvResultExtra;
- ULONG cbResultExtra;
- ISpPhrase *pPhrase;
- ISpRecoContext *pRecoContext;
- } SPPHRASEALTREQUEST;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0352_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapiddk_0352_v0_0_s_ifspec;
- #ifndef __ISpSRAlternates_INTERFACE_DEFINED__
- #define __ISpSRAlternates_INTERFACE_DEFINED__
- /* interface ISpSRAlternates */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpSRAlternates;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("FECE8294-2BE1-408f-8E68-2DE377092F0E")
- ISpSRAlternates : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetAlternates(
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [out] */ SPPHRASEALT **ppAlts,
- /* [out] */ ULONG *pcAlts) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Commit(
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [in] */ SPPHRASEALT *pAlt,
- /* [out] */ void **ppvResultExtra,
- /* [out] */ ULONG *pcbResultExtra) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpSRAlternatesVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpSRAlternates * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpSRAlternates * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpSRAlternates * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetAlternates )(
- ISpSRAlternates * This,
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [out] */ SPPHRASEALT **ppAlts,
- /* [out] */ ULONG *pcAlts);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpSRAlternates * This,
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [in] */ SPPHRASEALT *pAlt,
- /* [out] */ void **ppvResultExtra,
- /* [out] */ ULONG *pcbResultExtra);
-
- END_INTERFACE
- } ISpSRAlternatesVtbl;
- interface ISpSRAlternates
- {
- CONST_VTBL struct ISpSRAlternatesVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpSRAlternates_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpSRAlternates_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpSRAlternates_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpSRAlternates_GetAlternates(This,pAltRequest,ppAlts,pcAlts)
- (This)->lpVtbl -> GetAlternates(This,pAltRequest,ppAlts,pcAlts)
- #define ISpSRAlternates_Commit(This,pAltRequest,pAlt,ppvResultExtra,pcbResultExtra)
- (This)->lpVtbl -> Commit(This,pAltRequest,pAlt,ppvResultExtra,pcbResultExtra)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpSRAlternates_GetAlternates_Proxy(
- ISpSRAlternates * This,
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [out] */ SPPHRASEALT **ppAlts,
- /* [out] */ ULONG *pcAlts);
- void __RPC_STUB ISpSRAlternates_GetAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpSRAlternates_Commit_Proxy(
- ISpSRAlternates * This,
- /* [in] */ SPPHRASEALTREQUEST *pAltRequest,
- /* [in] */ SPPHRASEALT *pAlt,
- /* [out] */ void **ppvResultExtra,
- /* [out] */ ULONG *pcbResultExtra);
- void __RPC_STUB ISpSRAlternates_Commit_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpSRAlternates_INTERFACE_DEFINED__ */
- #ifndef ___ISpPrivateEngineCall_INTERFACE_DEFINED__
- #define ___ISpPrivateEngineCall_INTERFACE_DEFINED__
- /* interface _ISpPrivateEngineCall */
- /* [local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID__ISpPrivateEngineCall;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("8E7C791E-4467-11d3-9723-00C04F72DB08")
- _ISpPrivateEngineCall : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE CallEngine(
- /* [out][in] */ void *pCallFrame,
- /* [in] */ ULONG ulCallFrameSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CallEngineEx(
- /* [in] */ const void *pInFrame,
- /* [in] */ ULONG ulInFrameSize,
- /* [out] */ void **ppCoMemOutFrame,
- /* [out] */ ULONG *pulOutFrameSize) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct _ISpPrivateEngineCallVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- _ISpPrivateEngineCall * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- _ISpPrivateEngineCall * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- _ISpPrivateEngineCall * This);
-
- HRESULT ( STDMETHODCALLTYPE *CallEngine )(
- _ISpPrivateEngineCall * This,
- /* [out][in] */ void *pCallFrame,
- /* [in] */ ULONG ulCallFrameSize);
-
- HRESULT ( STDMETHODCALLTYPE *CallEngineEx )(
- _ISpPrivateEngineCall * This,
- /* [in] */ const void *pInFrame,
- /* [in] */ ULONG ulInFrameSize,
- /* [out] */ void **ppCoMemOutFrame,
- /* [out] */ ULONG *pulOutFrameSize);
-
- END_INTERFACE
- } _ISpPrivateEngineCallVtbl;
- interface _ISpPrivateEngineCall
- {
- CONST_VTBL struct _ISpPrivateEngineCallVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define _ISpPrivateEngineCall_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define _ISpPrivateEngineCall_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define _ISpPrivateEngineCall_Release(This)
- (This)->lpVtbl -> Release(This)
- #define _ISpPrivateEngineCall_CallEngine(This,pCallFrame,ulCallFrameSize)
- (This)->lpVtbl -> CallEngine(This,pCallFrame,ulCallFrameSize)
- #define _ISpPrivateEngineCall_CallEngineEx(This,pInFrame,ulInFrameSize,ppCoMemOutFrame,pulOutFrameSize)
- (This)->lpVtbl -> CallEngineEx(This,pInFrame,ulInFrameSize,ppCoMemOutFrame,pulOutFrameSize)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE _ISpPrivateEngineCall_CallEngine_Proxy(
- _ISpPrivateEngineCall * This,
- /* [out][in] */ void *pCallFrame,
- /* [in] */ ULONG ulCallFrameSize);
- void __RPC_STUB _ISpPrivateEngineCall_CallEngine_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE _ISpPrivateEngineCall_CallEngineEx_Proxy(
- _ISpPrivateEngineCall * This,
- /* [in] */ const void *pInFrame,
- /* [in] */ ULONG ulInFrameSize,
- /* [out] */ void **ppCoMemOutFrame,
- /* [out] */ ULONG *pulOutFrameSize);
- void __RPC_STUB _ISpPrivateEngineCall_CallEngineEx_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* ___ISpPrivateEngineCall_INTERFACE_DEFINED__ */
- #ifndef __SpeechDDKLib_LIBRARY_DEFINED__
- #define __SpeechDDKLib_LIBRARY_DEFINED__
- /* library SpeechDDKLib */
- /* [version][uuid][helpstring] */
- EXTERN_C const IID LIBID_SpeechDDKLib;
- EXTERN_C const CLSID CLSID_SpDataKey;
- #ifdef __cplusplus
- class DECLSPEC_UUID("D9F6EE60-58C9-458b-88E1-2F908FD7F87C")
- SpDataKey;
- #endif
- EXTERN_C const CLSID CLSID_SpObjectTokenEnum;
- #ifdef __cplusplus
- class DECLSPEC_UUID("3918D75F-0ACB-41f2-B733-92AA15BCECF6")
- SpObjectTokenEnum;
- #endif
- EXTERN_C const CLSID CLSID_SpPhraseBuilder;
- #ifdef __cplusplus
- class DECLSPEC_UUID("777B6BBD-2FF2-11d3-88FE-00C04F8EF9B5")
- SpPhraseBuilder;
- #endif
- EXTERN_C const CLSID CLSID_SpITNProcessor;
- #ifdef __cplusplus
- class DECLSPEC_UUID("12D73610-A1C9-11d3-BC90-00C04F72DF9F")
- SpITNProcessor;
- #endif
- EXTERN_C const CLSID CLSID_SpGrammarCompiler;
- #ifdef __cplusplus
- class DECLSPEC_UUID("B1E29D59-A675-11D2-8302-00C04F8EE6C0")
- SpGrammarCompiler;
- #endif
- EXTERN_C const CLSID CLSID_SpGramCompBackend;
- #ifdef __cplusplus
- class DECLSPEC_UUID("DA93E903-C843-11D2-A084-00C04F8EF9B5")
- SpGramCompBackend;
- #endif
- #endif /* __SpeechDDKLib_LIBRARY_DEFINED__ */
- /* Additional Prototypes for ALL interfaces */
- /* end of Additional Prototypes */
- #ifdef __cplusplus
- }
- #endif
- #endif