sapi.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:856k
- /* interface __MIDL_itf_sapi_0262 */
- /* [local] */
- typedef /* [hidden] */
- enum SPEVENTLPARAMTYPE
- { SPET_LPARAM_IS_UNDEFINED = 0,
- SPET_LPARAM_IS_TOKEN = SPET_LPARAM_IS_UNDEFINED + 1,
- SPET_LPARAM_IS_OBJECT = SPET_LPARAM_IS_TOKEN + 1,
- SPET_LPARAM_IS_POINTER = SPET_LPARAM_IS_OBJECT + 1,
- SPET_LPARAM_IS_STRING = SPET_LPARAM_IS_POINTER + 1
- } SPEVENTLPARAMTYPE;
- typedef /* [hidden] */
- enum SPEVENTENUM
- { SPEI_UNDEFINED = 0,
- SPEI_START_INPUT_STREAM = 1,
- SPEI_END_INPUT_STREAM = 2,
- SPEI_VOICE_CHANGE = 3,
- SPEI_TTS_BOOKMARK = 4,
- SPEI_WORD_BOUNDARY = 5,
- SPEI_PHONEME = 6,
- SPEI_SENTENCE_BOUNDARY = 7,
- SPEI_VISEME = 8,
- SPEI_TTS_AUDIO_LEVEL = 9,
- SPEI_TTS_PRIVATE = 15,
- SPEI_MIN_TTS = 1,
- SPEI_MAX_TTS = 15,
- SPEI_END_SR_STREAM = 34,
- SPEI_SOUND_START = 35,
- SPEI_SOUND_END = 36,
- SPEI_PHRASE_START = 37,
- SPEI_RECOGNITION = 38,
- SPEI_HYPOTHESIS = 39,
- SPEI_SR_BOOKMARK = 40,
- SPEI_PROPERTY_NUM_CHANGE = 41,
- SPEI_PROPERTY_STRING_CHANGE = 42,
- SPEI_FALSE_RECOGNITION = 43,
- SPEI_INTERFERENCE = 44,
- SPEI_REQUEST_UI = 45,
- SPEI_RECO_STATE_CHANGE = 46,
- SPEI_ADAPTATION = 47,
- SPEI_START_SR_STREAM = 48,
- SPEI_RECO_OTHER_CONTEXT = 49,
- SPEI_SR_AUDIO_LEVEL = 50,
- SPEI_SR_PRIVATE = 52,
- SPEI_MIN_SR = 34,
- SPEI_MAX_SR = 52,
- SPEI_RESERVED1 = 30,
- SPEI_RESERVED2 = 33,
- SPEI_RESERVED3 = 63
- } SPEVENTENUM;
- #define SPFEI_FLAGCHECK ( (1ui64 << SPEI_RESERVED1) | (1ui64 << SPEI_RESERVED2) )
- #define SPFEI_ALL_TTS_EVENTS (0x000000000000FFFEui64 | SPFEI_FLAGCHECK)
- #define SPFEI_ALL_SR_EVENTS (0x001FFFFC00000000ui64 | SPFEI_FLAGCHECK)
- #define SPFEI_ALL_EVENTS 0xEFFFFFFFFFFFFFFFui64
- #define SPFEI(SPEI_ord) ((1ui64 << SPEI_ord) | SPFEI_FLAGCHECK)
- #if 0
- typedef /* [hidden][restricted] */ struct SPEVENT
- {
- WORD eEventId;
- WORD elParamType;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- WPARAM wParam;
- LPARAM lParam;
- } SPEVENT;
- typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT
- {
- WORD eEventId;
- WORD elParamType;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- ULONG SerializedwParam;
- LONG SerializedlParam;
- } SPSERIALIZEDEVENT;
- typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT64
- {
- WORD eEventId;
- WORD elParamType;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- ULONGLONG SerializedwParam;
- LONGLONG SerializedlParam;
- } SPSERIALIZEDEVENT64;
- #else
- typedef struct SPEVENT
- {
- SPEVENTENUM eEventId : 16;
- SPEVENTLPARAMTYPE elParamType : 16;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- WPARAM wParam;
- LPARAM lParam;
- } SPEVENT;
- typedef struct SPSERIALIZEDEVENT
- {
- SPEVENTENUM eEventId : 16;
- SPEVENTLPARAMTYPE elParamType : 16;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- ULONG SerializedwParam;
- LONG SerializedlParam;
- } SPSERIALIZEDEVENT;
- typedef struct SPSERIALIZEDEVENT64
- {
- SPEVENTENUM eEventId : 16;
- SPEVENTLPARAMTYPE elParamType : 16;
- ULONG ulStreamNum;
- ULONGLONG ullAudioStreamOffset;
- ULONGLONG SerializedwParam;
- LONGLONG SerializedlParam;
- } SPSERIALIZEDEVENT64;
- #endif
- typedef /* [hidden] */
- enum SPINTERFERENCE
- { SPINTERFERENCE_NONE = 0,
- SPINTERFERENCE_NOISE = SPINTERFERENCE_NONE + 1,
- SPINTERFERENCE_NOSIGNAL = SPINTERFERENCE_NOISE + 1,
- SPINTERFERENCE_TOOLOUD = SPINTERFERENCE_NOSIGNAL + 1,
- SPINTERFERENCE_TOOQUIET = SPINTERFERENCE_TOOLOUD + 1,
- SPINTERFERENCE_TOOFAST = SPINTERFERENCE_TOOQUIET + 1,
- SPINTERFERENCE_TOOSLOW = SPINTERFERENCE_TOOFAST + 1
- } SPINTERFERENCE;
- typedef /* [hidden] */
- enum SPENDSRSTREAMFLAGS
- { SPESF_NONE = 0,
- SPESF_STREAM_RELEASED = 1 << 0
- } SPENDSRSTREAMFLAGS;
- typedef /* [hidden] */
- enum SPVFEATURE
- { SPVFEATURE_STRESSED = 1L << 0,
- SPVFEATURE_EMPHASIS = 1L << 1
- } SPVFEATURE;
- typedef /* [hidden] */
- enum SPVISEMES
- { SP_VISEME_0 = 0,
- SP_VISEME_1 = SP_VISEME_0 + 1,
- SP_VISEME_2 = SP_VISEME_1 + 1,
- SP_VISEME_3 = SP_VISEME_2 + 1,
- SP_VISEME_4 = SP_VISEME_3 + 1,
- SP_VISEME_5 = SP_VISEME_4 + 1,
- SP_VISEME_6 = SP_VISEME_5 + 1,
- SP_VISEME_7 = SP_VISEME_6 + 1,
- SP_VISEME_8 = SP_VISEME_7 + 1,
- SP_VISEME_9 = SP_VISEME_8 + 1,
- SP_VISEME_10 = SP_VISEME_9 + 1,
- SP_VISEME_11 = SP_VISEME_10 + 1,
- SP_VISEME_12 = SP_VISEME_11 + 1,
- SP_VISEME_13 = SP_VISEME_12 + 1,
- SP_VISEME_14 = SP_VISEME_13 + 1,
- SP_VISEME_15 = SP_VISEME_14 + 1,
- SP_VISEME_16 = SP_VISEME_15 + 1,
- SP_VISEME_17 = SP_VISEME_16 + 1,
- SP_VISEME_18 = SP_VISEME_17 + 1,
- SP_VISEME_19 = SP_VISEME_18 + 1,
- SP_VISEME_20 = SP_VISEME_19 + 1,
- SP_VISEME_21 = SP_VISEME_20 + 1
- } SPVISEMES;
- typedef /* [hidden][restricted] */ struct SPEVENTSOURCEINFO
- {
- ULONGLONG ullEventInterest;
- ULONGLONG ullQueuedInterest;
- ULONG ulCount;
- } SPEVENTSOURCEINFO;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0262_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0262_v0_0_s_ifspec;
- #ifndef __ISpEventSource_INTERFACE_DEFINED__
- #define __ISpEventSource_INTERFACE_DEFINED__
- /* interface ISpEventSource */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpEventSource;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("BE7A9CCE-5F9E-11D2-960F-00C04F8EE628")
- ISpEventSource : public ISpNotifySource
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetInterest(
- /* [in] */ ULONGLONG ullEventInterest,
- /* [in] */ ULONGLONG ullQueuedInterest) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetEvents(
- /* [in] */ ULONG ulCount,
- /* [size_is][out] */ SPEVENT *pEventArray,
- /* [out] */ ULONG *pulFetched) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetInfo(
- /* [out] */ SPEVENTSOURCEINFO *pInfo) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpEventSourceVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpEventSource * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpEventSource * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpEventSource * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
- ISpEventSource * This,
- /* [in] */ ISpNotifySink *pNotifySink);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
- ISpEventSource * This,
- /* [in] */ HWND hWnd,
- /* [in] */ UINT Msg,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
- ISpEventSource * This,
- /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
- ISpEventSource * This,
- /* [in] */ ISpNotifyCallback *pSpCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
- ISpEventSource * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
- ISpEventSource * This,
- /* [in] */ DWORD dwMilliseconds);
-
- /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
- ISpEventSource * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetInterest )(
- ISpEventSource * This,
- /* [in] */ ULONGLONG ullEventInterest,
- /* [in] */ ULONGLONG ullQueuedInterest);
-
- HRESULT ( STDMETHODCALLTYPE *GetEvents )(
- ISpEventSource * This,
- /* [in] */ ULONG ulCount,
- /* [size_is][out] */ SPEVENT *pEventArray,
- /* [out] */ ULONG *pulFetched);
-
- HRESULT ( STDMETHODCALLTYPE *GetInfo )(
- ISpEventSource * This,
- /* [out] */ SPEVENTSOURCEINFO *pInfo);
-
- END_INTERFACE
- } ISpEventSourceVtbl;
- interface ISpEventSource
- {
- CONST_VTBL struct ISpEventSourceVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpEventSource_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpEventSource_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpEventSource_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpEventSource_SetNotifySink(This,pNotifySink)
- (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
- #define ISpEventSource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- #define ISpEventSource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- #define ISpEventSource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- #define ISpEventSource_SetNotifyWin32Event(This)
- (This)->lpVtbl -> SetNotifyWin32Event(This)
- #define ISpEventSource_WaitForNotifyEvent(This,dwMilliseconds)
- (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
- #define ISpEventSource_GetNotifyEventHandle(This)
- (This)->lpVtbl -> GetNotifyEventHandle(This)
- #define ISpEventSource_SetInterest(This,ullEventInterest,ullQueuedInterest)
- (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
- #define ISpEventSource_GetEvents(This,ulCount,pEventArray,pulFetched)
- (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
- #define ISpEventSource_GetInfo(This,pInfo)
- (This)->lpVtbl -> GetInfo(This,pInfo)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpEventSource_SetInterest_Proxy(
- ISpEventSource * This,
- /* [in] */ ULONGLONG ullEventInterest,
- /* [in] */ ULONGLONG ullQueuedInterest);
- void __RPC_STUB ISpEventSource_SetInterest_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpEventSource_GetEvents_Proxy(
- ISpEventSource * This,
- /* [in] */ ULONG ulCount,
- /* [size_is][out] */ SPEVENT *pEventArray,
- /* [out] */ ULONG *pulFetched);
- void __RPC_STUB ISpEventSource_GetEvents_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpEventSource_GetInfo_Proxy(
- ISpEventSource * This,
- /* [out] */ SPEVENTSOURCEINFO *pInfo);
- void __RPC_STUB ISpEventSource_GetInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpEventSource_INTERFACE_DEFINED__ */
- #ifndef __ISpEventSink_INTERFACE_DEFINED__
- #define __ISpEventSink_INTERFACE_DEFINED__
- /* interface ISpEventSink */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpEventSink;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("BE7A9CC9-5F9E-11D2-960F-00C04F8EE628")
- ISpEventSink : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE AddEvents(
- /* [in] */ const SPEVENT *pEventArray,
- /* [in] */ ULONG ulCount) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetEventInterest(
- /* [out] */ ULONGLONG *pullEventInterest) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpEventSinkVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpEventSink * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpEventSink * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpEventSink * This);
-
- HRESULT ( STDMETHODCALLTYPE *AddEvents )(
- ISpEventSink * This,
- /* [in] */ const SPEVENT *pEventArray,
- /* [in] */ ULONG ulCount);
-
- HRESULT ( STDMETHODCALLTYPE *GetEventInterest )(
- ISpEventSink * This,
- /* [out] */ ULONGLONG *pullEventInterest);
-
- END_INTERFACE
- } ISpEventSinkVtbl;
- interface ISpEventSink
- {
- CONST_VTBL struct ISpEventSinkVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpEventSink_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpEventSink_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpEventSink_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpEventSink_AddEvents(This,pEventArray,ulCount)
- (This)->lpVtbl -> AddEvents(This,pEventArray,ulCount)
- #define ISpEventSink_GetEventInterest(This,pullEventInterest)
- (This)->lpVtbl -> GetEventInterest(This,pullEventInterest)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpEventSink_AddEvents_Proxy(
- ISpEventSink * This,
- /* [in] */ const SPEVENT *pEventArray,
- /* [in] */ ULONG ulCount);
- void __RPC_STUB ISpEventSink_AddEvents_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpEventSink_GetEventInterest_Proxy(
- ISpEventSink * This,
- /* [out] */ ULONGLONG *pullEventInterest);
- void __RPC_STUB ISpEventSink_GetEventInterest_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpEventSink_INTERFACE_DEFINED__ */
- #ifndef __ISpStreamFormat_INTERFACE_DEFINED__
- #define __ISpStreamFormat_INTERFACE_DEFINED__
- /* interface ISpStreamFormat */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpStreamFormat;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("BED530BE-2606-4F4D-A1C0-54C5CDA5566F")
- ISpStreamFormat : public IStream
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetFormat(
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpStreamFormatVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpStreamFormat * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpStreamFormat * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpStreamFormat * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpStreamFormat * This,
- /* [length_is][size_is][out] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
- ISpStreamFormat * This,
- /* [size_is][in] */ const void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbWritten);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
- ISpStreamFormat * This,
- /* [in] */ LARGE_INTEGER dlibMove,
- /* [in] */ DWORD dwOrigin,
- /* [out] */ ULARGE_INTEGER *plibNewPosition);
-
- HRESULT ( STDMETHODCALLTYPE *SetSize )(
- ISpStreamFormat * This,
- /* [in] */ ULARGE_INTEGER libNewSize);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
- ISpStreamFormat * This,
- /* [unique][in] */ IStream *pstm,
- /* [in] */ ULARGE_INTEGER cb,
- /* [out] */ ULARGE_INTEGER *pcbRead,
- /* [out] */ ULARGE_INTEGER *pcbWritten);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpStreamFormat * This,
- /* [in] */ DWORD grfCommitFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Revert )(
- ISpStreamFormat * This);
-
- HRESULT ( STDMETHODCALLTYPE *LockRegion )(
- ISpStreamFormat * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
- ISpStreamFormat * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *Stat )(
- ISpStreamFormat * This,
- /* [out] */ STATSTG *pstatstg,
- /* [in] */ DWORD grfStatFlag);
-
- HRESULT ( STDMETHODCALLTYPE *Clone )(
- ISpStreamFormat * This,
- /* [out] */ IStream **ppstm);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpStreamFormat * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- END_INTERFACE
- } ISpStreamFormatVtbl;
- interface ISpStreamFormat
- {
- CONST_VTBL struct ISpStreamFormatVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpStreamFormat_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpStreamFormat_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpStreamFormat_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpStreamFormat_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpStreamFormat_Write(This,pv,cb,pcbWritten)
- (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
- #define ISpStreamFormat_Seek(This,dlibMove,dwOrigin,plibNewPosition)
- (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
- #define ISpStreamFormat_SetSize(This,libNewSize)
- (This)->lpVtbl -> SetSize(This,libNewSize)
- #define ISpStreamFormat_CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- #define ISpStreamFormat_Commit(This,grfCommitFlags)
- (This)->lpVtbl -> Commit(This,grfCommitFlags)
- #define ISpStreamFormat_Revert(This)
- (This)->lpVtbl -> Revert(This)
- #define ISpStreamFormat_LockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
- #define ISpStreamFormat_UnlockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
- #define ISpStreamFormat_Stat(This,pstatstg,grfStatFlag)
- (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
- #define ISpStreamFormat_Clone(This,ppstm)
- (This)->lpVtbl -> Clone(This,ppstm)
- #define ISpStreamFormat_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpStreamFormat_GetFormat_Proxy(
- ISpStreamFormat * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
- void __RPC_STUB ISpStreamFormat_GetFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpStreamFormat_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0265 */
- /* [local] */
- typedef /* [hidden] */
- enum SPFILEMODE
- { SPFM_OPEN_READONLY = 0,
- SPFM_OPEN_READWRITE = SPFM_OPEN_READONLY + 1,
- SPFM_CREATE = SPFM_OPEN_READWRITE + 1,
- SPFM_CREATE_ALWAYS = SPFM_CREATE + 1,
- SPFM_NUM_MODES = SPFM_CREATE_ALWAYS + 1
- } SPFILEMODE;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0265_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0265_v0_0_s_ifspec;
- #ifndef __ISpStream_INTERFACE_DEFINED__
- #define __ISpStream_INTERFACE_DEFINED__
- /* interface ISpStream */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpStream;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("12E3CCA9-7518-44C5-A5E7-BA5A79CB929E")
- ISpStream : public ISpStreamFormat
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
- IStream *pStream,
- REFGUID rguidFormat,
- const WAVEFORMATEX *pWaveFormatEx) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
- IStream **ppStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE BindToFile(
- const WCHAR *pszFileName,
- SPFILEMODE eMode,
- const GUID *pFormatId,
- const WAVEFORMATEX *pWaveFormatEx,
- ULONGLONG ullEventInterest) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpStreamVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpStream * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpStream * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpStream * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpStream * This,
- /* [length_is][size_is][out] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
- ISpStream * This,
- /* [size_is][in] */ const void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbWritten);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
- ISpStream * This,
- /* [in] */ LARGE_INTEGER dlibMove,
- /* [in] */ DWORD dwOrigin,
- /* [out] */ ULARGE_INTEGER *plibNewPosition);
-
- HRESULT ( STDMETHODCALLTYPE *SetSize )(
- ISpStream * This,
- /* [in] */ ULARGE_INTEGER libNewSize);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
- ISpStream * This,
- /* [unique][in] */ IStream *pstm,
- /* [in] */ ULARGE_INTEGER cb,
- /* [out] */ ULARGE_INTEGER *pcbRead,
- /* [out] */ ULARGE_INTEGER *pcbWritten);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpStream * This,
- /* [in] */ DWORD grfCommitFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Revert )(
- ISpStream * This);
-
- HRESULT ( STDMETHODCALLTYPE *LockRegion )(
- ISpStream * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
- ISpStream * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *Stat )(
- ISpStream * This,
- /* [out] */ STATSTG *pstatstg,
- /* [in] */ DWORD grfStatFlag);
-
- HRESULT ( STDMETHODCALLTYPE *Clone )(
- ISpStream * This,
- /* [out] */ IStream **ppstm);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpStream * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
- ISpStream * This,
- IStream *pStream,
- REFGUID rguidFormat,
- const WAVEFORMATEX *pWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
- ISpStream * This,
- IStream **ppStream);
-
- HRESULT ( STDMETHODCALLTYPE *BindToFile )(
- ISpStream * This,
- const WCHAR *pszFileName,
- SPFILEMODE eMode,
- const GUID *pFormatId,
- const WAVEFORMATEX *pWaveFormatEx,
- ULONGLONG ullEventInterest);
-
- HRESULT ( STDMETHODCALLTYPE *Close )(
- ISpStream * This);
-
- END_INTERFACE
- } ISpStreamVtbl;
- interface ISpStream
- {
- CONST_VTBL struct ISpStreamVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpStream_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpStream_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpStream_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpStream_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpStream_Write(This,pv,cb,pcbWritten)
- (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
- #define ISpStream_Seek(This,dlibMove,dwOrigin,plibNewPosition)
- (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
- #define ISpStream_SetSize(This,libNewSize)
- (This)->lpVtbl -> SetSize(This,libNewSize)
- #define ISpStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- #define ISpStream_Commit(This,grfCommitFlags)
- (This)->lpVtbl -> Commit(This,grfCommitFlags)
- #define ISpStream_Revert(This)
- (This)->lpVtbl -> Revert(This)
- #define ISpStream_LockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
- #define ISpStream_UnlockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
- #define ISpStream_Stat(This,pstatstg,grfStatFlag)
- (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
- #define ISpStream_Clone(This,ppstm)
- (This)->lpVtbl -> Clone(This,ppstm)
- #define ISpStream_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- #define ISpStream_SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx)
- (This)->lpVtbl -> SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx)
- #define ISpStream_GetBaseStream(This,ppStream)
- (This)->lpVtbl -> GetBaseStream(This,ppStream)
- #define ISpStream_BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest)
- (This)->lpVtbl -> BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest)
- #define ISpStream_Close(This)
- (This)->lpVtbl -> Close(This)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpStream_SetBaseStream_Proxy(
- ISpStream * This,
- IStream *pStream,
- REFGUID rguidFormat,
- const WAVEFORMATEX *pWaveFormatEx);
- void __RPC_STUB ISpStream_SetBaseStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStream_GetBaseStream_Proxy(
- ISpStream * This,
- IStream **ppStream);
- void __RPC_STUB ISpStream_GetBaseStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStream_BindToFile_Proxy(
- ISpStream * This,
- const WCHAR *pszFileName,
- SPFILEMODE eMode,
- const GUID *pFormatId,
- const WAVEFORMATEX *pWaveFormatEx,
- ULONGLONG ullEventInterest);
- void __RPC_STUB ISpStream_BindToFile_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStream_Close_Proxy(
- ISpStream * This);
- void __RPC_STUB ISpStream_Close_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpStream_INTERFACE_DEFINED__ */
- #ifndef __ISpStreamFormatConverter_INTERFACE_DEFINED__
- #define __ISpStreamFormatConverter_INTERFACE_DEFINED__
- /* interface ISpStreamFormatConverter */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpStreamFormatConverter;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("678A932C-EA71-4446-9B41-78FDA6280A29")
- ISpStreamFormatConverter : public ISpStreamFormat
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
- /* [in] */ ISpStreamFormat *pStream,
- /* [in] */ BOOL fSetFormatToBaseStreamFormat,
- /* [in] */ BOOL fWriteToBaseStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
- /* [out] */ ISpStreamFormat **ppStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetFormat(
- /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
- /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ResetSeekPosition( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ScaleConvertedToBaseOffset(
- /* [in] */ ULONGLONG ullOffsetConvertedStream,
- /* [out] */ ULONGLONG *pullOffsetBaseStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE ScaleBaseToConvertedOffset(
- /* [in] */ ULONGLONG ullOffsetBaseStream,
- /* [out] */ ULONGLONG *pullOffsetConvertedStream) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpStreamFormatConverterVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpStreamFormatConverter * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpStreamFormatConverter * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpStreamFormatConverter * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpStreamFormatConverter * This,
- /* [length_is][size_is][out] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
- ISpStreamFormatConverter * This,
- /* [size_is][in] */ const void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbWritten);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
- ISpStreamFormatConverter * This,
- /* [in] */ LARGE_INTEGER dlibMove,
- /* [in] */ DWORD dwOrigin,
- /* [out] */ ULARGE_INTEGER *plibNewPosition);
-
- HRESULT ( STDMETHODCALLTYPE *SetSize )(
- ISpStreamFormatConverter * This,
- /* [in] */ ULARGE_INTEGER libNewSize);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
- ISpStreamFormatConverter * This,
- /* [unique][in] */ IStream *pstm,
- /* [in] */ ULARGE_INTEGER cb,
- /* [out] */ ULARGE_INTEGER *pcbRead,
- /* [out] */ ULARGE_INTEGER *pcbWritten);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpStreamFormatConverter * This,
- /* [in] */ DWORD grfCommitFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Revert )(
- ISpStreamFormatConverter * This);
-
- HRESULT ( STDMETHODCALLTYPE *LockRegion )(
- ISpStreamFormatConverter * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
- ISpStreamFormatConverter * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *Stat )(
- ISpStreamFormatConverter * This,
- /* [out] */ STATSTG *pstatstg,
- /* [in] */ DWORD grfStatFlag);
-
- HRESULT ( STDMETHODCALLTYPE *Clone )(
- ISpStreamFormatConverter * This,
- /* [out] */ IStream **ppstm);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpStreamFormatConverter * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
- ISpStreamFormatConverter * This,
- /* [in] */ ISpStreamFormat *pStream,
- /* [in] */ BOOL fSetFormatToBaseStreamFormat,
- /* [in] */ BOOL fWriteToBaseStream);
-
- HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
- ISpStreamFormatConverter * This,
- /* [out] */ ISpStreamFormat **ppStream);
-
- HRESULT ( STDMETHODCALLTYPE *SetFormat )(
- ISpStreamFormatConverter * This,
- /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
- /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
-
- HRESULT ( STDMETHODCALLTYPE *ResetSeekPosition )(
- ISpStreamFormatConverter * This);
-
- HRESULT ( STDMETHODCALLTYPE *ScaleConvertedToBaseOffset )(
- ISpStreamFormatConverter * This,
- /* [in] */ ULONGLONG ullOffsetConvertedStream,
- /* [out] */ ULONGLONG *pullOffsetBaseStream);
-
- HRESULT ( STDMETHODCALLTYPE *ScaleBaseToConvertedOffset )(
- ISpStreamFormatConverter * This,
- /* [in] */ ULONGLONG ullOffsetBaseStream,
- /* [out] */ ULONGLONG *pullOffsetConvertedStream);
-
- END_INTERFACE
- } ISpStreamFormatConverterVtbl;
- interface ISpStreamFormatConverter
- {
- CONST_VTBL struct ISpStreamFormatConverterVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpStreamFormatConverter_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpStreamFormatConverter_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpStreamFormatConverter_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpStreamFormatConverter_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpStreamFormatConverter_Write(This,pv,cb,pcbWritten)
- (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
- #define ISpStreamFormatConverter_Seek(This,dlibMove,dwOrigin,plibNewPosition)
- (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
- #define ISpStreamFormatConverter_SetSize(This,libNewSize)
- (This)->lpVtbl -> SetSize(This,libNewSize)
- #define ISpStreamFormatConverter_CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- #define ISpStreamFormatConverter_Commit(This,grfCommitFlags)
- (This)->lpVtbl -> Commit(This,grfCommitFlags)
- #define ISpStreamFormatConverter_Revert(This)
- (This)->lpVtbl -> Revert(This)
- #define ISpStreamFormatConverter_LockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
- #define ISpStreamFormatConverter_UnlockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
- #define ISpStreamFormatConverter_Stat(This,pstatstg,grfStatFlag)
- (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
- #define ISpStreamFormatConverter_Clone(This,ppstm)
- (This)->lpVtbl -> Clone(This,ppstm)
- #define ISpStreamFormatConverter_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- #define ISpStreamFormatConverter_SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream)
- (This)->lpVtbl -> SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream)
- #define ISpStreamFormatConverter_GetBaseStream(This,ppStream)
- (This)->lpVtbl -> GetBaseStream(This,ppStream)
- #define ISpStreamFormatConverter_SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream)
- (This)->lpVtbl -> SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream)
- #define ISpStreamFormatConverter_ResetSeekPosition(This)
- (This)->lpVtbl -> ResetSeekPosition(This)
- #define ISpStreamFormatConverter_ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream)
- (This)->lpVtbl -> ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream)
- #define ISpStreamFormatConverter_ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream)
- (This)->lpVtbl -> ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetBaseStream_Proxy(
- ISpStreamFormatConverter * This,
- /* [in] */ ISpStreamFormat *pStream,
- /* [in] */ BOOL fSetFormatToBaseStreamFormat,
- /* [in] */ BOOL fWriteToBaseStream);
- void __RPC_STUB ISpStreamFormatConverter_SetBaseStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_GetBaseStream_Proxy(
- ISpStreamFormatConverter * This,
- /* [out] */ ISpStreamFormat **ppStream);
- void __RPC_STUB ISpStreamFormatConverter_GetBaseStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetFormat_Proxy(
- ISpStreamFormatConverter * This,
- /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
- /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
- void __RPC_STUB ISpStreamFormatConverter_SetFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ResetSeekPosition_Proxy(
- ISpStreamFormatConverter * This);
- void __RPC_STUB ISpStreamFormatConverter_ResetSeekPosition_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Proxy(
- ISpStreamFormatConverter * This,
- /* [in] */ ULONGLONG ullOffsetConvertedStream,
- /* [out] */ ULONGLONG *pullOffsetBaseStream);
- void __RPC_STUB ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Proxy(
- ISpStreamFormatConverter * This,
- /* [in] */ ULONGLONG ullOffsetBaseStream,
- /* [out] */ ULONGLONG *pullOffsetConvertedStream);
- void __RPC_STUB ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpStreamFormatConverter_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0267 */
- /* [local] */
- typedef /* [hidden] */
- enum _SPAUDIOSTATE
- { SPAS_CLOSED = 0,
- SPAS_STOP = SPAS_CLOSED + 1,
- SPAS_PAUSE = SPAS_STOP + 1,
- SPAS_RUN = SPAS_PAUSE + 1
- } SPAUDIOSTATE;
- typedef /* [hidden][restricted] */ struct SPAUDIOSTATUS
- {
- long cbFreeBuffSpace;
- ULONG cbNonBlockingIO;
- SPAUDIOSTATE State;
- ULONGLONG CurSeekPos;
- ULONGLONG CurDevicePos;
- DWORD dwReserved1;
- DWORD dwReserved2;
- } SPAUDIOSTATUS;
- typedef /* [hidden][restricted] */ struct SPAUDIOBUFFERINFO
- {
- ULONG ulMsMinNotification;
- ULONG ulMsBufferSize;
- ULONG ulMsEventBias;
- } SPAUDIOBUFFERINFO;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0267_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0267_v0_0_s_ifspec;
- #ifndef __ISpAudio_INTERFACE_DEFINED__
- #define __ISpAudio_INTERFACE_DEFINED__
- /* interface ISpAudio */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpAudio;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("C05C768F-FAE8-4EC2-8E07-338321C12452")
- ISpAudio : public ISpStreamFormat
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetState(
- /* [in] */ SPAUDIOSTATE NewState,
- /* [in] */ ULONGLONG ullReserved) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetFormat(
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStatus(
- /* [out] */ SPAUDIOSTATUS *pStatus) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetBufferInfo(
- /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBufferInfo(
- /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetDefaultFormat(
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
-
- virtual HANDLE STDMETHODCALLTYPE EventHandle( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetVolumeLevel(
- /* [out] */ ULONG *pLevel) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetVolumeLevel(
- /* [in] */ ULONG Level) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetBufferNotifySize(
- /* [out] */ ULONG *pcbSize) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetBufferNotifySize(
- /* [in] */ ULONG cbSize) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpAudioVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpAudio * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpAudio * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpAudio * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpAudio * This,
- /* [length_is][size_is][out] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
- ISpAudio * This,
- /* [size_is][in] */ const void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbWritten);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
- ISpAudio * This,
- /* [in] */ LARGE_INTEGER dlibMove,
- /* [in] */ DWORD dwOrigin,
- /* [out] */ ULARGE_INTEGER *plibNewPosition);
-
- HRESULT ( STDMETHODCALLTYPE *SetSize )(
- ISpAudio * This,
- /* [in] */ ULARGE_INTEGER libNewSize);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
- ISpAudio * This,
- /* [unique][in] */ IStream *pstm,
- /* [in] */ ULARGE_INTEGER cb,
- /* [out] */ ULARGE_INTEGER *pcbRead,
- /* [out] */ ULARGE_INTEGER *pcbWritten);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpAudio * This,
- /* [in] */ DWORD grfCommitFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Revert )(
- ISpAudio * This);
-
- HRESULT ( STDMETHODCALLTYPE *LockRegion )(
- ISpAudio * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
- ISpAudio * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *Stat )(
- ISpAudio * This,
- /* [out] */ STATSTG *pstatstg,
- /* [in] */ DWORD grfStatFlag);
-
- HRESULT ( STDMETHODCALLTYPE *Clone )(
- ISpAudio * This,
- /* [out] */ IStream **ppstm);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpAudio * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *SetState )(
- ISpAudio * This,
- /* [in] */ SPAUDIOSTATE NewState,
- /* [in] */ ULONGLONG ullReserved);
-
- HRESULT ( STDMETHODCALLTYPE *SetFormat )(
- ISpAudio * This,
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatus )(
- ISpAudio * This,
- /* [out] */ SPAUDIOSTATUS *pStatus);
-
- HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
- ISpAudio * This,
- /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
- ISpAudio * This,
- /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
- ISpAudio * This,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HANDLE ( STDMETHODCALLTYPE *EventHandle )(
- ISpAudio * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
- ISpAudio * This,
- /* [out] */ ULONG *pLevel);
-
- HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
- ISpAudio * This,
- /* [in] */ ULONG Level);
-
- HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
- ISpAudio * This,
- /* [out] */ ULONG *pcbSize);
-
- HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
- ISpAudio * This,
- /* [in] */ ULONG cbSize);
-
- END_INTERFACE
- } ISpAudioVtbl;
- interface ISpAudio
- {
- CONST_VTBL struct ISpAudioVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpAudio_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpAudio_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpAudio_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpAudio_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpAudio_Write(This,pv,cb,pcbWritten)
- (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
- #define ISpAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition)
- (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
- #define ISpAudio_SetSize(This,libNewSize)
- (This)->lpVtbl -> SetSize(This,libNewSize)
- #define ISpAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- #define ISpAudio_Commit(This,grfCommitFlags)
- (This)->lpVtbl -> Commit(This,grfCommitFlags)
- #define ISpAudio_Revert(This)
- (This)->lpVtbl -> Revert(This)
- #define ISpAudio_LockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
- #define ISpAudio_UnlockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
- #define ISpAudio_Stat(This,pstatstg,grfStatFlag)
- (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
- #define ISpAudio_Clone(This,ppstm)
- (This)->lpVtbl -> Clone(This,ppstm)
- #define ISpAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- #define ISpAudio_SetState(This,NewState,ullReserved)
- (This)->lpVtbl -> SetState(This,NewState,ullReserved)
- #define ISpAudio_SetFormat(This,rguidFmtId,pWaveFormatEx)
- (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
- #define ISpAudio_GetStatus(This,pStatus)
- (This)->lpVtbl -> GetStatus(This,pStatus)
- #define ISpAudio_SetBufferInfo(This,pBuffInfo)
- (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
- #define ISpAudio_GetBufferInfo(This,pBuffInfo)
- (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
- #define ISpAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
- #define ISpAudio_EventHandle(This)
- (This)->lpVtbl -> EventHandle(This)
- #define ISpAudio_GetVolumeLevel(This,pLevel)
- (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
- #define ISpAudio_SetVolumeLevel(This,Level)
- (This)->lpVtbl -> SetVolumeLevel(This,Level)
- #define ISpAudio_GetBufferNotifySize(This,pcbSize)
- (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
- #define ISpAudio_SetBufferNotifySize(This,cbSize)
- (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpAudio_SetState_Proxy(
- ISpAudio * This,
- /* [in] */ SPAUDIOSTATE NewState,
- /* [in] */ ULONGLONG ullReserved);
- void __RPC_STUB ISpAudio_SetState_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_SetFormat_Proxy(
- ISpAudio * This,
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
- void __RPC_STUB ISpAudio_SetFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_GetStatus_Proxy(
- ISpAudio * This,
- /* [out] */ SPAUDIOSTATUS *pStatus);
- void __RPC_STUB ISpAudio_GetStatus_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferInfo_Proxy(
- ISpAudio * This,
- /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
- void __RPC_STUB ISpAudio_SetBufferInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferInfo_Proxy(
- ISpAudio * This,
- /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
- void __RPC_STUB ISpAudio_GetBufferInfo_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_GetDefaultFormat_Proxy(
- ISpAudio * This,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
- void __RPC_STUB ISpAudio_GetDefaultFormat_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HANDLE STDMETHODCALLTYPE ISpAudio_EventHandle_Proxy(
- ISpAudio * This);
- void __RPC_STUB ISpAudio_EventHandle_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_GetVolumeLevel_Proxy(
- ISpAudio * This,
- /* [out] */ ULONG *pLevel);
- void __RPC_STUB ISpAudio_GetVolumeLevel_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_SetVolumeLevel_Proxy(
- ISpAudio * This,
- /* [in] */ ULONG Level);
- void __RPC_STUB ISpAudio_SetVolumeLevel_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferNotifySize_Proxy(
- ISpAudio * This,
- /* [out] */ ULONG *pcbSize);
- void __RPC_STUB ISpAudio_GetBufferNotifySize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferNotifySize_Proxy(
- ISpAudio * This,
- /* [in] */ ULONG cbSize);
- void __RPC_STUB ISpAudio_SetBufferNotifySize_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpAudio_INTERFACE_DEFINED__ */
- #ifndef __ISpMMSysAudio_INTERFACE_DEFINED__
- #define __ISpMMSysAudio_INTERFACE_DEFINED__
- /* interface ISpMMSysAudio */
- /* [restricted][local][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpMMSysAudio;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("15806F6E-1D70-4B48-98E6-3B1A007509AB")
- ISpMMSysAudio : public ISpAudio
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetDeviceId(
- /* [out] */ UINT *puDeviceId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetDeviceId(
- /* [in] */ UINT uDeviceId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetMMHandle(
- void **pHandle) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetLineId(
- /* [out] */ UINT *puLineId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetLineId(
- /* [in] */ UINT uLineId) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpMMSysAudioVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpMMSysAudio * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpMMSysAudio * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpMMSysAudio * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
- ISpMMSysAudio * This,
- /* [length_is][size_is][out] */ void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbRead);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
- ISpMMSysAudio * This,
- /* [size_is][in] */ const void *pv,
- /* [in] */ ULONG cb,
- /* [out] */ ULONG *pcbWritten);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
- ISpMMSysAudio * This,
- /* [in] */ LARGE_INTEGER dlibMove,
- /* [in] */ DWORD dwOrigin,
- /* [out] */ ULARGE_INTEGER *plibNewPosition);
-
- HRESULT ( STDMETHODCALLTYPE *SetSize )(
- ISpMMSysAudio * This,
- /* [in] */ ULARGE_INTEGER libNewSize);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
- ISpMMSysAudio * This,
- /* [unique][in] */ IStream *pstm,
- /* [in] */ ULARGE_INTEGER cb,
- /* [out] */ ULARGE_INTEGER *pcbRead,
- /* [out] */ ULARGE_INTEGER *pcbWritten);
-
- HRESULT ( STDMETHODCALLTYPE *Commit )(
- ISpMMSysAudio * This,
- /* [in] */ DWORD grfCommitFlags);
-
- HRESULT ( STDMETHODCALLTYPE *Revert )(
- ISpMMSysAudio * This);
-
- HRESULT ( STDMETHODCALLTYPE *LockRegion )(
- ISpMMSysAudio * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
- ISpMMSysAudio * This,
- /* [in] */ ULARGE_INTEGER libOffset,
- /* [in] */ ULARGE_INTEGER cb,
- /* [in] */ DWORD dwLockType);
-
- HRESULT ( STDMETHODCALLTYPE *Stat )(
- ISpMMSysAudio * This,
- /* [out] */ STATSTG *pstatstg,
- /* [in] */ DWORD grfStatFlag);
-
- HRESULT ( STDMETHODCALLTYPE *Clone )(
- ISpMMSysAudio * This,
- /* [out] */ IStream **ppstm);
-
- HRESULT ( STDMETHODCALLTYPE *GetFormat )(
- ISpMMSysAudio * This,
- GUID *pguidFormatId,
- WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *SetState )(
- ISpMMSysAudio * This,
- /* [in] */ SPAUDIOSTATE NewState,
- /* [in] */ ULONGLONG ullReserved);
-
- HRESULT ( STDMETHODCALLTYPE *SetFormat )(
- ISpMMSysAudio * This,
- /* [in] */ REFGUID rguidFmtId,
- /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatus )(
- ISpMMSysAudio * This,
- /* [out] */ SPAUDIOSTATUS *pStatus);
-
- HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
- ISpMMSysAudio * This,
- /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
- ISpMMSysAudio * This,
- /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
-
- HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
- ISpMMSysAudio * This,
- /* [out] */ GUID *pFormatId,
- /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
-
- HANDLE ( STDMETHODCALLTYPE *EventHandle )(
- ISpMMSysAudio * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
- ISpMMSysAudio * This,
- /* [out] */ ULONG *pLevel);
-
- HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
- ISpMMSysAudio * This,
- /* [in] */ ULONG Level);
-
- HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
- ISpMMSysAudio * This,
- /* [out] */ ULONG *pcbSize);
-
- HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
- ISpMMSysAudio * This,
- /* [in] */ ULONG cbSize);
-
- HRESULT ( STDMETHODCALLTYPE *GetDeviceId )(
- ISpMMSysAudio * This,
- /* [out] */ UINT *puDeviceId);
-
- HRESULT ( STDMETHODCALLTYPE *SetDeviceId )(
- ISpMMSysAudio * This,
- /* [in] */ UINT uDeviceId);
-
- HRESULT ( STDMETHODCALLTYPE *GetMMHandle )(
- ISpMMSysAudio * This,
- void **pHandle);
-
- HRESULT ( STDMETHODCALLTYPE *GetLineId )(
- ISpMMSysAudio * This,
- /* [out] */ UINT *puLineId);
-
- HRESULT ( STDMETHODCALLTYPE *SetLineId )(
- ISpMMSysAudio * This,
- /* [in] */ UINT uLineId);
-
- END_INTERFACE
- } ISpMMSysAudioVtbl;
- interface ISpMMSysAudio
- {
- CONST_VTBL struct ISpMMSysAudioVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpMMSysAudio_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpMMSysAudio_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpMMSysAudio_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpMMSysAudio_Read(This,pv,cb,pcbRead)
- (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
- #define ISpMMSysAudio_Write(This,pv,cb,pcbWritten)
- (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
- #define ISpMMSysAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition)
- (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
- #define ISpMMSysAudio_SetSize(This,libNewSize)
- (This)->lpVtbl -> SetSize(This,libNewSize)
- #define ISpMMSysAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
- #define ISpMMSysAudio_Commit(This,grfCommitFlags)
- (This)->lpVtbl -> Commit(This,grfCommitFlags)
- #define ISpMMSysAudio_Revert(This)
- (This)->lpVtbl -> Revert(This)
- #define ISpMMSysAudio_LockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
- #define ISpMMSysAudio_UnlockRegion(This,libOffset,cb,dwLockType)
- (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
- #define ISpMMSysAudio_Stat(This,pstatstg,grfStatFlag)
- (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
- #define ISpMMSysAudio_Clone(This,ppstm)
- (This)->lpVtbl -> Clone(This,ppstm)
- #define ISpMMSysAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
- #define ISpMMSysAudio_SetState(This,NewState,ullReserved)
- (This)->lpVtbl -> SetState(This,NewState,ullReserved)
- #define ISpMMSysAudio_SetFormat(This,rguidFmtId,pWaveFormatEx)
- (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
- #define ISpMMSysAudio_GetStatus(This,pStatus)
- (This)->lpVtbl -> GetStatus(This,pStatus)
- #define ISpMMSysAudio_SetBufferInfo(This,pBuffInfo)
- (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
- #define ISpMMSysAudio_GetBufferInfo(This,pBuffInfo)
- (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
- #define ISpMMSysAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
- (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
- #define ISpMMSysAudio_EventHandle(This)
- (This)->lpVtbl -> EventHandle(This)
- #define ISpMMSysAudio_GetVolumeLevel(This,pLevel)
- (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
- #define ISpMMSysAudio_SetVolumeLevel(This,Level)
- (This)->lpVtbl -> SetVolumeLevel(This,Level)
- #define ISpMMSysAudio_GetBufferNotifySize(This,pcbSize)
- (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
- #define ISpMMSysAudio_SetBufferNotifySize(This,cbSize)
- (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
- #define ISpMMSysAudio_GetDeviceId(This,puDeviceId)
- (This)->lpVtbl -> GetDeviceId(This,puDeviceId)
- #define ISpMMSysAudio_SetDeviceId(This,uDeviceId)
- (This)->lpVtbl -> SetDeviceId(This,uDeviceId)
- #define ISpMMSysAudio_GetMMHandle(This,pHandle)
- (This)->lpVtbl -> GetMMHandle(This,pHandle)
- #define ISpMMSysAudio_GetLineId(This,puLineId)
- (This)->lpVtbl -> GetLineId(This,puLineId)
- #define ISpMMSysAudio_SetLineId(This,uLineId)
- (This)->lpVtbl -> SetLineId(This,uLineId)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetDeviceId_Proxy(
- ISpMMSysAudio * This,
- /* [out] */ UINT *puDeviceId);
- void __RPC_STUB ISpMMSysAudio_GetDeviceId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetDeviceId_Proxy(
- ISpMMSysAudio * This,
- /* [in] */ UINT uDeviceId);
- void __RPC_STUB ISpMMSysAudio_SetDeviceId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetMMHandle_Proxy(
- ISpMMSysAudio * This,
- void **pHandle);
- void __RPC_STUB ISpMMSysAudio_GetMMHandle_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetLineId_Proxy(
- ISpMMSysAudio * This,
- /* [out] */ UINT *puLineId);
- void __RPC_STUB ISpMMSysAudio_GetLineId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetLineId_Proxy(
- ISpMMSysAudio * This,
- /* [in] */ UINT uLineId);
- void __RPC_STUB ISpMMSysAudio_SetLineId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpMMSysAudio_INTERFACE_DEFINED__ */
- #ifndef __ISpTranscript_INTERFACE_DEFINED__
- #define __ISpTranscript_INTERFACE_DEFINED__
- /* interface ISpTranscript */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpTranscript;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("10F63BCE-201A-11D3-AC70-00C04F8EE6C0")
- ISpTranscript : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetTranscript(
- /* [string][out] */ WCHAR **ppszTranscript) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AppendTranscript(
- /* [string][in] */ const WCHAR *pszTranscript) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpTranscriptVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpTranscript * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpTranscript * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpTranscript * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetTranscript )(
- ISpTranscript * This,
- /* [string][out] */ WCHAR **ppszTranscript);
-
- HRESULT ( STDMETHODCALLTYPE *AppendTranscript )(
- ISpTranscript * This,
- /* [string][in] */ const WCHAR *pszTranscript);
-
- END_INTERFACE
- } ISpTranscriptVtbl;
- interface ISpTranscript
- {
- CONST_VTBL struct ISpTranscriptVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpTranscript_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpTranscript_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpTranscript_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpTranscript_GetTranscript(This,ppszTranscript)
- (This)->lpVtbl -> GetTranscript(This,ppszTranscript)
- #define ISpTranscript_AppendTranscript(This,pszTranscript)
- (This)->lpVtbl -> AppendTranscript(This,pszTranscript)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpTranscript_GetTranscript_Proxy(
- ISpTranscript * This,
- /* [string][out] */ WCHAR **ppszTranscript);
- void __RPC_STUB ISpTranscript_GetTranscript_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpTranscript_AppendTranscript_Proxy(
- ISpTranscript * This,
- /* [string][in] */ const WCHAR *pszTranscript);
- void __RPC_STUB ISpTranscript_AppendTranscript_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpTranscript_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0270 */
- /* [local] */
- typedef /* [hidden] */
- enum SPDISPLYATTRIBUTES
- { SPAF_ONE_TRAILING_SPACE = 0x2,
- SPAF_TWO_TRAILING_SPACES = 0x4,
- SPAF_CONSUME_LEADING_SPACES = 0x8,
- SPAF_ALL = 0xf
- } SPDISPLAYATTRIBUTES;
- typedef unsigned short SPPHONEID;
- typedef /* [hidden][restricted] */ struct SPPHRASEELEMENT
- {
- ULONG ulAudioTimeOffset;
- ULONG ulAudioSizeTime;
- ULONG ulAudioStreamOffset;
- ULONG ulAudioSizeBytes;
- ULONG ulRetainedStreamOffset;
- ULONG ulRetainedSizeBytes;
- const WCHAR *pszDisplayText;
- const WCHAR *pszLexicalForm;
- const SPPHONEID *pszPronunciation;
- BYTE bDisplayAttributes;
- signed char RequiredConfidence;
- signed char ActualConfidence;
- BYTE Reserved;
- float SREngineConfidence;
- } SPPHRASEELEMENT;
- typedef /* [hidden][restricted] */ struct SPPHRASERULE SPPHRASERULE;
- /* [hidden] */ struct SPPHRASERULE
- {
- const WCHAR *pszName;
- ULONG ulId;
- ULONG ulFirstElement;
- ULONG ulCountOfElements;
- const SPPHRASERULE *pNextSibling;
- const SPPHRASERULE *pFirstChild;
- float SREngineConfidence;
- signed char Confidence;
- } ;
- typedef /* [hidden][restricted] */ struct SPPHRASEPROPERTY SPPHRASEPROPERTY;
- /* [hidden] */ struct SPPHRASEPROPERTY
- {
- const WCHAR *pszName;
- ULONG ulId;
- const WCHAR *pszValue;
- VARIANT vValue;
- ULONG ulFirstElement;
- ULONG ulCountOfElements;
- const SPPHRASEPROPERTY *pNextSibling;
- const SPPHRASEPROPERTY *pFirstChild;
- float SREngineConfidence;
- signed char Confidence;
- } ;
- typedef /* [hidden][restricted] */ struct SPPHRASEREPLACEMENT
- {
- BYTE bDisplayAttributes;
- const WCHAR *pszReplacementText;
- ULONG ulFirstElement;
- ULONG ulCountOfElements;
- } SPPHRASEREPLACEMENT;
- typedef /* [hidden][restricted] */ struct SPPHRASE
- {
- ULONG cbSize;
- WORD LangID;
- WORD wReserved;
- ULONGLONG ullGrammarID;
- ULONGLONG ftStartTime;
- ULONGLONG ullAudioStreamPosition;
- ULONG ulAudioSizeBytes;
- ULONG ulRetainedSizeBytes;
- ULONG ulAudioSizeTime;
- SPPHRASERULE Rule;
- const SPPHRASEPROPERTY *pProperties;
- const SPPHRASEELEMENT *pElements;
- ULONG cReplacements;
- const SPPHRASEREPLACEMENT *pReplacements;
- GUID SREngineID;
- ULONG ulSREnginePrivateDataSize;
- const BYTE *pSREnginePrivateData;
- } SPPHRASE;
- typedef /* [hidden][restricted] */ struct SPSERIALIZEDPHRASE
- {
- ULONG ulSerializedSize;
- } SPSERIALIZEDPHRASE;
- typedef /* [hidden] */
- enum SPVALUETYPE
- { SPDF_PROPERTY = 0x1,
- SPDF_REPLACEMENT = 0x2,
- SPDF_RULE = 0x4,
- SPDF_DISPLAYTEXT = 0x8,
- SPDF_LEXICALFORM = 0x10,
- SPDF_PRONUNCIATION = 0x20,
- SPDF_AUDIO = 0x40,
- SPDF_ALTERNATES = 0x80,
- SPDF_ALL = 0xff
- } SPVALUETYPE;
- typedef /* [hidden] */ struct SPBINARYGRAMMAR
- {
- ULONG ulTotalSerializedSize;
- } SPBINARYGRAMMAR;
- typedef /* [hidden] */
- enum SPPHRASERNG
- { SPPR_ALL_ELEMENTS = -1
- } SPPHRASERNG;
- #define SP_GETWHOLEPHRASE SPPR_ALL_ELEMENTS
- #define SPRR_ALL_ELEMENTS SPPR_ALL_ELEMENTS
- #if 0
- typedef void *SPSTATEHANDLE;
- #else
- DECLARE_HANDLE(SPSTATEHANDLE);
- #endif
- typedef /* [hidden] */
- enum SPRECOEVENTFLAGS
- { SPREF_AutoPause = 1 << 0,
- SPREF_Emulated = 1 << 1
- } SPRECOEVENTFLAGS;
- typedef /* [hidden] */
- enum SPPARTOFSPEECH
- { SPPS_NotOverriden = -1,
- SPPS_Unknown = 0,
- SPPS_Noun = 0x1000,
- SPPS_Verb = 0x2000,
- SPPS_Modifier = 0x3000,
- SPPS_Function = 0x4000,
- SPPS_Interjection = 0x5000
- } SPPARTOFSPEECH;
- typedef /* [hidden] */
- enum SPLEXICONTYPE
- { eLEXTYPE_USER = 1L << 0,
- eLEXTYPE_APP = 1L << 1,
- eLEXTYPE_RESERVED1 = 1L << 2,
- eLEXTYPE_RESERVED2 = 1L << 3,
- eLEXTYPE_RESERVED3 = 1L << 4,
- eLEXTYPE_RESERVED4 = 1L << 5,
- eLEXTYPE_RESERVED5 = 1L << 6,
- eLEXTYPE_RESERVED6 = 1L << 7,
- eLEXTYPE_RESERVED7 = 1L << 8,
- eLEXTYPE_RESERVED8 = 1L << 9,
- eLEXTYPE_RESERVED9 = 1L << 10,
- eLEXTYPE_RESERVED10 = 1L << 11,
- eLEXTYPE_PRIVATE1 = 1L << 12,
- eLEXTYPE_PRIVATE2 = 1L << 13,
- eLEXTYPE_PRIVATE3 = 1L << 14,
- eLEXTYPE_PRIVATE4 = 1L << 15,
- eLEXTYPE_PRIVATE5 = 1L << 16,
- eLEXTYPE_PRIVATE6 = 1L << 17,
- eLEXTYPE_PRIVATE7 = 1L << 18,
- eLEXTYPE_PRIVATE8 = 1L << 19,
- eLEXTYPE_PRIVATE9 = 1L << 20,
- eLEXTYPE_PRIVATE10 = 1L << 21,
- eLEXTYPE_PRIVATE11 = 1L << 22,
- eLEXTYPE_PRIVATE12 = 1L << 23,
- eLEXTYPE_PRIVATE13 = 1L << 24,
- eLEXTYPE_PRIVATE14 = 1L << 25,
- eLEXTYPE_PRIVATE15 = 1L << 26,
- eLEXTYPE_PRIVATE16 = 1L << 27,
- eLEXTYPE_PRIVATE17 = 1L << 28,
- eLEXTYPE_PRIVATE18 = 1L << 29,
- eLEXTYPE_PRIVATE19 = 1L << 30,
- eLEXTYPE_PRIVATE20 = 1L << 31
- } SPLEXICONTYPE;
- typedef /* [hidden] */
- enum SPWORDTYPE
- { eWORDTYPE_ADDED = 1L << 0,
- eWORDTYPE_DELETED = 1L << 1
- } SPWORDTYPE;
- typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATION
- {
- struct SPWORDPRONUNCIATION *pNextWordPronunciation;
- SPLEXICONTYPE eLexiconType;
- WORD LangID;
- WORD wReserved;
- SPPARTOFSPEECH ePartOfSpeech;
- SPPHONEID szPronunciation[ 1 ];
- } SPWORDPRONUNCIATION;
- typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATIONLIST
- {
- ULONG ulSize;
- BYTE *pvBuffer;
- SPWORDPRONUNCIATION *pFirstWordPronunciation;
- } SPWORDPRONUNCIATIONLIST;
- typedef /* [hidden][restricted] */ struct SPWORD
- {
- struct SPWORD *pNextWord;
- WORD LangID;
- WORD wReserved;
- SPWORDTYPE eWordType;
- WCHAR *pszWord;
- SPWORDPRONUNCIATION *pFirstWordPronunciation;
- } SPWORD;
- typedef /* [hidden][restricted] */ struct SPWORDLIST
- {
- ULONG ulSize;
- BYTE *pvBuffer;
- SPWORD *pFirstWord;
- } SPWORDLIST;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0270_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0270_v0_0_s_ifspec;
- #ifndef __ISpLexicon_INTERFACE_DEFINED__
- #define __ISpLexicon_INTERFACE_DEFINED__
- /* interface ISpLexicon */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpLexicon;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("DA41A7C2-5383-4DB2-916B-6C1719E3DB58")
- ISpLexicon : public IUnknown
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE AddPronunciation(
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE RemovePronunciation(
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetGeneration(
- DWORD *pdwGeneration) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ SPWORDLIST *pWordList) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetWords(
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ DWORD *pdwCookie,
- /* [out][in] */ SPWORDLIST *pWordList) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpLexiconVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpLexicon * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpLexicon * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpLexicon * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
-
- HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
-
- HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
-
- HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
- ISpLexicon * This,
- DWORD *pdwGeneration);
-
- HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
- ISpLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ SPWORDLIST *pWordList);
-
- HRESULT ( STDMETHODCALLTYPE *GetWords )(
- ISpLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ DWORD *pdwCookie,
- /* [out][in] */ SPWORDLIST *pWordList);
-
- END_INTERFACE
- } ISpLexiconVtbl;
- interface ISpLexicon
- {
- CONST_VTBL struct ISpLexiconVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpLexicon_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpLexicon_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpLexicon_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
- (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
- #define ISpLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- #define ISpLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- #define ISpLexicon_GetGeneration(This,pdwGeneration)
- (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
- #define ISpLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
- (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
- #define ISpLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
- (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpLexicon_GetPronunciations_Proxy(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
- void __RPC_STUB ISpLexicon_GetPronunciations_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpLexicon_AddPronunciation_Proxy(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
- void __RPC_STUB ISpLexicon_AddPronunciation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpLexicon_RemovePronunciation_Proxy(
- ISpLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
- void __RPC_STUB ISpLexicon_RemovePronunciation_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpLexicon_GetGeneration_Proxy(
- ISpLexicon * This,
- DWORD *pdwGeneration);
- void __RPC_STUB ISpLexicon_GetGeneration_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpLexicon_GetGenerationChange_Proxy(
- ISpLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ SPWORDLIST *pWordList);
- void __RPC_STUB ISpLexicon_GetGenerationChange_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpLexicon_GetWords_Proxy(
- ISpLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ DWORD *pdwCookie,
- /* [out][in] */ SPWORDLIST *pWordList);
- void __RPC_STUB ISpLexicon_GetWords_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpLexicon_INTERFACE_DEFINED__ */
- #ifndef __ISpContainerLexicon_INTERFACE_DEFINED__
- #define __ISpContainerLexicon_INTERFACE_DEFINED__
- /* interface ISpContainerLexicon */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpContainerLexicon;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("8565572F-C094-41CC-B56E-10BD9C3FF044")
- ISpContainerLexicon : public ISpLexicon
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE AddLexicon(
- /* [in] */ ISpLexicon *pAddLexicon,
- /* [in] */ DWORD dwFlags) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpContainerLexiconVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpContainerLexicon * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpContainerLexicon * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpContainerLexicon * This);
-
- HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
- ISpContainerLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
-
- HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
- ISpContainerLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
-
- HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
- ISpContainerLexicon * This,
- /* [in] */ const WCHAR *pszWord,
- /* [in] */ WORD LangID,
- /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
- /* [in] */ const SPPHONEID *pszPronunciation);
-
- HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
- ISpContainerLexicon * This,
- DWORD *pdwGeneration);
-
- HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
- ISpContainerLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ SPWORDLIST *pWordList);
-
- HRESULT ( STDMETHODCALLTYPE *GetWords )(
- ISpContainerLexicon * This,
- /* [in] */ DWORD dwFlags,
- /* [out][in] */ DWORD *pdwGeneration,
- /* [out][in] */ DWORD *pdwCookie,
- /* [out][in] */ SPWORDLIST *pWordList);
-
- HRESULT ( STDMETHODCALLTYPE *AddLexicon )(
- ISpContainerLexicon * This,
- /* [in] */ ISpLexicon *pAddLexicon,
- /* [in] */ DWORD dwFlags);
-
- END_INTERFACE
- } ISpContainerLexiconVtbl;
- interface ISpContainerLexicon
- {
- CONST_VTBL struct ISpContainerLexiconVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpContainerLexicon_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpContainerLexicon_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpContainerLexicon_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpContainerLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
- (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
- #define ISpContainerLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- #define ISpContainerLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
- #define ISpContainerLexicon_GetGeneration(This,pdwGeneration)
- (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
- #define ISpContainerLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
- (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
- #define ISpContainerLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
- (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
- #define ISpContainerLexicon_AddLexicon(This,pAddLexicon,dwFlags)
- (This)->lpVtbl -> AddLexicon(This,pAddLexicon,dwFlags)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpContainerLexicon_AddLexicon_Proxy(
- ISpContainerLexicon * This,
- /* [in] */ ISpLexicon *pAddLexicon,
- /* [in] */ DWORD dwFlags);
- void __RPC_STUB ISpContainerLexicon_AddLexicon_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpContainerLexicon_INTERFACE_DEFINED__ */
- #ifndef __ISpPhoneConverter_INTERFACE_DEFINED__
- #define __ISpPhoneConverter_INTERFACE_DEFINED__
- /* interface ISpPhoneConverter */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpPhoneConverter;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("8445C581-0CAC-4A38-ABFE-9B2CE2826455")
- ISpPhoneConverter : public ISpObjectWithToken
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE PhoneToId(
- /* [in] */ const WCHAR *pszPhone,
- /* [out] */ SPPHONEID *pId) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE IdToPhone(
- /* [in] */ const SPPHONEID *pId,
- /* [out] */ WCHAR *pszPhone) = 0;
-
- };
-
- #else /* C style interface */
- typedef struct ISpPhoneConverterVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpPhoneConverter * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpPhoneConverter * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpPhoneConverter * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetObjectToken )(
- ISpPhoneConverter * This,
- ISpObjectToken *pToken);
-
- HRESULT ( STDMETHODCALLTYPE *GetObjectToken )(
- ISpPhoneConverter * This,
- ISpObjectToken **ppToken);
-
- HRESULT ( STDMETHODCALLTYPE *PhoneToId )(
- ISpPhoneConverter * This,
- /* [in] */ const WCHAR *pszPhone,
- /* [out] */ SPPHONEID *pId);
-
- HRESULT ( STDMETHODCALLTYPE *IdToPhone )(
- ISpPhoneConverter * This,
- /* [in] */ const SPPHONEID *pId,
- /* [out] */ WCHAR *pszPhone);
-
- END_INTERFACE
- } ISpPhoneConverterVtbl;
- interface ISpPhoneConverter
- {
- CONST_VTBL struct ISpPhoneConverterVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpPhoneConverter_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpPhoneConverter_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpPhoneConverter_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpPhoneConverter_SetObjectToken(This,pToken)
- (This)->lpVtbl -> SetObjectToken(This,pToken)
- #define ISpPhoneConverter_GetObjectToken(This,ppToken)
- (This)->lpVtbl -> GetObjectToken(This,ppToken)
- #define ISpPhoneConverter_PhoneToId(This,pszPhone,pId)
- (This)->lpVtbl -> PhoneToId(This,pszPhone,pId)
- #define ISpPhoneConverter_IdToPhone(This,pId,pszPhone)
- (This)->lpVtbl -> IdToPhone(This,pId,pszPhone)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpPhoneConverter_PhoneToId_Proxy(
- ISpPhoneConverter * This,
- /* [in] */ const WCHAR *pszPhone,
- /* [out] */ SPPHONEID *pId);
- void __RPC_STUB ISpPhoneConverter_PhoneToId_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpPhoneConverter_IdToPhone_Proxy(
- ISpPhoneConverter * This,
- /* [in] */ const SPPHONEID *pId,
- /* [out] */ WCHAR *pszPhone);
- void __RPC_STUB ISpPhoneConverter_IdToPhone_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- #endif /* __ISpPhoneConverter_INTERFACE_DEFINED__ */
- /* interface __MIDL_itf_sapi_0273 */
- /* [local] */
- typedef /* [hidden][restricted] */ struct SPVPITCH
- {
- long MiddleAdj;
- long RangeAdj;
- } SPVPITCH;
- typedef /* [hidden] */
- enum SPVACTIONS
- { SPVA_Speak = 0,
- SPVA_Silence = SPVA_Speak + 1,
- SPVA_Pronounce = SPVA_Silence + 1,
- SPVA_Bookmark = SPVA_Pronounce + 1,
- SPVA_SpellOut = SPVA_Bookmark + 1,
- SPVA_Section = SPVA_SpellOut + 1,
- SPVA_ParseUnknownTag = SPVA_Section + 1
- } SPVACTIONS;
- typedef /* [hidden][restricted] */ struct SPVCONTEXT
- {
- LPCWSTR pCategory;
- LPCWSTR pBefore;
- LPCWSTR pAfter;
- } SPVCONTEXT;
- typedef /* [hidden][restricted] */ struct SPVSTATE
- {
- SPVACTIONS eAction;
- WORD LangID;
- WORD wReserved;
- long EmphAdj;
- long RateAdj;
- ULONG Volume;
- SPVPITCH PitchAdj;
- ULONG SilenceMSecs;
- SPPHONEID *pPhoneIds;
- SPPARTOFSPEECH ePartOfSpeech;
- SPVCONTEXT Context;
- } SPVSTATE;
- typedef /* [hidden] */
- enum SPRUNSTATE
- { SPRS_DONE = 1L << 0,
- SPRS_IS_SPEAKING = 1L << 1
- } SPRUNSTATE;
- typedef /* [hidden] */
- enum SPVLIMITS
- { SPMIN_VOLUME = 0,
- SPMAX_VOLUME = 100,
- SPMIN_RATE = -10,
- SPMAX_RATE = 10
- } SPVLIMITS;
- typedef /* [hidden] */
- enum SPVPRIORITY
- { SPVPRI_NORMAL = 0,
- SPVPRI_ALERT = 1L << 0,
- SPVPRI_OVER = 1L << 1
- } SPVPRIORITY;
- typedef /* [hidden][restricted] */ struct SPVOICESTATUS
- {
- ULONG ulCurrentStream;
- ULONG ulLastStreamQueued;
- HRESULT hrLastResult;
- DWORD dwRunningState;
- ULONG ulInputWordPos;
- ULONG ulInputWordLen;
- ULONG ulInputSentPos;
- ULONG ulInputSentLen;
- LONG lBookmarkId;
- SPPHONEID PhonemeId;
- SPVISEMES VisemeId;
- DWORD dwReserved1;
- DWORD dwReserved2;
- } SPVOICESTATUS;
- typedef /* [hidden] */
- enum SPEAKFLAGS
- { SPF_DEFAULT = 0,
- SPF_ASYNC = 1L << 0,
- SPF_PURGEBEFORESPEAK = 1L << 1,
- SPF_IS_FILENAME = 1L << 2,
- SPF_IS_XML = 1L << 3,
- SPF_IS_NOT_XML = 1L << 4,
- SPF_PERSIST_XML = 1L << 5,
- SPF_NLP_SPEAK_PUNC = 1L << 6,
- SPF_NLP_MASK = SPF_NLP_SPEAK_PUNC,
- SPF_VOICE_MASK = SPF_ASYNC | SPF_PURGEBEFORESPEAK | SPF_IS_FILENAME | SPF_IS_XML | SPF_IS_NOT_XML | SPF_NLP_MASK | SPF_PERSIST_XML,
- SPF_UNUSED_FLAGS = ~SPF_VOICE_MASK
- } SPEAKFLAGS;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_c_ifspec;
- extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_s_ifspec;
- #ifndef __ISpVoice_INTERFACE_DEFINED__
- #define __ISpVoice_INTERFACE_DEFINED__
- /* interface ISpVoice */
- /* [restricted][unique][helpstring][uuid][object] */
- EXTERN_C const IID IID_ISpVoice;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
- MIDL_INTERFACE("6C44DF74-72B9-4992-A1EC-EF996E0422D4")
- ISpVoice : public ISpEventSource
- {
- public:
- virtual HRESULT STDMETHODCALLTYPE SetOutput(
- /* [in] */ IUnknown *pUnkOutput,
- /* [in] */ BOOL fAllowFormatChanges) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetOutputObjectToken(
- /* [out] */ ISpObjectToken **ppObjectToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetOutputStream(
- /* [out] */ ISpStreamFormat **ppStream) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetVoice(
- /* [in] */ ISpObjectToken *pToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetVoice(
- /* [out] */ ISpObjectToken **ppToken) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Speak(
- /* [string][in] */ const WCHAR *pwcs,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SpeakStream(
- /* [in] */ IStream *pStream,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetStatus(
- /* [out] */ SPVOICESTATUS *pStatus,
- /* [string][out] */ WCHAR **ppszLastBookmark) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE Skip(
- /* [string][in] */ WCHAR *pItemType,
- /* [in] */ long lNumItems,
- /* [out] */ ULONG *pulNumSkipped) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetPriority(
- /* [in] */ SPVPRIORITY ePriority) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetPriority(
- /* [out] */ SPVPRIORITY *pePriority) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetAlertBoundary(
- /* [in] */ SPEVENTENUM eBoundary) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetAlertBoundary(
- /* [out] */ SPEVENTENUM *peBoundary) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetRate(
- /* [in] */ long RateAdjust) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetRate(
- /* [out] */ long *pRateAdjust) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetVolume(
- /* [in] */ USHORT usVolume) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetVolume(
- /* [out] */ USHORT *pusVolume) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE WaitUntilDone(
- /* [in] */ ULONG msTimeout) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE SetSyncSpeakTimeout(
- /* [in] */ ULONG msTimeout) = 0;
-
- virtual HRESULT STDMETHODCALLTYPE GetSyncSpeakTimeout(
- /* [out] */ ULONG *pmsTimeout) = 0;
-
- virtual /* [local] */ HANDLE STDMETHODCALLTYPE SpeakCompleteEvent( void) = 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;
-
- };
-
- #else /* C style interface */
- typedef struct ISpVoiceVtbl
- {
- BEGIN_INTERFACE
-
- HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
- ISpVoice * This,
- /* [in] */ REFIID riid,
- /* [iid_is][out] */ void **ppvObject);
-
- ULONG ( STDMETHODCALLTYPE *AddRef )(
- ISpVoice * This);
-
- ULONG ( STDMETHODCALLTYPE *Release )(
- ISpVoice * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
- ISpVoice * This,
- /* [in] */ ISpNotifySink *pNotifySink);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
- ISpVoice * This,
- /* [in] */ HWND hWnd,
- /* [in] */ UINT Msg,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
- ISpVoice * This,
- /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
- ISpVoice * This,
- /* [in] */ ISpNotifyCallback *pSpCallback,
- /* [in] */ WPARAM wParam,
- /* [in] */ LPARAM lParam);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
- ISpVoice * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
- ISpVoice * This,
- /* [in] */ DWORD dwMilliseconds);
-
- /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
- ISpVoice * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetInterest )(
- ISpVoice * This,
- /* [in] */ ULONGLONG ullEventInterest,
- /* [in] */ ULONGLONG ullQueuedInterest);
-
- HRESULT ( STDMETHODCALLTYPE *GetEvents )(
- ISpVoice * This,
- /* [in] */ ULONG ulCount,
- /* [size_is][out] */ SPEVENT *pEventArray,
- /* [out] */ ULONG *pulFetched);
-
- HRESULT ( STDMETHODCALLTYPE *GetInfo )(
- ISpVoice * This,
- /* [out] */ SPEVENTSOURCEINFO *pInfo);
-
- HRESULT ( STDMETHODCALLTYPE *SetOutput )(
- ISpVoice * This,
- /* [in] */ IUnknown *pUnkOutput,
- /* [in] */ BOOL fAllowFormatChanges);
-
- HRESULT ( STDMETHODCALLTYPE *GetOutputObjectToken )(
- ISpVoice * This,
- /* [out] */ ISpObjectToken **ppObjectToken);
-
- HRESULT ( STDMETHODCALLTYPE *GetOutputStream )(
- ISpVoice * This,
- /* [out] */ ISpStreamFormat **ppStream);
-
- HRESULT ( STDMETHODCALLTYPE *Pause )(
- ISpVoice * This);
-
- HRESULT ( STDMETHODCALLTYPE *Resume )(
- ISpVoice * This);
-
- HRESULT ( STDMETHODCALLTYPE *SetVoice )(
- ISpVoice * This,
- /* [in] */ ISpObjectToken *pToken);
-
- HRESULT ( STDMETHODCALLTYPE *GetVoice )(
- ISpVoice * This,
- /* [out] */ ISpObjectToken **ppToken);
-
- HRESULT ( STDMETHODCALLTYPE *Speak )(
- ISpVoice * This,
- /* [string][in] */ const WCHAR *pwcs,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
-
- HRESULT ( STDMETHODCALLTYPE *SpeakStream )(
- ISpVoice * This,
- /* [in] */ IStream *pStream,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
-
- HRESULT ( STDMETHODCALLTYPE *GetStatus )(
- ISpVoice * This,
- /* [out] */ SPVOICESTATUS *pStatus,
- /* [string][out] */ WCHAR **ppszLastBookmark);
-
- HRESULT ( STDMETHODCALLTYPE *Skip )(
- ISpVoice * This,
- /* [string][in] */ WCHAR *pItemType,
- /* [in] */ long lNumItems,
- /* [out] */ ULONG *pulNumSkipped);
-
- HRESULT ( STDMETHODCALLTYPE *SetPriority )(
- ISpVoice * This,
- /* [in] */ SPVPRIORITY ePriority);
-
- HRESULT ( STDMETHODCALLTYPE *GetPriority )(
- ISpVoice * This,
- /* [out] */ SPVPRIORITY *pePriority);
-
- HRESULT ( STDMETHODCALLTYPE *SetAlertBoundary )(
- ISpVoice * This,
- /* [in] */ SPEVENTENUM eBoundary);
-
- HRESULT ( STDMETHODCALLTYPE *GetAlertBoundary )(
- ISpVoice * This,
- /* [out] */ SPEVENTENUM *peBoundary);
-
- HRESULT ( STDMETHODCALLTYPE *SetRate )(
- ISpVoice * This,
- /* [in] */ long RateAdjust);
-
- HRESULT ( STDMETHODCALLTYPE *GetRate )(
- ISpVoice * This,
- /* [out] */ long *pRateAdjust);
-
- HRESULT ( STDMETHODCALLTYPE *SetVolume )(
- ISpVoice * This,
- /* [in] */ USHORT usVolume);
-
- HRESULT ( STDMETHODCALLTYPE *GetVolume )(
- ISpVoice * This,
- /* [out] */ USHORT *pusVolume);
-
- HRESULT ( STDMETHODCALLTYPE *WaitUntilDone )(
- ISpVoice * This,
- /* [in] */ ULONG msTimeout);
-
- HRESULT ( STDMETHODCALLTYPE *SetSyncSpeakTimeout )(
- ISpVoice * This,
- /* [in] */ ULONG msTimeout);
-
- HRESULT ( STDMETHODCALLTYPE *GetSyncSpeakTimeout )(
- ISpVoice * This,
- /* [out] */ ULONG *pmsTimeout);
-
- /* [local] */ HANDLE ( STDMETHODCALLTYPE *SpeakCompleteEvent )(
- ISpVoice * This);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
- ISpVoice * This,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData,
- /* [out] */ BOOL *pfSupported);
-
- /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
- ISpVoice * This,
- /* [in] */ HWND hwndParent,
- /* [in] */ const WCHAR *pszTitle,
- /* [in] */ const WCHAR *pszTypeOfUI,
- /* [in] */ void *pvExtraData,
- /* [in] */ ULONG cbExtraData);
-
- END_INTERFACE
- } ISpVoiceVtbl;
- interface ISpVoice
- {
- CONST_VTBL struct ISpVoiceVtbl *lpVtbl;
- };
-
- #ifdef COBJMACROS
- #define ISpVoice_QueryInterface(This,riid,ppvObject)
- (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
- #define ISpVoice_AddRef(This)
- (This)->lpVtbl -> AddRef(This)
- #define ISpVoice_Release(This)
- (This)->lpVtbl -> Release(This)
- #define ISpVoice_SetNotifySink(This,pNotifySink)
- (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
- #define ISpVoice_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
- #define ISpVoice_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
- #define ISpVoice_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
- #define ISpVoice_SetNotifyWin32Event(This)
- (This)->lpVtbl -> SetNotifyWin32Event(This)
- #define ISpVoice_WaitForNotifyEvent(This,dwMilliseconds)
- (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
- #define ISpVoice_GetNotifyEventHandle(This)
- (This)->lpVtbl -> GetNotifyEventHandle(This)
- #define ISpVoice_SetInterest(This,ullEventInterest,ullQueuedInterest)
- (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
- #define ISpVoice_GetEvents(This,ulCount,pEventArray,pulFetched)
- (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
- #define ISpVoice_GetInfo(This,pInfo)
- (This)->lpVtbl -> GetInfo(This,pInfo)
- #define ISpVoice_SetOutput(This,pUnkOutput,fAllowFormatChanges)
- (This)->lpVtbl -> SetOutput(This,pUnkOutput,fAllowFormatChanges)
- #define ISpVoice_GetOutputObjectToken(This,ppObjectToken)
- (This)->lpVtbl -> GetOutputObjectToken(This,ppObjectToken)
- #define ISpVoice_GetOutputStream(This,ppStream)
- (This)->lpVtbl -> GetOutputStream(This,ppStream)
- #define ISpVoice_Pause(This)
- (This)->lpVtbl -> Pause(This)
- #define ISpVoice_Resume(This)
- (This)->lpVtbl -> Resume(This)
- #define ISpVoice_SetVoice(This,pToken)
- (This)->lpVtbl -> SetVoice(This,pToken)
- #define ISpVoice_GetVoice(This,ppToken)
- (This)->lpVtbl -> GetVoice(This,ppToken)
- #define ISpVoice_Speak(This,pwcs,dwFlags,pulStreamNumber)
- (This)->lpVtbl -> Speak(This,pwcs,dwFlags,pulStreamNumber)
- #define ISpVoice_SpeakStream(This,pStream,dwFlags,pulStreamNumber)
- (This)->lpVtbl -> SpeakStream(This,pStream,dwFlags,pulStreamNumber)
- #define ISpVoice_GetStatus(This,pStatus,ppszLastBookmark)
- (This)->lpVtbl -> GetStatus(This,pStatus,ppszLastBookmark)
- #define ISpVoice_Skip(This,pItemType,lNumItems,pulNumSkipped)
- (This)->lpVtbl -> Skip(This,pItemType,lNumItems,pulNumSkipped)
- #define ISpVoice_SetPriority(This,ePriority)
- (This)->lpVtbl -> SetPriority(This,ePriority)
- #define ISpVoice_GetPriority(This,pePriority)
- (This)->lpVtbl -> GetPriority(This,pePriority)
- #define ISpVoice_SetAlertBoundary(This,eBoundary)
- (This)->lpVtbl -> SetAlertBoundary(This,eBoundary)
- #define ISpVoice_GetAlertBoundary(This,peBoundary)
- (This)->lpVtbl -> GetAlertBoundary(This,peBoundary)
- #define ISpVoice_SetRate(This,RateAdjust)
- (This)->lpVtbl -> SetRate(This,RateAdjust)
- #define ISpVoice_GetRate(This,pRateAdjust)
- (This)->lpVtbl -> GetRate(This,pRateAdjust)
- #define ISpVoice_SetVolume(This,usVolume)
- (This)->lpVtbl -> SetVolume(This,usVolume)
- #define ISpVoice_GetVolume(This,pusVolume)
- (This)->lpVtbl -> GetVolume(This,pusVolume)
- #define ISpVoice_WaitUntilDone(This,msTimeout)
- (This)->lpVtbl -> WaitUntilDone(This,msTimeout)
- #define ISpVoice_SetSyncSpeakTimeout(This,msTimeout)
- (This)->lpVtbl -> SetSyncSpeakTimeout(This,msTimeout)
- #define ISpVoice_GetSyncSpeakTimeout(This,pmsTimeout)
- (This)->lpVtbl -> GetSyncSpeakTimeout(This,pmsTimeout)
- #define ISpVoice_SpeakCompleteEvent(This)
- (This)->lpVtbl -> SpeakCompleteEvent(This)
- #define ISpVoice_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
- (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
- #define ISpVoice_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
- (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
- #endif /* COBJMACROS */
- #endif /* C style interface */
- HRESULT STDMETHODCALLTYPE ISpVoice_SetOutput_Proxy(
- ISpVoice * This,
- /* [in] */ IUnknown *pUnkOutput,
- /* [in] */ BOOL fAllowFormatChanges);
- void __RPC_STUB ISpVoice_SetOutput_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputObjectToken_Proxy(
- ISpVoice * This,
- /* [out] */ ISpObjectToken **ppObjectToken);
- void __RPC_STUB ISpVoice_GetOutputObjectToken_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputStream_Proxy(
- ISpVoice * This,
- /* [out] */ ISpStreamFormat **ppStream);
- void __RPC_STUB ISpVoice_GetOutputStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_Pause_Proxy(
- ISpVoice * This);
- void __RPC_STUB ISpVoice_Pause_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_Resume_Proxy(
- ISpVoice * This);
- void __RPC_STUB ISpVoice_Resume_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetVoice_Proxy(
- ISpVoice * This,
- /* [in] */ ISpObjectToken *pToken);
- void __RPC_STUB ISpVoice_SetVoice_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetVoice_Proxy(
- ISpVoice * This,
- /* [out] */ ISpObjectToken **ppToken);
- void __RPC_STUB ISpVoice_GetVoice_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_Speak_Proxy(
- ISpVoice * This,
- /* [string][in] */ const WCHAR *pwcs,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
- void __RPC_STUB ISpVoice_Speak_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SpeakStream_Proxy(
- ISpVoice * This,
- /* [in] */ IStream *pStream,
- /* [in] */ DWORD dwFlags,
- /* [out] */ ULONG *pulStreamNumber);
- void __RPC_STUB ISpVoice_SpeakStream_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetStatus_Proxy(
- ISpVoice * This,
- /* [out] */ SPVOICESTATUS *pStatus,
- /* [string][out] */ WCHAR **ppszLastBookmark);
- void __RPC_STUB ISpVoice_GetStatus_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_Skip_Proxy(
- ISpVoice * This,
- /* [string][in] */ WCHAR *pItemType,
- /* [in] */ long lNumItems,
- /* [out] */ ULONG *pulNumSkipped);
- void __RPC_STUB ISpVoice_Skip_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetPriority_Proxy(
- ISpVoice * This,
- /* [in] */ SPVPRIORITY ePriority);
- void __RPC_STUB ISpVoice_SetPriority_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetPriority_Proxy(
- ISpVoice * This,
- /* [out] */ SPVPRIORITY *pePriority);
- void __RPC_STUB ISpVoice_GetPriority_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetAlertBoundary_Proxy(
- ISpVoice * This,
- /* [in] */ SPEVENTENUM eBoundary);
- void __RPC_STUB ISpVoice_SetAlertBoundary_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_GetAlertBoundary_Proxy(
- ISpVoice * This,
- /* [out] */ SPEVENTENUM *peBoundary);
- void __RPC_STUB ISpVoice_GetAlertBoundary_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase);
- HRESULT STDMETHODCALLTYPE ISpVoice_SetRate_Proxy(
- ISpVoice * This,
- /* [in] */ long RateAdjust);
- void __RPC_STUB ISpVoice_SetRate_Stub(