sapi.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:856k
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetRate_Proxy(
- ISpVoice * This,
- /* [out] */ long *pRateAdjust);
- void __RPC_STUB ISpVoice_GetRate_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetVolume_Proxy(
- ISpVoice * This,
- /* [in] */ USHORT usVolume);
- void __RPC_STUB ISpVoice_SetVolume_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetVolume_Proxy(
- ISpVoice * This,
- /* [out] */ USHORT *pusVolume);
- void __RPC_STUB ISpVoice_GetVolume_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_WaitUntilDone_Proxy(
- ISpVoice * This,
- /* [in] */ ULONG msTimeout);
- void __RPC_STUB ISpVoice_WaitUntilDone_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetSyncSpeakTimeout_Proxy(
- ISpVoice * This,
- /* [in] */ ULONG msTimeout);
- void __RPC_STUB ISpVoice_SetSyncSpeakTimeout_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetSyncSpeakTimeout_Proxy(
- ISpVoice * This,
- /* [out] */ ULONG *pmsTimeout);
- void __RPC_STUB ISpVoice_GetSyncSpeakTimeout_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [local] */ HANDLE STDMETHODCALLTYPE ISpVoice_SpeakCompleteEvent_Proxy(
- ISpVoice * This);
- void __RPC_STUB ISpVoice_SpeakCompleteEvent_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_IsUISupported_Proxy(
- ISpVoice * This,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData,
- /* [out] */ BOOL *pfSupported);
- void __RPC_STUB ISpVoice_IsUISupported_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_DisplayUI_Proxy(
- ISpVoice * This,
- /* [in] */ HWND hwndParent,
- /* [in] */ const WCHAR *pszTitle,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData);
- void __RPC_STUB ISpVoice_DisplayUI_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpVoice_INTERFACE_DEFINED__ */
- #ifndef __ISpPhrase_INTERFACE_DEFINED__
- #define __ISpPhrase_INTERFACE_DEFINED__
- /* interface ISpPhrase */
- /* [restricted][unique][helpstring][local][uuid][object] */
- EXTERN_C const IID IID_ISpPhrase;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("1A5C0354-B621-4b5a-8791-D306ED379E53")
- ISpPhrase : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetPhrase(
- /* [out] */ SPPHRASE **ppCoMemPhrase) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetSerializedPhrase(
- /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetText(
- /* [in] */ ULONG ulStart,
- /* [in] */ ULONG ulCount,
- /* [in] */ BOOL fUseTextReplacements,
- /* [out] */ WCHAR **ppszCoMemText,
- /* [out] */ BYTE *pbDisplayAttributes) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Discard(
- /* [in] */ DWORD dwValueTypes) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpPhraseVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpPhrase * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpPhrase * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpPhrase * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
- ISpPhrase * This,
- /* [out] */ SPPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
- ISpPhrase * This,
- /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetText )(
- ISpPhrase * This,
- /* [in] */ ULONG ulStart,
- /* [in] */ ULONG ulCount,
- /* [in] */ BOOL fUseTextReplacements,
- /* [out] */ WCHAR **ppszCoMemText,
- /* [out] */ BYTE *pbDisplayAttributes);
-
- HRESULT ( STDMETHODCALLTYPE *Discard )(
- ISpPhrase * This,
- /* [in] */ DWORD dwValueTypes);
-
- END_INTERFACE
- } ISpPhraseVtbl;
- interface ISpPhrase
- {
- CONST_VTBL struct ISpPhraseVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpPhrase_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpPhrase_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpPhrase_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpPhrase_GetPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
- #define ISpPhrase_GetSerializedPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
- #define ISpPhrase_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- #define ISpPhrase_Discard(This,dwValueTypes)
- (This)->lpVtbl -> Discard(This,dwValueTypes)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpPhrase_GetPhrase_Proxy(
- ISpPhrase * This,
- /* [out] */ SPPHRASE **ppCoMemPhrase);
- void __RPC_STUB ISpPhrase_GetPhrase_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpPhrase_GetSerializedPhrase_Proxy(
- ISpPhrase * This,
- /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
- void __RPC_STUB ISpPhrase_GetSerializedPhrase_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpPhrase_GetText_Proxy(
- ISpPhrase * This,
- /* [in] */ ULONG ulStart,
- /* [in] */ ULONG ulCount,
- /* [in] */ BOOL fUseTextReplacements,
- /* [out] */ WCHAR **ppszCoMemText,
- /* [out] */ BYTE *pbDisplayAttributes);
- void __RPC_STUB ISpPhrase_GetText_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpPhrase_Discard_Proxy(
- ISpPhrase * This,
- /* [in] */ DWORD dwValueTypes);
- void __RPC_STUB ISpPhrase_Discard_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpPhrase_INTERFACE_DEFINED__ */
- #ifndef __ISpPhraseAlt_INTERFACE_DEFINED__
- #define __ISpPhraseAlt_INTERFACE_DEFINED__
- /* interface ISpPhraseAlt */
- /* [restricted][unique][helpstring][local][uuid][object] */
- EXTERN_C const IID IID_ISpPhraseAlt;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("8FCEBC98-4E49-4067-9C6C-D86A0E092E3D")
- ISpPhraseAlt : public ISpPhrase
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetAltInfo(
- ISpPhrase **ppParent,
- ULONG *pulStartElementInParent,
- ULONG *pcElementsInParent,
- ULONG *pcElementsInAlt) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpPhraseAltVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpPhraseAlt * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpPhraseAlt * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpPhraseAlt * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
- ISpPhraseAlt * This,
- /* [out] */ SPPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
- ISpPhraseAlt * This,
- /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetText )(
- ISpPhraseAlt * This,
- /* [in] */ ULONG ulStart,
- /* [in] */ ULONG ulCount,
- /* [in] */ BOOL fUseTextReplacements,
- /* [out] */ WCHAR **ppszCoMemText,
- /* [out] */ BYTE *pbDisplayAttributes);
-
- HRESULT ( STDMETHODCALLTYPE *Discard )(
- ISpPhraseAlt * This,
- /* [in] */ DWORD dwValueTypes);
-
- HRESULT ( STDMETHODCALLTYPE *GetAltInfo )(
- ISpPhraseAlt * This,
- ISpPhrase **ppParent,
- ULONG *pulStartElementInParent,
- ULONG *pcElementsInParent,
- ULONG *pcElementsInAlt);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpPhraseAlt * This);
-
- END_INTERFACE
- } ISpPhraseAltVtbl;
- interface ISpPhraseAlt
- {
- CONST_VTBL struct ISpPhraseAltVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpPhraseAlt_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpPhraseAlt_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpPhraseAlt_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpPhraseAlt_GetPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
- #define ISpPhraseAlt_GetSerializedPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
- #define ISpPhraseAlt_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- #define ISpPhraseAlt_Discard(This,dwValueTypes)
- (This)->lpVtbl -> Discard(This,dwValueTypes)
- #define ISpPhraseAlt_GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt)
- (This)->lpVtbl -> GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt)
- #define ISpPhraseAlt_Commit(This)
- (This)->lpVtbl -> Commit(This)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpPhraseAlt_GetAltInfo_Proxy(
- ISpPhraseAlt * This,
- ISpPhrase **ppParent,
- ULONG *pulStartElementInParent,
- ULONG *pcElementsInParent,
- ULONG *pcElementsInAlt);
- void __RPC_STUB ISpPhraseAlt_GetAltInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpPhraseAlt_Commit_Proxy(
- ISpPhraseAlt * This);
- void __RPC_STUB ISpPhraseAlt_Commit_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpPhraseAlt_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0276 */
- /* [local] */
- typedef /* [hidden][restricted] */ struct SPRECORESULTTIMES
- {
- FILETIME ftStreamTime;
- ULONGLONG ullLength;
- DWORD dwTickCount;
- ULONGLONG ullStart;
- } SPRECORESULTTIMES;
- typedef /* [hidden] */ struct SPSERIALIZEDRESULT
- {
- ULONG ulSerializedSize;
- } SPSERIALIZEDRESULT;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_s_ifspec;
- #ifndef __ISpRecoResult_INTERFACE_DEFINED__
- #define __ISpRecoResult_INTERFACE_DEFINED__
- /* interface ISpRecoResult */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpRecoResult;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("20B053BE-E235-43cd-9A2A-8D17A48B7842")
- ISpRecoResult : public ISpPhrase
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetResultTimes(
- /* [out] */ SPRECORESULTTIMES *pTimes) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetAlternates(
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ ULONG ulRequestCount,
- /* [out] */ ISpPhraseAlt **ppPhrases,
- /* [out] */ ULONG *pcPhrasesReturned) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetAudio(
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [out] */ ISpStreamFormat **ppStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Serialize(
- /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ScaleAudio(
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
- /* [out] */ ISpRecoContext **ppRecoContext) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpRecoResultVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpRecoResult * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpRecoResult * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpRecoResult * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
- ISpRecoResult * This,
- /* [out] */ SPPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
- ISpRecoResult * This,
- /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
-
- HRESULT ( STDMETHODCALLTYPE *GetText )(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStart,
- /* [in] */ ULONG ulCount,
- /* [in] */ BOOL fUseTextReplacements,
- /* [out] */ WCHAR **ppszCoMemText,
- /* [out] */ BYTE *pbDisplayAttributes);
-
- HRESULT ( STDMETHODCALLTYPE *Discard )(
- ISpRecoResult * This,
- /* [in] */ DWORD dwValueTypes);
-
- HRESULT ( STDMETHODCALLTYPE *GetResultTimes )(
- ISpRecoResult * This,
- /* [out] */ SPRECORESULTTIMES *pTimes);
-
- HRESULT ( STDMETHODCALLTYPE *GetAlternates )(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ ULONG ulRequestCount,
- /* [out] */ ISpPhraseAlt **ppPhrases,
- /* [out] */ ULONG *pcPhrasesReturned);
-
- HRESULT ( STDMETHODCALLTYPE *GetAudio )(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [out] */ ISpStreamFormat **ppStream);
-
- HRESULT ( STDMETHODCALLTYPE *SpeakAudio )(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
-
- HRESULT ( STDMETHODCALLTYPE *Serialize )(
- ISpRecoResult * This,
- /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
-
- HRESULT ( STDMETHODCALLTYPE *ScaleAudio )(
- ISpRecoResult * This,
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
- ISpRecoResult * This,
- /* [out] */ ISpRecoContext **ppRecoContext);
-
- END_INTERFACE
- } ISpRecoResultVtbl;
- interface ISpRecoResult
- {
- CONST_VTBL struct ISpRecoResultVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpRecoResult_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpRecoResult_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpRecoResult_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpRecoResult_GetPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
- #define ISpRecoResult_GetSerializedPhrase(This,ppCoMemPhrase)
- (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
- #define ISpRecoResult_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
- #define ISpRecoResult_Discard(This,dwValueTypes)
- (This)->lpVtbl -> Discard(This,dwValueTypes)
- #define ISpRecoResult_GetResultTimes(This,pTimes)
- (This)->lpVtbl -> GetResultTimes(This,pTimes)
- #define ISpRecoResult_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
- (This)->lpVtbl -> GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
- #define ISpRecoResult_GetAudio(This,ulStartElement,cElements,ppStream)
- (This)->lpVtbl -> GetAudio(This,ulStartElement,cElements,ppStream)
- #define ISpRecoResult_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
- (This)->lpVtbl -> SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
- #define ISpRecoResult_Serialize(This,ppCoMemSerializedResult)
- (This)->lpVtbl -> Serialize(This,ppCoMemSerializedResult)
- #define ISpRecoResult_ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
- (This)->lpVtbl -> ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
- #define ISpRecoResult_GetRecoContext(This,ppRecoContext)
- (This)->lpVtbl -> GetRecoContext(This,ppRecoContext)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpRecoResult_GetResultTimes_Proxy(
- ISpRecoResult * This,
- /* [out] */ SPRECORESULTTIMES *pTimes);
- void __RPC_STUB ISpRecoResult_GetResultTimes_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAlternates_Proxy(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ ULONG ulRequestCount,
- /* [out] */ ISpPhraseAlt **ppPhrases,
- /* [out] */ ULONG *pcPhrasesReturned);
- void __RPC_STUB ISpRecoResult_GetAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAudio_Proxy(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [out] */ ISpStreamFormat **ppStream);
- void __RPC_STUB ISpRecoResult_GetAudio_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_SpeakAudio_Proxy(
- ISpRecoResult * This,
- /* [in] */ ULONG ulStartElement,
- /* [in] */ ULONG cElements,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
- void __RPC_STUB ISpRecoResult_SpeakAudio_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_Serialize_Proxy(
- ISpRecoResult * This,
- /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
- void __RPC_STUB ISpRecoResult_Serialize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_ScaleAudio_Proxy(
- ISpRecoResult * This,
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
- void __RPC_STUB ISpRecoResult_ScaleAudio_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoResult_GetRecoContext_Proxy(
- ISpRecoResult * This,
- /* [out] */ ISpRecoContext **ppRecoContext);
- void __RPC_STUB ISpRecoResult_GetRecoContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpRecoResult_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0277 */
- /* [local] */
- typedef /* [hidden] */ struct tagSPTEXTSELECTIONINFO
- {
- ULONG ulStartActiveOffset;
- ULONG cchActiveChars;
- ULONG ulStartSelection;
- ULONG cchSelection;
- } SPTEXTSELECTIONINFO;
- typedef /* [hidden] */
- enum SPWORDPRONOUNCEABLE
- { SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE = 0,
- SPWP_UNKNOWN_WORD_PRONOUNCEABLE = 1,
- SPWP_KNOWN_WORD_PRONOUNCEABLE = 2
- } SPWORDPRONOUNCEABLE;
- typedef /* [hidden] */
- enum SPGRAMMARSTATE
- { SPGS_DISABLED = 0,
- SPGS_ENABLED = 1,
- SPGS_EXCLUSIVE = 3
- } SPGRAMMARSTATE;
- typedef /* [hidden] */
- enum SPCONTEXTSTATE
- { SPCS_DISABLED = 0,
- SPCS_ENABLED = 1
- } SPCONTEXTSTATE;
- typedef /* [hidden] */
- enum SPRULESTATE
- { SPRS_INACTIVE = 0,
- SPRS_ACTIVE = 1,
- SPRS_ACTIVE_WITH_AUTO_PAUSE = 3
- } SPRULESTATE;
- #define SP_STREAMPOS_ASAP ( 0 )
- #define SP_STREAMPOS_REALTIME ( -1 )
- #define SPRULETRANS_TEXTBUFFER (SPSTATEHANDLE)(-1)
- #define SPRULETRANS_WILDCARD (SPSTATEHANDLE)(-2)
- #define SPRULETRANS_DICTATION (SPSTATEHANDLE)(-3)
- typedef /* [hidden] */
- enum SPGRAMMARWORDTYPE
- { SPWT_DISPLAY = 0,
- SPWT_LEXICAL = SPWT_DISPLAY + 1,
- SPWT_PRONUNCIATION = SPWT_LEXICAL + 1
- } SPGRAMMARWORDTYPE;
- typedef /* [hidden] */ struct tagSPPROPERTYINFO
- {
- const WCHAR *pszName;
- ULONG ulId;
- const WCHAR *pszValue;
- VARIANT vValue;
- } SPPROPERTYINFO;
- typedef /* [hidden] */
- enum SPCFGRULEATTRIBUTES
- { SPRAF_TopLevel = 1 << 0,
- SPRAF_Active = 1 << 1,
- SPRAF_Export = 1 << 2,
- SPRAF_Import = 1 << 3,
- SPRAF_Interpreter = 1 << 4,
- SPRAF_Dynamic = 1 << 5,
- SPRAF_AutoPause = 1 << 16
- } SPCFGRULEATTRIBUTES;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0277_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0277_v0_0_s_ifspec;
- #ifndef __ISpGrammarBuilder_INTERFACE_DEFINED__
- #define __ISpGrammarBuilder_INTERFACE_DEFINED__
- /* interface ISpGrammarBuilder */
- /* [local][restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpGrammarBuilder;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("8137828F-591A-4A42-BE58-49EA7EBAAC68")
- ISpGrammarBuilder : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE ResetGrammar(
- /* [in] */ WORD NewLanguage) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRule(
- /* [in] */ const WCHAR *pszRuleName,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ DWORD dwAttributes,
- /* [in] */ BOOL fCreateIfNotExist,
- /* [out] */ SPSTATEHANDLE *phInitialState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ClearRule(
- SPSTATEHANDLE hState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateNewState(
- SPSTATEHANDLE hState,
- SPSTATEHANDLE *phState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddWordTransition(
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- const WCHAR *psz,
- const WCHAR *pszSeparators,
- SPGRAMMARWORDTYPE eWordType,
- float Weight,
- const SPPROPERTYINFO *pPropInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddRuleTransition(
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- SPSTATEHANDLE hRule,
- float Weight,
- const SPPROPERTYINFO *pPropInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddResource(
- /* [in] */ SPSTATEHANDLE hRuleState,
- /* [in] */ const WCHAR *pszResourceName,
- /* [in] */ const WCHAR *pszResourceValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Commit(
- DWORD dwReserved) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpGrammarBuilderVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpGrammarBuilder * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpGrammarBuilder * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpGrammarBuilder * This);
-
- HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
- ISpGrammarBuilder * This,
- /* [in] */ WORD NewLanguage);
-
- HRESULT ( STDMETHODCALLTYPE *GetRule )(
- ISpGrammarBuilder * This,
- /* [in] */ const WCHAR *pszRuleName,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ DWORD dwAttributes,
- /* [in] */ BOOL fCreateIfNotExist,
- /* [out] */ SPSTATEHANDLE *phInitialState);
-
- HRESULT ( STDMETHODCALLTYPE *ClearRule )(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hState);
-
- HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hState,
- SPSTATEHANDLE *phState);
-
- HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- const WCHAR *psz,
- const WCHAR *pszSeparators,
- SPGRAMMARWORDTYPE eWordType,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
-
- HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- SPSTATEHANDLE hRule,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
-
- HRESULT ( STDMETHODCALLTYPE *AddResource )(
- ISpGrammarBuilder * This,
- /* [in] */ SPSTATEHANDLE hRuleState,
- /* [in] */ const WCHAR *pszResourceName,
- /* [in] */ const WCHAR *pszResourceValue);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpGrammarBuilder * This,
- DWORD dwReserved);
-
- END_INTERFACE
- } ISpGrammarBuilderVtbl;
- interface ISpGrammarBuilder
- {
- CONST_VTBL struct ISpGrammarBuilderVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpGrammarBuilder_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpGrammarBuilder_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpGrammarBuilder_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpGrammarBuilder_ResetGrammar(This,NewLanguage)
- (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
- #define ISpGrammarBuilder_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
- (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
- #define ISpGrammarBuilder_ClearRule(This,hState)
- (This)->lpVtbl -> ClearRule(This,hState)
- #define ISpGrammarBuilder_CreateNewState(This,hState,phState)
- (This)->lpVtbl -> CreateNewState(This,hState,phState)
- #define ISpGrammarBuilder_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
- (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
- #define ISpGrammarBuilder_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
- (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
- #define ISpGrammarBuilder_AddResource(This,hRuleState,pszResourceName,pszResourceValue)
- (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
- #define ISpGrammarBuilder_Commit(This,dwReserved)
- (This)->lpVtbl -> Commit(This,dwReserved)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ResetGrammar_Proxy(
- ISpGrammarBuilder * This,
- /* [in] */ WORD NewLanguage);
- void __RPC_STUB ISpGrammarBuilder_ResetGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_GetRule_Proxy(
- ISpGrammarBuilder * This,
- /* [in] */ const WCHAR *pszRuleName,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ DWORD dwAttributes,
- /* [in] */ BOOL fCreateIfNotExist,
- /* [out] */ SPSTATEHANDLE *phInitialState);
- void __RPC_STUB ISpGrammarBuilder_GetRule_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ClearRule_Proxy(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hState);
- void __RPC_STUB ISpGrammarBuilder_ClearRule_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_CreateNewState_Proxy(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hState,
- SPSTATEHANDLE *phState);
- void __RPC_STUB ISpGrammarBuilder_CreateNewState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddWordTransition_Proxy(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- const WCHAR *psz,
- const WCHAR *pszSeparators,
- SPGRAMMARWORDTYPE eWordType,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
- void __RPC_STUB ISpGrammarBuilder_AddWordTransition_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddRuleTransition_Proxy(
- ISpGrammarBuilder * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- SPSTATEHANDLE hRule,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
- void __RPC_STUB ISpGrammarBuilder_AddRuleTransition_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddResource_Proxy(
- ISpGrammarBuilder * This,
- /* [in] */ SPSTATEHANDLE hRuleState,
- /* [in] */ const WCHAR *pszResourceName,
- /* [in] */ const WCHAR *pszResourceValue);
- void __RPC_STUB ISpGrammarBuilder_AddResource_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_Commit_Proxy(
- ISpGrammarBuilder * This,
- DWORD dwReserved);
- void __RPC_STUB ISpGrammarBuilder_Commit_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpGrammarBuilder_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0278 */
- /* [local] */
- typedef /* [hidden] */
- enum SPLOADOPTIONS
- { SPLO_STATIC = 0,
- SPLO_DYNAMIC = 1
- } SPLOADOPTIONS;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0278_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0278_v0_0_s_ifspec;
- #ifndef __ISpRecoGrammar_INTERFACE_DEFINED__
- #define __ISpRecoGrammar_INTERFACE_DEFINED__
- /* interface ISpRecoGrammar */
- /* [local][restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpRecoGrammar;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("2177DB29-7F45-47D0-8554-067E91C80502")
- ISpRecoGrammar : public ISpGrammarBuilder
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetGrammarId(
- /* [out] */ ULONGLONG *pullGrammarId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
- /* [out] */ ISpRecoContext **ppRecoCtxt) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadCmdFromFile(
- /* [string][in] */ const WCHAR *pszFileName,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadCmdFromObject(
- /* [in] */ REFCLSID rcid,
- /* [string][in] */ const WCHAR *pszGrammarName,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadCmdFromResource(
- /* [in] */ HMODULE hModule,
- /* [string][in] */ const WCHAR *pszResourceName,
- /* [string][in] */ const WCHAR *pszResourceType,
- /* [in] */ WORD wLanguage,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadCmdFromMemory(
- /* [in] */ const SPBINARYGRAMMAR *pGrammar,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadCmdFromProprietaryGrammar(
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataPrarm,
- /* [in] */ ULONG cbDataSize,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRuleState(
- /* [string][in] */ const WCHAR *pszName,
- void *pReserved,
- /* [in] */ SPRULESTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRuleIdState(
- /* [in] */ ULONG ulRuleId,
- /* [in] */ SPRULESTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE LoadDictation(
- /* [string][in] */ const WCHAR *pszTopicName,
- /* [in] */ SPLOADOPTIONS Options) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE UnloadDictation( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetDictationState(
- /* [in] */ SPRULESTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetGrammarState(
- /* [in] */ SPGRAMMARSTATE eGrammarState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SaveCmd(
- /* [in] */ IStream *pStream,
- /* [optional][out] */ WCHAR **ppszCoMemErrorText) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetGrammarState(
- /* [out] */ SPGRAMMARSTATE *peGrammarState) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpRecoGrammarVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpRecoGrammar * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpRecoGrammar * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpRecoGrammar * This);
-
- HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
- ISpRecoGrammar * This,
- /* [in] */ WORD NewLanguage);
-
- HRESULT ( STDMETHODCALLTYPE *GetRule )(
- ISpRecoGrammar * This,
- /* [in] */ const WCHAR *pszRuleName,
- /* [in] */ DWORD dwRuleId,
- /* [in] */ DWORD dwAttributes,
- /* [in] */ BOOL fCreateIfNotExist,
- /* [out] */ SPSTATEHANDLE *phInitialState);
-
- HRESULT ( STDMETHODCALLTYPE *ClearRule )(
- ISpRecoGrammar * This,
- SPSTATEHANDLE hState);
-
- HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
- ISpRecoGrammar * This,
- SPSTATEHANDLE hState,
- SPSTATEHANDLE *phState);
-
- HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
- ISpRecoGrammar * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- const WCHAR *psz,
- const WCHAR *pszSeparators,
- SPGRAMMARWORDTYPE eWordType,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
-
- HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
- ISpRecoGrammar * This,
- SPSTATEHANDLE hFromState,
- SPSTATEHANDLE hToState,
- SPSTATEHANDLE hRule,
- float Weight,
- const SPPROPERTYINFO *pPropInfo);
-
- HRESULT ( STDMETHODCALLTYPE *AddResource )(
- ISpRecoGrammar * This,
- /* [in] */ SPSTATEHANDLE hRuleState,
- /* [in] */ const WCHAR *pszResourceName,
- /* [in] */ const WCHAR *pszResourceValue);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpRecoGrammar * This,
- DWORD dwReserved);
-
- HRESULT ( STDMETHODCALLTYPE *GetGrammarId )(
- ISpRecoGrammar * This,
- /* [out] */ ULONGLONG *pullGrammarId);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
- ISpRecoGrammar * This,
- /* [out] */ ISpRecoContext **ppRecoCtxt);
-
- HRESULT ( STDMETHODCALLTYPE *LoadCmdFromFile )(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszFileName,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *LoadCmdFromObject )(
- ISpRecoGrammar * This,
- /* [in] */ REFCLSID rcid,
- /* [string][in] */ const WCHAR *pszGrammarName,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *LoadCmdFromResource )(
- ISpRecoGrammar * This,
- /* [in] */ HMODULE hModule,
- /* [string][in] */ const WCHAR *pszResourceName,
- /* [string][in] */ const WCHAR *pszResourceType,
- /* [in] */ WORD wLanguage,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *LoadCmdFromMemory )(
- ISpRecoGrammar * This,
- /* [in] */ const SPBINARYGRAMMAR *pGrammar,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *LoadCmdFromProprietaryGrammar )(
- ISpRecoGrammar * This,
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataPrarm,
- /* [in] */ ULONG cbDataSize,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *SetRuleState )(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszName,
- void *pReserved,
- /* [in] */ SPRULESTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *SetRuleIdState )(
- ISpRecoGrammar * This,
- /* [in] */ ULONG ulRuleId,
- /* [in] */ SPRULESTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *LoadDictation )(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszTopicName,
- /* [in] */ SPLOADOPTIONS Options);
-
- HRESULT ( STDMETHODCALLTYPE *UnloadDictation )(
- ISpRecoGrammar * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetDictationState )(
- ISpRecoGrammar * This,
- /* [in] */ SPRULESTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
- ISpRecoGrammar * This,
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
- ISpRecoGrammar * This,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
-
- HRESULT ( STDMETHODCALLTYPE *SetGrammarState )(
- ISpRecoGrammar * This,
- /* [in] */ SPGRAMMARSTATE eGrammarState);
-
- HRESULT ( STDMETHODCALLTYPE *SaveCmd )(
- ISpRecoGrammar * This,
- /* [in] */ IStream *pStream,
- /* [optional][out] */ WCHAR **ppszCoMemErrorText);
-
- HRESULT ( STDMETHODCALLTYPE *GetGrammarState )(
- ISpRecoGrammar * This,
- /* [out] */ SPGRAMMARSTATE *peGrammarState);
-
- END_INTERFACE
- } ISpRecoGrammarVtbl;
- interface ISpRecoGrammar
- {
- CONST_VTBL struct ISpRecoGrammarVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpRecoGrammar_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpRecoGrammar_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpRecoGrammar_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpRecoGrammar_ResetGrammar(This,NewLanguage)
- (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
- #define ISpRecoGrammar_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
- (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
- #define ISpRecoGrammar_ClearRule(This,hState)
- (This)->lpVtbl -> ClearRule(This,hState)
- #define ISpRecoGrammar_CreateNewState(This,hState,phState)
- (This)->lpVtbl -> CreateNewState(This,hState,phState)
- #define ISpRecoGrammar_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
- (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
- #define ISpRecoGrammar_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
- (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
- #define ISpRecoGrammar_AddResource(This,hRuleState,pszResourceName,pszResourceValue)
- (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
- #define ISpRecoGrammar_Commit(This,dwReserved)
- (This)->lpVtbl -> Commit(This,dwReserved)
- #define ISpRecoGrammar_GetGrammarId(This,pullGrammarId)
- (This)->lpVtbl -> GetGrammarId(This,pullGrammarId)
- #define ISpRecoGrammar_GetRecoContext(This,ppRecoCtxt)
- (This)->lpVtbl -> GetRecoContext(This,ppRecoCtxt)
- #define ISpRecoGrammar_LoadCmdFromFile(This,pszFileName,Options)
- (This)->lpVtbl -> LoadCmdFromFile(This,pszFileName,Options)
- #define ISpRecoGrammar_LoadCmdFromObject(This,rcid,pszGrammarName,Options)
- (This)->lpVtbl -> LoadCmdFromObject(This,rcid,pszGrammarName,Options)
- #define ISpRecoGrammar_LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options)
- (This)->lpVtbl -> LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options)
- #define ISpRecoGrammar_LoadCmdFromMemory(This,pGrammar,Options)
- (This)->lpVtbl -> LoadCmdFromMemory(This,pGrammar,Options)
- #define ISpRecoGrammar_LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options)
- (This)->lpVtbl -> LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options)
- #define ISpRecoGrammar_SetRuleState(This,pszName,pReserved,NewState)
- (This)->lpVtbl -> SetRuleState(This,pszName,pReserved,NewState)
- #define ISpRecoGrammar_SetRuleIdState(This,ulRuleId,NewState)
- (This)->lpVtbl -> SetRuleIdState(This,ulRuleId,NewState)
- #define ISpRecoGrammar_LoadDictation(This,pszTopicName,Options)
- (This)->lpVtbl -> LoadDictation(This,pszTopicName,Options)
- #define ISpRecoGrammar_UnloadDictation(This)
- (This)->lpVtbl -> UnloadDictation(This)
- #define ISpRecoGrammar_SetDictationState(This,NewState)
- (This)->lpVtbl -> SetDictationState(This,NewState)
- #define ISpRecoGrammar_SetWordSequenceData(This,pText,cchText,pInfo)
- (This)->lpVtbl -> SetWordSequenceData(This,pText,cchText,pInfo)
- #define ISpRecoGrammar_SetTextSelection(This,pInfo)
- (This)->lpVtbl -> SetTextSelection(This,pInfo)
- #define ISpRecoGrammar_IsPronounceable(This,pszWord,pWordPronounceable)
- (This)->lpVtbl -> IsPronounceable(This,pszWord,pWordPronounceable)
- #define ISpRecoGrammar_SetGrammarState(This,eGrammarState)
- (This)->lpVtbl -> SetGrammarState(This,eGrammarState)
- #define ISpRecoGrammar_SaveCmd(This,pStream,ppszCoMemErrorText)
- (This)->lpVtbl -> SaveCmd(This,pStream,ppszCoMemErrorText)
- #define ISpRecoGrammar_GetGrammarState(This,peGrammarState)
- (This)->lpVtbl -> GetGrammarState(This,peGrammarState)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarId_Proxy(
- ISpRecoGrammar * This,
- /* [out] */ ULONGLONG *pullGrammarId);
- void __RPC_STUB ISpRecoGrammar_GetGrammarId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetRecoContext_Proxy(
- ISpRecoGrammar * This,
- /* [out] */ ISpRecoContext **ppRecoCtxt);
- void __RPC_STUB ISpRecoGrammar_GetRecoContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromFile_Proxy(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszFileName,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadCmdFromFile_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromObject_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ REFCLSID rcid,
- /* [string][in] */ const WCHAR *pszGrammarName,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadCmdFromObject_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromResource_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ HMODULE hModule,
- /* [string][in] */ const WCHAR *pszResourceName,
- /* [string][in] */ const WCHAR *pszResourceType,
- /* [in] */ WORD wLanguage,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadCmdFromResource_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromMemory_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ const SPBINARYGRAMMAR *pGrammar,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadCmdFromMemory_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ REFGUID rguidParam,
- /* [string][in] */ const WCHAR *pszStringParam,
- /* [in] */ const void *pvDataPrarm,
- /* [in] */ ULONG cbDataSize,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleState_Proxy(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszName,
- void *pReserved,
- /* [in] */ SPRULESTATE NewState);
- void __RPC_STUB ISpRecoGrammar_SetRuleState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleIdState_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ ULONG ulRuleId,
- /* [in] */ SPRULESTATE NewState);
- void __RPC_STUB ISpRecoGrammar_SetRuleIdState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadDictation_Proxy(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszTopicName,
- /* [in] */ SPLOADOPTIONS Options);
- void __RPC_STUB ISpRecoGrammar_LoadDictation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_UnloadDictation_Proxy(
- ISpRecoGrammar * This);
- void __RPC_STUB ISpRecoGrammar_UnloadDictation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetDictationState_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ SPRULESTATE NewState);
- void __RPC_STUB ISpRecoGrammar_SetDictationState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetWordSequenceData_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ const WCHAR *pText,
- /* [in] */ ULONG cchText,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
- void __RPC_STUB ISpRecoGrammar_SetWordSequenceData_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetTextSelection_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
- void __RPC_STUB ISpRecoGrammar_SetTextSelection_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_IsPronounceable_Proxy(
- ISpRecoGrammar * This,
- /* [string][in] */ const WCHAR *pszWord,
- /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
- void __RPC_STUB ISpRecoGrammar_IsPronounceable_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetGrammarState_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ SPGRAMMARSTATE eGrammarState);
- void __RPC_STUB ISpRecoGrammar_SetGrammarState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SaveCmd_Proxy(
- ISpRecoGrammar * This,
- /* [in] */ IStream *pStream,
- /* [optional][out] */ WCHAR **ppszCoMemErrorText);
- void __RPC_STUB ISpRecoGrammar_SaveCmd_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarState_Proxy(
- ISpRecoGrammar * This,
- /* [out] */ SPGRAMMARSTATE *peGrammarState);
- void __RPC_STUB ISpRecoGrammar_GetGrammarState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpRecoGrammar_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0279 */
- /* [local] */
- typedef /* [hidden][restricted] */ struct SPRECOCONTEXTSTATUS
- {
- SPINTERFERENCE eInterference;
- WCHAR szRequestTypeOfUI[ 255 ];
- DWORD dwReserved1;
- DWORD dwReserved2;
- } SPRECOCONTEXTSTATUS;
- typedef /* [hidden] */
- enum SPBOOKMARKOPTIONS
- { SPBO_NONE = 0,
- SPBO_PAUSE = 1
- } SPBOOKMARKOPTIONS;
- typedef /* [hidden] */
- enum SPAUDIOOPTIONS
- { SPAO_NONE = 0,
- SPAO_RETAIN_AUDIO = 1 << 0
- } SPAUDIOOPTIONS;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_s_ifspec;
- #ifndef __ISpRecoContext_INTERFACE_DEFINED__
- #define __ISpRecoContext_INTERFACE_DEFINED__
- /* interface ISpRecoContext */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpRecoContext;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("F740A62F-7C15-489E-8234-940A33D9272D")
- ISpRecoContext : public ISpEventSource
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
- /* [out] */ ISpRecognizer **ppRecognizer) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateGrammar(
- /* [in] */ ULONGLONG ullGrammarId,
- /* [out] */ ISpRecoGrammar **ppGrammar) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStatus(
- /* [out] */ SPRECOCONTEXTSTATUS *pStatus) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetMaxAlternates(
- /* [in] */ ULONG *pcAlternates) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetMaxAlternates(
- /* [in] */ ULONG cAlternates) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetAudioOptions(
- /* [in] */ SPAUDIOOPTIONS Options,
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetAudioOptions(
- /* [in] */ SPAUDIOOPTIONS *pOptions,
- /* [out] */ GUID *pAudioFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE DeserializeResult(
- /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
- /* [out] */ ISpRecoResult **ppResult) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Bookmark(
- /* [in] */ SPBOOKMARKOPTIONS Options,
- /* [in] */ ULONGLONG ullStreamPosition,
- /* [in] */ LPARAM lparamEvent) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
- /* [string][in] */ const WCHAR *pAdaptationData,
- /* [in] */ const ULONG cch) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Pause(
- DWORD dwReserved) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Resume(
- DWORD dwReserved) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetVoice(
- /* [in] */ ISpVoice *pVoice,
- /* [in] */ BOOL fAllowFormatChanges) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetVoice(
- /* [out] */ ISpVoice **ppVoice) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetVoicePurgeEvent(
- /* [in] */ ULONGLONG ullEventInterest) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetVoicePurgeEvent(
- /* [out] */ ULONGLONG *pullEventInterest) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetContextState(
- /* [in] */ SPCONTEXTSTATE eContextState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetContextState(
- /* [in] */ SPCONTEXTSTATE *peContextState) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpRecoContextVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpRecoContext * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpRecoContext * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpRecoContext * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
- ISpRecoContext * This,
- /* [in] */ ISpNotifySink *pNotifySink);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
- ISpRecoContext * This,
- /* [in] */ HWND hWnd,
- /* [in] */ UINT Msg,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
- ISpRecoContext * This,
- /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
- ISpRecoContext * This,
- /* [in] */ ISpNotifyCallback *pSpCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
- ISpRecoContext * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
- ISpRecoContext * This,
- /* [in] */ DWORD dwMilliseconds);
-
- /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
- ISpRecoContext * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetInterest )(
- ISpRecoContext * This,
- /* [in] */ ULONGLONG ullEventInterest,
- /* [in] */ ULONGLONG ullQueuedInterest);
-
- HRESULT ( STDMETHODCALLTYPE *GetEvents )(
- ISpRecoContext * This,
- /* [in] */ ULONG ulCount,
- /* [size_is][out] */ SPEVENT *pEventArray,
- /* [out] */ ULONG *pulFetched);
-
- HRESULT ( STDMETHODCALLTYPE *GetInfo )(
- ISpRecoContext * This,
- /* [out] */ SPEVENTSOURCEINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
- ISpRecoContext * This,
- /* [out] */ ISpRecognizer **ppRecognizer);
-
- HRESULT ( STDMETHODCALLTYPE *CreateGrammar )(
- ISpRecoContext * This,
- /* [in] */ ULONGLONG ullGrammarId,
- /* [out] */ ISpRecoGrammar **ppGrammar);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatus )(
- ISpRecoContext * This,
- /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
-
- HRESULT ( STDMETHODCALLTYPE *GetMaxAlternates )(
- ISpRecoContext * This,
- /* [in] */ ULONG *pcAlternates);
-
- HRESULT ( STDMETHODCALLTYPE *SetMaxAlternates )(
- ISpRecoContext * This,
- /* [in] */ ULONG cAlternates);
-
- HRESULT ( STDMETHODCALLTYPE *SetAudioOptions )(
- ISpRecoContext * This,
- /* [in] */ SPAUDIOOPTIONS Options,
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *GetAudioOptions )(
- ISpRecoContext * This,
- /* [in] */ SPAUDIOOPTIONS *pOptions,
- /* [out] */ GUID *pAudioFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
-
- HRESULT ( STDMETHODCALLTYPE *DeserializeResult )(
- ISpRecoContext * This,
- /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
- /* [out] */ ISpRecoResult **ppResult);
-
- HRESULT ( STDMETHODCALLTYPE *Bookmark )(
- ISpRecoContext * This,
- /* [in] */ SPBOOKMARKOPTIONS Options,
- /* [in] */ ULONGLONG ullStreamPosition,
- /* [in] */ LPARAM lparamEvent);
-
- HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
- ISpRecoContext * This,
- /* [string][in] */ const WCHAR *pAdaptationData,
- /* [in] */ const ULONG cch);
-
- HRESULT ( STDMETHODCALLTYPE *Pause )(
- ISpRecoContext * This,
- DWORD dwReserved);
-
- HRESULT ( STDMETHODCALLTYPE *Resume )(
- ISpRecoContext * This,
- DWORD dwReserved);
-
- HRESULT ( STDMETHODCALLTYPE *SetVoice )(
- ISpRecoContext * This,
- /* [in] */ ISpVoice *pVoice,
- /* [in] */ BOOL fAllowFormatChanges);
-
- HRESULT ( STDMETHODCALLTYPE *GetVoice )(
- ISpRecoContext * This,
- /* [out] */ ISpVoice **ppVoice);
-
- HRESULT ( STDMETHODCALLTYPE *SetVoicePurgeEvent )(
- ISpRecoContext * This,
- /* [in] */ ULONGLONG ullEventInterest);
-
- HRESULT ( STDMETHODCALLTYPE *GetVoicePurgeEvent )(
- ISpRecoContext * This,
- /* [out] */ ULONGLONG *pullEventInterest);
-
- HRESULT ( STDMETHODCALLTYPE *SetContextState )(
- ISpRecoContext * This,
- /* [in] */ SPCONTEXTSTATE eContextState);
-
- HRESULT ( STDMETHODCALLTYPE *GetContextState )(
- ISpRecoContext * This,
- /* [in] */ SPCONTEXTSTATE *peContextState);
-
- END_INTERFACE
- } ISpRecoContextVtbl;
- interface ISpRecoContext
- {
- CONST_VTBL struct ISpRecoContextVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpRecoContext_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpRecoContext_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpRecoContext_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpRecoContext_SetNotifySink(This,pNotifySink)
- (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
- #define ISpRecoContext_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- #define ISpRecoContext_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- #define ISpRecoContext_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- #define ISpRecoContext_SetNotifyWin32Event(This)
- (This)->lpVtbl -> SetNotifyWin32Event(This)
- #define ISpRecoContext_WaitForNotifyEvent(This,dwMilliseconds)
- (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
- #define ISpRecoContext_GetNotifyEventHandle(This)
- (This)->lpVtbl -> GetNotifyEventHandle(This)
- #define ISpRecoContext_SetInterest(This,ullEventInterest,ullQueuedInterest)
- (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
- #define ISpRecoContext_GetEvents(This,ulCount,pEventArray,pulFetched)
- (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
- #define ISpRecoContext_GetInfo(This,pInfo)
- (This)->lpVtbl -> GetInfo(This,pInfo)
- #define ISpRecoContext_GetRecognizer(This,ppRecognizer)
- (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
- #define ISpRecoContext_CreateGrammar(This,ullGrammarId,ppGrammar)
- (This)->lpVtbl -> CreateGrammar(This,ullGrammarId,ppGrammar)
- #define ISpRecoContext_GetStatus(This,pStatus)
- (This)->lpVtbl -> GetStatus(This,pStatus)
- #define ISpRecoContext_GetMaxAlternates(This,pcAlternates)
- (This)->lpVtbl -> GetMaxAlternates(This,pcAlternates)
- #define ISpRecoContext_SetMaxAlternates(This,cAlternates)
- (This)->lpVtbl -> SetMaxAlternates(This,cAlternates)
- #define ISpRecoContext_SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx)
- (This)->lpVtbl -> SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx)
- #define ISpRecoContext_GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX)
- (This)->lpVtbl -> GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX)
- #define ISpRecoContext_DeserializeResult(This,pSerializedResult,ppResult)
- (This)->lpVtbl -> DeserializeResult(This,pSerializedResult,ppResult)
- #define ISpRecoContext_Bookmark(This,Options,ullStreamPosition,lparamEvent)
- (This)->lpVtbl -> Bookmark(This,Options,ullStreamPosition,lparamEvent)
- #define ISpRecoContext_SetAdaptationData(This,pAdaptationData,cch)
- (This)->lpVtbl -> SetAdaptationData(This,pAdaptationData,cch)
- #define ISpRecoContext_Pause(This,dwReserved)
- (This)->lpVtbl -> Pause(This,dwReserved)
- #define ISpRecoContext_Resume(This,dwReserved)
- (This)->lpVtbl -> Resume(This,dwReserved)
- #define ISpRecoContext_SetVoice(This,pVoice,fAllowFormatChanges)
- (This)->lpVtbl -> SetVoice(This,pVoice,fAllowFormatChanges)
- #define ISpRecoContext_GetVoice(This,ppVoice)
- (This)->lpVtbl -> GetVoice(This,ppVoice)
- #define ISpRecoContext_SetVoicePurgeEvent(This,ullEventInterest)
- (This)->lpVtbl -> SetVoicePurgeEvent(This,ullEventInterest)
- #define ISpRecoContext_GetVoicePurgeEvent(This,pullEventInterest)
- (This)->lpVtbl -> GetVoicePurgeEvent(This,pullEventInterest)
- #define ISpRecoContext_SetContextState(This,eContextState)
- (This)->lpVtbl -> SetContextState(This,eContextState)
- #define ISpRecoContext_GetContextState(This,peContextState)
- (This)->lpVtbl -> GetContextState(This,peContextState)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetRecognizer_Proxy(
- ISpRecoContext * This,
- /* [out] */ ISpRecognizer **ppRecognizer);
- void __RPC_STUB ISpRecoContext_GetRecognizer_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_CreateGrammar_Proxy(
- ISpRecoContext * This,
- /* [in] */ ULONGLONG ullGrammarId,
- /* [out] */ ISpRecoGrammar **ppGrammar);
- void __RPC_STUB ISpRecoContext_CreateGrammar_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetStatus_Proxy(
- ISpRecoContext * This,
- /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
- void __RPC_STUB ISpRecoContext_GetStatus_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetMaxAlternates_Proxy(
- ISpRecoContext * This,
- /* [in] */ ULONG *pcAlternates);
- void __RPC_STUB ISpRecoContext_GetMaxAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetMaxAlternates_Proxy(
- ISpRecoContext * This,
- /* [in] */ ULONG cAlternates);
- void __RPC_STUB ISpRecoContext_SetMaxAlternates_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAudioOptions_Proxy(
- ISpRecoContext * This,
- /* [in] */ SPAUDIOOPTIONS Options,
- /* [in] */ const GUID *pAudioFormatId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
- void __RPC_STUB ISpRecoContext_SetAudioOptions_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetAudioOptions_Proxy(
- ISpRecoContext * This,
- /* [in] */ SPAUDIOOPTIONS *pOptions,
- /* [out] */ GUID *pAudioFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
- void __RPC_STUB ISpRecoContext_GetAudioOptions_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_DeserializeResult_Proxy(
- ISpRecoContext * This,
- /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
- /* [out] */ ISpRecoResult **ppResult);
- void __RPC_STUB ISpRecoContext_DeserializeResult_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_Bookmark_Proxy(
- ISpRecoContext * This,
- /* [in] */ SPBOOKMARKOPTIONS Options,
- /* [in] */ ULONGLONG ullStreamPosition,
- /* [in] */ LPARAM lparamEvent);
- void __RPC_STUB ISpRecoContext_Bookmark_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAdaptationData_Proxy(
- ISpRecoContext * This,
- /* [string][in] */ const WCHAR *pAdaptationData,
- /* [in] */ const ULONG cch);
- void __RPC_STUB ISpRecoContext_SetAdaptationData_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_Pause_Proxy(
- ISpRecoContext * This,
- DWORD dwReserved);
- void __RPC_STUB ISpRecoContext_Pause_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_Resume_Proxy(
- ISpRecoContext * This,
- DWORD dwReserved);
- void __RPC_STUB ISpRecoContext_Resume_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoice_Proxy(
- ISpRecoContext * This,
- /* [in] */ ISpVoice *pVoice,
- /* [in] */ BOOL fAllowFormatChanges);
- void __RPC_STUB ISpRecoContext_SetVoice_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoice_Proxy(
- ISpRecoContext * This,
- /* [out] */ ISpVoice **ppVoice);
- void __RPC_STUB ISpRecoContext_GetVoice_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoicePurgeEvent_Proxy(
- ISpRecoContext * This,
- /* [in] */ ULONGLONG ullEventInterest);
- void __RPC_STUB ISpRecoContext_SetVoicePurgeEvent_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoicePurgeEvent_Proxy(
- ISpRecoContext * This,
- /* [out] */ ULONGLONG *pullEventInterest);
- void __RPC_STUB ISpRecoContext_GetVoicePurgeEvent_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_SetContextState_Proxy(
- ISpRecoContext * This,
- /* [in] */ SPCONTEXTSTATE eContextState);
- void __RPC_STUB ISpRecoContext_SetContextState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecoContext_GetContextState_Proxy(
- ISpRecoContext * This,
- /* [in] */ SPCONTEXTSTATE *peContextState);
- void __RPC_STUB ISpRecoContext_GetContextState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpRecoContext_INTERFACE_DEFINED__ */
- #ifndef __ISpProperties_INTERFACE_DEFINED__
- #define __ISpProperties_INTERFACE_DEFINED__
- /* interface ISpProperties */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpProperties;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("5B4FB971-B115-4DE1-AD97-E482E3BF6EE4")
- ISpProperties : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetPropertyNum(
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetPropertyNum(
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *plValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpPropertiesVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpProperties * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpProperties * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpProperties * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *plValue);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue);
-
- END_INTERFACE
- } ISpPropertiesVtbl;
- interface ISpProperties
- {
- CONST_VTBL struct ISpPropertiesVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpProperties_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpProperties_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpProperties_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpProperties_SetPropertyNum(This,pName,lValue)
- (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
- #define ISpProperties_GetPropertyNum(This,pName,plValue)
- (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
- #define ISpProperties_SetPropertyString(This,pName,pValue)
- (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
- #define ISpProperties_GetPropertyString(This,pName,ppCoMemValue)
- (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyNum_Proxy(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue);
- void __RPC_STUB ISpProperties_SetPropertyNum_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyNum_Proxy(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *plValue);
- void __RPC_STUB ISpProperties_GetPropertyNum_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyString_Proxy(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue);
- void __RPC_STUB ISpProperties_SetPropertyString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyString_Proxy(
- ISpProperties * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue);
- void __RPC_STUB ISpProperties_GetPropertyString_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpProperties_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0281 */
- /* [local] */
- #define SP_MAX_LANGIDS ( 20 )
- typedef /* [hidden][restricted] */ struct SPRECOGNIZERSTATUS
- {
- SPAUDIOSTATUS AudioStatus;
- ULONGLONG ullRecognitionStreamPos;
- ULONG ulStreamNumber;
- ULONG ulNumActive;
- CLSID clsidEngine;
- ULONG cLangIDs;
- WORD aLangID[ 20 ];
- DWORD dwReserved1;
- DWORD dwReserved2;
- } SPRECOGNIZERSTATUS;
- typedef /* [hidden] */
- enum SPWAVEFORMATTYPE
- { SPWF_INPUT = 0,
- SPWF_SRENGINE = SPWF_INPUT + 1
- } SPSTREAMFORMATTYPE;
- typedef /* [hidden] */
- enum SPRECOSTATE
- { SPRST_INACTIVE = 0,
- SPRST_ACTIVE = SPRST_INACTIVE + 1,
- SPRST_ACTIVE_ALWAYS = SPRST_ACTIVE + 1,
- SPRST_INACTIVE_WITH_PURGE = SPRST_ACTIVE_ALWAYS + 1,
- SPRST_NUM_STATES = SPRST_INACTIVE_WITH_PURGE + 1
- } SPRECOSTATE;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0281_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0281_v0_0_s_ifspec;
- #ifndef __ISpRecognizer_INTERFACE_DEFINED__
- #define __ISpRecognizer_INTERFACE_DEFINED__
- /* interface ISpRecognizer */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpRecognizer;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("C2B5F241-DAA0-4507-9E16-5A1EAA2B7A5C")
- ISpRecognizer : public ISpProperties
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetRecognizer(
- /* [in] */ ISpObjectToken *pRecognizer) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
- /* [out] */ ISpObjectToken **ppRecognizer) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetInput(
- /* [in] */ IUnknown *pUnkInput,
- /* [in] */ BOOL fAllowFormatChanges) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetInputObjectToken(
- /* [out] */ ISpObjectToken **ppToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetInputStream(
- /* [out] */ ISpStreamFormat **ppStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE CreateRecoContext(
- /* [out] */ ISpRecoContext **ppNewCtxt) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRecoProfile(
- /* [out] */ ISpObjectToken **ppToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRecoProfile(
- /* [in] */ ISpObjectToken *pToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IsSharedInstance( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRecoState(
- /* [out] */ SPRECOSTATE *pState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRecoState(
- /* [in] */ SPRECOSTATE NewState) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStatus(
- /* [out] */ SPRECOGNIZERSTATUS *pStatus) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetFormat(
- /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
-
- virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData,
- /* [out] */ BOOL *pfSupported) = 0;
-
- virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
- /* [in] */ HWND hwndParent,
- /* [in] */ const WCHAR *pszTitle,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE EmulateRecognition(
- /* [in] */ ISpPhrase *pPhrase) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpRecognizerVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpRecognizer * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpRecognizer * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpRecognizer * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ LONG lValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ LONG *plValue);
-
- HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pName,
- /* [in] */ const WCHAR *pValue);
-
- HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pName,
- /* [out] */ WCHAR **ppCoMemValue);
-
- HRESULT ( STDMETHODCALLTYPE *SetRecognizer )(
- ISpRecognizer * This,
- /* [in] */ ISpObjectToken *pRecognizer);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppRecognizer);
-
- HRESULT ( STDMETHODCALLTYPE *SetInput )(
- ISpRecognizer * This,
- /* [in] */ IUnknown *pUnkInput,
- /* [in] */ BOOL fAllowFormatChanges);
-
- HRESULT ( STDMETHODCALLTYPE *GetInputObjectToken )(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppToken);
-
- HRESULT ( STDMETHODCALLTYPE *GetInputStream )(
- ISpRecognizer * This,
- /* [out] */ ISpStreamFormat **ppStream);
-
- HRESULT ( STDMETHODCALLTYPE *CreateRecoContext )(
- ISpRecognizer * This,
- /* [out] */ ISpRecoContext **ppNewCtxt);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecoProfile )(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppToken);
-
- HRESULT ( STDMETHODCALLTYPE *SetRecoProfile )(
- ISpRecognizer * This,
- /* [in] */ ISpObjectToken *pToken);
-
- HRESULT ( STDMETHODCALLTYPE *IsSharedInstance )(
- ISpRecognizer * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetRecoState )(
- ISpRecognizer * This,
- /* [out] */ SPRECOSTATE *pState);
-
- HRESULT ( STDMETHODCALLTYPE *SetRecoState )(
- ISpRecognizer * This,
- /* [in] */ SPRECOSTATE NewState);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatus )(
- ISpRecognizer * This,
- /* [out] */ SPRECOGNIZERSTATUS *pStatus);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpRecognizer * This,
- /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData,
- /* [out] */ BOOL *pfSupported);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
- ISpRecognizer * This,
- /* [in] */ HWND hwndParent,
- /* [in] */ const WCHAR *pszTitle,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData);
-
- HRESULT ( STDMETHODCALLTYPE *EmulateRecognition )(
- ISpRecognizer * This,
- /* [in] */ ISpPhrase *pPhrase);
-
- END_INTERFACE
- } ISpRecognizerVtbl;
- interface ISpRecognizer
- {
- CONST_VTBL struct ISpRecognizerVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpRecognizer_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpRecognizer_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpRecognizer_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpRecognizer_SetPropertyNum(This,pName,lValue)
- (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
- #define ISpRecognizer_GetPropertyNum(This,pName,plValue)
- (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
- #define ISpRecognizer_SetPropertyString(This,pName,pValue)
- (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
- #define ISpRecognizer_GetPropertyString(This,pName,ppCoMemValue)
- (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
- #define ISpRecognizer_SetRecognizer(This,pRecognizer)
- (This)->lpVtbl -> SetRecognizer(This,pRecognizer)
- #define ISpRecognizer_GetRecognizer(This,ppRecognizer)
- (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
- #define ISpRecognizer_SetInput(This,pUnkInput,fAllowFormatChanges)
- (This)->lpVtbl -> SetInput(This,pUnkInput,fAllowFormatChanges)
- #define ISpRecognizer_GetInputObjectToken(This,ppToken)
- (This)->lpVtbl -> GetInputObjectToken(This,ppToken)
- #define ISpRecognizer_GetInputStream(This,ppStream)
- (This)->lpVtbl -> GetInputStream(This,ppStream)
- #define ISpRecognizer_CreateRecoContext(This,ppNewCtxt)
- (This)->lpVtbl -> CreateRecoContext(This,ppNewCtxt)
- #define ISpRecognizer_GetRecoProfile(This,ppToken)
- (This)->lpVtbl -> GetRecoProfile(This,ppToken)
- #define ISpRecognizer_SetRecoProfile(This,pToken)
- (This)->lpVtbl -> SetRecoProfile(This,pToken)
- #define ISpRecognizer_IsSharedInstance(This)
- (This)->lpVtbl -> IsSharedInstance(This)
- #define ISpRecognizer_GetRecoState(This,pState)
- (This)->lpVtbl -> GetRecoState(This,pState)
- #define ISpRecognizer_SetRecoState(This,NewState)
- (This)->lpVtbl -> SetRecoState(This,NewState)
- #define ISpRecognizer_GetStatus(This,pStatus)
- (This)->lpVtbl -> GetStatus(This,pStatus)
- #define ISpRecognizer_GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX)
- (This)->lpVtbl -> GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX)
- #define ISpRecognizer_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
- (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
- #define ISpRecognizer_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
- (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
- #define ISpRecognizer_EmulateRecognition(This,pPhrase)
- (This)->lpVtbl -> EmulateRecognition(This,pPhrase)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecognizer_Proxy(
- ISpRecognizer * This,
- /* [in] */ ISpObjectToken *pRecognizer);
- void __RPC_STUB ISpRecognizer_SetRecognizer_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecognizer_Proxy(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppRecognizer);
- void __RPC_STUB ISpRecognizer_GetRecognizer_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_SetInput_Proxy(
- ISpRecognizer * This,
- /* [in] */ IUnknown *pUnkInput,
- /* [in] */ BOOL fAllowFormatChanges);
- void __RPC_STUB ISpRecognizer_SetInput_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputObjectToken_Proxy(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppToken);
- void __RPC_STUB ISpRecognizer_GetInputObjectToken_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputStream_Proxy(
- ISpRecognizer * This,
- /* [out] */ ISpStreamFormat **ppStream);
- void __RPC_STUB ISpRecognizer_GetInputStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_CreateRecoContext_Proxy(
- ISpRecognizer * This,
- /* [out] */ ISpRecoContext **ppNewCtxt);
- void __RPC_STUB ISpRecognizer_CreateRecoContext_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoProfile_Proxy(
- ISpRecognizer * This,
- /* [out] */ ISpObjectToken **ppToken);
- void __RPC_STUB ISpRecognizer_GetRecoProfile_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoProfile_Proxy(
- ISpRecognizer * This,
- /* [in] */ ISpObjectToken *pToken);
- void __RPC_STUB ISpRecognizer_SetRecoProfile_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_IsSharedInstance_Proxy(
- ISpRecognizer * This);
- void __RPC_STUB ISpRecognizer_IsSharedInstance_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoState_Proxy(
- ISpRecognizer * This,
- /* [out] */ SPRECOSTATE *pState);
- void __RPC_STUB ISpRecognizer_GetRecoState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoState_Proxy(
- ISpRecognizer * This,
- /* [in] */ SPRECOSTATE NewState);
- void __RPC_STUB ISpRecognizer_SetRecoState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetStatus_Proxy(
- ISpRecognizer * This,
- /* [out] */ SPRECOGNIZERSTATUS *pStatus);
- void __RPC_STUB ISpRecognizer_GetStatus_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_GetFormat_Proxy(
- ISpRecognizer * This,
- /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
- void __RPC_STUB ISpRecognizer_GetFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_IsUISupported_Proxy(
- ISpRecognizer * This,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData,
- /* [out] */ BOOL *pfSupported);
- void __RPC_STUB ISpRecognizer_IsUISupported_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_DisplayUI_Proxy(
- ISpRecognizer * This,
- /* [in] */ HWND hwndParent,
- /* [in] */ const WCHAR *pszTitle,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData);
- void __RPC_STUB ISpRecognizer_DisplayUI_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpRecognizer_EmulateRecognition_Proxy(
- ISpRecognizer * This,
- /* [in] */ ISpPhrase *pPhrase);
- void __RPC_STUB ISpRecognizer_EmulateRecognition_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpRecognizer_INTERFACE_DEFINED__ */
- #ifndef __SpeechLib_LIBRARY_DEFINED__
- #define __SpeechLib_LIBRARY_DEFINED__
- /* library SpeechLib */
- /* [version][uuid][helpstring] */
- typedef long SpeechLanguageId;
- #define __SpeechStringConstants_MODULE_DEFINED__
- typedef /* [hidden] */
- enum DISPID_SpeechDataKey
- { DISPID_SDKSetBinaryValue = 1,
- DISPID_SDKGetBinaryValue = DISPID_SDKSetBinaryValue + 1,
- DISPID_SDKSetStringValue = DISPID_SDKGetBinaryValue + 1,
- DISPID_SDKGetStringValue = DISPID_SDKSetStringValue + 1,
- DISPID_SDKSetLongValue = DISPID_SDKGetStringValue + 1,
- DISPID_SDKGetlongValue = DISPID_SDKSetLongValue + 1,
- DISPID_SDKOpenKey = DISPID_SDKGetlongValue + 1,
- DISPID_SDKCreateKey = DISPID_SDKOpenKey + 1,
- DISPID_SDKDeleteKey = DISPID_SDKCreateKey + 1,
- DISPID_SDKDeleteValue = DISPID_SDKDeleteKey + 1,
- DISPID_SDKEnumKeys = DISPID_SDKDeleteValue + 1,
- DISPID_SDKEnumValues = DISPID_SDKEnumKeys + 1
- } DISPID_SpeechDataKey;
- typedef /* [hidden] */
- enum DISPID_SpeechObjectToken
- { DISPID_SOTId = 1,
- DISPID_SOTDataKey = DISPID_SOTId + 1,
- DISPID_SOTCategory = DISPID_SOTDataKey + 1,
- DISPID_SOTGetDescription = DISPID_SOTCategory + 1,
- DISPID_SOTSetId = DISPID_SOTGetDescription + 1,
- DISPID_SOTGetAttribute = DISPID_SOTSetId + 1,
- DISPID_SOTCreateInstance = DISPID_SOTGetAttribute + 1,
- DISPID_SOTRemove = DISPID_SOTCreateInstance + 1,
- DISPID_SOTGetStorageFileName = DISPID_SOTRemove + 1,
- DISPID_SOTRemoveStorageFileName = DISPID_SOTGetStorageFileName + 1,
- DISPID_SOTIsUISupported = DISPID_SOTRemoveStorageFileName + 1,
- DISPID_SOTDisplayUI = DISPID_SOTIsUISupported + 1,
- DISPID_SOTMatchesAttributes = DISPID_SOTDisplayUI + 1
- } DISPID_SpeechObjectToken;
- typedef
- enum SpeechDataKeyLocation
- { SDKLDefaultLocation = SPDKL_DefaultLocation,
- SDKLCurrentUser = SPDKL_CurrentUser,
- SDKLLocalMachine = SPDKL_LocalMachine,
- SDKLCurrentConfig = SPDKL_CurrentConfig
- } SpeechDataKeyLocation;
- typedef
- enum SpeechTokenContext
- { STCInprocServer = CLSCTX_INPROC_SERVER,
- STCInprocHandler = CLSCTX_INPROC_HANDLER,
- STCLocalServer = CLSCTX_LOCAL_SERVER,
- STCRemoteServer = CLSCTX_REMOTE_SERVER,
- STCAll = CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER
- } SpeechTokenContext;
- typedef
- enum SpeechTokenShellFolder
- { STSF_AppData = 0x1a,
- STSF_LocalAppData = 0x1c,
- STSF_CommonAppData = 0x23,
- STSF_FlagCreate = 0x8000
- } SpeechTokenShellFolder;
- typedef /* [hidden] */
- enum DISPID_SpeechObjectTokens
- { DISPID_SOTsCount = 1,
- DISPID_SOTsItem = DISPID_VALUE,
- DISPID_SOTs_NewEnum = DISPID_NEWENUM
- } DISPID_SpeechObjectTokens;
- typedef /* [hidden] */
- enum DISPID_SpeechObjectTokenCategory
- { DISPID_SOTCId = 1,
- DISPID_SOTCDefault = DISPID_SOTCId + 1,
- DISPID_SOTCSetId = DISPID_SOTCDefault + 1,
- DISPID_SOTCGetDataKey = DISPID_SOTCSetId + 1,
- DISPID_SOTCEnumerateTokens = DISPID_SOTCGetDataKey + 1
- } DISPID_SpeechObjectTokenCategory;
- typedef
- enum SpeechAudioFormatType
- { SAFTDefault = -1,
- SAFTNoAssignedFormat = 0,
- SAFTText = SAFTNoAssignedFormat + 1,
- SAFTNonStandardFormat = SAFTText + 1,
- SAFTExtendedAudioFormat = SAFTNonStandardFormat + 1,
- SAFT8kHz8BitMono = SAFTExtendedAudioFormat + 1,
- SAFT8kHz8BitStereo = SAFT8kHz8BitMono + 1,
- SAFT8kHz16BitMono = SAFT8kHz8BitStereo + 1,
- SAFT8kHz16BitStereo = SAFT8kHz16BitMono + 1,
- SAFT11kHz8BitMono = SAFT8kHz16BitStereo + 1,
- SAFT11kHz8BitStereo = SAFT11kHz8BitMono + 1,
- SAFT11kHz16BitMono = SAFT11kHz8BitStereo + 1,
- SAFT11kHz16BitStereo = SAFT11kHz16BitMono + 1,
- SAFT12kHz8BitMono = SAFT11kHz16BitStereo + 1,
- SAFT12kHz8BitStereo = SAFT12kHz8BitMono + 1,
- SAFT12kHz16BitMono = SAFT12kHz8BitStereo + 1,
- SAFT12kHz16BitStereo = SAFT12kHz16BitMono + 1,
- SAFT16kHz8BitMono = SAFT12kHz16BitStereo + 1,
- SAFT16kHz8BitStereo = SAFT16kHz8BitMono + 1,
- SAFT16kHz16BitMono = SAFT16kHz8BitStereo + 1,
- SAFT16kHz16BitStereo = SAFT16kHz16BitMono + 1,
- SAFT22kHz8BitMono = SAFT16kHz16BitStereo + 1,
- SAFT22kHz8BitStereo = SAFT22kHz8BitMono + 1,
- SAFT22kHz16BitMono = SAFT22kHz8BitStereo + 1,
- SAFT22kHz16BitStereo = SAFT22kHz16BitMono + 1,
- SAFT24kHz8BitMono = SAFT22kHz16BitStereo + 1,
- SAFT24kHz8BitStereo = SAFT24kHz8BitMono + 1,
- SAFT24kHz16BitMono = SAFT24kHz8BitStereo + 1,
- SAFT24kHz16BitStereo = SAFT24kHz16BitMono + 1,
- SAFT32kHz8BitMono = SAFT24kHz16BitStereo + 1,
- SAFT32kHz8BitStereo = SAFT32kHz8BitMono + 1,
- SAFT32kHz16BitMono = SAFT32kHz8BitStereo + 1,
- SAFT32kHz16BitStereo = SAFT32kHz16BitMono + 1,
- SAFT44kHz8BitMono = SAFT32kHz16BitStereo + 1,
- SAFT44kHz8BitStereo = SAFT44kHz8BitMono + 1,
- SAFT44kHz16BitMono = SAFT44kHz8BitStereo + 1,
- SAFT44kHz16BitStereo = SAFT44kHz16BitMono + 1,
- SAFT48kHz8BitMono = SAFT44kHz16BitStereo + 1,
- SAFT48kHz8BitStereo = SAFT48kHz8BitMono + 1,
- SAFT48kHz16BitMono = SAFT48kHz8BitStereo + 1,
- SAFT48kHz16BitStereo = SAFT48kHz16BitMono + 1,
- SAFTTrueSpeech_8kHz1BitMono = SAFT48kHz16BitStereo + 1,
- SAFTCCITT_ALaw_8kHzMono = SAFTTrueSpeech_8kHz1BitMono + 1,
- SAFTCCITT_ALaw_8kHzStereo = SAFTCCITT_ALaw_8kHzMono + 1,
- SAFTCCITT_ALaw_11kHzMono = SAFTCCITT_ALaw_8kHzStereo + 1,
- SAFTCCITT_ALaw_11kHzStereo = SAFTCCITT_ALaw_11kHzMono + 1,
- SAFTCCITT_ALaw_22kHzMono = SAFTCCITT_ALaw_11kHzStereo + 1,
- SAFTCCITT_ALaw_22kHzStereo = SAFTCCITT_ALaw_22kHzMono + 1,
- SAFTCCITT_ALaw_44kHzMono = SAFTCCITT_ALaw_22kHzStereo + 1,
- SAFTCCITT_ALaw_44kHzStereo = SAFTCCITT_ALaw_44kHzMono + 1,
- SAFTCCITT_uLaw_8kHzMono = SAFTCCITT_ALaw_44kHzStereo + 1,
- SAFTCCITT_uLaw_8kHzStereo = SAFTCCITT_uLaw_8kHzMono + 1,
- SAFTCCITT_uLaw_11kHzMono = SAFTCCITT_uLaw_8kHzStereo + 1,
- SAFTCCITT_uLaw_11kHzStereo = SAFTCCITT_uLaw_11kHzMono + 1,
- SAFTCCITT_uLaw_22kHzMono = SAFTCCITT_uLaw_11kHzStereo + 1,
- SAFTCCITT_uLaw_22kHzStereo = SAFTCCITT_uLaw_22kHzMono + 1,
- SAFTCCITT_uLaw_44kHzMono = SAFTCCITT_uLaw_22kHzStereo + 1,
- SAFTCCITT_uLaw_44kHzStereo = SAFTCCITT_uLaw_44kHzMono + 1,
- SAFTADPCM_8kHzMono = SAFTCCITT_uLaw_44kHzStereo + 1,
- SAFTADPCM_8kHzStereo = SAFTADPCM_8kHzMono + 1,
- SAFTADPCM_11kHzMono = SAFTADPCM_8kHzStereo + 1,
- SAFTADPCM_11kHzStereo = SAFTADPCM_11kHzMono + 1,
- SAFTADPCM_22kHzMono = SAFTADPCM_11kHzStereo + 1,
- SAFTADPCM_22kHzStereo = SAFTADPCM_22kHzMono + 1,
- SAFTADPCM_44kHzMono = SAFTADPCM_22kHzStereo + 1,
- SAFTADPCM_44kHzStereo = SAFTADPCM_44kHzMono + 1,
- SAFTGSM610_8kHzMono = SAFTADPCM_44kHzStereo + 1,
- SAFTGSM610_11kHzMono = SAFTGSM610_8kHzMono + 1,
- SAFTGSM610_22kHzMono = SAFTGSM610_11kHzMono + 1,
- SAFTGSM610_44kHzMono = SAFTGSM610_22kHzMono + 1
- } SpeechAudioFormatType;
- typedef /* [hidden] */
- enum DISPID_SpeechAudioFormat
- { DISPID_SAFType = 1,
- DISPID_SAFGuid = DISPID_SAFType + 1,
- DISPID_SAFGetWaveFormatEx = DISPID_SAFGuid + 1,
- DISPID_SAFSetWaveFormatEx = DISPID_SAFGetWaveFormatEx + 1
- } DISPID_SpeechAudioFormat;
- typedef /* [hidden] */
- enum DISPID_SpeechBaseStream
- { DISPID_SBSFormat = 1,
- DISPID_SBSRead = DISPID_SBSFormat + 1,
- DISPID_SBSWrite = DISPID_SBSRead + 1,
- DISPID_SBSSeek = DISPID_SBSWrite + 1
- } DISPID_SpeechBaseStream;
- typedef
- enum SpeechStreamSeekPositionType
- { SSSPTRelativeToStart = STREAM_SEEK_SET,
- SSSPTRelativeToCurrentPosition = STREAM_SEEK_CUR,
- SSSPTRelativeToEnd = STREAM_SEEK_END
- } SpeechStreamSeekPositionType;
- typedef /* [hidden] */
- enum DISPID_SpeechAudio
- { DISPID_SAStatus = 200,
- DISPID_SABufferInfo = DISPID_SAStatus + 1,
- DISPID_SADefaultFormat = DISPID_SABufferInfo + 1,
- DISPID_SAVolume = DISPID_SADefaultFormat + 1,
- DISPID_SABufferNotifySize = DISPID_SAVolume + 1,
- DISPID_SAEventHandle = DISPID_SABufferNotifySize + 1,
- DISPID_SASetState = DISPID_SAEventHandle + 1
- } DISPID_SpeechAudio;
- typedef
- enum SpeechAudioState
- { SASClosed = SPAS_CLOSED,
- SASStop = SPAS_STOP,
- SASPause = SPAS_PAUSE,
- SASRun = SPAS_RUN
- } SpeechAudioState;
- typedef /* [hidden] */
- enum DISPID_SpeechMMSysAudio
- { DISPID_SMSADeviceId = 300,
- DISPID_SMSALineId = DISPID_SMSADeviceId + 1,
- DISPID_SMSAMMHandle = DISPID_SMSALineId + 1
- } DISPID_SpeechMMSysAudio;
- typedef /* [hidden] */
- enum DISPID_SpeechFileStream
- { DISPID_SFSOpen = 100,
- DISPID_SFSClose = DISPID_SFSOpen + 1
- } DISPID_SpeechFileStream;
- typedef
- enum SpeechStreamFileMode
- { SSFMOpenForRead = SPFM_OPEN_READONLY,
- SSFMOpenReadWrite = SPFM_OPEN_READWRITE,
- SSFMCreate = SPFM_CREATE,
- SSFMCreateForWrite = SPFM_CREATE_ALWAYS
- } SpeechStreamFileMode;
- typedef /* [hidden] */
- enum DISPID_SpeechCustomStream
- { DISPID_SCSBaseStream = 100
- } DISPID_SpeechCustomStream;
- typedef /* [hidden] */
- enum DISPID_SpeechMemoryStream
- { DISPID_SMSSetData = 100,
- DISPID_SMSGetData = DISPID_SMSSetData + 1
- } DISPID_SpeechMemoryStream;
- typedef /* [hidden] */
- enum DISPID_SpeechAudioStatus
- { DISPID_SASFreeBufferSpace = 1,
- DISPID_SASNonBlockingIO = DISPID_SASFreeBufferSpace + 1,
- DISPID_SASState = DISPID_SASNonBlockingIO + 1,
- DISPID_SASCurrentSeekPosition = DISPID_SASState + 1,
- DISPID_SASCurrentDevicePosition = DISPID_SASCurrentSeekPosition + 1
- } DISPID_SpeechAudioStatus;
- typedef /* [hidden] */
- enum DISPID_SpeechAudioBufferInfo
- { DISPID_SABIMinNotification = 1,
- DISPID_SABIBufferSize = DISPID_SABIMinNotification + 1,
- DISPID_SABIEventBias = DISPID_SABIBufferSize + 1
- } DISPID_SpeechAudioBufferInfo;
- typedef /* [hidden] */
- enum DISPID_SpeechWaveFormatEx
- { DISPID_SWFEFormatTag = 1,
- DISPID_SWFEChannels = DISPID_SWFEFormatTag + 1,
- DISPID_SWFESamplesPerSec = DISPID_SWFEChannels + 1,
- DISPID_SWFEAvgBytesPerSec = DISPID_SWFESamplesPerSec + 1,
- DISPID_SWFEBlockAlign = DISPID_SWFEAvgBytesPerSec + 1,
- DISPID_SWFEBitsPerSample = DISPID_SWFEBlockAlign + 1,
- DISPID_SWFEExtraData = DISPID_SWFEBitsPerSample + 1
- } DISPID_SpeechWaveFormatEx;
- typedef /* [hidden] */
- enum DISPID_SpeechVoice
- { DISPID_SVStatus = 1,
- DISPID_SVVoice = DISPID_SVStatus + 1,
- DISPID_SVAudioOutput = DISPID_SVVoice + 1,
- DISPID_SVAudioOutputStream = DISPID_SVAudioOutput + 1,
- DISPID_SVRate = DISPID_SVAudioOutputStream + 1,
- DISPID_SVVolume = DISPID_SVRate + 1,
- DISPID_SVAllowAudioOuputFormatChangesOnNextSet = DISPID_SVVolume + 1,
- DISPID_SVEventInterests = DISPID_SVAllowAudioOuputFormatChangesOnNextSet + 1,
- DISPID_SVPriority = DISPID_SVEventInterests + 1,
- DISPID_SVAlertBoundary = DISPID_SVPriority + 1,
- DISPID_SVSyncronousSpeakTimeout = DISPID_SVAlertBoundary + 1,
- DISPID_SVSpeak = DISPID_SVSyncronousSpeakTimeout + 1,
- DISPID_SVSpeakStream = DISPID_SVSpeak + 1,
- DISPID_SVPause = DISPID_SVSpeakStream + 1,
- DISPID_SVResume = DISPID_SVPause + 1,
- DISPID_SVSkip = DISPID_SVResume + 1,
- DISPID_SVGetVoices = DISPID_SVSkip + 1,
- DISPID_SVGetAudioOutputs = DISPID_SVGetVoices + 1,
- DISPID_SVWaitUntilDone = DISPID_SVGetAudioOutputs + 1,
- DISPID_SVSpeakCompleteEvent = DISPID_SVWaitUntilDone + 1,
- DISPID_SVIsUISupported = DISPID_SVSpeakCompleteEvent + 1,
- DISPID_SVDisplayUI = DISPID_SVIsUISupported + 1
- } DISPID_SpeechVoice;
- typedef
- enum SpeechVoicePriority
- { SVPNormal = SPVPRI_NORMAL,
- SVPAlert = SPVPRI_ALERT,
- SVPOver = SPVPRI_OVER
- } SpeechVoicePriority;
- typedef
- enum SpeechVoiceSpeakFlags
- { SVSFDefault = SPF_DEFAULT,
- SVSFlagsAsync = SPF_ASYNC,
- SVSFPurgeBeforeSpeak = SPF_PURGEBEFORESPEAK,
- SVSFIsFilename = SPF_IS_FILENAME,
- SVSFIsXML = SPF_IS_XML,
- SVSFIsNotXML = SPF_IS_NOT_XML,
- SVSFPersistXML = SPF_PERSIST_XML,
- SVSFNLPSpeakPunc = SPF_NLP_SPEAK_PUNC,
- SVSFNLPMask = SPF_NLP_MASK,
- SVSFVoiceMask = SPF_VOICE_MASK,
- SVSFUnusedFlags = SPF_UNUSED_FLAGS
- } SpeechVoiceSpeakFlags;
- typedef
- enum SpeechVoiceEvents
- { SVEStartInputStream = 1L << 1,
- SVEEndInputStream = 1L << 2,
- SVEVoiceChange = 1L << 3,
- SVEBookmark = 1L << 4,
- SVEWordBoundary = 1L << 5,
- SVEPhoneme = 1L << 6,
- SVESentenceBoundary = 1L << 7,
- SVEViseme = 1L << 8,
- SVEAudioLevel = 1L << 9,
- SVEPrivate = 1L << 15,
- SVEAllEvents = 0x83fe
- } SpeechVoiceEvents;
- typedef /* [hidden] */
- enum DISPID_SpeechVoiceStatus
- { DISPID_SVSCurrentStreamNumber = 1,
- DISPID_SVSLastStreamNumberQueued = DISPID_SVSCurrentStreamNumber + 1,
- DISPID_SVSLastResult = DISPID_SVSLastStreamNumberQueued + 1,
- DISPID_SVSRunningState = DISPID_SVSLastResult + 1,
- DISPID_SVSInputWordPosition = DISPID_SVSRunningState + 1,
- DISPID_SVSInputWordLength = DISPID_SVSInputWordPosition + 1,
- DISPID_SVSInputSentencePosition = DISPID_SVSInputWordLength + 1,
- DISPID_SVSInputSentenceLength = DISPID_SVSInputSentencePosition + 1,
- DISPID_SVSLastBookmark = DISPID_SVSInputSentenceLength + 1,
- DISPID_SVSLastBookmarkId = DISPID_SVSLastBookmark + 1,
- DISPID_SVSPhonemeId = DISPID_SVSLastBookmarkId + 1,
- DISPID_SVSVisemeId = DISPID_SVSPhonemeId + 1
- } DISPID_SpeechVoiceStatus;
- typedef
- enum SpeechRunState
- { SRSEDone = SPRS_DONE,
- SRSEIsSpeaking = SPRS_IS_SPEAKING
- } SpeechRunState;
- typedef
- enum SpeechVisemeType
- { SVP_0 = 0,
- SVP_1 = SVP_0 + 1,
- SVP_2 = SVP_1 + 1,
- SVP_3 = SVP_2 + 1,
- SVP_4 = SVP_3 + 1,
- SVP_5 = SVP_4 + 1,
- SVP_6 = SVP_5 + 1,
- SVP_7 = SVP_6 + 1,
- SVP_8 = SVP_7 + 1,
- SVP_9 = SVP_8 + 1,
- SVP_10 = SVP_9 + 1,
- SVP_11 = SVP_10 + 1,
- SVP_12 = SVP_11 + 1,
- SVP_13 = SVP_12 + 1,
- SVP_14 = SVP_13 + 1,
- SVP_15 = SVP_14 + 1,
- SVP_16 = SVP_15 + 1,
- SVP_17 = SVP_16 + 1,
- SVP_18 = SVP_17 + 1,
- SVP_19 = SVP_18 + 1,
- SVP_20 = SVP_19 + 1,
- SVP_21 = SVP_20 + 1
- } SpeechVisemeType;
- typedef
- enum SpeechVisemeFeature
- { SVF_None = 0,
- SVF_Stressed = SPVFEATURE_STRESSED,
- SVF_Emphasis = SPVFEATURE_EMPHASIS
- } SpeechVisemeFeature;
- typedef /* [hidden] */
- enum DISPID_SpeechVoiceEvent
- { DISPID_SVEStreamStart = 1,
- DISPID_SVEStreamEnd = DISPID_SVEStreamStart + 1,
- DISPID_SVEVoiceChange = DISPID_SVEStreamEnd + 1,
- DISPID_SVEBookmark = DISPID_SVEVoiceChange + 1,
- DISPID_SVEWord = DISPID_SVEBookmark + 1,
- DISPID_SVEPhoneme = DISPID_SVEWord + 1,
- DISPID_SVESentenceBoundary = DISPID_SVEPhoneme + 1,
- DISPID_SVEViseme = DISPID_SVESentenceBoundary + 1,
- DISPID_SVEAudioLevel = DISPID_SVEViseme + 1,
- DISPID_SVEEnginePrivate = DISPID_SVEAudioLevel + 1
- } DISPID_SpeechVoiceEvent;
- typedef /* [hidden] */
- enum DISPID_SpeechRecognizer
- { DISPID_SRRecognizer = 1,
- DISPID_SRAllowAudioInputFormatChangesOnNextSet = DISPID_SRRecognizer + 1,
- DISPID_SRAudioInput = DISPID_SRAllowAudioInputFormatChangesOnNextSet + 1,
- DISPID_SRAudioInputStream = DISPID_SRAudioInput + 1,
- DISPID_SRIsShared = DISPID_SRAudioInputStream + 1,
- DISPID_SRState = DISPID_SRIsShared + 1,
- DISPID_SRStatus = DISPID_SRState + 1,
- DISPID_SRProfile = DISPID_SRStatus + 1,
- DISPID_SREmulateRecognition = DISPID_SRProfile + 1,
- DISPID_SRCreateRecoContext = DISPID_SREmulateRecognition + 1,
- DISPID_SRGetFormat = DISPID_SRCreateRecoContext + 1,
- DISPID_SRSetPropertyNumber = DISPID_SRGetFormat + 1,
- DISPID_SRGetPropertyNumber = DISPID_SRSetPropertyNumber + 1,
- DISPID_SRSetPropertyString = DISPID_SRGetPropertyNumber + 1,
- DISPID_SRGetPropertyString = DISPID_SRSetPropertyString + 1,
- DISPID_SRIsUISupported = DISPID_SRGetPropertyString + 1,
- DISPID_SRDisplayUI = DISPID_SRIsUISupported + 1,
- DISPID_SRGetRecognizers = DISPID_SRDisplayUI + 1,
- DISPID_SVGetAudioInputs = DISPID_SRGetRecognizers + 1,
- DISPID_SVGetProfiles = DISPID_SVGetAudioInputs + 1
- } DISPID_SpeechRecognizer;
- typedef
- enum SpeechRecognizerState
- { SRSInactive = SPRST_INACTIVE,
- SRSActive = SPRST_ACTIVE,
- SRSActiveAlways = SPRST_ACTIVE_ALWAYS,
- SRSInactiveWithPurge = SPRST_INACTIVE_WITH_PURGE
- } SpeechRecognizerState;
- typedef
- enum SpeechDisplayAttributes
- { SDA_No_Trailing_Space = 0,
- SDA_One_Trailing_Space = SPAF_ONE_TRAILING_SPACE,
- SDA_Two_Trailing_Spaces = SPAF_TWO_TRAILING_SPACES,
- SDA_Consume_Leading_Spaces = SPAF_CONSUME_LEADING_SPACES
- } SpeechDisplayAttributes;
- typedef
- enum SpeechFormatType
- { SFTInput = SPWF_INPUT,
- SFTSREngine = SPWF_SRENGINE
- } SpeechFormatType;
- typedef /* [hidden] */
- enum DISPID_SpeechRecognizerStatus
- { DISPID_SRSAudioStatus = 1,
- DISPID_SRSCurrentStreamPosition = DISPID_SRSAudioStatus + 1,
- DISPID_SRSCurrentStreamNumber = DISPID_SRSCurrentStreamPosition + 1,
- DISPID_SRSNumberOfActiveRules = DISPID_SRSCurrentStreamNumber + 1,
- DISPID_SRSClsidEngine = DISPID_SRSNumberOfActiveRules + 1,
- DISPID_SRSSupportedLanguages = DISPID_SRSClsidEngine + 1
- } DISPID_SpeechRecognizerStatus;
- typedef /* [hidden] */
- enum DISPID_SpeechRecoContext
- { DISPID_SRCRecognizer = 1,
- DISPID_SRCAudioInInterferenceStatus = DISPID_SRCRecognizer + 1,
- DISPID_SRCRequestedUIType = DISPID_SRCAudioInInterferenceStatus + 1,
- DISPID_SRCVoice = DISPID_SRCRequestedUIType + 1,
- DISPID_SRAllowVoiceFormatMatchingOnNextSet = DISPID_SRCVoice + 1,
- DISPID_SRCVoicePurgeEvent = DISPID_SRAllowVoiceFormatMatchingOnNextSet + 1,
- DISPID_SRCEventInterests = DISPID_SRCVoicePurgeEvent + 1,
- DISPID_SRCCmdMaxAlternates = DISPID_SRCEventInterests + 1,
- DISPID_SRCState = DISPID_SRCCmdMaxAlternates + 1,
- DISPID_SRCRetainedAudio = DISPID_SRCState + 1,
- DISPID_SRCRetainedAudioFormat = DISPID_SRCRetainedAudio + 1,
- DISPID_SRCPause = DISPID_SRCRetainedAudioFormat + 1,
- DISPID_SRCResume = DISPID_SRCPause + 1,
- DISPID_SRCCreateGrammar = DISPID_SRCResume + 1,
- DISPID_SRCCreateResultFromMemory = DISPID_SRCCreateGrammar + 1,
- DISPID_SRCBookmark = DISPID_SRCCreateResultFromMemory + 1,
- DISPID_SRCSetAdaptationData = DISPID_SRCBookmark + 1
- } DISPID_SpeechRecoContext;
- typedef
- enum SpeechRetainedAudioOptions
- { SRAONone = SPAO_NONE,
- SRAORetainAudio = SPAO_RETAIN_AUDIO
- } SpeechRetainedAudioOptions;
- typedef
- enum SpeechBookmarkOptions
- { SBONone = SPBO_NONE,
- SBOPause = SPBO_PAUSE
- } SpeechBookmarkOptions;
- typedef
- enum SpeechInterference
- { SINone = SPINTERFERENCE_NONE,
- SINoise = SPINTERFERENCE_NOISE,
- SINoSignal = SPINTERFERENCE_NOSIGNAL,
- SITooLoud = SPINTERFERENCE_TOOLOUD,
- SITooQuiet = SPINTERFERENCE_TOOQUIET,
- SITooFast = SPINTERFERENCE_TOOFAST,
- SITooSlow = SPINTERFERENCE_TOOSLOW
- } SpeechInterference;
- typedef
- enum SpeechRecoEvents
- { SREStreamEnd = 1L << 0,
- SRESoundStart = 1L << 1,
- SRESoundEnd = 1L << 2,
- SREPhraseStart = 1L << 3,
- SRERecognition = 1L << 4,
- SREHypothesis = 1L << 5,
- SREBookmark = 1L << 6,
- SREPropertyNumChange = 1L << 7,
- SREPropertyStringChange = 1L << 8,
- SREFalseRecognition = 1L << 9,
- SREInterference = 1L << 10,
- SRERequestUI = 1L << 11,
- SREStateChange = 1L << 12,
- SREAdaptation = 1L << 13,
- SREStreamStart = 1L << 14,
- SRERecoOtherContext = 1L << 15,
- SREAudioLevel = 1L << 16,
- SREPrivate = 1L << 18,
- SREAllEvents = 0x5ffff
- } SpeechRecoEvents;
- typedef
- enum SpeechRecoContextState
- { SRCS_Disabled = SPCS_DISABLED,
- SRCS_Enabled = SPCS_ENABLED
- } SpeechRecoContextState;
- typedef /* [hidden] */
- enum DISPIDSPRG
- { DISPID_SRGId = 1,
- DISPID_SRGRecoContext = DISPID_SRGId + 1,
- DISPID_SRGState = DISPID_SRGRecoContext + 1,
- DISPID_SRGRules = DISPID_SRGState + 1,
- DISPID_SRGReset = DISPID_SRGRules + 1,
- DISPID_SRGCommit = DISPID_SRGReset + 1,
- DISPID_SRGCmdLoadFromFile = DISPID_SRGCommit + 1,
- DISPID_SRGCmdLoadFromObject = DISPID_SRGCmdLoadFromFile + 1,
- DISPID_SRGCmdLoadFromResource = DISPID_SRGCmdLoadFromObject + 1,
- DISPID_SRGCmdLoadFromMemory = DISPID_SRGCmdLoadFromResource + 1,
- DISPID_SRGCmdLoadFromProprietaryGrammar = DISPID_SRGCmdLoadFromMemory + 1,
- DISPID_SRGCmdSetRuleState = DISPID_SRGCmdLoadFromProprietaryGrammar + 1,
- DISPID_SRGCmdSetRuleIdState = DISPID_SRGCmdSetRuleState + 1,
- DISPID_SRGDictationLoad = DISPID_SRGCmdSetRuleIdState + 1,
- DISPID_SRGDictationUnload = DISPID_SRGDictationLoad + 1,
- DISPID_SRGDictationSetState = DISPID_SRGDictationUnload + 1,
- DISPID_SRGSetWordSequenceData = DISPID_SRGDictationSetState + 1,
- DISPID_SRGSetTextSelection = DISPID_SRGSetWordSequenceData + 1,
- DISPID_SRGIsPronounceable = DISPID_SRGSetTextSelection + 1
- } DISPIDSPRG;
- typedef
- enum SpeechLoadOption
- { SLOStatic = SPLO_STATIC,
- SLODynamic = SPLO_DYNAMIC
- } SpeechLoadOption;
- typedef
- enum SpeechWordPronounceable
- { SWPUnknownWordUnpronounceable = SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE,
- SWPUnknownWordPronounceable = SPWP_UNKNOWN_WORD_PRONOUNCEABLE,
- SWPKnownWordPronounceable = SPWP_KNOWN_WORD_PRONOUNCEABLE
- } SpeechWordPronounceable;
- typedef
- enum SpeechGrammarState
- { SGSEnabled = SPGS_ENABLED,
- SGSDisabled = SPGS_DISABLED,
- SGSExclusive = SPGS_EXCLUSIVE
- } SpeechGrammarState;
- typedef
- enum SpeechRuleState
- { SGDSInactive = SPRS_INACTIVE,
- SGDSActive = SPRS_ACTIVE,
- SGDSActiveWithAutoPause = SPRS_ACTIVE_WITH_AUTO_PAUSE
- } SpeechRuleState;
- typedef
- enum SpeechRuleAttributes
- { SRATopLevel = SPRAF_TopLevel,
- SRADefaultToActive = SPRAF_Active,
- SRAExport = SPRAF_Export,
- SRAImport = SPRAF_Import,
- SRAInterpreter = SPRAF_Interpreter,
- SRADynamic = SPRAF_Dynamic
- } SpeechRuleAttributes;
- typedef
- enum SpeechGrammarWordType
- { SGDisplay = SPWT_DISPLAY,
- SGLexical = SPWT_LEXICAL,
- SGPronounciation = SPWT_PRONUNCIATION
- } SpeechGrammarWordType;
- typedef /* [hidden] */
- enum DISPID_SpeechRecoContextEvents
- { DISPID_SRCEStartStream = 1,
- DISPID_SRCEEndStream = DISPID_SRCEStartStream + 1,
- DISPID_SRCEBookmark = DISPID_SRCEEndStream + 1,
- DISPID_SRCESoundStart = DISPID_SRCEBookmark + 1,
- DISPID_SRCESoundEnd = DISPID_SRCESoundStart + 1,
- DISPID_SRCEPhraseStart = DISPID_SRCESoundEnd + 1,