Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25601 lines
856 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for sapi.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __sapi_h__
  27. #define __sapi_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ISpNotifySource_FWD_DEFINED__
  33. #define __ISpNotifySource_FWD_DEFINED__
  34. typedef interface ISpNotifySource ISpNotifySource;
  35. #endif /* __ISpNotifySource_FWD_DEFINED__ */
  36. #ifndef __ISpNotifySink_FWD_DEFINED__
  37. #define __ISpNotifySink_FWD_DEFINED__
  38. typedef interface ISpNotifySink ISpNotifySink;
  39. #endif /* __ISpNotifySink_FWD_DEFINED__ */
  40. #ifndef __ISpNotifyTranslator_FWD_DEFINED__
  41. #define __ISpNotifyTranslator_FWD_DEFINED__
  42. typedef interface ISpNotifyTranslator ISpNotifyTranslator;
  43. #endif /* __ISpNotifyTranslator_FWD_DEFINED__ */
  44. #ifndef __ISpDataKey_FWD_DEFINED__
  45. #define __ISpDataKey_FWD_DEFINED__
  46. typedef interface ISpDataKey ISpDataKey;
  47. #endif /* __ISpDataKey_FWD_DEFINED__ */
  48. #ifndef __ISpRegDataKey_FWD_DEFINED__
  49. #define __ISpRegDataKey_FWD_DEFINED__
  50. typedef interface ISpRegDataKey ISpRegDataKey;
  51. #endif /* __ISpRegDataKey_FWD_DEFINED__ */
  52. #ifndef __ISpObjectTokenCategory_FWD_DEFINED__
  53. #define __ISpObjectTokenCategory_FWD_DEFINED__
  54. typedef interface ISpObjectTokenCategory ISpObjectTokenCategory;
  55. #endif /* __ISpObjectTokenCategory_FWD_DEFINED__ */
  56. #ifndef __ISpObjectToken_FWD_DEFINED__
  57. #define __ISpObjectToken_FWD_DEFINED__
  58. typedef interface ISpObjectToken ISpObjectToken;
  59. #endif /* __ISpObjectToken_FWD_DEFINED__ */
  60. #ifndef __ISpObjectTokenInit_FWD_DEFINED__
  61. #define __ISpObjectTokenInit_FWD_DEFINED__
  62. typedef interface ISpObjectTokenInit ISpObjectTokenInit;
  63. #endif /* __ISpObjectTokenInit_FWD_DEFINED__ */
  64. #ifndef __IEnumSpObjectTokens_FWD_DEFINED__
  65. #define __IEnumSpObjectTokens_FWD_DEFINED__
  66. typedef interface IEnumSpObjectTokens IEnumSpObjectTokens;
  67. #endif /* __IEnumSpObjectTokens_FWD_DEFINED__ */
  68. #ifndef __ISpObjectWithToken_FWD_DEFINED__
  69. #define __ISpObjectWithToken_FWD_DEFINED__
  70. typedef interface ISpObjectWithToken ISpObjectWithToken;
  71. #endif /* __ISpObjectWithToken_FWD_DEFINED__ */
  72. #ifndef __ISpResourceManager_FWD_DEFINED__
  73. #define __ISpResourceManager_FWD_DEFINED__
  74. typedef interface ISpResourceManager ISpResourceManager;
  75. #endif /* __ISpResourceManager_FWD_DEFINED__ */
  76. #ifndef __ISpEventSource_FWD_DEFINED__
  77. #define __ISpEventSource_FWD_DEFINED__
  78. typedef interface ISpEventSource ISpEventSource;
  79. #endif /* __ISpEventSource_FWD_DEFINED__ */
  80. #ifndef __ISpEventSink_FWD_DEFINED__
  81. #define __ISpEventSink_FWD_DEFINED__
  82. typedef interface ISpEventSink ISpEventSink;
  83. #endif /* __ISpEventSink_FWD_DEFINED__ */
  84. #ifndef __ISpStreamFormat_FWD_DEFINED__
  85. #define __ISpStreamFormat_FWD_DEFINED__
  86. typedef interface ISpStreamFormat ISpStreamFormat;
  87. #endif /* __ISpStreamFormat_FWD_DEFINED__ */
  88. #ifndef __ISpStream_FWD_DEFINED__
  89. #define __ISpStream_FWD_DEFINED__
  90. typedef interface ISpStream ISpStream;
  91. #endif /* __ISpStream_FWD_DEFINED__ */
  92. #ifndef __ISpStreamFormatConverter_FWD_DEFINED__
  93. #define __ISpStreamFormatConverter_FWD_DEFINED__
  94. typedef interface ISpStreamFormatConverter ISpStreamFormatConverter;
  95. #endif /* __ISpStreamFormatConverter_FWD_DEFINED__ */
  96. #ifndef __ISpAudio_FWD_DEFINED__
  97. #define __ISpAudio_FWD_DEFINED__
  98. typedef interface ISpAudio ISpAudio;
  99. #endif /* __ISpAudio_FWD_DEFINED__ */
  100. #ifndef __ISpMMSysAudio_FWD_DEFINED__
  101. #define __ISpMMSysAudio_FWD_DEFINED__
  102. typedef interface ISpMMSysAudio ISpMMSysAudio;
  103. #endif /* __ISpMMSysAudio_FWD_DEFINED__ */
  104. #ifndef __ISpTranscript_FWD_DEFINED__
  105. #define __ISpTranscript_FWD_DEFINED__
  106. typedef interface ISpTranscript ISpTranscript;
  107. #endif /* __ISpTranscript_FWD_DEFINED__ */
  108. #ifndef __ISpLexicon_FWD_DEFINED__
  109. #define __ISpLexicon_FWD_DEFINED__
  110. typedef interface ISpLexicon ISpLexicon;
  111. #endif /* __ISpLexicon_FWD_DEFINED__ */
  112. #ifndef __ISpContainerLexicon_FWD_DEFINED__
  113. #define __ISpContainerLexicon_FWD_DEFINED__
  114. typedef interface ISpContainerLexicon ISpContainerLexicon;
  115. #endif /* __ISpContainerLexicon_FWD_DEFINED__ */
  116. #ifndef __ISpPhoneConverter_FWD_DEFINED__
  117. #define __ISpPhoneConverter_FWD_DEFINED__
  118. typedef interface ISpPhoneConverter ISpPhoneConverter;
  119. #endif /* __ISpPhoneConverter_FWD_DEFINED__ */
  120. #ifndef __ISpVoice_FWD_DEFINED__
  121. #define __ISpVoice_FWD_DEFINED__
  122. typedef interface ISpVoice ISpVoice;
  123. #endif /* __ISpVoice_FWD_DEFINED__ */
  124. #ifndef __ISpPhrase_FWD_DEFINED__
  125. #define __ISpPhrase_FWD_DEFINED__
  126. typedef interface ISpPhrase ISpPhrase;
  127. #endif /* __ISpPhrase_FWD_DEFINED__ */
  128. #ifndef __ISpPhraseAlt_FWD_DEFINED__
  129. #define __ISpPhraseAlt_FWD_DEFINED__
  130. typedef interface ISpPhraseAlt ISpPhraseAlt;
  131. #endif /* __ISpPhraseAlt_FWD_DEFINED__ */
  132. #ifndef __ISpRecoResult_FWD_DEFINED__
  133. #define __ISpRecoResult_FWD_DEFINED__
  134. typedef interface ISpRecoResult ISpRecoResult;
  135. #endif /* __ISpRecoResult_FWD_DEFINED__ */
  136. #ifndef __ISpGrammarBuilder_FWD_DEFINED__
  137. #define __ISpGrammarBuilder_FWD_DEFINED__
  138. typedef interface ISpGrammarBuilder ISpGrammarBuilder;
  139. #endif /* __ISpGrammarBuilder_FWD_DEFINED__ */
  140. #ifndef __ISpRecoGrammar_FWD_DEFINED__
  141. #define __ISpRecoGrammar_FWD_DEFINED__
  142. typedef interface ISpRecoGrammar ISpRecoGrammar;
  143. #endif /* __ISpRecoGrammar_FWD_DEFINED__ */
  144. #ifndef __ISpRecoContext_FWD_DEFINED__
  145. #define __ISpRecoContext_FWD_DEFINED__
  146. typedef interface ISpRecoContext ISpRecoContext;
  147. #endif /* __ISpRecoContext_FWD_DEFINED__ */
  148. #ifndef __ISpProperties_FWD_DEFINED__
  149. #define __ISpProperties_FWD_DEFINED__
  150. typedef interface ISpProperties ISpProperties;
  151. #endif /* __ISpProperties_FWD_DEFINED__ */
  152. #ifndef __ISpRecognizer_FWD_DEFINED__
  153. #define __ISpRecognizer_FWD_DEFINED__
  154. typedef interface ISpRecognizer ISpRecognizer;
  155. #endif /* __ISpRecognizer_FWD_DEFINED__ */
  156. #ifndef __ISpeechDataKey_FWD_DEFINED__
  157. #define __ISpeechDataKey_FWD_DEFINED__
  158. typedef interface ISpeechDataKey ISpeechDataKey;
  159. #endif /* __ISpeechDataKey_FWD_DEFINED__ */
  160. #ifndef __ISpeechObjectToken_FWD_DEFINED__
  161. #define __ISpeechObjectToken_FWD_DEFINED__
  162. typedef interface ISpeechObjectToken ISpeechObjectToken;
  163. #endif /* __ISpeechObjectToken_FWD_DEFINED__ */
  164. #ifndef __ISpeechObjectTokens_FWD_DEFINED__
  165. #define __ISpeechObjectTokens_FWD_DEFINED__
  166. typedef interface ISpeechObjectTokens ISpeechObjectTokens;
  167. #endif /* __ISpeechObjectTokens_FWD_DEFINED__ */
  168. #ifndef __ISpeechObjectTokenCategory_FWD_DEFINED__
  169. #define __ISpeechObjectTokenCategory_FWD_DEFINED__
  170. typedef interface ISpeechObjectTokenCategory ISpeechObjectTokenCategory;
  171. #endif /* __ISpeechObjectTokenCategory_FWD_DEFINED__ */
  172. #ifndef __ISpeechAudioBufferInfo_FWD_DEFINED__
  173. #define __ISpeechAudioBufferInfo_FWD_DEFINED__
  174. typedef interface ISpeechAudioBufferInfo ISpeechAudioBufferInfo;
  175. #endif /* __ISpeechAudioBufferInfo_FWD_DEFINED__ */
  176. #ifndef __ISpeechAudioStatus_FWD_DEFINED__
  177. #define __ISpeechAudioStatus_FWD_DEFINED__
  178. typedef interface ISpeechAudioStatus ISpeechAudioStatus;
  179. #endif /* __ISpeechAudioStatus_FWD_DEFINED__ */
  180. #ifndef __ISpeechAudioFormat_FWD_DEFINED__
  181. #define __ISpeechAudioFormat_FWD_DEFINED__
  182. typedef interface ISpeechAudioFormat ISpeechAudioFormat;
  183. #endif /* __ISpeechAudioFormat_FWD_DEFINED__ */
  184. #ifndef __ISpeechWaveFormatEx_FWD_DEFINED__
  185. #define __ISpeechWaveFormatEx_FWD_DEFINED__
  186. typedef interface ISpeechWaveFormatEx ISpeechWaveFormatEx;
  187. #endif /* __ISpeechWaveFormatEx_FWD_DEFINED__ */
  188. #ifndef __ISpeechBaseStream_FWD_DEFINED__
  189. #define __ISpeechBaseStream_FWD_DEFINED__
  190. typedef interface ISpeechBaseStream ISpeechBaseStream;
  191. #endif /* __ISpeechBaseStream_FWD_DEFINED__ */
  192. #ifndef __ISpeechFileStream_FWD_DEFINED__
  193. #define __ISpeechFileStream_FWD_DEFINED__
  194. typedef interface ISpeechFileStream ISpeechFileStream;
  195. #endif /* __ISpeechFileStream_FWD_DEFINED__ */
  196. #ifndef __ISpeechMemoryStream_FWD_DEFINED__
  197. #define __ISpeechMemoryStream_FWD_DEFINED__
  198. typedef interface ISpeechMemoryStream ISpeechMemoryStream;
  199. #endif /* __ISpeechMemoryStream_FWD_DEFINED__ */
  200. #ifndef __ISpeechCustomStream_FWD_DEFINED__
  201. #define __ISpeechCustomStream_FWD_DEFINED__
  202. typedef interface ISpeechCustomStream ISpeechCustomStream;
  203. #endif /* __ISpeechCustomStream_FWD_DEFINED__ */
  204. #ifndef __ISpeechAudio_FWD_DEFINED__
  205. #define __ISpeechAudio_FWD_DEFINED__
  206. typedef interface ISpeechAudio ISpeechAudio;
  207. #endif /* __ISpeechAudio_FWD_DEFINED__ */
  208. #ifndef __ISpeechMMSysAudio_FWD_DEFINED__
  209. #define __ISpeechMMSysAudio_FWD_DEFINED__
  210. typedef interface ISpeechMMSysAudio ISpeechMMSysAudio;
  211. #endif /* __ISpeechMMSysAudio_FWD_DEFINED__ */
  212. #ifndef __ISpeechVoice_FWD_DEFINED__
  213. #define __ISpeechVoice_FWD_DEFINED__
  214. typedef interface ISpeechVoice ISpeechVoice;
  215. #endif /* __ISpeechVoice_FWD_DEFINED__ */
  216. #ifndef __ISpeechVoiceStatus_FWD_DEFINED__
  217. #define __ISpeechVoiceStatus_FWD_DEFINED__
  218. typedef interface ISpeechVoiceStatus ISpeechVoiceStatus;
  219. #endif /* __ISpeechVoiceStatus_FWD_DEFINED__ */
  220. #ifndef ___ISpeechVoiceEvents_FWD_DEFINED__
  221. #define ___ISpeechVoiceEvents_FWD_DEFINED__
  222. typedef interface _ISpeechVoiceEvents _ISpeechVoiceEvents;
  223. #endif /* ___ISpeechVoiceEvents_FWD_DEFINED__ */
  224. #ifndef __ISpeechRecognizer_FWD_DEFINED__
  225. #define __ISpeechRecognizer_FWD_DEFINED__
  226. typedef interface ISpeechRecognizer ISpeechRecognizer;
  227. #endif /* __ISpeechRecognizer_FWD_DEFINED__ */
  228. #ifndef __ISpeechRecognizerStatus_FWD_DEFINED__
  229. #define __ISpeechRecognizerStatus_FWD_DEFINED__
  230. typedef interface ISpeechRecognizerStatus ISpeechRecognizerStatus;
  231. #endif /* __ISpeechRecognizerStatus_FWD_DEFINED__ */
  232. #ifndef __ISpeechRecoContext_FWD_DEFINED__
  233. #define __ISpeechRecoContext_FWD_DEFINED__
  234. typedef interface ISpeechRecoContext ISpeechRecoContext;
  235. #endif /* __ISpeechRecoContext_FWD_DEFINED__ */
  236. #ifndef __ISpeechRecoGrammar_FWD_DEFINED__
  237. #define __ISpeechRecoGrammar_FWD_DEFINED__
  238. typedef interface ISpeechRecoGrammar ISpeechRecoGrammar;
  239. #endif /* __ISpeechRecoGrammar_FWD_DEFINED__ */
  240. #ifndef ___ISpeechRecoContextEvents_FWD_DEFINED__
  241. #define ___ISpeechRecoContextEvents_FWD_DEFINED__
  242. typedef interface _ISpeechRecoContextEvents _ISpeechRecoContextEvents;
  243. #endif /* ___ISpeechRecoContextEvents_FWD_DEFINED__ */
  244. #ifndef __ISpeechGrammarRule_FWD_DEFINED__
  245. #define __ISpeechGrammarRule_FWD_DEFINED__
  246. typedef interface ISpeechGrammarRule ISpeechGrammarRule;
  247. #endif /* __ISpeechGrammarRule_FWD_DEFINED__ */
  248. #ifndef __ISpeechGrammarRules_FWD_DEFINED__
  249. #define __ISpeechGrammarRules_FWD_DEFINED__
  250. typedef interface ISpeechGrammarRules ISpeechGrammarRules;
  251. #endif /* __ISpeechGrammarRules_FWD_DEFINED__ */
  252. #ifndef __ISpeechGrammarRuleState_FWD_DEFINED__
  253. #define __ISpeechGrammarRuleState_FWD_DEFINED__
  254. typedef interface ISpeechGrammarRuleState ISpeechGrammarRuleState;
  255. #endif /* __ISpeechGrammarRuleState_FWD_DEFINED__ */
  256. #ifndef __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  257. #define __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  258. typedef interface ISpeechGrammarRuleStateTransition ISpeechGrammarRuleStateTransition;
  259. #endif /* __ISpeechGrammarRuleStateTransition_FWD_DEFINED__ */
  260. #ifndef __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  261. #define __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  262. typedef interface ISpeechGrammarRuleStateTransitions ISpeechGrammarRuleStateTransitions;
  263. #endif /* __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__ */
  264. #ifndef __ISpeechTextSelectionInformation_FWD_DEFINED__
  265. #define __ISpeechTextSelectionInformation_FWD_DEFINED__
  266. typedef interface ISpeechTextSelectionInformation ISpeechTextSelectionInformation;
  267. #endif /* __ISpeechTextSelectionInformation_FWD_DEFINED__ */
  268. #ifndef __ISpeechRecoResult_FWD_DEFINED__
  269. #define __ISpeechRecoResult_FWD_DEFINED__
  270. typedef interface ISpeechRecoResult ISpeechRecoResult;
  271. #endif /* __ISpeechRecoResult_FWD_DEFINED__ */
  272. #ifndef __ISpeechRecoResultTimes_FWD_DEFINED__
  273. #define __ISpeechRecoResultTimes_FWD_DEFINED__
  274. typedef interface ISpeechRecoResultTimes ISpeechRecoResultTimes;
  275. #endif /* __ISpeechRecoResultTimes_FWD_DEFINED__ */
  276. #ifndef __ISpeechPhraseAlternate_FWD_DEFINED__
  277. #define __ISpeechPhraseAlternate_FWD_DEFINED__
  278. typedef interface ISpeechPhraseAlternate ISpeechPhraseAlternate;
  279. #endif /* __ISpeechPhraseAlternate_FWD_DEFINED__ */
  280. #ifndef __ISpeechPhraseAlternates_FWD_DEFINED__
  281. #define __ISpeechPhraseAlternates_FWD_DEFINED__
  282. typedef interface ISpeechPhraseAlternates ISpeechPhraseAlternates;
  283. #endif /* __ISpeechPhraseAlternates_FWD_DEFINED__ */
  284. #ifndef __ISpeechPhraseInfo_FWD_DEFINED__
  285. #define __ISpeechPhraseInfo_FWD_DEFINED__
  286. typedef interface ISpeechPhraseInfo ISpeechPhraseInfo;
  287. #endif /* __ISpeechPhraseInfo_FWD_DEFINED__ */
  288. #ifndef __ISpeechPhraseElement_FWD_DEFINED__
  289. #define __ISpeechPhraseElement_FWD_DEFINED__
  290. typedef interface ISpeechPhraseElement ISpeechPhraseElement;
  291. #endif /* __ISpeechPhraseElement_FWD_DEFINED__ */
  292. #ifndef __ISpeechPhraseElements_FWD_DEFINED__
  293. #define __ISpeechPhraseElements_FWD_DEFINED__
  294. typedef interface ISpeechPhraseElements ISpeechPhraseElements;
  295. #endif /* __ISpeechPhraseElements_FWD_DEFINED__ */
  296. #ifndef __ISpeechPhraseReplacement_FWD_DEFINED__
  297. #define __ISpeechPhraseReplacement_FWD_DEFINED__
  298. typedef interface ISpeechPhraseReplacement ISpeechPhraseReplacement;
  299. #endif /* __ISpeechPhraseReplacement_FWD_DEFINED__ */
  300. #ifndef __ISpeechPhraseReplacements_FWD_DEFINED__
  301. #define __ISpeechPhraseReplacements_FWD_DEFINED__
  302. typedef interface ISpeechPhraseReplacements ISpeechPhraseReplacements;
  303. #endif /* __ISpeechPhraseReplacements_FWD_DEFINED__ */
  304. #ifndef __ISpeechPhraseProperty_FWD_DEFINED__
  305. #define __ISpeechPhraseProperty_FWD_DEFINED__
  306. typedef interface ISpeechPhraseProperty ISpeechPhraseProperty;
  307. #endif /* __ISpeechPhraseProperty_FWD_DEFINED__ */
  308. #ifndef __ISpeechPhraseProperties_FWD_DEFINED__
  309. #define __ISpeechPhraseProperties_FWD_DEFINED__
  310. typedef interface ISpeechPhraseProperties ISpeechPhraseProperties;
  311. #endif /* __ISpeechPhraseProperties_FWD_DEFINED__ */
  312. #ifndef __ISpeechPhraseRule_FWD_DEFINED__
  313. #define __ISpeechPhraseRule_FWD_DEFINED__
  314. typedef interface ISpeechPhraseRule ISpeechPhraseRule;
  315. #endif /* __ISpeechPhraseRule_FWD_DEFINED__ */
  316. #ifndef __ISpeechPhraseRules_FWD_DEFINED__
  317. #define __ISpeechPhraseRules_FWD_DEFINED__
  318. typedef interface ISpeechPhraseRules ISpeechPhraseRules;
  319. #endif /* __ISpeechPhraseRules_FWD_DEFINED__ */
  320. #ifndef __ISpeechLexicon_FWD_DEFINED__
  321. #define __ISpeechLexicon_FWD_DEFINED__
  322. typedef interface ISpeechLexicon ISpeechLexicon;
  323. #endif /* __ISpeechLexicon_FWD_DEFINED__ */
  324. #ifndef __ISpeechLexiconWords_FWD_DEFINED__
  325. #define __ISpeechLexiconWords_FWD_DEFINED__
  326. typedef interface ISpeechLexiconWords ISpeechLexiconWords;
  327. #endif /* __ISpeechLexiconWords_FWD_DEFINED__ */
  328. #ifndef __ISpeechLexiconWord_FWD_DEFINED__
  329. #define __ISpeechLexiconWord_FWD_DEFINED__
  330. typedef interface ISpeechLexiconWord ISpeechLexiconWord;
  331. #endif /* __ISpeechLexiconWord_FWD_DEFINED__ */
  332. #ifndef __ISpeechLexiconPronunciations_FWD_DEFINED__
  333. #define __ISpeechLexiconPronunciations_FWD_DEFINED__
  334. typedef interface ISpeechLexiconPronunciations ISpeechLexiconPronunciations;
  335. #endif /* __ISpeechLexiconPronunciations_FWD_DEFINED__ */
  336. #ifndef __ISpeechLexiconPronunciation_FWD_DEFINED__
  337. #define __ISpeechLexiconPronunciation_FWD_DEFINED__
  338. typedef interface ISpeechLexiconPronunciation ISpeechLexiconPronunciation;
  339. #endif /* __ISpeechLexiconPronunciation_FWD_DEFINED__ */
  340. #ifndef __ISpeechPhraseInfoBuilder_FWD_DEFINED__
  341. #define __ISpeechPhraseInfoBuilder_FWD_DEFINED__
  342. typedef interface ISpeechPhraseInfoBuilder ISpeechPhraseInfoBuilder;
  343. #endif /* __ISpeechPhraseInfoBuilder_FWD_DEFINED__ */
  344. #ifndef __ISpeechPhoneConverter_FWD_DEFINED__
  345. #define __ISpeechPhoneConverter_FWD_DEFINED__
  346. typedef interface ISpeechPhoneConverter ISpeechPhoneConverter;
  347. #endif /* __ISpeechPhoneConverter_FWD_DEFINED__ */
  348. #ifndef __SpNotifyTranslator_FWD_DEFINED__
  349. #define __SpNotifyTranslator_FWD_DEFINED__
  350. #ifdef __cplusplus
  351. typedef class SpNotifyTranslator SpNotifyTranslator;
  352. #else
  353. typedef struct SpNotifyTranslator SpNotifyTranslator;
  354. #endif /* __cplusplus */
  355. #endif /* __SpNotifyTranslator_FWD_DEFINED__ */
  356. #ifndef __SpObjectTokenCategory_FWD_DEFINED__
  357. #define __SpObjectTokenCategory_FWD_DEFINED__
  358. #ifdef __cplusplus
  359. typedef class SpObjectTokenCategory SpObjectTokenCategory;
  360. #else
  361. typedef struct SpObjectTokenCategory SpObjectTokenCategory;
  362. #endif /* __cplusplus */
  363. #endif /* __SpObjectTokenCategory_FWD_DEFINED__ */
  364. #ifndef __SpObjectToken_FWD_DEFINED__
  365. #define __SpObjectToken_FWD_DEFINED__
  366. #ifdef __cplusplus
  367. typedef class SpObjectToken SpObjectToken;
  368. #else
  369. typedef struct SpObjectToken SpObjectToken;
  370. #endif /* __cplusplus */
  371. #endif /* __SpObjectToken_FWD_DEFINED__ */
  372. #ifndef __SpResourceManager_FWD_DEFINED__
  373. #define __SpResourceManager_FWD_DEFINED__
  374. #ifdef __cplusplus
  375. typedef class SpResourceManager SpResourceManager;
  376. #else
  377. typedef struct SpResourceManager SpResourceManager;
  378. #endif /* __cplusplus */
  379. #endif /* __SpResourceManager_FWD_DEFINED__ */
  380. #ifndef __SpStreamFormatConverter_FWD_DEFINED__
  381. #define __SpStreamFormatConverter_FWD_DEFINED__
  382. #ifdef __cplusplus
  383. typedef class SpStreamFormatConverter SpStreamFormatConverter;
  384. #else
  385. typedef struct SpStreamFormatConverter SpStreamFormatConverter;
  386. #endif /* __cplusplus */
  387. #endif /* __SpStreamFormatConverter_FWD_DEFINED__ */
  388. #ifndef __SpMMAudioEnum_FWD_DEFINED__
  389. #define __SpMMAudioEnum_FWD_DEFINED__
  390. #ifdef __cplusplus
  391. typedef class SpMMAudioEnum SpMMAudioEnum;
  392. #else
  393. typedef struct SpMMAudioEnum SpMMAudioEnum;
  394. #endif /* __cplusplus */
  395. #endif /* __SpMMAudioEnum_FWD_DEFINED__ */
  396. #ifndef __SpMMAudioIn_FWD_DEFINED__
  397. #define __SpMMAudioIn_FWD_DEFINED__
  398. #ifdef __cplusplus
  399. typedef class SpMMAudioIn SpMMAudioIn;
  400. #else
  401. typedef struct SpMMAudioIn SpMMAudioIn;
  402. #endif /* __cplusplus */
  403. #endif /* __SpMMAudioIn_FWD_DEFINED__ */
  404. #ifndef __SpMMAudioOut_FWD_DEFINED__
  405. #define __SpMMAudioOut_FWD_DEFINED__
  406. #ifdef __cplusplus
  407. typedef class SpMMAudioOut SpMMAudioOut;
  408. #else
  409. typedef struct SpMMAudioOut SpMMAudioOut;
  410. #endif /* __cplusplus */
  411. #endif /* __SpMMAudioOut_FWD_DEFINED__ */
  412. #ifndef __SpRecPlayAudio_FWD_DEFINED__
  413. #define __SpRecPlayAudio_FWD_DEFINED__
  414. #ifdef __cplusplus
  415. typedef class SpRecPlayAudio SpRecPlayAudio;
  416. #else
  417. typedef struct SpRecPlayAudio SpRecPlayAudio;
  418. #endif /* __cplusplus */
  419. #endif /* __SpRecPlayAudio_FWD_DEFINED__ */
  420. #ifndef __SpStream_FWD_DEFINED__
  421. #define __SpStream_FWD_DEFINED__
  422. #ifdef __cplusplus
  423. typedef class SpStream SpStream;
  424. #else
  425. typedef struct SpStream SpStream;
  426. #endif /* __cplusplus */
  427. #endif /* __SpStream_FWD_DEFINED__ */
  428. #ifndef __SpVoice_FWD_DEFINED__
  429. #define __SpVoice_FWD_DEFINED__
  430. #ifdef __cplusplus
  431. typedef class SpVoice SpVoice;
  432. #else
  433. typedef struct SpVoice SpVoice;
  434. #endif /* __cplusplus */
  435. #endif /* __SpVoice_FWD_DEFINED__ */
  436. #ifndef __SpSharedRecoContext_FWD_DEFINED__
  437. #define __SpSharedRecoContext_FWD_DEFINED__
  438. #ifdef __cplusplus
  439. typedef class SpSharedRecoContext SpSharedRecoContext;
  440. #else
  441. typedef struct SpSharedRecoContext SpSharedRecoContext;
  442. #endif /* __cplusplus */
  443. #endif /* __SpSharedRecoContext_FWD_DEFINED__ */
  444. #ifndef __SpInprocRecognizer_FWD_DEFINED__
  445. #define __SpInprocRecognizer_FWD_DEFINED__
  446. #ifdef __cplusplus
  447. typedef class SpInprocRecognizer SpInprocRecognizer;
  448. #else
  449. typedef struct SpInprocRecognizer SpInprocRecognizer;
  450. #endif /* __cplusplus */
  451. #endif /* __SpInprocRecognizer_FWD_DEFINED__ */
  452. #ifndef __SpSharedRecognizer_FWD_DEFINED__
  453. #define __SpSharedRecognizer_FWD_DEFINED__
  454. #ifdef __cplusplus
  455. typedef class SpSharedRecognizer SpSharedRecognizer;
  456. #else
  457. typedef struct SpSharedRecognizer SpSharedRecognizer;
  458. #endif /* __cplusplus */
  459. #endif /* __SpSharedRecognizer_FWD_DEFINED__ */
  460. #ifndef __SpLexicon_FWD_DEFINED__
  461. #define __SpLexicon_FWD_DEFINED__
  462. #ifdef __cplusplus
  463. typedef class SpLexicon SpLexicon;
  464. #else
  465. typedef struct SpLexicon SpLexicon;
  466. #endif /* __cplusplus */
  467. #endif /* __SpLexicon_FWD_DEFINED__ */
  468. #ifndef __SpUnCompressedLexicon_FWD_DEFINED__
  469. #define __SpUnCompressedLexicon_FWD_DEFINED__
  470. #ifdef __cplusplus
  471. typedef class SpUnCompressedLexicon SpUnCompressedLexicon;
  472. #else
  473. typedef struct SpUnCompressedLexicon SpUnCompressedLexicon;
  474. #endif /* __cplusplus */
  475. #endif /* __SpUnCompressedLexicon_FWD_DEFINED__ */
  476. #ifndef __SpCompressedLexicon_FWD_DEFINED__
  477. #define __SpCompressedLexicon_FWD_DEFINED__
  478. #ifdef __cplusplus
  479. typedef class SpCompressedLexicon SpCompressedLexicon;
  480. #else
  481. typedef struct SpCompressedLexicon SpCompressedLexicon;
  482. #endif /* __cplusplus */
  483. #endif /* __SpCompressedLexicon_FWD_DEFINED__ */
  484. #ifndef __SpPhoneConverter_FWD_DEFINED__
  485. #define __SpPhoneConverter_FWD_DEFINED__
  486. #ifdef __cplusplus
  487. typedef class SpPhoneConverter SpPhoneConverter;
  488. #else
  489. typedef struct SpPhoneConverter SpPhoneConverter;
  490. #endif /* __cplusplus */
  491. #endif /* __SpPhoneConverter_FWD_DEFINED__ */
  492. #ifndef __SpNullPhoneConverter_FWD_DEFINED__
  493. #define __SpNullPhoneConverter_FWD_DEFINED__
  494. #ifdef __cplusplus
  495. typedef class SpNullPhoneConverter SpNullPhoneConverter;
  496. #else
  497. typedef struct SpNullPhoneConverter SpNullPhoneConverter;
  498. #endif /* __cplusplus */
  499. #endif /* __SpNullPhoneConverter_FWD_DEFINED__ */
  500. #ifndef __SpTextSelectionInformation_FWD_DEFINED__
  501. #define __SpTextSelectionInformation_FWD_DEFINED__
  502. #ifdef __cplusplus
  503. typedef class SpTextSelectionInformation SpTextSelectionInformation;
  504. #else
  505. typedef struct SpTextSelectionInformation SpTextSelectionInformation;
  506. #endif /* __cplusplus */
  507. #endif /* __SpTextSelectionInformation_FWD_DEFINED__ */
  508. #ifndef __SpPhraseInfoBuilder_FWD_DEFINED__
  509. #define __SpPhraseInfoBuilder_FWD_DEFINED__
  510. #ifdef __cplusplus
  511. typedef class SpPhraseInfoBuilder SpPhraseInfoBuilder;
  512. #else
  513. typedef struct SpPhraseInfoBuilder SpPhraseInfoBuilder;
  514. #endif /* __cplusplus */
  515. #endif /* __SpPhraseInfoBuilder_FWD_DEFINED__ */
  516. #ifndef __SpAudioFormat_FWD_DEFINED__
  517. #define __SpAudioFormat_FWD_DEFINED__
  518. #ifdef __cplusplus
  519. typedef class SpAudioFormat SpAudioFormat;
  520. #else
  521. typedef struct SpAudioFormat SpAudioFormat;
  522. #endif /* __cplusplus */
  523. #endif /* __SpAudioFormat_FWD_DEFINED__ */
  524. #ifndef __SpWaveFormatEx_FWD_DEFINED__
  525. #define __SpWaveFormatEx_FWD_DEFINED__
  526. #ifdef __cplusplus
  527. typedef class SpWaveFormatEx SpWaveFormatEx;
  528. #else
  529. typedef struct SpWaveFormatEx SpWaveFormatEx;
  530. #endif /* __cplusplus */
  531. #endif /* __SpWaveFormatEx_FWD_DEFINED__ */
  532. #ifndef __SpInProcRecoContext_FWD_DEFINED__
  533. #define __SpInProcRecoContext_FWD_DEFINED__
  534. #ifdef __cplusplus
  535. typedef class SpInProcRecoContext SpInProcRecoContext;
  536. #else
  537. typedef struct SpInProcRecoContext SpInProcRecoContext;
  538. #endif /* __cplusplus */
  539. #endif /* __SpInProcRecoContext_FWD_DEFINED__ */
  540. #ifndef __SpCustomStream_FWD_DEFINED__
  541. #define __SpCustomStream_FWD_DEFINED__
  542. #ifdef __cplusplus
  543. typedef class SpCustomStream SpCustomStream;
  544. #else
  545. typedef struct SpCustomStream SpCustomStream;
  546. #endif /* __cplusplus */
  547. #endif /* __SpCustomStream_FWD_DEFINED__ */
  548. #ifndef __SpFileStream_FWD_DEFINED__
  549. #define __SpFileStream_FWD_DEFINED__
  550. #ifdef __cplusplus
  551. typedef class SpFileStream SpFileStream;
  552. #else
  553. typedef struct SpFileStream SpFileStream;
  554. #endif /* __cplusplus */
  555. #endif /* __SpFileStream_FWD_DEFINED__ */
  556. #ifndef __SpMemoryStream_FWD_DEFINED__
  557. #define __SpMemoryStream_FWD_DEFINED__
  558. #ifdef __cplusplus
  559. typedef class SpMemoryStream SpMemoryStream;
  560. #else
  561. typedef struct SpMemoryStream SpMemoryStream;
  562. #endif /* __cplusplus */
  563. #endif /* __SpMemoryStream_FWD_DEFINED__ */
  564. /* header files for imported files */
  565. #include "oaidl.h"
  566. #include "ocidl.h"
  567. #ifdef __cplusplus
  568. extern "C"{
  569. #endif
  570. void * __RPC_USER MIDL_user_allocate(size_t);
  571. void __RPC_USER MIDL_user_free( void * );
  572. /* interface __MIDL_itf_sapi_0000 */
  573. /* [local] */
  574. #pragma warning(disable:4201) // Allow nameless structs/unions
  575. #pragma comment(lib, "sapi.lib")
  576. #if 0
  577. typedef /* [hidden][restricted] */ struct WAVEFORMATEX
  578. {
  579. WORD wFormatTag;
  580. WORD nChannels;
  581. DWORD nSamplesPerSec;
  582. DWORD nAvgBytesPerSec;
  583. WORD nBlockAlign;
  584. WORD wBitsPerSample;
  585. WORD cbSize;
  586. } WAVEFORMATEX;
  587. #else
  588. #include <mmsystem.h>
  589. #endif
  590. typedef /* [hidden] */
  591. enum SPDATAKEYLOCATION
  592. { SPDKL_DefaultLocation = 0,
  593. SPDKL_CurrentUser = 1,
  594. SPDKL_LocalMachine = 2,
  595. SPDKL_CurrentConfig = 5
  596. } SPDATAKEYLOCATION;
  597. #define SPDUI_EngineProperties L"EngineProperties"
  598. #define SPDUI_AddRemoveWord L"AddRemoveWord"
  599. #define SPDUI_UserTraining L"UserTraining"
  600. #define SPDUI_MicTraining L"MicTraining"
  601. #define SPDUI_RecoProfileProperties L"RecoProfileProperties"
  602. #define SPDUI_AudioProperties L"AudioProperties"
  603. #define SPDUI_AudioVolume L"AudioVolume"
  604. #define SPDUI_UserEnrollment L"UserEnrollment"
  605. typedef /* [hidden] */
  606. enum SPSTREAMFORMAT
  607. { SPSF_Default = -1,
  608. SPSF_NoAssignedFormat = 0,
  609. SPSF_Text = SPSF_NoAssignedFormat + 1,
  610. SPSF_NonStandardFormat = SPSF_Text + 1,
  611. SPSF_ExtendedAudioFormat = SPSF_NonStandardFormat + 1,
  612. SPSF_8kHz8BitMono = SPSF_ExtendedAudioFormat + 1,
  613. SPSF_8kHz8BitStereo = SPSF_8kHz8BitMono + 1,
  614. SPSF_8kHz16BitMono = SPSF_8kHz8BitStereo + 1,
  615. SPSF_8kHz16BitStereo = SPSF_8kHz16BitMono + 1,
  616. SPSF_11kHz8BitMono = SPSF_8kHz16BitStereo + 1,
  617. SPSF_11kHz8BitStereo = SPSF_11kHz8BitMono + 1,
  618. SPSF_11kHz16BitMono = SPSF_11kHz8BitStereo + 1,
  619. SPSF_11kHz16BitStereo = SPSF_11kHz16BitMono + 1,
  620. SPSF_12kHz8BitMono = SPSF_11kHz16BitStereo + 1,
  621. SPSF_12kHz8BitStereo = SPSF_12kHz8BitMono + 1,
  622. SPSF_12kHz16BitMono = SPSF_12kHz8BitStereo + 1,
  623. SPSF_12kHz16BitStereo = SPSF_12kHz16BitMono + 1,
  624. SPSF_16kHz8BitMono = SPSF_12kHz16BitStereo + 1,
  625. SPSF_16kHz8BitStereo = SPSF_16kHz8BitMono + 1,
  626. SPSF_16kHz16BitMono = SPSF_16kHz8BitStereo + 1,
  627. SPSF_16kHz16BitStereo = SPSF_16kHz16BitMono + 1,
  628. SPSF_22kHz8BitMono = SPSF_16kHz16BitStereo + 1,
  629. SPSF_22kHz8BitStereo = SPSF_22kHz8BitMono + 1,
  630. SPSF_22kHz16BitMono = SPSF_22kHz8BitStereo + 1,
  631. SPSF_22kHz16BitStereo = SPSF_22kHz16BitMono + 1,
  632. SPSF_24kHz8BitMono = SPSF_22kHz16BitStereo + 1,
  633. SPSF_24kHz8BitStereo = SPSF_24kHz8BitMono + 1,
  634. SPSF_24kHz16BitMono = SPSF_24kHz8BitStereo + 1,
  635. SPSF_24kHz16BitStereo = SPSF_24kHz16BitMono + 1,
  636. SPSF_32kHz8BitMono = SPSF_24kHz16BitStereo + 1,
  637. SPSF_32kHz8BitStereo = SPSF_32kHz8BitMono + 1,
  638. SPSF_32kHz16BitMono = SPSF_32kHz8BitStereo + 1,
  639. SPSF_32kHz16BitStereo = SPSF_32kHz16BitMono + 1,
  640. SPSF_44kHz8BitMono = SPSF_32kHz16BitStereo + 1,
  641. SPSF_44kHz8BitStereo = SPSF_44kHz8BitMono + 1,
  642. SPSF_44kHz16BitMono = SPSF_44kHz8BitStereo + 1,
  643. SPSF_44kHz16BitStereo = SPSF_44kHz16BitMono + 1,
  644. SPSF_48kHz8BitMono = SPSF_44kHz16BitStereo + 1,
  645. SPSF_48kHz8BitStereo = SPSF_48kHz8BitMono + 1,
  646. SPSF_48kHz16BitMono = SPSF_48kHz8BitStereo + 1,
  647. SPSF_48kHz16BitStereo = SPSF_48kHz16BitMono + 1,
  648. SPSF_TrueSpeech_8kHz1BitMono = SPSF_48kHz16BitStereo + 1,
  649. SPSF_CCITT_ALaw_8kHzMono = SPSF_TrueSpeech_8kHz1BitMono + 1,
  650. SPSF_CCITT_ALaw_8kHzStereo = SPSF_CCITT_ALaw_8kHzMono + 1,
  651. SPSF_CCITT_ALaw_11kHzMono = SPSF_CCITT_ALaw_8kHzStereo + 1,
  652. SPSF_CCITT_ALaw_11kHzStereo = SPSF_CCITT_ALaw_11kHzMono + 1,
  653. SPSF_CCITT_ALaw_22kHzMono = SPSF_CCITT_ALaw_11kHzStereo + 1,
  654. SPSF_CCITT_ALaw_22kHzStereo = SPSF_CCITT_ALaw_22kHzMono + 1,
  655. SPSF_CCITT_ALaw_44kHzMono = SPSF_CCITT_ALaw_22kHzStereo + 1,
  656. SPSF_CCITT_ALaw_44kHzStereo = SPSF_CCITT_ALaw_44kHzMono + 1,
  657. SPSF_CCITT_uLaw_8kHzMono = SPSF_CCITT_ALaw_44kHzStereo + 1,
  658. SPSF_CCITT_uLaw_8kHzStereo = SPSF_CCITT_uLaw_8kHzMono + 1,
  659. SPSF_CCITT_uLaw_11kHzMono = SPSF_CCITT_uLaw_8kHzStereo + 1,
  660. SPSF_CCITT_uLaw_11kHzStereo = SPSF_CCITT_uLaw_11kHzMono + 1,
  661. SPSF_CCITT_uLaw_22kHzMono = SPSF_CCITT_uLaw_11kHzStereo + 1,
  662. SPSF_CCITT_uLaw_22kHzStereo = SPSF_CCITT_uLaw_22kHzMono + 1,
  663. SPSF_CCITT_uLaw_44kHzMono = SPSF_CCITT_uLaw_22kHzStereo + 1,
  664. SPSF_CCITT_uLaw_44kHzStereo = SPSF_CCITT_uLaw_44kHzMono + 1,
  665. SPSF_ADPCM_8kHzMono = SPSF_CCITT_uLaw_44kHzStereo + 1,
  666. SPSF_ADPCM_8kHzStereo = SPSF_ADPCM_8kHzMono + 1,
  667. SPSF_ADPCM_11kHzMono = SPSF_ADPCM_8kHzStereo + 1,
  668. SPSF_ADPCM_11kHzStereo = SPSF_ADPCM_11kHzMono + 1,
  669. SPSF_ADPCM_22kHzMono = SPSF_ADPCM_11kHzStereo + 1,
  670. SPSF_ADPCM_22kHzStereo = SPSF_ADPCM_22kHzMono + 1,
  671. SPSF_ADPCM_44kHzMono = SPSF_ADPCM_22kHzStereo + 1,
  672. SPSF_ADPCM_44kHzStereo = SPSF_ADPCM_44kHzMono + 1,
  673. SPSF_GSM610_8kHzMono = SPSF_ADPCM_44kHzStereo + 1,
  674. SPSF_GSM610_11kHzMono = SPSF_GSM610_8kHzMono + 1,
  675. SPSF_GSM610_22kHzMono = SPSF_GSM610_11kHzMono + 1,
  676. SPSF_GSM610_44kHzMono = SPSF_GSM610_22kHzMono + 1,
  677. SPSF_NUM_FORMATS = SPSF_GSM610_44kHzMono + 1
  678. } SPSTREAMFORMAT;
  679. EXTERN_C const GUID SPDFID_Text;
  680. EXTERN_C const GUID SPDFID_WaveFormatEx;
  681. #define SPREG_USER_ROOT L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech"
  682. #define SPREG_LOCAL_MACHINE_ROOT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech"
  683. #define SPCAT_AUDIOOUT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput"
  684. #define SPCAT_AUDIOIN L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput"
  685. #define SPCAT_VOICES L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices"
  686. #define SPCAT_RECOGNIZERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Recognizers"
  687. #define SPCAT_APPLEXICONS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AppLexicons"
  688. #define SPCAT_PHONECONVERTERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\PhoneConverters"
  689. #define SPCAT_RECOPROFILES L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\RecoProfiles"
  690. #define SPMMSYS_AUDIO_IN_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput\\TokenEnums\\MMAudioIn\\"
  691. #define SPMMSYS_AUDIO_OUT_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput\\TokenEnums\\MMAudioOut\\"
  692. #define SPCURRENT_USER_LEXICON_TOKEN_ID L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\CurrentUserLexicon"
  693. #define SPTOKENVALUE_CLSID L"CLSID"
  694. #define SPTOKENKEY_FILES L"Files"
  695. #define SPTOKENKEY_UI L"UI"
  696. #define SPTOKENKEY_ATTRIBUTES L"Attributes"
  697. #define SPVOICECATEGORY_TTSRATE L"DefaultTTSRate"
  698. #define SPPROP_RESOURCE_USAGE L"ResourceUsage"
  699. #define SPPROP_HIGH_CONFIDENCE_THRESHOLD L"HighConfidenceThreshold"
  700. #define SPPROP_NORMAL_CONFIDENCE_THRESHOLD L"NormalConfidenceThreshold"
  701. #define SPPROP_LOW_CONFIDENCE_THRESHOLD L"LowConfidenceThreshold"
  702. #define SPPROP_RESPONSE_SPEED L"ResponseSpeed"
  703. #define SPPROP_COMPLEX_RESPONSE_SPEED L"ComplexResponseSpeed"
  704. #define SPPROP_ADAPTATION_ON L"AdaptationOn"
  705. #define SPTOPIC_SPELLING L"Spelling"
  706. #define SPWILDCARD L"..."
  707. #define SPDICTATION L"*"
  708. #define SPINFDICTATION L"*+"
  709. #define SP_LOW_CONFIDENCE ( -1 )
  710. #define SP_NORMAL_CONFIDENCE ( 0 )
  711. #define SP_HIGH_CONFIDENCE ( +1 )
  712. #define DEFAULT_WEIGHT ( 1 )
  713. #define SP_MAX_WORD_LENGTH ( 128 )
  714. #define SP_MAX_PRON_LENGTH ( 384 )
  715. #if defined(__cplusplus)
  716. interface ISpNotifyCallback
  717. {
  718. virtual HRESULT STDMETHODCALLTYPE NotifyCallback(
  719. WPARAM wParam,
  720. LPARAM lParam) = 0;
  721. };
  722. #else
  723. typedef void *ISpNotifyCallback;
  724. #endif
  725. #if 0
  726. typedef void *SPNOTIFYCALLBACK;
  727. #else
  728. typedef void __stdcall SPNOTIFYCALLBACK(WPARAM wParam, LPARAM lParam);
  729. #endif
  730. extern RPC_IF_HANDLE __MIDL_itf_sapi_0000_v0_0_c_ifspec;
  731. extern RPC_IF_HANDLE __MIDL_itf_sapi_0000_v0_0_s_ifspec;
  732. #ifndef __ISpNotifySource_INTERFACE_DEFINED__
  733. #define __ISpNotifySource_INTERFACE_DEFINED__
  734. /* interface ISpNotifySource */
  735. /* [restricted][unique][helpstring][uuid][object] */
  736. EXTERN_C const IID IID_ISpNotifySource;
  737. #if defined(__cplusplus) && !defined(CINTERFACE)
  738. MIDL_INTERFACE("5EFF4AEF-8487-11D2-961C-00C04F8EE628")
  739. ISpNotifySource : public IUnknown
  740. {
  741. public:
  742. virtual HRESULT STDMETHODCALLTYPE SetNotifySink(
  743. /* [in] */ ISpNotifySink *pNotifySink) = 0;
  744. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyWindowMessage(
  745. /* [in] */ HWND hWnd,
  746. /* [in] */ UINT Msg,
  747. /* [in] */ WPARAM wParam,
  748. /* [in] */ LPARAM lParam) = 0;
  749. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyCallbackFunction(
  750. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  751. /* [in] */ WPARAM wParam,
  752. /* [in] */ LPARAM lParam) = 0;
  753. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyCallbackInterface(
  754. /* [in] */ ISpNotifyCallback *pSpCallback,
  755. /* [in] */ WPARAM wParam,
  756. /* [in] */ LPARAM lParam) = 0;
  757. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyWin32Event( void) = 0;
  758. virtual /* [local] */ HRESULT STDMETHODCALLTYPE WaitForNotifyEvent(
  759. /* [in] */ DWORD dwMilliseconds) = 0;
  760. virtual /* [local] */ HANDLE STDMETHODCALLTYPE GetNotifyEventHandle( void) = 0;
  761. };
  762. #else /* C style interface */
  763. typedef struct ISpNotifySourceVtbl
  764. {
  765. BEGIN_INTERFACE
  766. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  767. ISpNotifySource * This,
  768. /* [in] */ REFIID riid,
  769. /* [iid_is][out] */ void **ppvObject);
  770. ULONG ( STDMETHODCALLTYPE *AddRef )(
  771. ISpNotifySource * This);
  772. ULONG ( STDMETHODCALLTYPE *Release )(
  773. ISpNotifySource * This);
  774. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  775. ISpNotifySource * This,
  776. /* [in] */ ISpNotifySink *pNotifySink);
  777. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  778. ISpNotifySource * This,
  779. /* [in] */ HWND hWnd,
  780. /* [in] */ UINT Msg,
  781. /* [in] */ WPARAM wParam,
  782. /* [in] */ LPARAM lParam);
  783. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  784. ISpNotifySource * This,
  785. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  786. /* [in] */ WPARAM wParam,
  787. /* [in] */ LPARAM lParam);
  788. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  789. ISpNotifySource * This,
  790. /* [in] */ ISpNotifyCallback *pSpCallback,
  791. /* [in] */ WPARAM wParam,
  792. /* [in] */ LPARAM lParam);
  793. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  794. ISpNotifySource * This);
  795. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  796. ISpNotifySource * This,
  797. /* [in] */ DWORD dwMilliseconds);
  798. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  799. ISpNotifySource * This);
  800. END_INTERFACE
  801. } ISpNotifySourceVtbl;
  802. interface ISpNotifySource
  803. {
  804. CONST_VTBL struct ISpNotifySourceVtbl *lpVtbl;
  805. };
  806. #ifdef COBJMACROS
  807. #define ISpNotifySource_QueryInterface(This,riid,ppvObject) \
  808. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  809. #define ISpNotifySource_AddRef(This) \
  810. (This)->lpVtbl -> AddRef(This)
  811. #define ISpNotifySource_Release(This) \
  812. (This)->lpVtbl -> Release(This)
  813. #define ISpNotifySource_SetNotifySink(This,pNotifySink) \
  814. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  815. #define ISpNotifySource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  816. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  817. #define ISpNotifySource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  818. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  819. #define ISpNotifySource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  820. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  821. #define ISpNotifySource_SetNotifyWin32Event(This) \
  822. (This)->lpVtbl -> SetNotifyWin32Event(This)
  823. #define ISpNotifySource_WaitForNotifyEvent(This,dwMilliseconds) \
  824. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  825. #define ISpNotifySource_GetNotifyEventHandle(This) \
  826. (This)->lpVtbl -> GetNotifyEventHandle(This)
  827. #endif /* COBJMACROS */
  828. #endif /* C style interface */
  829. HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifySink_Proxy(
  830. ISpNotifySource * This,
  831. /* [in] */ ISpNotifySink *pNotifySink);
  832. void __RPC_STUB ISpNotifySource_SetNotifySink_Stub(
  833. IRpcStubBuffer *This,
  834. IRpcChannelBuffer *_pRpcChannelBuffer,
  835. PRPC_MESSAGE _pRpcMessage,
  836. DWORD *_pdwStubPhase);
  837. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyWindowMessage_Proxy(
  838. ISpNotifySource * This,
  839. /* [in] */ HWND hWnd,
  840. /* [in] */ UINT Msg,
  841. /* [in] */ WPARAM wParam,
  842. /* [in] */ LPARAM lParam);
  843. void __RPC_STUB ISpNotifySource_SetNotifyWindowMessage_Stub(
  844. IRpcStubBuffer *This,
  845. IRpcChannelBuffer *_pRpcChannelBuffer,
  846. PRPC_MESSAGE _pRpcMessage,
  847. DWORD *_pdwStubPhase);
  848. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyCallbackFunction_Proxy(
  849. ISpNotifySource * This,
  850. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  851. /* [in] */ WPARAM wParam,
  852. /* [in] */ LPARAM lParam);
  853. void __RPC_STUB ISpNotifySource_SetNotifyCallbackFunction_Stub(
  854. IRpcStubBuffer *This,
  855. IRpcChannelBuffer *_pRpcChannelBuffer,
  856. PRPC_MESSAGE _pRpcMessage,
  857. DWORD *_pdwStubPhase);
  858. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyCallbackInterface_Proxy(
  859. ISpNotifySource * This,
  860. /* [in] */ ISpNotifyCallback *pSpCallback,
  861. /* [in] */ WPARAM wParam,
  862. /* [in] */ LPARAM lParam);
  863. void __RPC_STUB ISpNotifySource_SetNotifyCallbackInterface_Stub(
  864. IRpcStubBuffer *This,
  865. IRpcChannelBuffer *_pRpcChannelBuffer,
  866. PRPC_MESSAGE _pRpcMessage,
  867. DWORD *_pdwStubPhase);
  868. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyWin32Event_Proxy(
  869. ISpNotifySource * This);
  870. void __RPC_STUB ISpNotifySource_SetNotifyWin32Event_Stub(
  871. IRpcStubBuffer *This,
  872. IRpcChannelBuffer *_pRpcChannelBuffer,
  873. PRPC_MESSAGE _pRpcMessage,
  874. DWORD *_pdwStubPhase);
  875. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_WaitForNotifyEvent_Proxy(
  876. ISpNotifySource * This,
  877. /* [in] */ DWORD dwMilliseconds);
  878. void __RPC_STUB ISpNotifySource_WaitForNotifyEvent_Stub(
  879. IRpcStubBuffer *This,
  880. IRpcChannelBuffer *_pRpcChannelBuffer,
  881. PRPC_MESSAGE _pRpcMessage,
  882. DWORD *_pdwStubPhase);
  883. /* [local] */ HANDLE STDMETHODCALLTYPE ISpNotifySource_GetNotifyEventHandle_Proxy(
  884. ISpNotifySource * This);
  885. void __RPC_STUB ISpNotifySource_GetNotifyEventHandle_Stub(
  886. IRpcStubBuffer *This,
  887. IRpcChannelBuffer *_pRpcChannelBuffer,
  888. PRPC_MESSAGE _pRpcMessage,
  889. DWORD *_pdwStubPhase);
  890. #endif /* __ISpNotifySource_INTERFACE_DEFINED__ */
  891. #ifndef __ISpNotifySink_INTERFACE_DEFINED__
  892. #define __ISpNotifySink_INTERFACE_DEFINED__
  893. /* interface ISpNotifySink */
  894. /* [restricted][unique][helpstring][uuid][object] */
  895. EXTERN_C const IID IID_ISpNotifySink;
  896. #if defined(__cplusplus) && !defined(CINTERFACE)
  897. MIDL_INTERFACE("259684DC-37C3-11D2-9603-00C04F8EE628")
  898. ISpNotifySink : public IUnknown
  899. {
  900. public:
  901. virtual HRESULT STDMETHODCALLTYPE Notify( void) = 0;
  902. };
  903. #else /* C style interface */
  904. typedef struct ISpNotifySinkVtbl
  905. {
  906. BEGIN_INTERFACE
  907. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  908. ISpNotifySink * This,
  909. /* [in] */ REFIID riid,
  910. /* [iid_is][out] */ void **ppvObject);
  911. ULONG ( STDMETHODCALLTYPE *AddRef )(
  912. ISpNotifySink * This);
  913. ULONG ( STDMETHODCALLTYPE *Release )(
  914. ISpNotifySink * This);
  915. HRESULT ( STDMETHODCALLTYPE *Notify )(
  916. ISpNotifySink * This);
  917. END_INTERFACE
  918. } ISpNotifySinkVtbl;
  919. interface ISpNotifySink
  920. {
  921. CONST_VTBL struct ISpNotifySinkVtbl *lpVtbl;
  922. };
  923. #ifdef COBJMACROS
  924. #define ISpNotifySink_QueryInterface(This,riid,ppvObject) \
  925. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  926. #define ISpNotifySink_AddRef(This) \
  927. (This)->lpVtbl -> AddRef(This)
  928. #define ISpNotifySink_Release(This) \
  929. (This)->lpVtbl -> Release(This)
  930. #define ISpNotifySink_Notify(This) \
  931. (This)->lpVtbl -> Notify(This)
  932. #endif /* COBJMACROS */
  933. #endif /* C style interface */
  934. HRESULT STDMETHODCALLTYPE ISpNotifySink_Notify_Proxy(
  935. ISpNotifySink * This);
  936. void __RPC_STUB ISpNotifySink_Notify_Stub(
  937. IRpcStubBuffer *This,
  938. IRpcChannelBuffer *_pRpcChannelBuffer,
  939. PRPC_MESSAGE _pRpcMessage,
  940. DWORD *_pdwStubPhase);
  941. #endif /* __ISpNotifySink_INTERFACE_DEFINED__ */
  942. #ifndef __ISpNotifyTranslator_INTERFACE_DEFINED__
  943. #define __ISpNotifyTranslator_INTERFACE_DEFINED__
  944. /* interface ISpNotifyTranslator */
  945. /* [restricted][local][unique][helpstring][uuid][object] */
  946. EXTERN_C const IID IID_ISpNotifyTranslator;
  947. #if defined(__cplusplus) && !defined(CINTERFACE)
  948. MIDL_INTERFACE("ACA16614-5D3D-11D2-960E-00C04F8EE628")
  949. ISpNotifyTranslator : public ISpNotifySink
  950. {
  951. public:
  952. virtual HRESULT STDMETHODCALLTYPE InitWindowMessage(
  953. /* [in] */ HWND hWnd,
  954. /* [in] */ UINT Msg,
  955. /* [in] */ WPARAM wParam,
  956. /* [in] */ LPARAM lParam) = 0;
  957. virtual HRESULT STDMETHODCALLTYPE InitCallback(
  958. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  959. /* [in] */ WPARAM wParam,
  960. /* [in] */ LPARAM lParam) = 0;
  961. virtual HRESULT STDMETHODCALLTYPE InitSpNotifyCallback(
  962. /* [in] */ ISpNotifyCallback *pSpCallback,
  963. /* [in] */ WPARAM wParam,
  964. /* [in] */ LPARAM lParam) = 0;
  965. virtual HRESULT STDMETHODCALLTYPE InitWin32Event(
  966. HANDLE hEvent,
  967. BOOL fCloseHandleOnRelease) = 0;
  968. virtual HRESULT STDMETHODCALLTYPE Wait(
  969. /* [in] */ DWORD dwMilliseconds) = 0;
  970. virtual HANDLE STDMETHODCALLTYPE GetEventHandle( void) = 0;
  971. };
  972. #else /* C style interface */
  973. typedef struct ISpNotifyTranslatorVtbl
  974. {
  975. BEGIN_INTERFACE
  976. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  977. ISpNotifyTranslator * This,
  978. /* [in] */ REFIID riid,
  979. /* [iid_is][out] */ void **ppvObject);
  980. ULONG ( STDMETHODCALLTYPE *AddRef )(
  981. ISpNotifyTranslator * This);
  982. ULONG ( STDMETHODCALLTYPE *Release )(
  983. ISpNotifyTranslator * This);
  984. HRESULT ( STDMETHODCALLTYPE *Notify )(
  985. ISpNotifyTranslator * This);
  986. HRESULT ( STDMETHODCALLTYPE *InitWindowMessage )(
  987. ISpNotifyTranslator * This,
  988. /* [in] */ HWND hWnd,
  989. /* [in] */ UINT Msg,
  990. /* [in] */ WPARAM wParam,
  991. /* [in] */ LPARAM lParam);
  992. HRESULT ( STDMETHODCALLTYPE *InitCallback )(
  993. ISpNotifyTranslator * This,
  994. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  995. /* [in] */ WPARAM wParam,
  996. /* [in] */ LPARAM lParam);
  997. HRESULT ( STDMETHODCALLTYPE *InitSpNotifyCallback )(
  998. ISpNotifyTranslator * This,
  999. /* [in] */ ISpNotifyCallback *pSpCallback,
  1000. /* [in] */ WPARAM wParam,
  1001. /* [in] */ LPARAM lParam);
  1002. HRESULT ( STDMETHODCALLTYPE *InitWin32Event )(
  1003. ISpNotifyTranslator * This,
  1004. HANDLE hEvent,
  1005. BOOL fCloseHandleOnRelease);
  1006. HRESULT ( STDMETHODCALLTYPE *Wait )(
  1007. ISpNotifyTranslator * This,
  1008. /* [in] */ DWORD dwMilliseconds);
  1009. HANDLE ( STDMETHODCALLTYPE *GetEventHandle )(
  1010. ISpNotifyTranslator * This);
  1011. END_INTERFACE
  1012. } ISpNotifyTranslatorVtbl;
  1013. interface ISpNotifyTranslator
  1014. {
  1015. CONST_VTBL struct ISpNotifyTranslatorVtbl *lpVtbl;
  1016. };
  1017. #ifdef COBJMACROS
  1018. #define ISpNotifyTranslator_QueryInterface(This,riid,ppvObject) \
  1019. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1020. #define ISpNotifyTranslator_AddRef(This) \
  1021. (This)->lpVtbl -> AddRef(This)
  1022. #define ISpNotifyTranslator_Release(This) \
  1023. (This)->lpVtbl -> Release(This)
  1024. #define ISpNotifyTranslator_Notify(This) \
  1025. (This)->lpVtbl -> Notify(This)
  1026. #define ISpNotifyTranslator_InitWindowMessage(This,hWnd,Msg,wParam,lParam) \
  1027. (This)->lpVtbl -> InitWindowMessage(This,hWnd,Msg,wParam,lParam)
  1028. #define ISpNotifyTranslator_InitCallback(This,pfnCallback,wParam,lParam) \
  1029. (This)->lpVtbl -> InitCallback(This,pfnCallback,wParam,lParam)
  1030. #define ISpNotifyTranslator_InitSpNotifyCallback(This,pSpCallback,wParam,lParam) \
  1031. (This)->lpVtbl -> InitSpNotifyCallback(This,pSpCallback,wParam,lParam)
  1032. #define ISpNotifyTranslator_InitWin32Event(This,hEvent,fCloseHandleOnRelease) \
  1033. (This)->lpVtbl -> InitWin32Event(This,hEvent,fCloseHandleOnRelease)
  1034. #define ISpNotifyTranslator_Wait(This,dwMilliseconds) \
  1035. (This)->lpVtbl -> Wait(This,dwMilliseconds)
  1036. #define ISpNotifyTranslator_GetEventHandle(This) \
  1037. (This)->lpVtbl -> GetEventHandle(This)
  1038. #endif /* COBJMACROS */
  1039. #endif /* C style interface */
  1040. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitWindowMessage_Proxy(
  1041. ISpNotifyTranslator * This,
  1042. /* [in] */ HWND hWnd,
  1043. /* [in] */ UINT Msg,
  1044. /* [in] */ WPARAM wParam,
  1045. /* [in] */ LPARAM lParam);
  1046. void __RPC_STUB ISpNotifyTranslator_InitWindowMessage_Stub(
  1047. IRpcStubBuffer *This,
  1048. IRpcChannelBuffer *_pRpcChannelBuffer,
  1049. PRPC_MESSAGE _pRpcMessage,
  1050. DWORD *_pdwStubPhase);
  1051. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitCallback_Proxy(
  1052. ISpNotifyTranslator * This,
  1053. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  1054. /* [in] */ WPARAM wParam,
  1055. /* [in] */ LPARAM lParam);
  1056. void __RPC_STUB ISpNotifyTranslator_InitCallback_Stub(
  1057. IRpcStubBuffer *This,
  1058. IRpcChannelBuffer *_pRpcChannelBuffer,
  1059. PRPC_MESSAGE _pRpcMessage,
  1060. DWORD *_pdwStubPhase);
  1061. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitSpNotifyCallback_Proxy(
  1062. ISpNotifyTranslator * This,
  1063. /* [in] */ ISpNotifyCallback *pSpCallback,
  1064. /* [in] */ WPARAM wParam,
  1065. /* [in] */ LPARAM lParam);
  1066. void __RPC_STUB ISpNotifyTranslator_InitSpNotifyCallback_Stub(
  1067. IRpcStubBuffer *This,
  1068. IRpcChannelBuffer *_pRpcChannelBuffer,
  1069. PRPC_MESSAGE _pRpcMessage,
  1070. DWORD *_pdwStubPhase);
  1071. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitWin32Event_Proxy(
  1072. ISpNotifyTranslator * This,
  1073. HANDLE hEvent,
  1074. BOOL fCloseHandleOnRelease);
  1075. void __RPC_STUB ISpNotifyTranslator_InitWin32Event_Stub(
  1076. IRpcStubBuffer *This,
  1077. IRpcChannelBuffer *_pRpcChannelBuffer,
  1078. PRPC_MESSAGE _pRpcMessage,
  1079. DWORD *_pdwStubPhase);
  1080. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_Wait_Proxy(
  1081. ISpNotifyTranslator * This,
  1082. /* [in] */ DWORD dwMilliseconds);
  1083. void __RPC_STUB ISpNotifyTranslator_Wait_Stub(
  1084. IRpcStubBuffer *This,
  1085. IRpcChannelBuffer *_pRpcChannelBuffer,
  1086. PRPC_MESSAGE _pRpcMessage,
  1087. DWORD *_pdwStubPhase);
  1088. HANDLE STDMETHODCALLTYPE ISpNotifyTranslator_GetEventHandle_Proxy(
  1089. ISpNotifyTranslator * This);
  1090. void __RPC_STUB ISpNotifyTranslator_GetEventHandle_Stub(
  1091. IRpcStubBuffer *This,
  1092. IRpcChannelBuffer *_pRpcChannelBuffer,
  1093. PRPC_MESSAGE _pRpcMessage,
  1094. DWORD *_pdwStubPhase);
  1095. #endif /* __ISpNotifyTranslator_INTERFACE_DEFINED__ */
  1096. #ifndef __ISpDataKey_INTERFACE_DEFINED__
  1097. #define __ISpDataKey_INTERFACE_DEFINED__
  1098. /* interface ISpDataKey */
  1099. /* [restricted][unique][helpstring][uuid][object] */
  1100. EXTERN_C const IID IID_ISpDataKey;
  1101. #if defined(__cplusplus) && !defined(CINTERFACE)
  1102. MIDL_INTERFACE("14056581-E16C-11D2-BB90-00C04F8EE6C0")
  1103. ISpDataKey : public IUnknown
  1104. {
  1105. public:
  1106. virtual HRESULT STDMETHODCALLTYPE SetData(
  1107. const WCHAR *pszValueName,
  1108. ULONG cbData,
  1109. const BYTE *pData) = 0;
  1110. virtual HRESULT STDMETHODCALLTYPE GetData(
  1111. const WCHAR *pszValueName,
  1112. ULONG *pcbData,
  1113. BYTE *pData) = 0;
  1114. virtual HRESULT STDMETHODCALLTYPE SetStringValue(
  1115. const WCHAR *pszValueName,
  1116. const WCHAR *pszValue) = 0;
  1117. virtual HRESULT STDMETHODCALLTYPE GetStringValue(
  1118. const WCHAR *pszValueName,
  1119. WCHAR **ppszValue) = 0;
  1120. virtual HRESULT STDMETHODCALLTYPE SetDWORD(
  1121. const WCHAR *pszValueName,
  1122. DWORD dwValue) = 0;
  1123. virtual HRESULT STDMETHODCALLTYPE GetDWORD(
  1124. const WCHAR *pszValueName,
  1125. DWORD *pdwValue) = 0;
  1126. virtual HRESULT STDMETHODCALLTYPE OpenKey(
  1127. const WCHAR *pszSubKeyName,
  1128. ISpDataKey **ppSubKey) = 0;
  1129. virtual HRESULT STDMETHODCALLTYPE CreateKey(
  1130. const WCHAR *pszSubKey,
  1131. ISpDataKey **ppSubKey) = 0;
  1132. virtual HRESULT STDMETHODCALLTYPE DeleteKey(
  1133. const WCHAR *pszSubKey) = 0;
  1134. virtual HRESULT STDMETHODCALLTYPE DeleteValue(
  1135. const WCHAR *pszValueName) = 0;
  1136. virtual HRESULT STDMETHODCALLTYPE EnumKeys(
  1137. ULONG Index,
  1138. WCHAR **ppszSubKeyName) = 0;
  1139. virtual HRESULT STDMETHODCALLTYPE EnumValues(
  1140. ULONG Index,
  1141. WCHAR **ppszValueName) = 0;
  1142. };
  1143. #else /* C style interface */
  1144. typedef struct ISpDataKeyVtbl
  1145. {
  1146. BEGIN_INTERFACE
  1147. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1148. ISpDataKey * This,
  1149. /* [in] */ REFIID riid,
  1150. /* [iid_is][out] */ void **ppvObject);
  1151. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1152. ISpDataKey * This);
  1153. ULONG ( STDMETHODCALLTYPE *Release )(
  1154. ISpDataKey * This);
  1155. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1156. ISpDataKey * This,
  1157. const WCHAR *pszValueName,
  1158. ULONG cbData,
  1159. const BYTE *pData);
  1160. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1161. ISpDataKey * This,
  1162. const WCHAR *pszValueName,
  1163. ULONG *pcbData,
  1164. BYTE *pData);
  1165. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1166. ISpDataKey * This,
  1167. const WCHAR *pszValueName,
  1168. const WCHAR *pszValue);
  1169. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1170. ISpDataKey * This,
  1171. const WCHAR *pszValueName,
  1172. WCHAR **ppszValue);
  1173. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1174. ISpDataKey * This,
  1175. const WCHAR *pszValueName,
  1176. DWORD dwValue);
  1177. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1178. ISpDataKey * This,
  1179. const WCHAR *pszValueName,
  1180. DWORD *pdwValue);
  1181. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1182. ISpDataKey * This,
  1183. const WCHAR *pszSubKeyName,
  1184. ISpDataKey **ppSubKey);
  1185. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1186. ISpDataKey * This,
  1187. const WCHAR *pszSubKey,
  1188. ISpDataKey **ppSubKey);
  1189. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1190. ISpDataKey * This,
  1191. const WCHAR *pszSubKey);
  1192. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1193. ISpDataKey * This,
  1194. const WCHAR *pszValueName);
  1195. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1196. ISpDataKey * This,
  1197. ULONG Index,
  1198. WCHAR **ppszSubKeyName);
  1199. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1200. ISpDataKey * This,
  1201. ULONG Index,
  1202. WCHAR **ppszValueName);
  1203. END_INTERFACE
  1204. } ISpDataKeyVtbl;
  1205. interface ISpDataKey
  1206. {
  1207. CONST_VTBL struct ISpDataKeyVtbl *lpVtbl;
  1208. };
  1209. #ifdef COBJMACROS
  1210. #define ISpDataKey_QueryInterface(This,riid,ppvObject) \
  1211. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1212. #define ISpDataKey_AddRef(This) \
  1213. (This)->lpVtbl -> AddRef(This)
  1214. #define ISpDataKey_Release(This) \
  1215. (This)->lpVtbl -> Release(This)
  1216. #define ISpDataKey_SetData(This,pszValueName,cbData,pData) \
  1217. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1218. #define ISpDataKey_GetData(This,pszValueName,pcbData,pData) \
  1219. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1220. #define ISpDataKey_SetStringValue(This,pszValueName,pszValue) \
  1221. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1222. #define ISpDataKey_GetStringValue(This,pszValueName,ppszValue) \
  1223. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1224. #define ISpDataKey_SetDWORD(This,pszValueName,dwValue) \
  1225. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1226. #define ISpDataKey_GetDWORD(This,pszValueName,pdwValue) \
  1227. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1228. #define ISpDataKey_OpenKey(This,pszSubKeyName,ppSubKey) \
  1229. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1230. #define ISpDataKey_CreateKey(This,pszSubKey,ppSubKey) \
  1231. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1232. #define ISpDataKey_DeleteKey(This,pszSubKey) \
  1233. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1234. #define ISpDataKey_DeleteValue(This,pszValueName) \
  1235. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1236. #define ISpDataKey_EnumKeys(This,Index,ppszSubKeyName) \
  1237. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1238. #define ISpDataKey_EnumValues(This,Index,ppszValueName) \
  1239. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1240. #endif /* COBJMACROS */
  1241. #endif /* C style interface */
  1242. HRESULT STDMETHODCALLTYPE ISpDataKey_SetData_Proxy(
  1243. ISpDataKey * This,
  1244. const WCHAR *pszValueName,
  1245. ULONG cbData,
  1246. const BYTE *pData);
  1247. void __RPC_STUB ISpDataKey_SetData_Stub(
  1248. IRpcStubBuffer *This,
  1249. IRpcChannelBuffer *_pRpcChannelBuffer,
  1250. PRPC_MESSAGE _pRpcMessage,
  1251. DWORD *_pdwStubPhase);
  1252. HRESULT STDMETHODCALLTYPE ISpDataKey_GetData_Proxy(
  1253. ISpDataKey * This,
  1254. const WCHAR *pszValueName,
  1255. ULONG *pcbData,
  1256. BYTE *pData);
  1257. void __RPC_STUB ISpDataKey_GetData_Stub(
  1258. IRpcStubBuffer *This,
  1259. IRpcChannelBuffer *_pRpcChannelBuffer,
  1260. PRPC_MESSAGE _pRpcMessage,
  1261. DWORD *_pdwStubPhase);
  1262. HRESULT STDMETHODCALLTYPE ISpDataKey_SetStringValue_Proxy(
  1263. ISpDataKey * This,
  1264. const WCHAR *pszValueName,
  1265. const WCHAR *pszValue);
  1266. void __RPC_STUB ISpDataKey_SetStringValue_Stub(
  1267. IRpcStubBuffer *This,
  1268. IRpcChannelBuffer *_pRpcChannelBuffer,
  1269. PRPC_MESSAGE _pRpcMessage,
  1270. DWORD *_pdwStubPhase);
  1271. HRESULT STDMETHODCALLTYPE ISpDataKey_GetStringValue_Proxy(
  1272. ISpDataKey * This,
  1273. const WCHAR *pszValueName,
  1274. WCHAR **ppszValue);
  1275. void __RPC_STUB ISpDataKey_GetStringValue_Stub(
  1276. IRpcStubBuffer *This,
  1277. IRpcChannelBuffer *_pRpcChannelBuffer,
  1278. PRPC_MESSAGE _pRpcMessage,
  1279. DWORD *_pdwStubPhase);
  1280. HRESULT STDMETHODCALLTYPE ISpDataKey_SetDWORD_Proxy(
  1281. ISpDataKey * This,
  1282. const WCHAR *pszValueName,
  1283. DWORD dwValue);
  1284. void __RPC_STUB ISpDataKey_SetDWORD_Stub(
  1285. IRpcStubBuffer *This,
  1286. IRpcChannelBuffer *_pRpcChannelBuffer,
  1287. PRPC_MESSAGE _pRpcMessage,
  1288. DWORD *_pdwStubPhase);
  1289. HRESULT STDMETHODCALLTYPE ISpDataKey_GetDWORD_Proxy(
  1290. ISpDataKey * This,
  1291. const WCHAR *pszValueName,
  1292. DWORD *pdwValue);
  1293. void __RPC_STUB ISpDataKey_GetDWORD_Stub(
  1294. IRpcStubBuffer *This,
  1295. IRpcChannelBuffer *_pRpcChannelBuffer,
  1296. PRPC_MESSAGE _pRpcMessage,
  1297. DWORD *_pdwStubPhase);
  1298. HRESULT STDMETHODCALLTYPE ISpDataKey_OpenKey_Proxy(
  1299. ISpDataKey * This,
  1300. const WCHAR *pszSubKeyName,
  1301. ISpDataKey **ppSubKey);
  1302. void __RPC_STUB ISpDataKey_OpenKey_Stub(
  1303. IRpcStubBuffer *This,
  1304. IRpcChannelBuffer *_pRpcChannelBuffer,
  1305. PRPC_MESSAGE _pRpcMessage,
  1306. DWORD *_pdwStubPhase);
  1307. HRESULT STDMETHODCALLTYPE ISpDataKey_CreateKey_Proxy(
  1308. ISpDataKey * This,
  1309. const WCHAR *pszSubKey,
  1310. ISpDataKey **ppSubKey);
  1311. void __RPC_STUB ISpDataKey_CreateKey_Stub(
  1312. IRpcStubBuffer *This,
  1313. IRpcChannelBuffer *_pRpcChannelBuffer,
  1314. PRPC_MESSAGE _pRpcMessage,
  1315. DWORD *_pdwStubPhase);
  1316. HRESULT STDMETHODCALLTYPE ISpDataKey_DeleteKey_Proxy(
  1317. ISpDataKey * This,
  1318. const WCHAR *pszSubKey);
  1319. void __RPC_STUB ISpDataKey_DeleteKey_Stub(
  1320. IRpcStubBuffer *This,
  1321. IRpcChannelBuffer *_pRpcChannelBuffer,
  1322. PRPC_MESSAGE _pRpcMessage,
  1323. DWORD *_pdwStubPhase);
  1324. HRESULT STDMETHODCALLTYPE ISpDataKey_DeleteValue_Proxy(
  1325. ISpDataKey * This,
  1326. const WCHAR *pszValueName);
  1327. void __RPC_STUB ISpDataKey_DeleteValue_Stub(
  1328. IRpcStubBuffer *This,
  1329. IRpcChannelBuffer *_pRpcChannelBuffer,
  1330. PRPC_MESSAGE _pRpcMessage,
  1331. DWORD *_pdwStubPhase);
  1332. HRESULT STDMETHODCALLTYPE ISpDataKey_EnumKeys_Proxy(
  1333. ISpDataKey * This,
  1334. ULONG Index,
  1335. WCHAR **ppszSubKeyName);
  1336. void __RPC_STUB ISpDataKey_EnumKeys_Stub(
  1337. IRpcStubBuffer *This,
  1338. IRpcChannelBuffer *_pRpcChannelBuffer,
  1339. PRPC_MESSAGE _pRpcMessage,
  1340. DWORD *_pdwStubPhase);
  1341. HRESULT STDMETHODCALLTYPE ISpDataKey_EnumValues_Proxy(
  1342. ISpDataKey * This,
  1343. ULONG Index,
  1344. WCHAR **ppszValueName);
  1345. void __RPC_STUB ISpDataKey_EnumValues_Stub(
  1346. IRpcStubBuffer *This,
  1347. IRpcChannelBuffer *_pRpcChannelBuffer,
  1348. PRPC_MESSAGE _pRpcMessage,
  1349. DWORD *_pdwStubPhase);
  1350. #endif /* __ISpDataKey_INTERFACE_DEFINED__ */
  1351. #ifndef __ISpRegDataKey_INTERFACE_DEFINED__
  1352. #define __ISpRegDataKey_INTERFACE_DEFINED__
  1353. /* interface ISpRegDataKey */
  1354. /* [restricted][unique][helpstring][uuid][object] */
  1355. EXTERN_C const IID IID_ISpRegDataKey;
  1356. #if defined(__cplusplus) && !defined(CINTERFACE)
  1357. MIDL_INTERFACE("92A66E2B-C830-4149-83DF-6FC2BA1E7A5B")
  1358. ISpRegDataKey : public ISpDataKey
  1359. {
  1360. public:
  1361. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetKey(
  1362. /* [in] */ HKEY hkey,
  1363. /* [in] */ BOOL fReadOnly) = 0;
  1364. };
  1365. #else /* C style interface */
  1366. typedef struct ISpRegDataKeyVtbl
  1367. {
  1368. BEGIN_INTERFACE
  1369. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1370. ISpRegDataKey * This,
  1371. /* [in] */ REFIID riid,
  1372. /* [iid_is][out] */ void **ppvObject);
  1373. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1374. ISpRegDataKey * This);
  1375. ULONG ( STDMETHODCALLTYPE *Release )(
  1376. ISpRegDataKey * This);
  1377. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1378. ISpRegDataKey * This,
  1379. const WCHAR *pszValueName,
  1380. ULONG cbData,
  1381. const BYTE *pData);
  1382. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1383. ISpRegDataKey * This,
  1384. const WCHAR *pszValueName,
  1385. ULONG *pcbData,
  1386. BYTE *pData);
  1387. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1388. ISpRegDataKey * This,
  1389. const WCHAR *pszValueName,
  1390. const WCHAR *pszValue);
  1391. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1392. ISpRegDataKey * This,
  1393. const WCHAR *pszValueName,
  1394. WCHAR **ppszValue);
  1395. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1396. ISpRegDataKey * This,
  1397. const WCHAR *pszValueName,
  1398. DWORD dwValue);
  1399. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1400. ISpRegDataKey * This,
  1401. const WCHAR *pszValueName,
  1402. DWORD *pdwValue);
  1403. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1404. ISpRegDataKey * This,
  1405. const WCHAR *pszSubKeyName,
  1406. ISpDataKey **ppSubKey);
  1407. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1408. ISpRegDataKey * This,
  1409. const WCHAR *pszSubKey,
  1410. ISpDataKey **ppSubKey);
  1411. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1412. ISpRegDataKey * This,
  1413. const WCHAR *pszSubKey);
  1414. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1415. ISpRegDataKey * This,
  1416. const WCHAR *pszValueName);
  1417. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1418. ISpRegDataKey * This,
  1419. ULONG Index,
  1420. WCHAR **ppszSubKeyName);
  1421. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1422. ISpRegDataKey * This,
  1423. ULONG Index,
  1424. WCHAR **ppszValueName);
  1425. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetKey )(
  1426. ISpRegDataKey * This,
  1427. /* [in] */ HKEY hkey,
  1428. /* [in] */ BOOL fReadOnly);
  1429. END_INTERFACE
  1430. } ISpRegDataKeyVtbl;
  1431. interface ISpRegDataKey
  1432. {
  1433. CONST_VTBL struct ISpRegDataKeyVtbl *lpVtbl;
  1434. };
  1435. #ifdef COBJMACROS
  1436. #define ISpRegDataKey_QueryInterface(This,riid,ppvObject) \
  1437. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1438. #define ISpRegDataKey_AddRef(This) \
  1439. (This)->lpVtbl -> AddRef(This)
  1440. #define ISpRegDataKey_Release(This) \
  1441. (This)->lpVtbl -> Release(This)
  1442. #define ISpRegDataKey_SetData(This,pszValueName,cbData,pData) \
  1443. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1444. #define ISpRegDataKey_GetData(This,pszValueName,pcbData,pData) \
  1445. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1446. #define ISpRegDataKey_SetStringValue(This,pszValueName,pszValue) \
  1447. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1448. #define ISpRegDataKey_GetStringValue(This,pszValueName,ppszValue) \
  1449. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1450. #define ISpRegDataKey_SetDWORD(This,pszValueName,dwValue) \
  1451. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1452. #define ISpRegDataKey_GetDWORD(This,pszValueName,pdwValue) \
  1453. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1454. #define ISpRegDataKey_OpenKey(This,pszSubKeyName,ppSubKey) \
  1455. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1456. #define ISpRegDataKey_CreateKey(This,pszSubKey,ppSubKey) \
  1457. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1458. #define ISpRegDataKey_DeleteKey(This,pszSubKey) \
  1459. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1460. #define ISpRegDataKey_DeleteValue(This,pszValueName) \
  1461. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1462. #define ISpRegDataKey_EnumKeys(This,Index,ppszSubKeyName) \
  1463. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1464. #define ISpRegDataKey_EnumValues(This,Index,ppszValueName) \
  1465. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1466. #define ISpRegDataKey_SetKey(This,hkey,fReadOnly) \
  1467. (This)->lpVtbl -> SetKey(This,hkey,fReadOnly)
  1468. #endif /* COBJMACROS */
  1469. #endif /* C style interface */
  1470. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRegDataKey_SetKey_Proxy(
  1471. ISpRegDataKey * This,
  1472. /* [in] */ HKEY hkey,
  1473. /* [in] */ BOOL fReadOnly);
  1474. void __RPC_STUB ISpRegDataKey_SetKey_Stub(
  1475. IRpcStubBuffer *This,
  1476. IRpcChannelBuffer *_pRpcChannelBuffer,
  1477. PRPC_MESSAGE _pRpcMessage,
  1478. DWORD *_pdwStubPhase);
  1479. #endif /* __ISpRegDataKey_INTERFACE_DEFINED__ */
  1480. #ifndef __ISpObjectTokenCategory_INTERFACE_DEFINED__
  1481. #define __ISpObjectTokenCategory_INTERFACE_DEFINED__
  1482. /* interface ISpObjectTokenCategory */
  1483. /* [restricted][unique][helpstring][uuid][object] */
  1484. EXTERN_C const IID IID_ISpObjectTokenCategory;
  1485. #if defined(__cplusplus) && !defined(CINTERFACE)
  1486. MIDL_INTERFACE("2D3D3845-39AF-4850-BBF9-40B49780011D")
  1487. ISpObjectTokenCategory : public ISpDataKey
  1488. {
  1489. public:
  1490. virtual HRESULT STDMETHODCALLTYPE SetId(
  1491. /* [in] */ const WCHAR *pszCategoryId,
  1492. BOOL fCreateIfNotExist) = 0;
  1493. virtual HRESULT STDMETHODCALLTYPE GetId(
  1494. /* [out] */ WCHAR **ppszCoMemCategoryId) = 0;
  1495. virtual HRESULT STDMETHODCALLTYPE GetDataKey(
  1496. SPDATAKEYLOCATION spdkl,
  1497. ISpDataKey **ppDataKey) = 0;
  1498. virtual HRESULT STDMETHODCALLTYPE EnumTokens(
  1499. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1500. /* [string][in] */ const WCHAR *pszOptAttribs,
  1501. /* [out] */ IEnumSpObjectTokens **ppEnum) = 0;
  1502. virtual HRESULT STDMETHODCALLTYPE SetDefaultTokenId(
  1503. /* [in] */ const WCHAR *pszTokenId) = 0;
  1504. virtual HRESULT STDMETHODCALLTYPE GetDefaultTokenId(
  1505. /* [out] */ WCHAR **ppszCoMemTokenId) = 0;
  1506. };
  1507. #else /* C style interface */
  1508. typedef struct ISpObjectTokenCategoryVtbl
  1509. {
  1510. BEGIN_INTERFACE
  1511. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1512. ISpObjectTokenCategory * This,
  1513. /* [in] */ REFIID riid,
  1514. /* [iid_is][out] */ void **ppvObject);
  1515. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1516. ISpObjectTokenCategory * This);
  1517. ULONG ( STDMETHODCALLTYPE *Release )(
  1518. ISpObjectTokenCategory * This);
  1519. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1520. ISpObjectTokenCategory * This,
  1521. const WCHAR *pszValueName,
  1522. ULONG cbData,
  1523. const BYTE *pData);
  1524. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1525. ISpObjectTokenCategory * This,
  1526. const WCHAR *pszValueName,
  1527. ULONG *pcbData,
  1528. BYTE *pData);
  1529. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1530. ISpObjectTokenCategory * This,
  1531. const WCHAR *pszValueName,
  1532. const WCHAR *pszValue);
  1533. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1534. ISpObjectTokenCategory * This,
  1535. const WCHAR *pszValueName,
  1536. WCHAR **ppszValue);
  1537. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1538. ISpObjectTokenCategory * This,
  1539. const WCHAR *pszValueName,
  1540. DWORD dwValue);
  1541. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1542. ISpObjectTokenCategory * This,
  1543. const WCHAR *pszValueName,
  1544. DWORD *pdwValue);
  1545. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1546. ISpObjectTokenCategory * This,
  1547. const WCHAR *pszSubKeyName,
  1548. ISpDataKey **ppSubKey);
  1549. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1550. ISpObjectTokenCategory * This,
  1551. const WCHAR *pszSubKey,
  1552. ISpDataKey **ppSubKey);
  1553. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1554. ISpObjectTokenCategory * This,
  1555. const WCHAR *pszSubKey);
  1556. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1557. ISpObjectTokenCategory * This,
  1558. const WCHAR *pszValueName);
  1559. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1560. ISpObjectTokenCategory * This,
  1561. ULONG Index,
  1562. WCHAR **ppszSubKeyName);
  1563. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1564. ISpObjectTokenCategory * This,
  1565. ULONG Index,
  1566. WCHAR **ppszValueName);
  1567. HRESULT ( STDMETHODCALLTYPE *SetId )(
  1568. ISpObjectTokenCategory * This,
  1569. /* [in] */ const WCHAR *pszCategoryId,
  1570. BOOL fCreateIfNotExist);
  1571. HRESULT ( STDMETHODCALLTYPE *GetId )(
  1572. ISpObjectTokenCategory * This,
  1573. /* [out] */ WCHAR **ppszCoMemCategoryId);
  1574. HRESULT ( STDMETHODCALLTYPE *GetDataKey )(
  1575. ISpObjectTokenCategory * This,
  1576. SPDATAKEYLOCATION spdkl,
  1577. ISpDataKey **ppDataKey);
  1578. HRESULT ( STDMETHODCALLTYPE *EnumTokens )(
  1579. ISpObjectTokenCategory * This,
  1580. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1581. /* [string][in] */ const WCHAR *pszOptAttribs,
  1582. /* [out] */ IEnumSpObjectTokens **ppEnum);
  1583. HRESULT ( STDMETHODCALLTYPE *SetDefaultTokenId )(
  1584. ISpObjectTokenCategory * This,
  1585. /* [in] */ const WCHAR *pszTokenId);
  1586. HRESULT ( STDMETHODCALLTYPE *GetDefaultTokenId )(
  1587. ISpObjectTokenCategory * This,
  1588. /* [out] */ WCHAR **ppszCoMemTokenId);
  1589. END_INTERFACE
  1590. } ISpObjectTokenCategoryVtbl;
  1591. interface ISpObjectTokenCategory
  1592. {
  1593. CONST_VTBL struct ISpObjectTokenCategoryVtbl *lpVtbl;
  1594. };
  1595. #ifdef COBJMACROS
  1596. #define ISpObjectTokenCategory_QueryInterface(This,riid,ppvObject) \
  1597. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1598. #define ISpObjectTokenCategory_AddRef(This) \
  1599. (This)->lpVtbl -> AddRef(This)
  1600. #define ISpObjectTokenCategory_Release(This) \
  1601. (This)->lpVtbl -> Release(This)
  1602. #define ISpObjectTokenCategory_SetData(This,pszValueName,cbData,pData) \
  1603. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1604. #define ISpObjectTokenCategory_GetData(This,pszValueName,pcbData,pData) \
  1605. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1606. #define ISpObjectTokenCategory_SetStringValue(This,pszValueName,pszValue) \
  1607. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1608. #define ISpObjectTokenCategory_GetStringValue(This,pszValueName,ppszValue) \
  1609. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1610. #define ISpObjectTokenCategory_SetDWORD(This,pszValueName,dwValue) \
  1611. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1612. #define ISpObjectTokenCategory_GetDWORD(This,pszValueName,pdwValue) \
  1613. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1614. #define ISpObjectTokenCategory_OpenKey(This,pszSubKeyName,ppSubKey) \
  1615. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1616. #define ISpObjectTokenCategory_CreateKey(This,pszSubKey,ppSubKey) \
  1617. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1618. #define ISpObjectTokenCategory_DeleteKey(This,pszSubKey) \
  1619. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1620. #define ISpObjectTokenCategory_DeleteValue(This,pszValueName) \
  1621. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1622. #define ISpObjectTokenCategory_EnumKeys(This,Index,ppszSubKeyName) \
  1623. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1624. #define ISpObjectTokenCategory_EnumValues(This,Index,ppszValueName) \
  1625. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1626. #define ISpObjectTokenCategory_SetId(This,pszCategoryId,fCreateIfNotExist) \
  1627. (This)->lpVtbl -> SetId(This,pszCategoryId,fCreateIfNotExist)
  1628. #define ISpObjectTokenCategory_GetId(This,ppszCoMemCategoryId) \
  1629. (This)->lpVtbl -> GetId(This,ppszCoMemCategoryId)
  1630. #define ISpObjectTokenCategory_GetDataKey(This,spdkl,ppDataKey) \
  1631. (This)->lpVtbl -> GetDataKey(This,spdkl,ppDataKey)
  1632. #define ISpObjectTokenCategory_EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum) \
  1633. (This)->lpVtbl -> EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum)
  1634. #define ISpObjectTokenCategory_SetDefaultTokenId(This,pszTokenId) \
  1635. (This)->lpVtbl -> SetDefaultTokenId(This,pszTokenId)
  1636. #define ISpObjectTokenCategory_GetDefaultTokenId(This,ppszCoMemTokenId) \
  1637. (This)->lpVtbl -> GetDefaultTokenId(This,ppszCoMemTokenId)
  1638. #endif /* COBJMACROS */
  1639. #endif /* C style interface */
  1640. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_SetId_Proxy(
  1641. ISpObjectTokenCategory * This,
  1642. /* [in] */ const WCHAR *pszCategoryId,
  1643. BOOL fCreateIfNotExist);
  1644. void __RPC_STUB ISpObjectTokenCategory_SetId_Stub(
  1645. IRpcStubBuffer *This,
  1646. IRpcChannelBuffer *_pRpcChannelBuffer,
  1647. PRPC_MESSAGE _pRpcMessage,
  1648. DWORD *_pdwStubPhase);
  1649. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetId_Proxy(
  1650. ISpObjectTokenCategory * This,
  1651. /* [out] */ WCHAR **ppszCoMemCategoryId);
  1652. void __RPC_STUB ISpObjectTokenCategory_GetId_Stub(
  1653. IRpcStubBuffer *This,
  1654. IRpcChannelBuffer *_pRpcChannelBuffer,
  1655. PRPC_MESSAGE _pRpcMessage,
  1656. DWORD *_pdwStubPhase);
  1657. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetDataKey_Proxy(
  1658. ISpObjectTokenCategory * This,
  1659. SPDATAKEYLOCATION spdkl,
  1660. ISpDataKey **ppDataKey);
  1661. void __RPC_STUB ISpObjectTokenCategory_GetDataKey_Stub(
  1662. IRpcStubBuffer *This,
  1663. IRpcChannelBuffer *_pRpcChannelBuffer,
  1664. PRPC_MESSAGE _pRpcMessage,
  1665. DWORD *_pdwStubPhase);
  1666. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_EnumTokens_Proxy(
  1667. ISpObjectTokenCategory * This,
  1668. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1669. /* [string][in] */ const WCHAR *pszOptAttribs,
  1670. /* [out] */ IEnumSpObjectTokens **ppEnum);
  1671. void __RPC_STUB ISpObjectTokenCategory_EnumTokens_Stub(
  1672. IRpcStubBuffer *This,
  1673. IRpcChannelBuffer *_pRpcChannelBuffer,
  1674. PRPC_MESSAGE _pRpcMessage,
  1675. DWORD *_pdwStubPhase);
  1676. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_SetDefaultTokenId_Proxy(
  1677. ISpObjectTokenCategory * This,
  1678. /* [in] */ const WCHAR *pszTokenId);
  1679. void __RPC_STUB ISpObjectTokenCategory_SetDefaultTokenId_Stub(
  1680. IRpcStubBuffer *This,
  1681. IRpcChannelBuffer *_pRpcChannelBuffer,
  1682. PRPC_MESSAGE _pRpcMessage,
  1683. DWORD *_pdwStubPhase);
  1684. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetDefaultTokenId_Proxy(
  1685. ISpObjectTokenCategory * This,
  1686. /* [out] */ WCHAR **ppszCoMemTokenId);
  1687. void __RPC_STUB ISpObjectTokenCategory_GetDefaultTokenId_Stub(
  1688. IRpcStubBuffer *This,
  1689. IRpcChannelBuffer *_pRpcChannelBuffer,
  1690. PRPC_MESSAGE _pRpcMessage,
  1691. DWORD *_pdwStubPhase);
  1692. #endif /* __ISpObjectTokenCategory_INTERFACE_DEFINED__ */
  1693. #ifndef __ISpObjectToken_INTERFACE_DEFINED__
  1694. #define __ISpObjectToken_INTERFACE_DEFINED__
  1695. /* interface ISpObjectToken */
  1696. /* [restricted][unique][helpstring][uuid][object] */
  1697. EXTERN_C const IID IID_ISpObjectToken;
  1698. #if defined(__cplusplus) && !defined(CINTERFACE)
  1699. MIDL_INTERFACE("14056589-E16C-11D2-BB90-00C04F8EE6C0")
  1700. ISpObjectToken : public ISpDataKey
  1701. {
  1702. public:
  1703. virtual HRESULT STDMETHODCALLTYPE SetId(
  1704. const WCHAR *pszCategoryId,
  1705. const WCHAR *pszTokenId,
  1706. BOOL fCreateIfNotExist) = 0;
  1707. virtual HRESULT STDMETHODCALLTYPE GetId(
  1708. WCHAR **ppszCoMemTokenId) = 0;
  1709. virtual HRESULT STDMETHODCALLTYPE GetCategory(
  1710. ISpObjectTokenCategory **ppTokenCategory) = 0;
  1711. virtual HRESULT STDMETHODCALLTYPE CreateInstance(
  1712. /* [in] */ IUnknown *pUnkOuter,
  1713. /* [in] */ DWORD dwClsContext,
  1714. /* [in] */ REFIID riid,
  1715. /* [iid_is][out] */ void **ppvObject) = 0;
  1716. virtual HRESULT STDMETHODCALLTYPE GetStorageFileName(
  1717. /* [in] */ REFCLSID clsidCaller,
  1718. /* [in] */ const WCHAR *pszValueName,
  1719. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1720. /* [in] */ ULONG nFolder,
  1721. /* [out] */ WCHAR **ppszFilePath) = 0;
  1722. virtual HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  1723. /* [in] */ REFCLSID clsidCaller,
  1724. /* [in] */ const WCHAR *pszKeyName,
  1725. /* [in] */ BOOL fDeleteFile) = 0;
  1726. virtual HRESULT STDMETHODCALLTYPE Remove(
  1727. const CLSID *pclsidCaller) = 0;
  1728. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  1729. /* [in] */ const WCHAR *pszTypeOfUI,
  1730. /* [in] */ void *pvExtraData,
  1731. /* [in] */ ULONG cbExtraData,
  1732. /* [in] */ IUnknown *punkObject,
  1733. /* [out] */ BOOL *pfSupported) = 0;
  1734. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  1735. /* [in] */ HWND hwndParent,
  1736. /* [in] */ const WCHAR *pszTitle,
  1737. /* [in] */ const WCHAR *pszTypeOfUI,
  1738. /* [in] */ void *pvExtraData,
  1739. /* [in] */ ULONG cbExtraData,
  1740. /* [in] */ IUnknown *punkObject) = 0;
  1741. virtual HRESULT STDMETHODCALLTYPE MatchesAttributes(
  1742. /* [in] */ const WCHAR *pszAttributes,
  1743. /* [out] */ BOOL *pfMatches) = 0;
  1744. };
  1745. #else /* C style interface */
  1746. typedef struct ISpObjectTokenVtbl
  1747. {
  1748. BEGIN_INTERFACE
  1749. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1750. ISpObjectToken * This,
  1751. /* [in] */ REFIID riid,
  1752. /* [iid_is][out] */ void **ppvObject);
  1753. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1754. ISpObjectToken * This);
  1755. ULONG ( STDMETHODCALLTYPE *Release )(
  1756. ISpObjectToken * This);
  1757. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1758. ISpObjectToken * This,
  1759. const WCHAR *pszValueName,
  1760. ULONG cbData,
  1761. const BYTE *pData);
  1762. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1763. ISpObjectToken * This,
  1764. const WCHAR *pszValueName,
  1765. ULONG *pcbData,
  1766. BYTE *pData);
  1767. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1768. ISpObjectToken * This,
  1769. const WCHAR *pszValueName,
  1770. const WCHAR *pszValue);
  1771. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1772. ISpObjectToken * This,
  1773. const WCHAR *pszValueName,
  1774. WCHAR **ppszValue);
  1775. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1776. ISpObjectToken * This,
  1777. const WCHAR *pszValueName,
  1778. DWORD dwValue);
  1779. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1780. ISpObjectToken * This,
  1781. const WCHAR *pszValueName,
  1782. DWORD *pdwValue);
  1783. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1784. ISpObjectToken * This,
  1785. const WCHAR *pszSubKeyName,
  1786. ISpDataKey **ppSubKey);
  1787. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1788. ISpObjectToken * This,
  1789. const WCHAR *pszSubKey,
  1790. ISpDataKey **ppSubKey);
  1791. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1792. ISpObjectToken * This,
  1793. const WCHAR *pszSubKey);
  1794. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1795. ISpObjectToken * This,
  1796. const WCHAR *pszValueName);
  1797. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1798. ISpObjectToken * This,
  1799. ULONG Index,
  1800. WCHAR **ppszSubKeyName);
  1801. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1802. ISpObjectToken * This,
  1803. ULONG Index,
  1804. WCHAR **ppszValueName);
  1805. HRESULT ( STDMETHODCALLTYPE *SetId )(
  1806. ISpObjectToken * This,
  1807. const WCHAR *pszCategoryId,
  1808. const WCHAR *pszTokenId,
  1809. BOOL fCreateIfNotExist);
  1810. HRESULT ( STDMETHODCALLTYPE *GetId )(
  1811. ISpObjectToken * This,
  1812. WCHAR **ppszCoMemTokenId);
  1813. HRESULT ( STDMETHODCALLTYPE *GetCategory )(
  1814. ISpObjectToken * This,
  1815. ISpObjectTokenCategory **ppTokenCategory);
  1816. HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  1817. ISpObjectToken * This,
  1818. /* [in] */ IUnknown *pUnkOuter,
  1819. /* [in] */ DWORD dwClsContext,
  1820. /* [in] */ REFIID riid,
  1821. /* [iid_is][out] */ void **ppvObject);
  1822. HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  1823. ISpObjectToken * This,
  1824. /* [in] */ REFCLSID clsidCaller,
  1825. /* [in] */ const WCHAR *pszValueName,
  1826. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1827. /* [in] */ ULONG nFolder,
  1828. /* [out] */ WCHAR **ppszFilePath);
  1829. HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  1830. ISpObjectToken * This,
  1831. /* [in] */ REFCLSID clsidCaller,
  1832. /* [in] */ const WCHAR *pszKeyName,
  1833. /* [in] */ BOOL fDeleteFile);
  1834. HRESULT ( STDMETHODCALLTYPE *Remove )(
  1835. ISpObjectToken * This,
  1836. const CLSID *pclsidCaller);
  1837. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  1838. ISpObjectToken * This,
  1839. /* [in] */ const WCHAR *pszTypeOfUI,
  1840. /* [in] */ void *pvExtraData,
  1841. /* [in] */ ULONG cbExtraData,
  1842. /* [in] */ IUnknown *punkObject,
  1843. /* [out] */ BOOL *pfSupported);
  1844. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  1845. ISpObjectToken * This,
  1846. /* [in] */ HWND hwndParent,
  1847. /* [in] */ const WCHAR *pszTitle,
  1848. /* [in] */ const WCHAR *pszTypeOfUI,
  1849. /* [in] */ void *pvExtraData,
  1850. /* [in] */ ULONG cbExtraData,
  1851. /* [in] */ IUnknown *punkObject);
  1852. HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  1853. ISpObjectToken * This,
  1854. /* [in] */ const WCHAR *pszAttributes,
  1855. /* [out] */ BOOL *pfMatches);
  1856. END_INTERFACE
  1857. } ISpObjectTokenVtbl;
  1858. interface ISpObjectToken
  1859. {
  1860. CONST_VTBL struct ISpObjectTokenVtbl *lpVtbl;
  1861. };
  1862. #ifdef COBJMACROS
  1863. #define ISpObjectToken_QueryInterface(This,riid,ppvObject) \
  1864. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1865. #define ISpObjectToken_AddRef(This) \
  1866. (This)->lpVtbl -> AddRef(This)
  1867. #define ISpObjectToken_Release(This) \
  1868. (This)->lpVtbl -> Release(This)
  1869. #define ISpObjectToken_SetData(This,pszValueName,cbData,pData) \
  1870. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1871. #define ISpObjectToken_GetData(This,pszValueName,pcbData,pData) \
  1872. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1873. #define ISpObjectToken_SetStringValue(This,pszValueName,pszValue) \
  1874. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1875. #define ISpObjectToken_GetStringValue(This,pszValueName,ppszValue) \
  1876. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1877. #define ISpObjectToken_SetDWORD(This,pszValueName,dwValue) \
  1878. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1879. #define ISpObjectToken_GetDWORD(This,pszValueName,pdwValue) \
  1880. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1881. #define ISpObjectToken_OpenKey(This,pszSubKeyName,ppSubKey) \
  1882. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1883. #define ISpObjectToken_CreateKey(This,pszSubKey,ppSubKey) \
  1884. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1885. #define ISpObjectToken_DeleteKey(This,pszSubKey) \
  1886. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1887. #define ISpObjectToken_DeleteValue(This,pszValueName) \
  1888. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1889. #define ISpObjectToken_EnumKeys(This,Index,ppszSubKeyName) \
  1890. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1891. #define ISpObjectToken_EnumValues(This,Index,ppszValueName) \
  1892. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1893. #define ISpObjectToken_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) \
  1894. (This)->lpVtbl -> SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  1895. #define ISpObjectToken_GetId(This,ppszCoMemTokenId) \
  1896. (This)->lpVtbl -> GetId(This,ppszCoMemTokenId)
  1897. #define ISpObjectToken_GetCategory(This,ppTokenCategory) \
  1898. (This)->lpVtbl -> GetCategory(This,ppTokenCategory)
  1899. #define ISpObjectToken_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) \
  1900. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  1901. #define ISpObjectToken_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) \
  1902. (This)->lpVtbl -> GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  1903. #define ISpObjectToken_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) \
  1904. (This)->lpVtbl -> RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  1905. #define ISpObjectToken_Remove(This,pclsidCaller) \
  1906. (This)->lpVtbl -> Remove(This,pclsidCaller)
  1907. #define ISpObjectToken_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) \
  1908. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  1909. #define ISpObjectToken_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) \
  1910. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  1911. #define ISpObjectToken_MatchesAttributes(This,pszAttributes,pfMatches) \
  1912. (This)->lpVtbl -> MatchesAttributes(This,pszAttributes,pfMatches)
  1913. #endif /* COBJMACROS */
  1914. #endif /* C style interface */
  1915. HRESULT STDMETHODCALLTYPE ISpObjectToken_SetId_Proxy(
  1916. ISpObjectToken * This,
  1917. const WCHAR *pszCategoryId,
  1918. const WCHAR *pszTokenId,
  1919. BOOL fCreateIfNotExist);
  1920. void __RPC_STUB ISpObjectToken_SetId_Stub(
  1921. IRpcStubBuffer *This,
  1922. IRpcChannelBuffer *_pRpcChannelBuffer,
  1923. PRPC_MESSAGE _pRpcMessage,
  1924. DWORD *_pdwStubPhase);
  1925. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetId_Proxy(
  1926. ISpObjectToken * This,
  1927. WCHAR **ppszCoMemTokenId);
  1928. void __RPC_STUB ISpObjectToken_GetId_Stub(
  1929. IRpcStubBuffer *This,
  1930. IRpcChannelBuffer *_pRpcChannelBuffer,
  1931. PRPC_MESSAGE _pRpcMessage,
  1932. DWORD *_pdwStubPhase);
  1933. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetCategory_Proxy(
  1934. ISpObjectToken * This,
  1935. ISpObjectTokenCategory **ppTokenCategory);
  1936. void __RPC_STUB ISpObjectToken_GetCategory_Stub(
  1937. IRpcStubBuffer *This,
  1938. IRpcChannelBuffer *_pRpcChannelBuffer,
  1939. PRPC_MESSAGE _pRpcMessage,
  1940. DWORD *_pdwStubPhase);
  1941. HRESULT STDMETHODCALLTYPE ISpObjectToken_CreateInstance_Proxy(
  1942. ISpObjectToken * This,
  1943. /* [in] */ IUnknown *pUnkOuter,
  1944. /* [in] */ DWORD dwClsContext,
  1945. /* [in] */ REFIID riid,
  1946. /* [iid_is][out] */ void **ppvObject);
  1947. void __RPC_STUB ISpObjectToken_CreateInstance_Stub(
  1948. IRpcStubBuffer *This,
  1949. IRpcChannelBuffer *_pRpcChannelBuffer,
  1950. PRPC_MESSAGE _pRpcMessage,
  1951. DWORD *_pdwStubPhase);
  1952. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetStorageFileName_Proxy(
  1953. ISpObjectToken * This,
  1954. /* [in] */ REFCLSID clsidCaller,
  1955. /* [in] */ const WCHAR *pszValueName,
  1956. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1957. /* [in] */ ULONG nFolder,
  1958. /* [out] */ WCHAR **ppszFilePath);
  1959. void __RPC_STUB ISpObjectToken_GetStorageFileName_Stub(
  1960. IRpcStubBuffer *This,
  1961. IRpcChannelBuffer *_pRpcChannelBuffer,
  1962. PRPC_MESSAGE _pRpcMessage,
  1963. DWORD *_pdwStubPhase);
  1964. HRESULT STDMETHODCALLTYPE ISpObjectToken_RemoveStorageFileName_Proxy(
  1965. ISpObjectToken * This,
  1966. /* [in] */ REFCLSID clsidCaller,
  1967. /* [in] */ const WCHAR *pszKeyName,
  1968. /* [in] */ BOOL fDeleteFile);
  1969. void __RPC_STUB ISpObjectToken_RemoveStorageFileName_Stub(
  1970. IRpcStubBuffer *This,
  1971. IRpcChannelBuffer *_pRpcChannelBuffer,
  1972. PRPC_MESSAGE _pRpcMessage,
  1973. DWORD *_pdwStubPhase);
  1974. HRESULT STDMETHODCALLTYPE ISpObjectToken_Remove_Proxy(
  1975. ISpObjectToken * This,
  1976. const CLSID *pclsidCaller);
  1977. void __RPC_STUB ISpObjectToken_Remove_Stub(
  1978. IRpcStubBuffer *This,
  1979. IRpcChannelBuffer *_pRpcChannelBuffer,
  1980. PRPC_MESSAGE _pRpcMessage,
  1981. DWORD *_pdwStubPhase);
  1982. /* [local] */ HRESULT STDMETHODCALLTYPE ISpObjectToken_IsUISupported_Proxy(
  1983. ISpObjectToken * This,
  1984. /* [in] */ const WCHAR *pszTypeOfUI,
  1985. /* [in] */ void *pvExtraData,
  1986. /* [in] */ ULONG cbExtraData,
  1987. /* [in] */ IUnknown *punkObject,
  1988. /* [out] */ BOOL *pfSupported);
  1989. void __RPC_STUB ISpObjectToken_IsUISupported_Stub(
  1990. IRpcStubBuffer *This,
  1991. IRpcChannelBuffer *_pRpcChannelBuffer,
  1992. PRPC_MESSAGE _pRpcMessage,
  1993. DWORD *_pdwStubPhase);
  1994. /* [local] */ HRESULT STDMETHODCALLTYPE ISpObjectToken_DisplayUI_Proxy(
  1995. ISpObjectToken * This,
  1996. /* [in] */ HWND hwndParent,
  1997. /* [in] */ const WCHAR *pszTitle,
  1998. /* [in] */ const WCHAR *pszTypeOfUI,
  1999. /* [in] */ void *pvExtraData,
  2000. /* [in] */ ULONG cbExtraData,
  2001. /* [in] */ IUnknown *punkObject);
  2002. void __RPC_STUB ISpObjectToken_DisplayUI_Stub(
  2003. IRpcStubBuffer *This,
  2004. IRpcChannelBuffer *_pRpcChannelBuffer,
  2005. PRPC_MESSAGE _pRpcMessage,
  2006. DWORD *_pdwStubPhase);
  2007. HRESULT STDMETHODCALLTYPE ISpObjectToken_MatchesAttributes_Proxy(
  2008. ISpObjectToken * This,
  2009. /* [in] */ const WCHAR *pszAttributes,
  2010. /* [out] */ BOOL *pfMatches);
  2011. void __RPC_STUB ISpObjectToken_MatchesAttributes_Stub(
  2012. IRpcStubBuffer *This,
  2013. IRpcChannelBuffer *_pRpcChannelBuffer,
  2014. PRPC_MESSAGE _pRpcMessage,
  2015. DWORD *_pdwStubPhase);
  2016. #endif /* __ISpObjectToken_INTERFACE_DEFINED__ */
  2017. #ifndef __ISpObjectTokenInit_INTERFACE_DEFINED__
  2018. #define __ISpObjectTokenInit_INTERFACE_DEFINED__
  2019. /* interface ISpObjectTokenInit */
  2020. /* [restricted][unique][helpstring][uuid][object] */
  2021. EXTERN_C const IID IID_ISpObjectTokenInit;
  2022. #if defined(__cplusplus) && !defined(CINTERFACE)
  2023. MIDL_INTERFACE("B8AAB0CF-346F-49D8-9499-C8B03F161D51")
  2024. ISpObjectTokenInit : public ISpObjectToken
  2025. {
  2026. public:
  2027. virtual HRESULT STDMETHODCALLTYPE InitFromDataKey(
  2028. /* [in] */ const WCHAR *pszCategoryId,
  2029. /* [in] */ const WCHAR *pszTokenId,
  2030. /* [in] */ ISpDataKey *pDataKey) = 0;
  2031. };
  2032. #else /* C style interface */
  2033. typedef struct ISpObjectTokenInitVtbl
  2034. {
  2035. BEGIN_INTERFACE
  2036. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2037. ISpObjectTokenInit * This,
  2038. /* [in] */ REFIID riid,
  2039. /* [iid_is][out] */ void **ppvObject);
  2040. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2041. ISpObjectTokenInit * This);
  2042. ULONG ( STDMETHODCALLTYPE *Release )(
  2043. ISpObjectTokenInit * This);
  2044. HRESULT ( STDMETHODCALLTYPE *SetData )(
  2045. ISpObjectTokenInit * This,
  2046. const WCHAR *pszValueName,
  2047. ULONG cbData,
  2048. const BYTE *pData);
  2049. HRESULT ( STDMETHODCALLTYPE *GetData )(
  2050. ISpObjectTokenInit * This,
  2051. const WCHAR *pszValueName,
  2052. ULONG *pcbData,
  2053. BYTE *pData);
  2054. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  2055. ISpObjectTokenInit * This,
  2056. const WCHAR *pszValueName,
  2057. const WCHAR *pszValue);
  2058. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  2059. ISpObjectTokenInit * This,
  2060. const WCHAR *pszValueName,
  2061. WCHAR **ppszValue);
  2062. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  2063. ISpObjectTokenInit * This,
  2064. const WCHAR *pszValueName,
  2065. DWORD dwValue);
  2066. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  2067. ISpObjectTokenInit * This,
  2068. const WCHAR *pszValueName,
  2069. DWORD *pdwValue);
  2070. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  2071. ISpObjectTokenInit * This,
  2072. const WCHAR *pszSubKeyName,
  2073. ISpDataKey **ppSubKey);
  2074. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  2075. ISpObjectTokenInit * This,
  2076. const WCHAR *pszSubKey,
  2077. ISpDataKey **ppSubKey);
  2078. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  2079. ISpObjectTokenInit * This,
  2080. const WCHAR *pszSubKey);
  2081. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  2082. ISpObjectTokenInit * This,
  2083. const WCHAR *pszValueName);
  2084. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  2085. ISpObjectTokenInit * This,
  2086. ULONG Index,
  2087. WCHAR **ppszSubKeyName);
  2088. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  2089. ISpObjectTokenInit * This,
  2090. ULONG Index,
  2091. WCHAR **ppszValueName);
  2092. HRESULT ( STDMETHODCALLTYPE *SetId )(
  2093. ISpObjectTokenInit * This,
  2094. const WCHAR *pszCategoryId,
  2095. const WCHAR *pszTokenId,
  2096. BOOL fCreateIfNotExist);
  2097. HRESULT ( STDMETHODCALLTYPE *GetId )(
  2098. ISpObjectTokenInit * This,
  2099. WCHAR **ppszCoMemTokenId);
  2100. HRESULT ( STDMETHODCALLTYPE *GetCategory )(
  2101. ISpObjectTokenInit * This,
  2102. ISpObjectTokenCategory **ppTokenCategory);
  2103. HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  2104. ISpObjectTokenInit * This,
  2105. /* [in] */ IUnknown *pUnkOuter,
  2106. /* [in] */ DWORD dwClsContext,
  2107. /* [in] */ REFIID riid,
  2108. /* [iid_is][out] */ void **ppvObject);
  2109. HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  2110. ISpObjectTokenInit * This,
  2111. /* [in] */ REFCLSID clsidCaller,
  2112. /* [in] */ const WCHAR *pszValueName,
  2113. /* [in] */ const WCHAR *pszFileNameSpecifier,
  2114. /* [in] */ ULONG nFolder,
  2115. /* [out] */ WCHAR **ppszFilePath);
  2116. HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  2117. ISpObjectTokenInit * This,
  2118. /* [in] */ REFCLSID clsidCaller,
  2119. /* [in] */ const WCHAR *pszKeyName,
  2120. /* [in] */ BOOL fDeleteFile);
  2121. HRESULT ( STDMETHODCALLTYPE *Remove )(
  2122. ISpObjectTokenInit * This,
  2123. const CLSID *pclsidCaller);
  2124. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  2125. ISpObjectTokenInit * This,
  2126. /* [in] */ const WCHAR *pszTypeOfUI,
  2127. /* [in] */ void *pvExtraData,
  2128. /* [in] */ ULONG cbExtraData,
  2129. /* [in] */ IUnknown *punkObject,
  2130. /* [out] */ BOOL *pfSupported);
  2131. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  2132. ISpObjectTokenInit * This,
  2133. /* [in] */ HWND hwndParent,
  2134. /* [in] */ const WCHAR *pszTitle,
  2135. /* [in] */ const WCHAR *pszTypeOfUI,
  2136. /* [in] */ void *pvExtraData,
  2137. /* [in] */ ULONG cbExtraData,
  2138. /* [in] */ IUnknown *punkObject);
  2139. HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  2140. ISpObjectTokenInit * This,
  2141. /* [in] */ const WCHAR *pszAttributes,
  2142. /* [out] */ BOOL *pfMatches);
  2143. HRESULT ( STDMETHODCALLTYPE *InitFromDataKey )(
  2144. ISpObjectTokenInit * This,
  2145. /* [in] */ const WCHAR *pszCategoryId,
  2146. /* [in] */ const WCHAR *pszTokenId,
  2147. /* [in] */ ISpDataKey *pDataKey);
  2148. END_INTERFACE
  2149. } ISpObjectTokenInitVtbl;
  2150. interface ISpObjectTokenInit
  2151. {
  2152. CONST_VTBL struct ISpObjectTokenInitVtbl *lpVtbl;
  2153. };
  2154. #ifdef COBJMACROS
  2155. #define ISpObjectTokenInit_QueryInterface(This,riid,ppvObject) \
  2156. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2157. #define ISpObjectTokenInit_AddRef(This) \
  2158. (This)->lpVtbl -> AddRef(This)
  2159. #define ISpObjectTokenInit_Release(This) \
  2160. (This)->lpVtbl -> Release(This)
  2161. #define ISpObjectTokenInit_SetData(This,pszValueName,cbData,pData) \
  2162. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  2163. #define ISpObjectTokenInit_GetData(This,pszValueName,pcbData,pData) \
  2164. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  2165. #define ISpObjectTokenInit_SetStringValue(This,pszValueName,pszValue) \
  2166. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  2167. #define ISpObjectTokenInit_GetStringValue(This,pszValueName,ppszValue) \
  2168. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  2169. #define ISpObjectTokenInit_SetDWORD(This,pszValueName,dwValue) \
  2170. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  2171. #define ISpObjectTokenInit_GetDWORD(This,pszValueName,pdwValue) \
  2172. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  2173. #define ISpObjectTokenInit_OpenKey(This,pszSubKeyName,ppSubKey) \
  2174. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  2175. #define ISpObjectTokenInit_CreateKey(This,pszSubKey,ppSubKey) \
  2176. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  2177. #define ISpObjectTokenInit_DeleteKey(This,pszSubKey) \
  2178. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  2179. #define ISpObjectTokenInit_DeleteValue(This,pszValueName) \
  2180. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  2181. #define ISpObjectTokenInit_EnumKeys(This,Index,ppszSubKeyName) \
  2182. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  2183. #define ISpObjectTokenInit_EnumValues(This,Index,ppszValueName) \
  2184. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  2185. #define ISpObjectTokenInit_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) \
  2186. (This)->lpVtbl -> SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  2187. #define ISpObjectTokenInit_GetId(This,ppszCoMemTokenId) \
  2188. (This)->lpVtbl -> GetId(This,ppszCoMemTokenId)
  2189. #define ISpObjectTokenInit_GetCategory(This,ppTokenCategory) \
  2190. (This)->lpVtbl -> GetCategory(This,ppTokenCategory)
  2191. #define ISpObjectTokenInit_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) \
  2192. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  2193. #define ISpObjectTokenInit_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) \
  2194. (This)->lpVtbl -> GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  2195. #define ISpObjectTokenInit_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) \
  2196. (This)->lpVtbl -> RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  2197. #define ISpObjectTokenInit_Remove(This,pclsidCaller) \
  2198. (This)->lpVtbl -> Remove(This,pclsidCaller)
  2199. #define ISpObjectTokenInit_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) \
  2200. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  2201. #define ISpObjectTokenInit_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) \
  2202. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  2203. #define ISpObjectTokenInit_MatchesAttributes(This,pszAttributes,pfMatches) \
  2204. (This)->lpVtbl -> MatchesAttributes(This,pszAttributes,pfMatches)
  2205. #define ISpObjectTokenInit_InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey) \
  2206. (This)->lpVtbl -> InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey)
  2207. #endif /* COBJMACROS */
  2208. #endif /* C style interface */
  2209. HRESULT STDMETHODCALLTYPE ISpObjectTokenInit_InitFromDataKey_Proxy(
  2210. ISpObjectTokenInit * This,
  2211. /* [in] */ const WCHAR *pszCategoryId,
  2212. /* [in] */ const WCHAR *pszTokenId,
  2213. /* [in] */ ISpDataKey *pDataKey);
  2214. void __RPC_STUB ISpObjectTokenInit_InitFromDataKey_Stub(
  2215. IRpcStubBuffer *This,
  2216. IRpcChannelBuffer *_pRpcChannelBuffer,
  2217. PRPC_MESSAGE _pRpcMessage,
  2218. DWORD *_pdwStubPhase);
  2219. #endif /* __ISpObjectTokenInit_INTERFACE_DEFINED__ */
  2220. #ifndef __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2221. #define __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2222. /* interface IEnumSpObjectTokens */
  2223. /* [restricted][unique][helpstring][uuid][object] */
  2224. EXTERN_C const IID IID_IEnumSpObjectTokens;
  2225. #if defined(__cplusplus) && !defined(CINTERFACE)
  2226. MIDL_INTERFACE("06B64F9E-7FDA-11D2-B4F2-00C04F797396")
  2227. IEnumSpObjectTokens : public IUnknown
  2228. {
  2229. public:
  2230. virtual HRESULT STDMETHODCALLTYPE Next(
  2231. /* [in] */ ULONG celt,
  2232. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2233. /* [out] */ ULONG *pceltFetched) = 0;
  2234. virtual HRESULT STDMETHODCALLTYPE Skip(
  2235. /* [in] */ ULONG celt) = 0;
  2236. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2237. virtual HRESULT STDMETHODCALLTYPE Clone(
  2238. /* [out] */ IEnumSpObjectTokens **ppEnum) = 0;
  2239. virtual HRESULT STDMETHODCALLTYPE Item(
  2240. /* [in] */ ULONG Index,
  2241. /* [out] */ ISpObjectToken **ppToken) = 0;
  2242. virtual HRESULT STDMETHODCALLTYPE GetCount(
  2243. /* [out] */ ULONG *pCount) = 0;
  2244. };
  2245. #else /* C style interface */
  2246. typedef struct IEnumSpObjectTokensVtbl
  2247. {
  2248. BEGIN_INTERFACE
  2249. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2250. IEnumSpObjectTokens * This,
  2251. /* [in] */ REFIID riid,
  2252. /* [iid_is][out] */ void **ppvObject);
  2253. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2254. IEnumSpObjectTokens * This);
  2255. ULONG ( STDMETHODCALLTYPE *Release )(
  2256. IEnumSpObjectTokens * This);
  2257. HRESULT ( STDMETHODCALLTYPE *Next )(
  2258. IEnumSpObjectTokens * This,
  2259. /* [in] */ ULONG celt,
  2260. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2261. /* [out] */ ULONG *pceltFetched);
  2262. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2263. IEnumSpObjectTokens * This,
  2264. /* [in] */ ULONG celt);
  2265. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2266. IEnumSpObjectTokens * This);
  2267. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2268. IEnumSpObjectTokens * This,
  2269. /* [out] */ IEnumSpObjectTokens **ppEnum);
  2270. HRESULT ( STDMETHODCALLTYPE *Item )(
  2271. IEnumSpObjectTokens * This,
  2272. /* [in] */ ULONG Index,
  2273. /* [out] */ ISpObjectToken **ppToken);
  2274. HRESULT ( STDMETHODCALLTYPE *GetCount )(
  2275. IEnumSpObjectTokens * This,
  2276. /* [out] */ ULONG *pCount);
  2277. END_INTERFACE
  2278. } IEnumSpObjectTokensVtbl;
  2279. interface IEnumSpObjectTokens
  2280. {
  2281. CONST_VTBL struct IEnumSpObjectTokensVtbl *lpVtbl;
  2282. };
  2283. #ifdef COBJMACROS
  2284. #define IEnumSpObjectTokens_QueryInterface(This,riid,ppvObject) \
  2285. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2286. #define IEnumSpObjectTokens_AddRef(This) \
  2287. (This)->lpVtbl -> AddRef(This)
  2288. #define IEnumSpObjectTokens_Release(This) \
  2289. (This)->lpVtbl -> Release(This)
  2290. #define IEnumSpObjectTokens_Next(This,celt,pelt,pceltFetched) \
  2291. (This)->lpVtbl -> Next(This,celt,pelt,pceltFetched)
  2292. #define IEnumSpObjectTokens_Skip(This,celt) \
  2293. (This)->lpVtbl -> Skip(This,celt)
  2294. #define IEnumSpObjectTokens_Reset(This) \
  2295. (This)->lpVtbl -> Reset(This)
  2296. #define IEnumSpObjectTokens_Clone(This,ppEnum) \
  2297. (This)->lpVtbl -> Clone(This,ppEnum)
  2298. #define IEnumSpObjectTokens_Item(This,Index,ppToken) \
  2299. (This)->lpVtbl -> Item(This,Index,ppToken)
  2300. #define IEnumSpObjectTokens_GetCount(This,pCount) \
  2301. (This)->lpVtbl -> GetCount(This,pCount)
  2302. #endif /* COBJMACROS */
  2303. #endif /* C style interface */
  2304. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Next_Proxy(
  2305. IEnumSpObjectTokens * This,
  2306. /* [in] */ ULONG celt,
  2307. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2308. /* [out] */ ULONG *pceltFetched);
  2309. void __RPC_STUB IEnumSpObjectTokens_Next_Stub(
  2310. IRpcStubBuffer *This,
  2311. IRpcChannelBuffer *_pRpcChannelBuffer,
  2312. PRPC_MESSAGE _pRpcMessage,
  2313. DWORD *_pdwStubPhase);
  2314. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Skip_Proxy(
  2315. IEnumSpObjectTokens * This,
  2316. /* [in] */ ULONG celt);
  2317. void __RPC_STUB IEnumSpObjectTokens_Skip_Stub(
  2318. IRpcStubBuffer *This,
  2319. IRpcChannelBuffer *_pRpcChannelBuffer,
  2320. PRPC_MESSAGE _pRpcMessage,
  2321. DWORD *_pdwStubPhase);
  2322. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Reset_Proxy(
  2323. IEnumSpObjectTokens * This);
  2324. void __RPC_STUB IEnumSpObjectTokens_Reset_Stub(
  2325. IRpcStubBuffer *This,
  2326. IRpcChannelBuffer *_pRpcChannelBuffer,
  2327. PRPC_MESSAGE _pRpcMessage,
  2328. DWORD *_pdwStubPhase);
  2329. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Clone_Proxy(
  2330. IEnumSpObjectTokens * This,
  2331. /* [out] */ IEnumSpObjectTokens **ppEnum);
  2332. void __RPC_STUB IEnumSpObjectTokens_Clone_Stub(
  2333. IRpcStubBuffer *This,
  2334. IRpcChannelBuffer *_pRpcChannelBuffer,
  2335. PRPC_MESSAGE _pRpcMessage,
  2336. DWORD *_pdwStubPhase);
  2337. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Item_Proxy(
  2338. IEnumSpObjectTokens * This,
  2339. /* [in] */ ULONG Index,
  2340. /* [out] */ ISpObjectToken **ppToken);
  2341. void __RPC_STUB IEnumSpObjectTokens_Item_Stub(
  2342. IRpcStubBuffer *This,
  2343. IRpcChannelBuffer *_pRpcChannelBuffer,
  2344. PRPC_MESSAGE _pRpcMessage,
  2345. DWORD *_pdwStubPhase);
  2346. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_GetCount_Proxy(
  2347. IEnumSpObjectTokens * This,
  2348. /* [out] */ ULONG *pCount);
  2349. void __RPC_STUB IEnumSpObjectTokens_GetCount_Stub(
  2350. IRpcStubBuffer *This,
  2351. IRpcChannelBuffer *_pRpcChannelBuffer,
  2352. PRPC_MESSAGE _pRpcMessage,
  2353. DWORD *_pdwStubPhase);
  2354. #endif /* __IEnumSpObjectTokens_INTERFACE_DEFINED__ */
  2355. #ifndef __ISpObjectWithToken_INTERFACE_DEFINED__
  2356. #define __ISpObjectWithToken_INTERFACE_DEFINED__
  2357. /* interface ISpObjectWithToken */
  2358. /* [restricted][unique][helpstring][uuid][object] */
  2359. EXTERN_C const IID IID_ISpObjectWithToken;
  2360. #if defined(__cplusplus) && !defined(CINTERFACE)
  2361. MIDL_INTERFACE("5B559F40-E952-11D2-BB91-00C04F8EE6C0")
  2362. ISpObjectWithToken : public IUnknown
  2363. {
  2364. public:
  2365. virtual HRESULT STDMETHODCALLTYPE SetObjectToken(
  2366. ISpObjectToken *pToken) = 0;
  2367. virtual HRESULT STDMETHODCALLTYPE GetObjectToken(
  2368. ISpObjectToken **ppToken) = 0;
  2369. };
  2370. #else /* C style interface */
  2371. typedef struct ISpObjectWithTokenVtbl
  2372. {
  2373. BEGIN_INTERFACE
  2374. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2375. ISpObjectWithToken * This,
  2376. /* [in] */ REFIID riid,
  2377. /* [iid_is][out] */ void **ppvObject);
  2378. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2379. ISpObjectWithToken * This);
  2380. ULONG ( STDMETHODCALLTYPE *Release )(
  2381. ISpObjectWithToken * This);
  2382. HRESULT ( STDMETHODCALLTYPE *SetObjectToken )(
  2383. ISpObjectWithToken * This,
  2384. ISpObjectToken *pToken);
  2385. HRESULT ( STDMETHODCALLTYPE *GetObjectToken )(
  2386. ISpObjectWithToken * This,
  2387. ISpObjectToken **ppToken);
  2388. END_INTERFACE
  2389. } ISpObjectWithTokenVtbl;
  2390. interface ISpObjectWithToken
  2391. {
  2392. CONST_VTBL struct ISpObjectWithTokenVtbl *lpVtbl;
  2393. };
  2394. #ifdef COBJMACROS
  2395. #define ISpObjectWithToken_QueryInterface(This,riid,ppvObject) \
  2396. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2397. #define ISpObjectWithToken_AddRef(This) \
  2398. (This)->lpVtbl -> AddRef(This)
  2399. #define ISpObjectWithToken_Release(This) \
  2400. (This)->lpVtbl -> Release(This)
  2401. #define ISpObjectWithToken_SetObjectToken(This,pToken) \
  2402. (This)->lpVtbl -> SetObjectToken(This,pToken)
  2403. #define ISpObjectWithToken_GetObjectToken(This,ppToken) \
  2404. (This)->lpVtbl -> GetObjectToken(This,ppToken)
  2405. #endif /* COBJMACROS */
  2406. #endif /* C style interface */
  2407. HRESULT STDMETHODCALLTYPE ISpObjectWithToken_SetObjectToken_Proxy(
  2408. ISpObjectWithToken * This,
  2409. ISpObjectToken *pToken);
  2410. void __RPC_STUB ISpObjectWithToken_SetObjectToken_Stub(
  2411. IRpcStubBuffer *This,
  2412. IRpcChannelBuffer *_pRpcChannelBuffer,
  2413. PRPC_MESSAGE _pRpcMessage,
  2414. DWORD *_pdwStubPhase);
  2415. HRESULT STDMETHODCALLTYPE ISpObjectWithToken_GetObjectToken_Proxy(
  2416. ISpObjectWithToken * This,
  2417. ISpObjectToken **ppToken);
  2418. void __RPC_STUB ISpObjectWithToken_GetObjectToken_Stub(
  2419. IRpcStubBuffer *This,
  2420. IRpcChannelBuffer *_pRpcChannelBuffer,
  2421. PRPC_MESSAGE _pRpcMessage,
  2422. DWORD *_pdwStubPhase);
  2423. #endif /* __ISpObjectWithToken_INTERFACE_DEFINED__ */
  2424. #ifndef __ISpResourceManager_INTERFACE_DEFINED__
  2425. #define __ISpResourceManager_INTERFACE_DEFINED__
  2426. /* interface ISpResourceManager */
  2427. /* [restricted][unique][helpstring][uuid][object] */
  2428. EXTERN_C const IID IID_ISpResourceManager;
  2429. #if defined(__cplusplus) && !defined(CINTERFACE)
  2430. MIDL_INTERFACE("93384E18-5014-43D5-ADBB-A78E055926BD")
  2431. ISpResourceManager : public IServiceProvider
  2432. {
  2433. public:
  2434. virtual HRESULT STDMETHODCALLTYPE SetObject(
  2435. /* [in] */ REFGUID guidServiceId,
  2436. /* [in] */ IUnknown *pUnkObject) = 0;
  2437. virtual HRESULT STDMETHODCALLTYPE GetObject(
  2438. /* [in] */ REFGUID guidServiceId,
  2439. /* [in] */ REFCLSID ObjectCLSID,
  2440. /* [in] */ REFIID ObjectIID,
  2441. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2442. /* [iid_is][out] */ void **ppObject) = 0;
  2443. };
  2444. #else /* C style interface */
  2445. typedef struct ISpResourceManagerVtbl
  2446. {
  2447. BEGIN_INTERFACE
  2448. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2449. ISpResourceManager * This,
  2450. /* [in] */ REFIID riid,
  2451. /* [iid_is][out] */ void **ppvObject);
  2452. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2453. ISpResourceManager * This);
  2454. ULONG ( STDMETHODCALLTYPE *Release )(
  2455. ISpResourceManager * This);
  2456. /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )(
  2457. ISpResourceManager * This,
  2458. /* [in] */ REFGUID guidService,
  2459. /* [in] */ REFIID riid,
  2460. /* [out] */ void **ppvObject);
  2461. HRESULT ( STDMETHODCALLTYPE *SetObject )(
  2462. ISpResourceManager * This,
  2463. /* [in] */ REFGUID guidServiceId,
  2464. /* [in] */ IUnknown *pUnkObject);
  2465. HRESULT ( STDMETHODCALLTYPE *GetObject )(
  2466. ISpResourceManager * This,
  2467. /* [in] */ REFGUID guidServiceId,
  2468. /* [in] */ REFCLSID ObjectCLSID,
  2469. /* [in] */ REFIID ObjectIID,
  2470. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2471. /* [iid_is][out] */ void **ppObject);
  2472. END_INTERFACE
  2473. } ISpResourceManagerVtbl;
  2474. interface ISpResourceManager
  2475. {
  2476. CONST_VTBL struct ISpResourceManagerVtbl *lpVtbl;
  2477. };
  2478. #ifdef COBJMACROS
  2479. #define ISpResourceManager_QueryInterface(This,riid,ppvObject) \
  2480. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2481. #define ISpResourceManager_AddRef(This) \
  2482. (This)->lpVtbl -> AddRef(This)
  2483. #define ISpResourceManager_Release(This) \
  2484. (This)->lpVtbl -> Release(This)
  2485. #define ISpResourceManager_QueryService(This,guidService,riid,ppvObject) \
  2486. (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject)
  2487. #define ISpResourceManager_SetObject(This,guidServiceId,pUnkObject) \
  2488. (This)->lpVtbl -> SetObject(This,guidServiceId,pUnkObject)
  2489. #define ISpResourceManager_GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject) \
  2490. (This)->lpVtbl -> GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject)
  2491. #endif /* COBJMACROS */
  2492. #endif /* C style interface */
  2493. HRESULT STDMETHODCALLTYPE ISpResourceManager_SetObject_Proxy(
  2494. ISpResourceManager * This,
  2495. /* [in] */ REFGUID guidServiceId,
  2496. /* [in] */ IUnknown *pUnkObject);
  2497. void __RPC_STUB ISpResourceManager_SetObject_Stub(
  2498. IRpcStubBuffer *This,
  2499. IRpcChannelBuffer *_pRpcChannelBuffer,
  2500. PRPC_MESSAGE _pRpcMessage,
  2501. DWORD *_pdwStubPhase);
  2502. HRESULT STDMETHODCALLTYPE ISpResourceManager_GetObject_Proxy(
  2503. ISpResourceManager * This,
  2504. /* [in] */ REFGUID guidServiceId,
  2505. /* [in] */ REFCLSID ObjectCLSID,
  2506. /* [in] */ REFIID ObjectIID,
  2507. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2508. /* [iid_is][out] */ void **ppObject);
  2509. void __RPC_STUB ISpResourceManager_GetObject_Stub(
  2510. IRpcStubBuffer *This,
  2511. IRpcChannelBuffer *_pRpcChannelBuffer,
  2512. PRPC_MESSAGE _pRpcMessage,
  2513. DWORD *_pdwStubPhase);
  2514. #endif /* __ISpResourceManager_INTERFACE_DEFINED__ */
  2515. /* interface __MIDL_itf_sapi_0268 */
  2516. /* [local] */
  2517. typedef /* [hidden] */
  2518. enum SPEVENTLPARAMTYPE
  2519. { SPET_LPARAM_IS_UNDEFINED = 0,
  2520. SPET_LPARAM_IS_TOKEN = SPET_LPARAM_IS_UNDEFINED + 1,
  2521. SPET_LPARAM_IS_OBJECT = SPET_LPARAM_IS_TOKEN + 1,
  2522. SPET_LPARAM_IS_POINTER = SPET_LPARAM_IS_OBJECT + 1,
  2523. SPET_LPARAM_IS_STRING = SPET_LPARAM_IS_POINTER + 1
  2524. } SPEVENTLPARAMTYPE;
  2525. typedef /* [hidden] */
  2526. enum SPEVENTENUM
  2527. { SPEI_UNDEFINED = 0,
  2528. SPEI_START_INPUT_STREAM = 1,
  2529. SPEI_END_INPUT_STREAM = 2,
  2530. SPEI_VOICE_CHANGE = 3,
  2531. SPEI_TTS_BOOKMARK = 4,
  2532. SPEI_WORD_BOUNDARY = 5,
  2533. SPEI_PHONEME = 6,
  2534. SPEI_SENTENCE_BOUNDARY = 7,
  2535. SPEI_VISEME = 8,
  2536. SPEI_TTS_AUDIO_LEVEL = 9,
  2537. SPEI_TTS_PRIVATE = 15,
  2538. SPEI_MIN_TTS = 1,
  2539. SPEI_MAX_TTS = 15,
  2540. SPEI_END_SR_STREAM = 34,
  2541. SPEI_SOUND_START = 35,
  2542. SPEI_SOUND_END = 36,
  2543. SPEI_PHRASE_START = 37,
  2544. SPEI_RECOGNITION = 38,
  2545. SPEI_HYPOTHESIS = 39,
  2546. SPEI_SR_BOOKMARK = 40,
  2547. SPEI_PROPERTY_NUM_CHANGE = 41,
  2548. SPEI_PROPERTY_STRING_CHANGE = 42,
  2549. SPEI_FALSE_RECOGNITION = 43,
  2550. SPEI_INTERFERENCE = 44,
  2551. SPEI_REQUEST_UI = 45,
  2552. SPEI_RECO_STATE_CHANGE = 46,
  2553. SPEI_ADAPTATION = 47,
  2554. SPEI_START_SR_STREAM = 48,
  2555. SPEI_RECO_OTHER_CONTEXT = 49,
  2556. SPEI_SR_AUDIO_LEVEL = 50,
  2557. SPEI_SR_PRIVATE = 52,
  2558. SPEI_MIN_SR = 34,
  2559. SPEI_MAX_SR = 52,
  2560. SPEI_RESERVED1 = 30,
  2561. SPEI_RESERVED2 = 33,
  2562. SPEI_RESERVED3 = 63
  2563. } SPEVENTENUM;
  2564. #define SPFEI_FLAGCHECK ( (1ui64 << SPEI_RESERVED1) | (1ui64 << SPEI_RESERVED2) )
  2565. #define SPFEI_ALL_TTS_EVENTS (0x000000000000FFFEui64 | SPFEI_FLAGCHECK)
  2566. #define SPFEI_ALL_SR_EVENTS (0x001FFFFC00000000ui64 | SPFEI_FLAGCHECK)
  2567. #define SPFEI_ALL_EVENTS 0xEFFFFFFFFFFFFFFFui64
  2568. #define SPFEI(SPEI_ord) ((1ui64 << SPEI_ord) | SPFEI_FLAGCHECK)
  2569. #if 0
  2570. typedef /* [hidden][restricted] */ struct SPEVENT
  2571. {
  2572. WORD eEventId;
  2573. WORD elParamType;
  2574. ULONG ulStreamNum;
  2575. ULONGLONG ullAudioStreamOffset;
  2576. WPARAM wParam;
  2577. LPARAM lParam;
  2578. } SPEVENT;
  2579. typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT
  2580. {
  2581. WORD eEventId;
  2582. WORD elParamType;
  2583. ULONG ulStreamNum;
  2584. ULONGLONG ullAudioStreamOffset;
  2585. ULONG SerializedwParam;
  2586. LONG SerializedlParam;
  2587. } SPSERIALIZEDEVENT;
  2588. typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT64
  2589. {
  2590. WORD eEventId;
  2591. WORD elParamType;
  2592. ULONG ulStreamNum;
  2593. ULONGLONG ullAudioStreamOffset;
  2594. ULONGLONG SerializedwParam;
  2595. LONGLONG SerializedlParam;
  2596. } SPSERIALIZEDEVENT64;
  2597. #else
  2598. typedef struct SPEVENT
  2599. {
  2600. SPEVENTENUM eEventId : 16;
  2601. SPEVENTLPARAMTYPE elParamType : 16;
  2602. ULONG ulStreamNum;
  2603. ULONGLONG ullAudioStreamOffset;
  2604. WPARAM wParam;
  2605. LPARAM lParam;
  2606. } SPEVENT;
  2607. typedef struct SPSERIALIZEDEVENT
  2608. {
  2609. SPEVENTENUM eEventId : 16;
  2610. SPEVENTLPARAMTYPE elParamType : 16;
  2611. ULONG ulStreamNum;
  2612. ULONGLONG ullAudioStreamOffset;
  2613. ULONG SerializedwParam;
  2614. LONG SerializedlParam;
  2615. } SPSERIALIZEDEVENT;
  2616. typedef struct SPSERIALIZEDEVENT64
  2617. {
  2618. SPEVENTENUM eEventId : 16;
  2619. SPEVENTLPARAMTYPE elParamType : 16;
  2620. ULONG ulStreamNum;
  2621. ULONGLONG ullAudioStreamOffset;
  2622. ULONGLONG SerializedwParam;
  2623. LONGLONG SerializedlParam;
  2624. } SPSERIALIZEDEVENT64;
  2625. #endif
  2626. typedef /* [hidden] */
  2627. enum SPINTERFERENCE
  2628. { SPINTERFERENCE_NONE = 0,
  2629. SPINTERFERENCE_NOISE = SPINTERFERENCE_NONE + 1,
  2630. SPINTERFERENCE_NOSIGNAL = SPINTERFERENCE_NOISE + 1,
  2631. SPINTERFERENCE_TOOLOUD = SPINTERFERENCE_NOSIGNAL + 1,
  2632. SPINTERFERENCE_TOOQUIET = SPINTERFERENCE_TOOLOUD + 1,
  2633. SPINTERFERENCE_TOOFAST = SPINTERFERENCE_TOOQUIET + 1,
  2634. SPINTERFERENCE_TOOSLOW = SPINTERFERENCE_TOOFAST + 1
  2635. } SPINTERFERENCE;
  2636. typedef /* [hidden] */
  2637. enum SPENDSRSTREAMFLAGS
  2638. { SPESF_NONE = 0,
  2639. SPESF_STREAM_RELEASED = 1 << 0
  2640. } SPENDSRSTREAMFLAGS;
  2641. typedef /* [hidden] */
  2642. enum SPVFEATURE
  2643. { SPVFEATURE_STRESSED = 1L << 0,
  2644. SPVFEATURE_EMPHASIS = 1L << 1
  2645. } SPVFEATURE;
  2646. typedef /* [hidden] */
  2647. enum SPVISEMES
  2648. { SP_VISEME_0 = 0,
  2649. SP_VISEME_1 = SP_VISEME_0 + 1,
  2650. SP_VISEME_2 = SP_VISEME_1 + 1,
  2651. SP_VISEME_3 = SP_VISEME_2 + 1,
  2652. SP_VISEME_4 = SP_VISEME_3 + 1,
  2653. SP_VISEME_5 = SP_VISEME_4 + 1,
  2654. SP_VISEME_6 = SP_VISEME_5 + 1,
  2655. SP_VISEME_7 = SP_VISEME_6 + 1,
  2656. SP_VISEME_8 = SP_VISEME_7 + 1,
  2657. SP_VISEME_9 = SP_VISEME_8 + 1,
  2658. SP_VISEME_10 = SP_VISEME_9 + 1,
  2659. SP_VISEME_11 = SP_VISEME_10 + 1,
  2660. SP_VISEME_12 = SP_VISEME_11 + 1,
  2661. SP_VISEME_13 = SP_VISEME_12 + 1,
  2662. SP_VISEME_14 = SP_VISEME_13 + 1,
  2663. SP_VISEME_15 = SP_VISEME_14 + 1,
  2664. SP_VISEME_16 = SP_VISEME_15 + 1,
  2665. SP_VISEME_17 = SP_VISEME_16 + 1,
  2666. SP_VISEME_18 = SP_VISEME_17 + 1,
  2667. SP_VISEME_19 = SP_VISEME_18 + 1,
  2668. SP_VISEME_20 = SP_VISEME_19 + 1,
  2669. SP_VISEME_21 = SP_VISEME_20 + 1
  2670. } SPVISEMES;
  2671. typedef /* [hidden][restricted] */ struct SPEVENTSOURCEINFO
  2672. {
  2673. ULONGLONG ullEventInterest;
  2674. ULONGLONG ullQueuedInterest;
  2675. ULONG ulCount;
  2676. } SPEVENTSOURCEINFO;
  2677. extern RPC_IF_HANDLE __MIDL_itf_sapi_0268_v0_0_c_ifspec;
  2678. extern RPC_IF_HANDLE __MIDL_itf_sapi_0268_v0_0_s_ifspec;
  2679. #ifndef __ISpEventSource_INTERFACE_DEFINED__
  2680. #define __ISpEventSource_INTERFACE_DEFINED__
  2681. /* interface ISpEventSource */
  2682. /* [restricted][local][unique][helpstring][uuid][object] */
  2683. EXTERN_C const IID IID_ISpEventSource;
  2684. #if defined(__cplusplus) && !defined(CINTERFACE)
  2685. MIDL_INTERFACE("BE7A9CCE-5F9E-11D2-960F-00C04F8EE628")
  2686. ISpEventSource : public ISpNotifySource
  2687. {
  2688. public:
  2689. virtual HRESULT STDMETHODCALLTYPE SetInterest(
  2690. /* [in] */ ULONGLONG ullEventInterest,
  2691. /* [in] */ ULONGLONG ullQueuedInterest) = 0;
  2692. virtual HRESULT STDMETHODCALLTYPE GetEvents(
  2693. /* [in] */ ULONG ulCount,
  2694. /* [size_is][out] */ SPEVENT *pEventArray,
  2695. /* [out] */ ULONG *pulFetched) = 0;
  2696. virtual HRESULT STDMETHODCALLTYPE GetInfo(
  2697. /* [out] */ SPEVENTSOURCEINFO *pInfo) = 0;
  2698. };
  2699. #else /* C style interface */
  2700. typedef struct ISpEventSourceVtbl
  2701. {
  2702. BEGIN_INTERFACE
  2703. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2704. ISpEventSource * This,
  2705. /* [in] */ REFIID riid,
  2706. /* [iid_is][out] */ void **ppvObject);
  2707. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2708. ISpEventSource * This);
  2709. ULONG ( STDMETHODCALLTYPE *Release )(
  2710. ISpEventSource * This);
  2711. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  2712. ISpEventSource * This,
  2713. /* [in] */ ISpNotifySink *pNotifySink);
  2714. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  2715. ISpEventSource * This,
  2716. /* [in] */ HWND hWnd,
  2717. /* [in] */ UINT Msg,
  2718. /* [in] */ WPARAM wParam,
  2719. /* [in] */ LPARAM lParam);
  2720. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  2721. ISpEventSource * This,
  2722. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  2723. /* [in] */ WPARAM wParam,
  2724. /* [in] */ LPARAM lParam);
  2725. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  2726. ISpEventSource * This,
  2727. /* [in] */ ISpNotifyCallback *pSpCallback,
  2728. /* [in] */ WPARAM wParam,
  2729. /* [in] */ LPARAM lParam);
  2730. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  2731. ISpEventSource * This);
  2732. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  2733. ISpEventSource * This,
  2734. /* [in] */ DWORD dwMilliseconds);
  2735. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  2736. ISpEventSource * This);
  2737. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  2738. ISpEventSource * This,
  2739. /* [in] */ ULONGLONG ullEventInterest,
  2740. /* [in] */ ULONGLONG ullQueuedInterest);
  2741. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  2742. ISpEventSource * This,
  2743. /* [in] */ ULONG ulCount,
  2744. /* [size_is][out] */ SPEVENT *pEventArray,
  2745. /* [out] */ ULONG *pulFetched);
  2746. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  2747. ISpEventSource * This,
  2748. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  2749. END_INTERFACE
  2750. } ISpEventSourceVtbl;
  2751. interface ISpEventSource
  2752. {
  2753. CONST_VTBL struct ISpEventSourceVtbl *lpVtbl;
  2754. };
  2755. #ifdef COBJMACROS
  2756. #define ISpEventSource_QueryInterface(This,riid,ppvObject) \
  2757. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2758. #define ISpEventSource_AddRef(This) \
  2759. (This)->lpVtbl -> AddRef(This)
  2760. #define ISpEventSource_Release(This) \
  2761. (This)->lpVtbl -> Release(This)
  2762. #define ISpEventSource_SetNotifySink(This,pNotifySink) \
  2763. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  2764. #define ISpEventSource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  2765. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  2766. #define ISpEventSource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  2767. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  2768. #define ISpEventSource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  2769. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  2770. #define ISpEventSource_SetNotifyWin32Event(This) \
  2771. (This)->lpVtbl -> SetNotifyWin32Event(This)
  2772. #define ISpEventSource_WaitForNotifyEvent(This,dwMilliseconds) \
  2773. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  2774. #define ISpEventSource_GetNotifyEventHandle(This) \
  2775. (This)->lpVtbl -> GetNotifyEventHandle(This)
  2776. #define ISpEventSource_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  2777. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  2778. #define ISpEventSource_GetEvents(This,ulCount,pEventArray,pulFetched) \
  2779. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  2780. #define ISpEventSource_GetInfo(This,pInfo) \
  2781. (This)->lpVtbl -> GetInfo(This,pInfo)
  2782. #endif /* COBJMACROS */
  2783. #endif /* C style interface */
  2784. HRESULT STDMETHODCALLTYPE ISpEventSource_SetInterest_Proxy(
  2785. ISpEventSource * This,
  2786. /* [in] */ ULONGLONG ullEventInterest,
  2787. /* [in] */ ULONGLONG ullQueuedInterest);
  2788. void __RPC_STUB ISpEventSource_SetInterest_Stub(
  2789. IRpcStubBuffer *This,
  2790. IRpcChannelBuffer *_pRpcChannelBuffer,
  2791. PRPC_MESSAGE _pRpcMessage,
  2792. DWORD *_pdwStubPhase);
  2793. HRESULT STDMETHODCALLTYPE ISpEventSource_GetEvents_Proxy(
  2794. ISpEventSource * This,
  2795. /* [in] */ ULONG ulCount,
  2796. /* [size_is][out] */ SPEVENT *pEventArray,
  2797. /* [out] */ ULONG *pulFetched);
  2798. void __RPC_STUB ISpEventSource_GetEvents_Stub(
  2799. IRpcStubBuffer *This,
  2800. IRpcChannelBuffer *_pRpcChannelBuffer,
  2801. PRPC_MESSAGE _pRpcMessage,
  2802. DWORD *_pdwStubPhase);
  2803. HRESULT STDMETHODCALLTYPE ISpEventSource_GetInfo_Proxy(
  2804. ISpEventSource * This,
  2805. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  2806. void __RPC_STUB ISpEventSource_GetInfo_Stub(
  2807. IRpcStubBuffer *This,
  2808. IRpcChannelBuffer *_pRpcChannelBuffer,
  2809. PRPC_MESSAGE _pRpcMessage,
  2810. DWORD *_pdwStubPhase);
  2811. #endif /* __ISpEventSource_INTERFACE_DEFINED__ */
  2812. #ifndef __ISpEventSink_INTERFACE_DEFINED__
  2813. #define __ISpEventSink_INTERFACE_DEFINED__
  2814. /* interface ISpEventSink */
  2815. /* [restricted][local][unique][helpstring][uuid][object] */
  2816. EXTERN_C const IID IID_ISpEventSink;
  2817. #if defined(__cplusplus) && !defined(CINTERFACE)
  2818. MIDL_INTERFACE("BE7A9CC9-5F9E-11D2-960F-00C04F8EE628")
  2819. ISpEventSink : public IUnknown
  2820. {
  2821. public:
  2822. virtual HRESULT STDMETHODCALLTYPE AddEvents(
  2823. /* [in] */ const SPEVENT *pEventArray,
  2824. /* [in] */ ULONG ulCount) = 0;
  2825. virtual HRESULT STDMETHODCALLTYPE GetEventInterest(
  2826. /* [out] */ ULONGLONG *pullEventInterest) = 0;
  2827. };
  2828. #else /* C style interface */
  2829. typedef struct ISpEventSinkVtbl
  2830. {
  2831. BEGIN_INTERFACE
  2832. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2833. ISpEventSink * This,
  2834. /* [in] */ REFIID riid,
  2835. /* [iid_is][out] */ void **ppvObject);
  2836. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2837. ISpEventSink * This);
  2838. ULONG ( STDMETHODCALLTYPE *Release )(
  2839. ISpEventSink * This);
  2840. HRESULT ( STDMETHODCALLTYPE *AddEvents )(
  2841. ISpEventSink * This,
  2842. /* [in] */ const SPEVENT *pEventArray,
  2843. /* [in] */ ULONG ulCount);
  2844. HRESULT ( STDMETHODCALLTYPE *GetEventInterest )(
  2845. ISpEventSink * This,
  2846. /* [out] */ ULONGLONG *pullEventInterest);
  2847. END_INTERFACE
  2848. } ISpEventSinkVtbl;
  2849. interface ISpEventSink
  2850. {
  2851. CONST_VTBL struct ISpEventSinkVtbl *lpVtbl;
  2852. };
  2853. #ifdef COBJMACROS
  2854. #define ISpEventSink_QueryInterface(This,riid,ppvObject) \
  2855. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2856. #define ISpEventSink_AddRef(This) \
  2857. (This)->lpVtbl -> AddRef(This)
  2858. #define ISpEventSink_Release(This) \
  2859. (This)->lpVtbl -> Release(This)
  2860. #define ISpEventSink_AddEvents(This,pEventArray,ulCount) \
  2861. (This)->lpVtbl -> AddEvents(This,pEventArray,ulCount)
  2862. #define ISpEventSink_GetEventInterest(This,pullEventInterest) \
  2863. (This)->lpVtbl -> GetEventInterest(This,pullEventInterest)
  2864. #endif /* COBJMACROS */
  2865. #endif /* C style interface */
  2866. HRESULT STDMETHODCALLTYPE ISpEventSink_AddEvents_Proxy(
  2867. ISpEventSink * This,
  2868. /* [in] */ const SPEVENT *pEventArray,
  2869. /* [in] */ ULONG ulCount);
  2870. void __RPC_STUB ISpEventSink_AddEvents_Stub(
  2871. IRpcStubBuffer *This,
  2872. IRpcChannelBuffer *_pRpcChannelBuffer,
  2873. PRPC_MESSAGE _pRpcMessage,
  2874. DWORD *_pdwStubPhase);
  2875. HRESULT STDMETHODCALLTYPE ISpEventSink_GetEventInterest_Proxy(
  2876. ISpEventSink * This,
  2877. /* [out] */ ULONGLONG *pullEventInterest);
  2878. void __RPC_STUB ISpEventSink_GetEventInterest_Stub(
  2879. IRpcStubBuffer *This,
  2880. IRpcChannelBuffer *_pRpcChannelBuffer,
  2881. PRPC_MESSAGE _pRpcMessage,
  2882. DWORD *_pdwStubPhase);
  2883. #endif /* __ISpEventSink_INTERFACE_DEFINED__ */
  2884. #ifndef __ISpStreamFormat_INTERFACE_DEFINED__
  2885. #define __ISpStreamFormat_INTERFACE_DEFINED__
  2886. /* interface ISpStreamFormat */
  2887. /* [restricted][unique][helpstring][uuid][object] */
  2888. EXTERN_C const IID IID_ISpStreamFormat;
  2889. #if defined(__cplusplus) && !defined(CINTERFACE)
  2890. MIDL_INTERFACE("BED530BE-2606-4F4D-A1C0-54C5CDA5566F")
  2891. ISpStreamFormat : public IStream
  2892. {
  2893. public:
  2894. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  2895. GUID *pguidFormatId,
  2896. WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  2897. };
  2898. #else /* C style interface */
  2899. typedef struct ISpStreamFormatVtbl
  2900. {
  2901. BEGIN_INTERFACE
  2902. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2903. ISpStreamFormat * This,
  2904. /* [in] */ REFIID riid,
  2905. /* [iid_is][out] */ void **ppvObject);
  2906. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2907. ISpStreamFormat * This);
  2908. ULONG ( STDMETHODCALLTYPE *Release )(
  2909. ISpStreamFormat * This);
  2910. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  2911. ISpStreamFormat * This,
  2912. /* [length_is][size_is][out] */ void *pv,
  2913. /* [in] */ ULONG cb,
  2914. /* [out] */ ULONG *pcbRead);
  2915. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  2916. ISpStreamFormat * This,
  2917. /* [size_is][in] */ const void *pv,
  2918. /* [in] */ ULONG cb,
  2919. /* [out] */ ULONG *pcbWritten);
  2920. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  2921. ISpStreamFormat * This,
  2922. /* [in] */ LARGE_INTEGER dlibMove,
  2923. /* [in] */ DWORD dwOrigin,
  2924. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  2925. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  2926. ISpStreamFormat * This,
  2927. /* [in] */ ULARGE_INTEGER libNewSize);
  2928. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  2929. ISpStreamFormat * This,
  2930. /* [unique][in] */ IStream *pstm,
  2931. /* [in] */ ULARGE_INTEGER cb,
  2932. /* [out] */ ULARGE_INTEGER *pcbRead,
  2933. /* [out] */ ULARGE_INTEGER *pcbWritten);
  2934. HRESULT ( STDMETHODCALLTYPE *Commit )(
  2935. ISpStreamFormat * This,
  2936. /* [in] */ DWORD grfCommitFlags);
  2937. HRESULT ( STDMETHODCALLTYPE *Revert )(
  2938. ISpStreamFormat * This);
  2939. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  2940. ISpStreamFormat * This,
  2941. /* [in] */ ULARGE_INTEGER libOffset,
  2942. /* [in] */ ULARGE_INTEGER cb,
  2943. /* [in] */ DWORD dwLockType);
  2944. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  2945. ISpStreamFormat * This,
  2946. /* [in] */ ULARGE_INTEGER libOffset,
  2947. /* [in] */ ULARGE_INTEGER cb,
  2948. /* [in] */ DWORD dwLockType);
  2949. HRESULT ( STDMETHODCALLTYPE *Stat )(
  2950. ISpStreamFormat * This,
  2951. /* [out] */ STATSTG *pstatstg,
  2952. /* [in] */ DWORD grfStatFlag);
  2953. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2954. ISpStreamFormat * This,
  2955. /* [out] */ IStream **ppstm);
  2956. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  2957. ISpStreamFormat * This,
  2958. GUID *pguidFormatId,
  2959. WAVEFORMATEX **ppCoMemWaveFormatEx);
  2960. END_INTERFACE
  2961. } ISpStreamFormatVtbl;
  2962. interface ISpStreamFormat
  2963. {
  2964. CONST_VTBL struct ISpStreamFormatVtbl *lpVtbl;
  2965. };
  2966. #ifdef COBJMACROS
  2967. #define ISpStreamFormat_QueryInterface(This,riid,ppvObject) \
  2968. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2969. #define ISpStreamFormat_AddRef(This) \
  2970. (This)->lpVtbl -> AddRef(This)
  2971. #define ISpStreamFormat_Release(This) \
  2972. (This)->lpVtbl -> Release(This)
  2973. #define ISpStreamFormat_Read(This,pv,cb,pcbRead) \
  2974. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  2975. #define ISpStreamFormat_Write(This,pv,cb,pcbWritten) \
  2976. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  2977. #define ISpStreamFormat_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  2978. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  2979. #define ISpStreamFormat_SetSize(This,libNewSize) \
  2980. (This)->lpVtbl -> SetSize(This,libNewSize)
  2981. #define ISpStreamFormat_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  2982. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  2983. #define ISpStreamFormat_Commit(This,grfCommitFlags) \
  2984. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  2985. #define ISpStreamFormat_Revert(This) \
  2986. (This)->lpVtbl -> Revert(This)
  2987. #define ISpStreamFormat_LockRegion(This,libOffset,cb,dwLockType) \
  2988. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  2989. #define ISpStreamFormat_UnlockRegion(This,libOffset,cb,dwLockType) \
  2990. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  2991. #define ISpStreamFormat_Stat(This,pstatstg,grfStatFlag) \
  2992. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  2993. #define ISpStreamFormat_Clone(This,ppstm) \
  2994. (This)->lpVtbl -> Clone(This,ppstm)
  2995. #define ISpStreamFormat_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  2996. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  2997. #endif /* COBJMACROS */
  2998. #endif /* C style interface */
  2999. HRESULT STDMETHODCALLTYPE ISpStreamFormat_GetFormat_Proxy(
  3000. ISpStreamFormat * This,
  3001. GUID *pguidFormatId,
  3002. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3003. void __RPC_STUB ISpStreamFormat_GetFormat_Stub(
  3004. IRpcStubBuffer *This,
  3005. IRpcChannelBuffer *_pRpcChannelBuffer,
  3006. PRPC_MESSAGE _pRpcMessage,
  3007. DWORD *_pdwStubPhase);
  3008. #endif /* __ISpStreamFormat_INTERFACE_DEFINED__ */
  3009. /* interface __MIDL_itf_sapi_0271 */
  3010. /* [local] */
  3011. typedef /* [hidden] */
  3012. enum SPFILEMODE
  3013. { SPFM_OPEN_READONLY = 0,
  3014. SPFM_OPEN_READWRITE = SPFM_OPEN_READONLY + 1,
  3015. SPFM_CREATE = SPFM_OPEN_READWRITE + 1,
  3016. SPFM_CREATE_ALWAYS = SPFM_CREATE + 1,
  3017. SPFM_NUM_MODES = SPFM_CREATE_ALWAYS + 1
  3018. } SPFILEMODE;
  3019. extern RPC_IF_HANDLE __MIDL_itf_sapi_0271_v0_0_c_ifspec;
  3020. extern RPC_IF_HANDLE __MIDL_itf_sapi_0271_v0_0_s_ifspec;
  3021. #ifndef __ISpStream_INTERFACE_DEFINED__
  3022. #define __ISpStream_INTERFACE_DEFINED__
  3023. /* interface ISpStream */
  3024. /* [restricted][unique][helpstring][uuid][object] */
  3025. EXTERN_C const IID IID_ISpStream;
  3026. #if defined(__cplusplus) && !defined(CINTERFACE)
  3027. MIDL_INTERFACE("12E3CCA9-7518-44C5-A5E7-BA5A79CB929E")
  3028. ISpStream : public ISpStreamFormat
  3029. {
  3030. public:
  3031. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  3032. IStream *pStream,
  3033. REFGUID rguidFormat,
  3034. const WAVEFORMATEX *pWaveFormatEx) = 0;
  3035. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  3036. IStream **ppStream) = 0;
  3037. virtual HRESULT STDMETHODCALLTYPE BindToFile(
  3038. const WCHAR *pszFileName,
  3039. SPFILEMODE eMode,
  3040. const GUID *pFormatId,
  3041. const WAVEFORMATEX *pWaveFormatEx,
  3042. ULONGLONG ullEventInterest) = 0;
  3043. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  3044. };
  3045. #else /* C style interface */
  3046. typedef struct ISpStreamVtbl
  3047. {
  3048. BEGIN_INTERFACE
  3049. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3050. ISpStream * This,
  3051. /* [in] */ REFIID riid,
  3052. /* [iid_is][out] */ void **ppvObject);
  3053. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3054. ISpStream * This);
  3055. ULONG ( STDMETHODCALLTYPE *Release )(
  3056. ISpStream * This);
  3057. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3058. ISpStream * This,
  3059. /* [length_is][size_is][out] */ void *pv,
  3060. /* [in] */ ULONG cb,
  3061. /* [out] */ ULONG *pcbRead);
  3062. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3063. ISpStream * This,
  3064. /* [size_is][in] */ const void *pv,
  3065. /* [in] */ ULONG cb,
  3066. /* [out] */ ULONG *pcbWritten);
  3067. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3068. ISpStream * This,
  3069. /* [in] */ LARGE_INTEGER dlibMove,
  3070. /* [in] */ DWORD dwOrigin,
  3071. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3072. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3073. ISpStream * This,
  3074. /* [in] */ ULARGE_INTEGER libNewSize);
  3075. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3076. ISpStream * This,
  3077. /* [unique][in] */ IStream *pstm,
  3078. /* [in] */ ULARGE_INTEGER cb,
  3079. /* [out] */ ULARGE_INTEGER *pcbRead,
  3080. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3081. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3082. ISpStream * This,
  3083. /* [in] */ DWORD grfCommitFlags);
  3084. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3085. ISpStream * This);
  3086. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3087. ISpStream * This,
  3088. /* [in] */ ULARGE_INTEGER libOffset,
  3089. /* [in] */ ULARGE_INTEGER cb,
  3090. /* [in] */ DWORD dwLockType);
  3091. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3092. ISpStream * This,
  3093. /* [in] */ ULARGE_INTEGER libOffset,
  3094. /* [in] */ ULARGE_INTEGER cb,
  3095. /* [in] */ DWORD dwLockType);
  3096. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3097. ISpStream * This,
  3098. /* [out] */ STATSTG *pstatstg,
  3099. /* [in] */ DWORD grfStatFlag);
  3100. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3101. ISpStream * This,
  3102. /* [out] */ IStream **ppstm);
  3103. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3104. ISpStream * This,
  3105. GUID *pguidFormatId,
  3106. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3107. HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
  3108. ISpStream * This,
  3109. IStream *pStream,
  3110. REFGUID rguidFormat,
  3111. const WAVEFORMATEX *pWaveFormatEx);
  3112. HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
  3113. ISpStream * This,
  3114. IStream **ppStream);
  3115. HRESULT ( STDMETHODCALLTYPE *BindToFile )(
  3116. ISpStream * This,
  3117. const WCHAR *pszFileName,
  3118. SPFILEMODE eMode,
  3119. const GUID *pFormatId,
  3120. const WAVEFORMATEX *pWaveFormatEx,
  3121. ULONGLONG ullEventInterest);
  3122. HRESULT ( STDMETHODCALLTYPE *Close )(
  3123. ISpStream * This);
  3124. END_INTERFACE
  3125. } ISpStreamVtbl;
  3126. interface ISpStream
  3127. {
  3128. CONST_VTBL struct ISpStreamVtbl *lpVtbl;
  3129. };
  3130. #ifdef COBJMACROS
  3131. #define ISpStream_QueryInterface(This,riid,ppvObject) \
  3132. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3133. #define ISpStream_AddRef(This) \
  3134. (This)->lpVtbl -> AddRef(This)
  3135. #define ISpStream_Release(This) \
  3136. (This)->lpVtbl -> Release(This)
  3137. #define ISpStream_Read(This,pv,cb,pcbRead) \
  3138. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3139. #define ISpStream_Write(This,pv,cb,pcbWritten) \
  3140. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3141. #define ISpStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3142. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3143. #define ISpStream_SetSize(This,libNewSize) \
  3144. (This)->lpVtbl -> SetSize(This,libNewSize)
  3145. #define ISpStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3146. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3147. #define ISpStream_Commit(This,grfCommitFlags) \
  3148. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3149. #define ISpStream_Revert(This) \
  3150. (This)->lpVtbl -> Revert(This)
  3151. #define ISpStream_LockRegion(This,libOffset,cb,dwLockType) \
  3152. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3153. #define ISpStream_UnlockRegion(This,libOffset,cb,dwLockType) \
  3154. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3155. #define ISpStream_Stat(This,pstatstg,grfStatFlag) \
  3156. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3157. #define ISpStream_Clone(This,ppstm) \
  3158. (This)->lpVtbl -> Clone(This,ppstm)
  3159. #define ISpStream_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3160. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3161. #define ISpStream_SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx) \
  3162. (This)->lpVtbl -> SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx)
  3163. #define ISpStream_GetBaseStream(This,ppStream) \
  3164. (This)->lpVtbl -> GetBaseStream(This,ppStream)
  3165. #define ISpStream_BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest) \
  3166. (This)->lpVtbl -> BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest)
  3167. #define ISpStream_Close(This) \
  3168. (This)->lpVtbl -> Close(This)
  3169. #endif /* COBJMACROS */
  3170. #endif /* C style interface */
  3171. HRESULT STDMETHODCALLTYPE ISpStream_SetBaseStream_Proxy(
  3172. ISpStream * This,
  3173. IStream *pStream,
  3174. REFGUID rguidFormat,
  3175. const WAVEFORMATEX *pWaveFormatEx);
  3176. void __RPC_STUB ISpStream_SetBaseStream_Stub(
  3177. IRpcStubBuffer *This,
  3178. IRpcChannelBuffer *_pRpcChannelBuffer,
  3179. PRPC_MESSAGE _pRpcMessage,
  3180. DWORD *_pdwStubPhase);
  3181. HRESULT STDMETHODCALLTYPE ISpStream_GetBaseStream_Proxy(
  3182. ISpStream * This,
  3183. IStream **ppStream);
  3184. void __RPC_STUB ISpStream_GetBaseStream_Stub(
  3185. IRpcStubBuffer *This,
  3186. IRpcChannelBuffer *_pRpcChannelBuffer,
  3187. PRPC_MESSAGE _pRpcMessage,
  3188. DWORD *_pdwStubPhase);
  3189. HRESULT STDMETHODCALLTYPE ISpStream_BindToFile_Proxy(
  3190. ISpStream * This,
  3191. const WCHAR *pszFileName,
  3192. SPFILEMODE eMode,
  3193. const GUID *pFormatId,
  3194. const WAVEFORMATEX *pWaveFormatEx,
  3195. ULONGLONG ullEventInterest);
  3196. void __RPC_STUB ISpStream_BindToFile_Stub(
  3197. IRpcStubBuffer *This,
  3198. IRpcChannelBuffer *_pRpcChannelBuffer,
  3199. PRPC_MESSAGE _pRpcMessage,
  3200. DWORD *_pdwStubPhase);
  3201. HRESULT STDMETHODCALLTYPE ISpStream_Close_Proxy(
  3202. ISpStream * This);
  3203. void __RPC_STUB ISpStream_Close_Stub(
  3204. IRpcStubBuffer *This,
  3205. IRpcChannelBuffer *_pRpcChannelBuffer,
  3206. PRPC_MESSAGE _pRpcMessage,
  3207. DWORD *_pdwStubPhase);
  3208. #endif /* __ISpStream_INTERFACE_DEFINED__ */
  3209. #ifndef __ISpStreamFormatConverter_INTERFACE_DEFINED__
  3210. #define __ISpStreamFormatConverter_INTERFACE_DEFINED__
  3211. /* interface ISpStreamFormatConverter */
  3212. /* [restricted][unique][helpstring][uuid][object] */
  3213. EXTERN_C const IID IID_ISpStreamFormatConverter;
  3214. #if defined(__cplusplus) && !defined(CINTERFACE)
  3215. MIDL_INTERFACE("678A932C-EA71-4446-9B41-78FDA6280A29")
  3216. ISpStreamFormatConverter : public ISpStreamFormat
  3217. {
  3218. public:
  3219. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  3220. /* [in] */ ISpStreamFormat *pStream,
  3221. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3222. /* [in] */ BOOL fWriteToBaseStream) = 0;
  3223. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  3224. /* [out] */ ISpStreamFormat **ppStream) = 0;
  3225. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  3226. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3227. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream) = 0;
  3228. virtual HRESULT STDMETHODCALLTYPE ResetSeekPosition( void) = 0;
  3229. virtual HRESULT STDMETHODCALLTYPE ScaleConvertedToBaseOffset(
  3230. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3231. /* [out] */ ULONGLONG *pullOffsetBaseStream) = 0;
  3232. virtual HRESULT STDMETHODCALLTYPE ScaleBaseToConvertedOffset(
  3233. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3234. /* [out] */ ULONGLONG *pullOffsetConvertedStream) = 0;
  3235. };
  3236. #else /* C style interface */
  3237. typedef struct ISpStreamFormatConverterVtbl
  3238. {
  3239. BEGIN_INTERFACE
  3240. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3241. ISpStreamFormatConverter * This,
  3242. /* [in] */ REFIID riid,
  3243. /* [iid_is][out] */ void **ppvObject);
  3244. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3245. ISpStreamFormatConverter * This);
  3246. ULONG ( STDMETHODCALLTYPE *Release )(
  3247. ISpStreamFormatConverter * This);
  3248. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3249. ISpStreamFormatConverter * This,
  3250. /* [length_is][size_is][out] */ void *pv,
  3251. /* [in] */ ULONG cb,
  3252. /* [out] */ ULONG *pcbRead);
  3253. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3254. ISpStreamFormatConverter * This,
  3255. /* [size_is][in] */ const void *pv,
  3256. /* [in] */ ULONG cb,
  3257. /* [out] */ ULONG *pcbWritten);
  3258. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3259. ISpStreamFormatConverter * This,
  3260. /* [in] */ LARGE_INTEGER dlibMove,
  3261. /* [in] */ DWORD dwOrigin,
  3262. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3263. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3264. ISpStreamFormatConverter * This,
  3265. /* [in] */ ULARGE_INTEGER libNewSize);
  3266. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3267. ISpStreamFormatConverter * This,
  3268. /* [unique][in] */ IStream *pstm,
  3269. /* [in] */ ULARGE_INTEGER cb,
  3270. /* [out] */ ULARGE_INTEGER *pcbRead,
  3271. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3272. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3273. ISpStreamFormatConverter * This,
  3274. /* [in] */ DWORD grfCommitFlags);
  3275. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3276. ISpStreamFormatConverter * This);
  3277. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3278. ISpStreamFormatConverter * This,
  3279. /* [in] */ ULARGE_INTEGER libOffset,
  3280. /* [in] */ ULARGE_INTEGER cb,
  3281. /* [in] */ DWORD dwLockType);
  3282. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3283. ISpStreamFormatConverter * This,
  3284. /* [in] */ ULARGE_INTEGER libOffset,
  3285. /* [in] */ ULARGE_INTEGER cb,
  3286. /* [in] */ DWORD dwLockType);
  3287. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3288. ISpStreamFormatConverter * This,
  3289. /* [out] */ STATSTG *pstatstg,
  3290. /* [in] */ DWORD grfStatFlag);
  3291. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3292. ISpStreamFormatConverter * This,
  3293. /* [out] */ IStream **ppstm);
  3294. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3295. ISpStreamFormatConverter * This,
  3296. GUID *pguidFormatId,
  3297. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3298. HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
  3299. ISpStreamFormatConverter * This,
  3300. /* [in] */ ISpStreamFormat *pStream,
  3301. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3302. /* [in] */ BOOL fWriteToBaseStream);
  3303. HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
  3304. ISpStreamFormatConverter * This,
  3305. /* [out] */ ISpStreamFormat **ppStream);
  3306. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3307. ISpStreamFormatConverter * This,
  3308. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3309. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
  3310. HRESULT ( STDMETHODCALLTYPE *ResetSeekPosition )(
  3311. ISpStreamFormatConverter * This);
  3312. HRESULT ( STDMETHODCALLTYPE *ScaleConvertedToBaseOffset )(
  3313. ISpStreamFormatConverter * This,
  3314. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3315. /* [out] */ ULONGLONG *pullOffsetBaseStream);
  3316. HRESULT ( STDMETHODCALLTYPE *ScaleBaseToConvertedOffset )(
  3317. ISpStreamFormatConverter * This,
  3318. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3319. /* [out] */ ULONGLONG *pullOffsetConvertedStream);
  3320. END_INTERFACE
  3321. } ISpStreamFormatConverterVtbl;
  3322. interface ISpStreamFormatConverter
  3323. {
  3324. CONST_VTBL struct ISpStreamFormatConverterVtbl *lpVtbl;
  3325. };
  3326. #ifdef COBJMACROS
  3327. #define ISpStreamFormatConverter_QueryInterface(This,riid,ppvObject) \
  3328. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3329. #define ISpStreamFormatConverter_AddRef(This) \
  3330. (This)->lpVtbl -> AddRef(This)
  3331. #define ISpStreamFormatConverter_Release(This) \
  3332. (This)->lpVtbl -> Release(This)
  3333. #define ISpStreamFormatConverter_Read(This,pv,cb,pcbRead) \
  3334. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3335. #define ISpStreamFormatConverter_Write(This,pv,cb,pcbWritten) \
  3336. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3337. #define ISpStreamFormatConverter_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3338. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3339. #define ISpStreamFormatConverter_SetSize(This,libNewSize) \
  3340. (This)->lpVtbl -> SetSize(This,libNewSize)
  3341. #define ISpStreamFormatConverter_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3342. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3343. #define ISpStreamFormatConverter_Commit(This,grfCommitFlags) \
  3344. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3345. #define ISpStreamFormatConverter_Revert(This) \
  3346. (This)->lpVtbl -> Revert(This)
  3347. #define ISpStreamFormatConverter_LockRegion(This,libOffset,cb,dwLockType) \
  3348. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3349. #define ISpStreamFormatConverter_UnlockRegion(This,libOffset,cb,dwLockType) \
  3350. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3351. #define ISpStreamFormatConverter_Stat(This,pstatstg,grfStatFlag) \
  3352. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3353. #define ISpStreamFormatConverter_Clone(This,ppstm) \
  3354. (This)->lpVtbl -> Clone(This,ppstm)
  3355. #define ISpStreamFormatConverter_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3356. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3357. #define ISpStreamFormatConverter_SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream) \
  3358. (This)->lpVtbl -> SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream)
  3359. #define ISpStreamFormatConverter_GetBaseStream(This,ppStream) \
  3360. (This)->lpVtbl -> GetBaseStream(This,ppStream)
  3361. #define ISpStreamFormatConverter_SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream) \
  3362. (This)->lpVtbl -> SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream)
  3363. #define ISpStreamFormatConverter_ResetSeekPosition(This) \
  3364. (This)->lpVtbl -> ResetSeekPosition(This)
  3365. #define ISpStreamFormatConverter_ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream) \
  3366. (This)->lpVtbl -> ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream)
  3367. #define ISpStreamFormatConverter_ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream) \
  3368. (This)->lpVtbl -> ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream)
  3369. #endif /* COBJMACROS */
  3370. #endif /* C style interface */
  3371. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetBaseStream_Proxy(
  3372. ISpStreamFormatConverter * This,
  3373. /* [in] */ ISpStreamFormat *pStream,
  3374. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3375. /* [in] */ BOOL fWriteToBaseStream);
  3376. void __RPC_STUB ISpStreamFormatConverter_SetBaseStream_Stub(
  3377. IRpcStubBuffer *This,
  3378. IRpcChannelBuffer *_pRpcChannelBuffer,
  3379. PRPC_MESSAGE _pRpcMessage,
  3380. DWORD *_pdwStubPhase);
  3381. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_GetBaseStream_Proxy(
  3382. ISpStreamFormatConverter * This,
  3383. /* [out] */ ISpStreamFormat **ppStream);
  3384. void __RPC_STUB ISpStreamFormatConverter_GetBaseStream_Stub(
  3385. IRpcStubBuffer *This,
  3386. IRpcChannelBuffer *_pRpcChannelBuffer,
  3387. PRPC_MESSAGE _pRpcMessage,
  3388. DWORD *_pdwStubPhase);
  3389. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetFormat_Proxy(
  3390. ISpStreamFormatConverter * This,
  3391. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3392. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
  3393. void __RPC_STUB ISpStreamFormatConverter_SetFormat_Stub(
  3394. IRpcStubBuffer *This,
  3395. IRpcChannelBuffer *_pRpcChannelBuffer,
  3396. PRPC_MESSAGE _pRpcMessage,
  3397. DWORD *_pdwStubPhase);
  3398. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ResetSeekPosition_Proxy(
  3399. ISpStreamFormatConverter * This);
  3400. void __RPC_STUB ISpStreamFormatConverter_ResetSeekPosition_Stub(
  3401. IRpcStubBuffer *This,
  3402. IRpcChannelBuffer *_pRpcChannelBuffer,
  3403. PRPC_MESSAGE _pRpcMessage,
  3404. DWORD *_pdwStubPhase);
  3405. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Proxy(
  3406. ISpStreamFormatConverter * This,
  3407. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3408. /* [out] */ ULONGLONG *pullOffsetBaseStream);
  3409. void __RPC_STUB ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Stub(
  3410. IRpcStubBuffer *This,
  3411. IRpcChannelBuffer *_pRpcChannelBuffer,
  3412. PRPC_MESSAGE _pRpcMessage,
  3413. DWORD *_pdwStubPhase);
  3414. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Proxy(
  3415. ISpStreamFormatConverter * This,
  3416. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3417. /* [out] */ ULONGLONG *pullOffsetConvertedStream);
  3418. void __RPC_STUB ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Stub(
  3419. IRpcStubBuffer *This,
  3420. IRpcChannelBuffer *_pRpcChannelBuffer,
  3421. PRPC_MESSAGE _pRpcMessage,
  3422. DWORD *_pdwStubPhase);
  3423. #endif /* __ISpStreamFormatConverter_INTERFACE_DEFINED__ */
  3424. /* interface __MIDL_itf_sapi_0273 */
  3425. /* [local] */
  3426. typedef /* [hidden] */
  3427. enum _SPAUDIOSTATE
  3428. { SPAS_CLOSED = 0,
  3429. SPAS_STOP = SPAS_CLOSED + 1,
  3430. SPAS_PAUSE = SPAS_STOP + 1,
  3431. SPAS_RUN = SPAS_PAUSE + 1
  3432. } SPAUDIOSTATE;
  3433. typedef /* [hidden][restricted] */ struct SPAUDIOSTATUS
  3434. {
  3435. long cbFreeBuffSpace;
  3436. ULONG cbNonBlockingIO;
  3437. SPAUDIOSTATE State;
  3438. ULONGLONG CurSeekPos;
  3439. ULONGLONG CurDevicePos;
  3440. DWORD dwReserved1;
  3441. DWORD dwReserved2;
  3442. } SPAUDIOSTATUS;
  3443. typedef /* [hidden][restricted] */ struct SPAUDIOBUFFERINFO
  3444. {
  3445. ULONG ulMsMinNotification;
  3446. ULONG ulMsBufferSize;
  3447. ULONG ulMsEventBias;
  3448. } SPAUDIOBUFFERINFO;
  3449. extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_c_ifspec;
  3450. extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_s_ifspec;
  3451. #ifndef __ISpAudio_INTERFACE_DEFINED__
  3452. #define __ISpAudio_INTERFACE_DEFINED__
  3453. /* interface ISpAudio */
  3454. /* [restricted][local][unique][helpstring][uuid][object] */
  3455. EXTERN_C const IID IID_ISpAudio;
  3456. #if defined(__cplusplus) && !defined(CINTERFACE)
  3457. MIDL_INTERFACE("C05C768F-FAE8-4EC2-8E07-338321C12452")
  3458. ISpAudio : public ISpStreamFormat
  3459. {
  3460. public:
  3461. virtual HRESULT STDMETHODCALLTYPE SetState(
  3462. /* [in] */ SPAUDIOSTATE NewState,
  3463. /* [in] */ ULONGLONG ullReserved) = 0;
  3464. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  3465. /* [in] */ REFGUID rguidFmtId,
  3466. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  3467. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  3468. /* [out] */ SPAUDIOSTATUS *pStatus) = 0;
  3469. virtual HRESULT STDMETHODCALLTYPE SetBufferInfo(
  3470. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  3471. virtual HRESULT STDMETHODCALLTYPE GetBufferInfo(
  3472. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  3473. virtual HRESULT STDMETHODCALLTYPE GetDefaultFormat(
  3474. /* [out] */ GUID *pFormatId,
  3475. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  3476. virtual HANDLE STDMETHODCALLTYPE EventHandle( void) = 0;
  3477. virtual HRESULT STDMETHODCALLTYPE GetVolumeLevel(
  3478. /* [out] */ ULONG *pLevel) = 0;
  3479. virtual HRESULT STDMETHODCALLTYPE SetVolumeLevel(
  3480. /* [in] */ ULONG Level) = 0;
  3481. virtual HRESULT STDMETHODCALLTYPE GetBufferNotifySize(
  3482. /* [out] */ ULONG *pcbSize) = 0;
  3483. virtual HRESULT STDMETHODCALLTYPE SetBufferNotifySize(
  3484. /* [in] */ ULONG cbSize) = 0;
  3485. };
  3486. #else /* C style interface */
  3487. typedef struct ISpAudioVtbl
  3488. {
  3489. BEGIN_INTERFACE
  3490. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3491. ISpAudio * This,
  3492. /* [in] */ REFIID riid,
  3493. /* [iid_is][out] */ void **ppvObject);
  3494. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3495. ISpAudio * This);
  3496. ULONG ( STDMETHODCALLTYPE *Release )(
  3497. ISpAudio * This);
  3498. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3499. ISpAudio * This,
  3500. /* [length_is][size_is][out] */ void *pv,
  3501. /* [in] */ ULONG cb,
  3502. /* [out] */ ULONG *pcbRead);
  3503. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3504. ISpAudio * This,
  3505. /* [size_is][in] */ const void *pv,
  3506. /* [in] */ ULONG cb,
  3507. /* [out] */ ULONG *pcbWritten);
  3508. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3509. ISpAudio * This,
  3510. /* [in] */ LARGE_INTEGER dlibMove,
  3511. /* [in] */ DWORD dwOrigin,
  3512. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3513. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3514. ISpAudio * This,
  3515. /* [in] */ ULARGE_INTEGER libNewSize);
  3516. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3517. ISpAudio * This,
  3518. /* [unique][in] */ IStream *pstm,
  3519. /* [in] */ ULARGE_INTEGER cb,
  3520. /* [out] */ ULARGE_INTEGER *pcbRead,
  3521. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3522. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3523. ISpAudio * This,
  3524. /* [in] */ DWORD grfCommitFlags);
  3525. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3526. ISpAudio * This);
  3527. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3528. ISpAudio * This,
  3529. /* [in] */ ULARGE_INTEGER libOffset,
  3530. /* [in] */ ULARGE_INTEGER cb,
  3531. /* [in] */ DWORD dwLockType);
  3532. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3533. ISpAudio * This,
  3534. /* [in] */ ULARGE_INTEGER libOffset,
  3535. /* [in] */ ULARGE_INTEGER cb,
  3536. /* [in] */ DWORD dwLockType);
  3537. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3538. ISpAudio * This,
  3539. /* [out] */ STATSTG *pstatstg,
  3540. /* [in] */ DWORD grfStatFlag);
  3541. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3542. ISpAudio * This,
  3543. /* [out] */ IStream **ppstm);
  3544. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3545. ISpAudio * This,
  3546. GUID *pguidFormatId,
  3547. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3548. HRESULT ( STDMETHODCALLTYPE *SetState )(
  3549. ISpAudio * This,
  3550. /* [in] */ SPAUDIOSTATE NewState,
  3551. /* [in] */ ULONGLONG ullReserved);
  3552. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3553. ISpAudio * This,
  3554. /* [in] */ REFGUID rguidFmtId,
  3555. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3556. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  3557. ISpAudio * This,
  3558. /* [out] */ SPAUDIOSTATUS *pStatus);
  3559. HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
  3560. ISpAudio * This,
  3561. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3562. HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
  3563. ISpAudio * This,
  3564. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3565. HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
  3566. ISpAudio * This,
  3567. /* [out] */ GUID *pFormatId,
  3568. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3569. HANDLE ( STDMETHODCALLTYPE *EventHandle )(
  3570. ISpAudio * This);
  3571. HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
  3572. ISpAudio * This,
  3573. /* [out] */ ULONG *pLevel);
  3574. HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
  3575. ISpAudio * This,
  3576. /* [in] */ ULONG Level);
  3577. HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
  3578. ISpAudio * This,
  3579. /* [out] */ ULONG *pcbSize);
  3580. HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
  3581. ISpAudio * This,
  3582. /* [in] */ ULONG cbSize);
  3583. END_INTERFACE
  3584. } ISpAudioVtbl;
  3585. interface ISpAudio
  3586. {
  3587. CONST_VTBL struct ISpAudioVtbl *lpVtbl;
  3588. };
  3589. #ifdef COBJMACROS
  3590. #define ISpAudio_QueryInterface(This,riid,ppvObject) \
  3591. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3592. #define ISpAudio_AddRef(This) \
  3593. (This)->lpVtbl -> AddRef(This)
  3594. #define ISpAudio_Release(This) \
  3595. (This)->lpVtbl -> Release(This)
  3596. #define ISpAudio_Read(This,pv,cb,pcbRead) \
  3597. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3598. #define ISpAudio_Write(This,pv,cb,pcbWritten) \
  3599. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3600. #define ISpAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3601. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3602. #define ISpAudio_SetSize(This,libNewSize) \
  3603. (This)->lpVtbl -> SetSize(This,libNewSize)
  3604. #define ISpAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3605. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3606. #define ISpAudio_Commit(This,grfCommitFlags) \
  3607. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3608. #define ISpAudio_Revert(This) \
  3609. (This)->lpVtbl -> Revert(This)
  3610. #define ISpAudio_LockRegion(This,libOffset,cb,dwLockType) \
  3611. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3612. #define ISpAudio_UnlockRegion(This,libOffset,cb,dwLockType) \
  3613. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3614. #define ISpAudio_Stat(This,pstatstg,grfStatFlag) \
  3615. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3616. #define ISpAudio_Clone(This,ppstm) \
  3617. (This)->lpVtbl -> Clone(This,ppstm)
  3618. #define ISpAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3619. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3620. #define ISpAudio_SetState(This,NewState,ullReserved) \
  3621. (This)->lpVtbl -> SetState(This,NewState,ullReserved)
  3622. #define ISpAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) \
  3623. (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
  3624. #define ISpAudio_GetStatus(This,pStatus) \
  3625. (This)->lpVtbl -> GetStatus(This,pStatus)
  3626. #define ISpAudio_SetBufferInfo(This,pBuffInfo) \
  3627. (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
  3628. #define ISpAudio_GetBufferInfo(This,pBuffInfo) \
  3629. (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
  3630. #define ISpAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) \
  3631. (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  3632. #define ISpAudio_EventHandle(This) \
  3633. (This)->lpVtbl -> EventHandle(This)
  3634. #define ISpAudio_GetVolumeLevel(This,pLevel) \
  3635. (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
  3636. #define ISpAudio_SetVolumeLevel(This,Level) \
  3637. (This)->lpVtbl -> SetVolumeLevel(This,Level)
  3638. #define ISpAudio_GetBufferNotifySize(This,pcbSize) \
  3639. (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
  3640. #define ISpAudio_SetBufferNotifySize(This,cbSize) \
  3641. (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
  3642. #endif /* COBJMACROS */
  3643. #endif /* C style interface */
  3644. HRESULT STDMETHODCALLTYPE ISpAudio_SetState_Proxy(
  3645. ISpAudio * This,
  3646. /* [in] */ SPAUDIOSTATE NewState,
  3647. /* [in] */ ULONGLONG ullReserved);
  3648. void __RPC_STUB ISpAudio_SetState_Stub(
  3649. IRpcStubBuffer *This,
  3650. IRpcChannelBuffer *_pRpcChannelBuffer,
  3651. PRPC_MESSAGE _pRpcMessage,
  3652. DWORD *_pdwStubPhase);
  3653. HRESULT STDMETHODCALLTYPE ISpAudio_SetFormat_Proxy(
  3654. ISpAudio * This,
  3655. /* [in] */ REFGUID rguidFmtId,
  3656. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3657. void __RPC_STUB ISpAudio_SetFormat_Stub(
  3658. IRpcStubBuffer *This,
  3659. IRpcChannelBuffer *_pRpcChannelBuffer,
  3660. PRPC_MESSAGE _pRpcMessage,
  3661. DWORD *_pdwStubPhase);
  3662. HRESULT STDMETHODCALLTYPE ISpAudio_GetStatus_Proxy(
  3663. ISpAudio * This,
  3664. /* [out] */ SPAUDIOSTATUS *pStatus);
  3665. void __RPC_STUB ISpAudio_GetStatus_Stub(
  3666. IRpcStubBuffer *This,
  3667. IRpcChannelBuffer *_pRpcChannelBuffer,
  3668. PRPC_MESSAGE _pRpcMessage,
  3669. DWORD *_pdwStubPhase);
  3670. HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferInfo_Proxy(
  3671. ISpAudio * This,
  3672. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3673. void __RPC_STUB ISpAudio_SetBufferInfo_Stub(
  3674. IRpcStubBuffer *This,
  3675. IRpcChannelBuffer *_pRpcChannelBuffer,
  3676. PRPC_MESSAGE _pRpcMessage,
  3677. DWORD *_pdwStubPhase);
  3678. HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferInfo_Proxy(
  3679. ISpAudio * This,
  3680. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3681. void __RPC_STUB ISpAudio_GetBufferInfo_Stub(
  3682. IRpcStubBuffer *This,
  3683. IRpcChannelBuffer *_pRpcChannelBuffer,
  3684. PRPC_MESSAGE _pRpcMessage,
  3685. DWORD *_pdwStubPhase);
  3686. HRESULT STDMETHODCALLTYPE ISpAudio_GetDefaultFormat_Proxy(
  3687. ISpAudio * This,
  3688. /* [out] */ GUID *pFormatId,
  3689. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3690. void __RPC_STUB ISpAudio_GetDefaultFormat_Stub(
  3691. IRpcStubBuffer *This,
  3692. IRpcChannelBuffer *_pRpcChannelBuffer,
  3693. PRPC_MESSAGE _pRpcMessage,
  3694. DWORD *_pdwStubPhase);
  3695. HANDLE STDMETHODCALLTYPE ISpAudio_EventHandle_Proxy(
  3696. ISpAudio * This);
  3697. void __RPC_STUB ISpAudio_EventHandle_Stub(
  3698. IRpcStubBuffer *This,
  3699. IRpcChannelBuffer *_pRpcChannelBuffer,
  3700. PRPC_MESSAGE _pRpcMessage,
  3701. DWORD *_pdwStubPhase);
  3702. HRESULT STDMETHODCALLTYPE ISpAudio_GetVolumeLevel_Proxy(
  3703. ISpAudio * This,
  3704. /* [out] */ ULONG *pLevel);
  3705. void __RPC_STUB ISpAudio_GetVolumeLevel_Stub(
  3706. IRpcStubBuffer *This,
  3707. IRpcChannelBuffer *_pRpcChannelBuffer,
  3708. PRPC_MESSAGE _pRpcMessage,
  3709. DWORD *_pdwStubPhase);
  3710. HRESULT STDMETHODCALLTYPE ISpAudio_SetVolumeLevel_Proxy(
  3711. ISpAudio * This,
  3712. /* [in] */ ULONG Level);
  3713. void __RPC_STUB ISpAudio_SetVolumeLevel_Stub(
  3714. IRpcStubBuffer *This,
  3715. IRpcChannelBuffer *_pRpcChannelBuffer,
  3716. PRPC_MESSAGE _pRpcMessage,
  3717. DWORD *_pdwStubPhase);
  3718. HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferNotifySize_Proxy(
  3719. ISpAudio * This,
  3720. /* [out] */ ULONG *pcbSize);
  3721. void __RPC_STUB ISpAudio_GetBufferNotifySize_Stub(
  3722. IRpcStubBuffer *This,
  3723. IRpcChannelBuffer *_pRpcChannelBuffer,
  3724. PRPC_MESSAGE _pRpcMessage,
  3725. DWORD *_pdwStubPhase);
  3726. HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferNotifySize_Proxy(
  3727. ISpAudio * This,
  3728. /* [in] */ ULONG cbSize);
  3729. void __RPC_STUB ISpAudio_SetBufferNotifySize_Stub(
  3730. IRpcStubBuffer *This,
  3731. IRpcChannelBuffer *_pRpcChannelBuffer,
  3732. PRPC_MESSAGE _pRpcMessage,
  3733. DWORD *_pdwStubPhase);
  3734. #endif /* __ISpAudio_INTERFACE_DEFINED__ */
  3735. #ifndef __ISpMMSysAudio_INTERFACE_DEFINED__
  3736. #define __ISpMMSysAudio_INTERFACE_DEFINED__
  3737. /* interface ISpMMSysAudio */
  3738. /* [restricted][local][unique][helpstring][uuid][object] */
  3739. EXTERN_C const IID IID_ISpMMSysAudio;
  3740. #if defined(__cplusplus) && !defined(CINTERFACE)
  3741. MIDL_INTERFACE("15806F6E-1D70-4B48-98E6-3B1A007509AB")
  3742. ISpMMSysAudio : public ISpAudio
  3743. {
  3744. public:
  3745. virtual HRESULT STDMETHODCALLTYPE GetDeviceId(
  3746. /* [out] */ UINT *puDeviceId) = 0;
  3747. virtual HRESULT STDMETHODCALLTYPE SetDeviceId(
  3748. /* [in] */ UINT uDeviceId) = 0;
  3749. virtual HRESULT STDMETHODCALLTYPE GetMMHandle(
  3750. void **pHandle) = 0;
  3751. virtual HRESULT STDMETHODCALLTYPE GetLineId(
  3752. /* [out] */ UINT *puLineId) = 0;
  3753. virtual HRESULT STDMETHODCALLTYPE SetLineId(
  3754. /* [in] */ UINT uLineId) = 0;
  3755. };
  3756. #else /* C style interface */
  3757. typedef struct ISpMMSysAudioVtbl
  3758. {
  3759. BEGIN_INTERFACE
  3760. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3761. ISpMMSysAudio * This,
  3762. /* [in] */ REFIID riid,
  3763. /* [iid_is][out] */ void **ppvObject);
  3764. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3765. ISpMMSysAudio * This);
  3766. ULONG ( STDMETHODCALLTYPE *Release )(
  3767. ISpMMSysAudio * This);
  3768. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3769. ISpMMSysAudio * This,
  3770. /* [length_is][size_is][out] */ void *pv,
  3771. /* [in] */ ULONG cb,
  3772. /* [out] */ ULONG *pcbRead);
  3773. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3774. ISpMMSysAudio * This,
  3775. /* [size_is][in] */ const void *pv,
  3776. /* [in] */ ULONG cb,
  3777. /* [out] */ ULONG *pcbWritten);
  3778. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3779. ISpMMSysAudio * This,
  3780. /* [in] */ LARGE_INTEGER dlibMove,
  3781. /* [in] */ DWORD dwOrigin,
  3782. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3783. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3784. ISpMMSysAudio * This,
  3785. /* [in] */ ULARGE_INTEGER libNewSize);
  3786. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3787. ISpMMSysAudio * This,
  3788. /* [unique][in] */ IStream *pstm,
  3789. /* [in] */ ULARGE_INTEGER cb,
  3790. /* [out] */ ULARGE_INTEGER *pcbRead,
  3791. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3792. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3793. ISpMMSysAudio * This,
  3794. /* [in] */ DWORD grfCommitFlags);
  3795. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3796. ISpMMSysAudio * This);
  3797. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3798. ISpMMSysAudio * This,
  3799. /* [in] */ ULARGE_INTEGER libOffset,
  3800. /* [in] */ ULARGE_INTEGER cb,
  3801. /* [in] */ DWORD dwLockType);
  3802. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3803. ISpMMSysAudio * This,
  3804. /* [in] */ ULARGE_INTEGER libOffset,
  3805. /* [in] */ ULARGE_INTEGER cb,
  3806. /* [in] */ DWORD dwLockType);
  3807. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3808. ISpMMSysAudio * This,
  3809. /* [out] */ STATSTG *pstatstg,
  3810. /* [in] */ DWORD grfStatFlag);
  3811. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3812. ISpMMSysAudio * This,
  3813. /* [out] */ IStream **ppstm);
  3814. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3815. ISpMMSysAudio * This,
  3816. GUID *pguidFormatId,
  3817. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3818. HRESULT ( STDMETHODCALLTYPE *SetState )(
  3819. ISpMMSysAudio * This,
  3820. /* [in] */ SPAUDIOSTATE NewState,
  3821. /* [in] */ ULONGLONG ullReserved);
  3822. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3823. ISpMMSysAudio * This,
  3824. /* [in] */ REFGUID rguidFmtId,
  3825. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3826. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  3827. ISpMMSysAudio * This,
  3828. /* [out] */ SPAUDIOSTATUS *pStatus);
  3829. HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
  3830. ISpMMSysAudio * This,
  3831. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3832. HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
  3833. ISpMMSysAudio * This,
  3834. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3835. HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
  3836. ISpMMSysAudio * This,
  3837. /* [out] */ GUID *pFormatId,
  3838. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3839. HANDLE ( STDMETHODCALLTYPE *EventHandle )(
  3840. ISpMMSysAudio * This);
  3841. HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
  3842. ISpMMSysAudio * This,
  3843. /* [out] */ ULONG *pLevel);
  3844. HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
  3845. ISpMMSysAudio * This,
  3846. /* [in] */ ULONG Level);
  3847. HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
  3848. ISpMMSysAudio * This,
  3849. /* [out] */ ULONG *pcbSize);
  3850. HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
  3851. ISpMMSysAudio * This,
  3852. /* [in] */ ULONG cbSize);
  3853. HRESULT ( STDMETHODCALLTYPE *GetDeviceId )(
  3854. ISpMMSysAudio * This,
  3855. /* [out] */ UINT *puDeviceId);
  3856. HRESULT ( STDMETHODCALLTYPE *SetDeviceId )(
  3857. ISpMMSysAudio * This,
  3858. /* [in] */ UINT uDeviceId);
  3859. HRESULT ( STDMETHODCALLTYPE *GetMMHandle )(
  3860. ISpMMSysAudio * This,
  3861. void **pHandle);
  3862. HRESULT ( STDMETHODCALLTYPE *GetLineId )(
  3863. ISpMMSysAudio * This,
  3864. /* [out] */ UINT *puLineId);
  3865. HRESULT ( STDMETHODCALLTYPE *SetLineId )(
  3866. ISpMMSysAudio * This,
  3867. /* [in] */ UINT uLineId);
  3868. END_INTERFACE
  3869. } ISpMMSysAudioVtbl;
  3870. interface ISpMMSysAudio
  3871. {
  3872. CONST_VTBL struct ISpMMSysAudioVtbl *lpVtbl;
  3873. };
  3874. #ifdef COBJMACROS
  3875. #define ISpMMSysAudio_QueryInterface(This,riid,ppvObject) \
  3876. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3877. #define ISpMMSysAudio_AddRef(This) \
  3878. (This)->lpVtbl -> AddRef(This)
  3879. #define ISpMMSysAudio_Release(This) \
  3880. (This)->lpVtbl -> Release(This)
  3881. #define ISpMMSysAudio_Read(This,pv,cb,pcbRead) \
  3882. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3883. #define ISpMMSysAudio_Write(This,pv,cb,pcbWritten) \
  3884. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3885. #define ISpMMSysAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3886. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3887. #define ISpMMSysAudio_SetSize(This,libNewSize) \
  3888. (This)->lpVtbl -> SetSize(This,libNewSize)
  3889. #define ISpMMSysAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3890. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3891. #define ISpMMSysAudio_Commit(This,grfCommitFlags) \
  3892. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3893. #define ISpMMSysAudio_Revert(This) \
  3894. (This)->lpVtbl -> Revert(This)
  3895. #define ISpMMSysAudio_LockRegion(This,libOffset,cb,dwLockType) \
  3896. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3897. #define ISpMMSysAudio_UnlockRegion(This,libOffset,cb,dwLockType) \
  3898. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3899. #define ISpMMSysAudio_Stat(This,pstatstg,grfStatFlag) \
  3900. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3901. #define ISpMMSysAudio_Clone(This,ppstm) \
  3902. (This)->lpVtbl -> Clone(This,ppstm)
  3903. #define ISpMMSysAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3904. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3905. #define ISpMMSysAudio_SetState(This,NewState,ullReserved) \
  3906. (This)->lpVtbl -> SetState(This,NewState,ullReserved)
  3907. #define ISpMMSysAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) \
  3908. (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
  3909. #define ISpMMSysAudio_GetStatus(This,pStatus) \
  3910. (This)->lpVtbl -> GetStatus(This,pStatus)
  3911. #define ISpMMSysAudio_SetBufferInfo(This,pBuffInfo) \
  3912. (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
  3913. #define ISpMMSysAudio_GetBufferInfo(This,pBuffInfo) \
  3914. (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
  3915. #define ISpMMSysAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) \
  3916. (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  3917. #define ISpMMSysAudio_EventHandle(This) \
  3918. (This)->lpVtbl -> EventHandle(This)
  3919. #define ISpMMSysAudio_GetVolumeLevel(This,pLevel) \
  3920. (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
  3921. #define ISpMMSysAudio_SetVolumeLevel(This,Level) \
  3922. (This)->lpVtbl -> SetVolumeLevel(This,Level)
  3923. #define ISpMMSysAudio_GetBufferNotifySize(This,pcbSize) \
  3924. (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
  3925. #define ISpMMSysAudio_SetBufferNotifySize(This,cbSize) \
  3926. (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
  3927. #define ISpMMSysAudio_GetDeviceId(This,puDeviceId) \
  3928. (This)->lpVtbl -> GetDeviceId(This,puDeviceId)
  3929. #define ISpMMSysAudio_SetDeviceId(This,uDeviceId) \
  3930. (This)->lpVtbl -> SetDeviceId(This,uDeviceId)
  3931. #define ISpMMSysAudio_GetMMHandle(This,pHandle) \
  3932. (This)->lpVtbl -> GetMMHandle(This,pHandle)
  3933. #define ISpMMSysAudio_GetLineId(This,puLineId) \
  3934. (This)->lpVtbl -> GetLineId(This,puLineId)
  3935. #define ISpMMSysAudio_SetLineId(This,uLineId) \
  3936. (This)->lpVtbl -> SetLineId(This,uLineId)
  3937. #endif /* COBJMACROS */
  3938. #endif /* C style interface */
  3939. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetDeviceId_Proxy(
  3940. ISpMMSysAudio * This,
  3941. /* [out] */ UINT *puDeviceId);
  3942. void __RPC_STUB ISpMMSysAudio_GetDeviceId_Stub(
  3943. IRpcStubBuffer *This,
  3944. IRpcChannelBuffer *_pRpcChannelBuffer,
  3945. PRPC_MESSAGE _pRpcMessage,
  3946. DWORD *_pdwStubPhase);
  3947. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetDeviceId_Proxy(
  3948. ISpMMSysAudio * This,
  3949. /* [in] */ UINT uDeviceId);
  3950. void __RPC_STUB ISpMMSysAudio_SetDeviceId_Stub(
  3951. IRpcStubBuffer *This,
  3952. IRpcChannelBuffer *_pRpcChannelBuffer,
  3953. PRPC_MESSAGE _pRpcMessage,
  3954. DWORD *_pdwStubPhase);
  3955. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetMMHandle_Proxy(
  3956. ISpMMSysAudio * This,
  3957. void **pHandle);
  3958. void __RPC_STUB ISpMMSysAudio_GetMMHandle_Stub(
  3959. IRpcStubBuffer *This,
  3960. IRpcChannelBuffer *_pRpcChannelBuffer,
  3961. PRPC_MESSAGE _pRpcMessage,
  3962. DWORD *_pdwStubPhase);
  3963. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetLineId_Proxy(
  3964. ISpMMSysAudio * This,
  3965. /* [out] */ UINT *puLineId);
  3966. void __RPC_STUB ISpMMSysAudio_GetLineId_Stub(
  3967. IRpcStubBuffer *This,
  3968. IRpcChannelBuffer *_pRpcChannelBuffer,
  3969. PRPC_MESSAGE _pRpcMessage,
  3970. DWORD *_pdwStubPhase);
  3971. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetLineId_Proxy(
  3972. ISpMMSysAudio * This,
  3973. /* [in] */ UINT uLineId);
  3974. void __RPC_STUB ISpMMSysAudio_SetLineId_Stub(
  3975. IRpcStubBuffer *This,
  3976. IRpcChannelBuffer *_pRpcChannelBuffer,
  3977. PRPC_MESSAGE _pRpcMessage,
  3978. DWORD *_pdwStubPhase);
  3979. #endif /* __ISpMMSysAudio_INTERFACE_DEFINED__ */
  3980. #ifndef __ISpTranscript_INTERFACE_DEFINED__
  3981. #define __ISpTranscript_INTERFACE_DEFINED__
  3982. /* interface ISpTranscript */
  3983. /* [restricted][unique][helpstring][uuid][object] */
  3984. EXTERN_C const IID IID_ISpTranscript;
  3985. #if defined(__cplusplus) && !defined(CINTERFACE)
  3986. MIDL_INTERFACE("10F63BCE-201A-11D3-AC70-00C04F8EE6C0")
  3987. ISpTranscript : public IUnknown
  3988. {
  3989. public:
  3990. virtual HRESULT STDMETHODCALLTYPE GetTranscript(
  3991. /* [string][out] */ WCHAR **ppszTranscript) = 0;
  3992. virtual HRESULT STDMETHODCALLTYPE AppendTranscript(
  3993. /* [string][in] */ const WCHAR *pszTranscript) = 0;
  3994. };
  3995. #else /* C style interface */
  3996. typedef struct ISpTranscriptVtbl
  3997. {
  3998. BEGIN_INTERFACE
  3999. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4000. ISpTranscript * This,
  4001. /* [in] */ REFIID riid,
  4002. /* [iid_is][out] */ void **ppvObject);
  4003. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4004. ISpTranscript * This);
  4005. ULONG ( STDMETHODCALLTYPE *Release )(
  4006. ISpTranscript * This);
  4007. HRESULT ( STDMETHODCALLTYPE *GetTranscript )(
  4008. ISpTranscript * This,
  4009. /* [string][out] */ WCHAR **ppszTranscript);
  4010. HRESULT ( STDMETHODCALLTYPE *AppendTranscript )(
  4011. ISpTranscript * This,
  4012. /* [string][in] */ const WCHAR *pszTranscript);
  4013. END_INTERFACE
  4014. } ISpTranscriptVtbl;
  4015. interface ISpTranscript
  4016. {
  4017. CONST_VTBL struct ISpTranscriptVtbl *lpVtbl;
  4018. };
  4019. #ifdef COBJMACROS
  4020. #define ISpTranscript_QueryInterface(This,riid,ppvObject) \
  4021. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4022. #define ISpTranscript_AddRef(This) \
  4023. (This)->lpVtbl -> AddRef(This)
  4024. #define ISpTranscript_Release(This) \
  4025. (This)->lpVtbl -> Release(This)
  4026. #define ISpTranscript_GetTranscript(This,ppszTranscript) \
  4027. (This)->lpVtbl -> GetTranscript(This,ppszTranscript)
  4028. #define ISpTranscript_AppendTranscript(This,pszTranscript) \
  4029. (This)->lpVtbl -> AppendTranscript(This,pszTranscript)
  4030. #endif /* COBJMACROS */
  4031. #endif /* C style interface */
  4032. HRESULT STDMETHODCALLTYPE ISpTranscript_GetTranscript_Proxy(
  4033. ISpTranscript * This,
  4034. /* [string][out] */ WCHAR **ppszTranscript);
  4035. void __RPC_STUB ISpTranscript_GetTranscript_Stub(
  4036. IRpcStubBuffer *This,
  4037. IRpcChannelBuffer *_pRpcChannelBuffer,
  4038. PRPC_MESSAGE _pRpcMessage,
  4039. DWORD *_pdwStubPhase);
  4040. HRESULT STDMETHODCALLTYPE ISpTranscript_AppendTranscript_Proxy(
  4041. ISpTranscript * This,
  4042. /* [string][in] */ const WCHAR *pszTranscript);
  4043. void __RPC_STUB ISpTranscript_AppendTranscript_Stub(
  4044. IRpcStubBuffer *This,
  4045. IRpcChannelBuffer *_pRpcChannelBuffer,
  4046. PRPC_MESSAGE _pRpcMessage,
  4047. DWORD *_pdwStubPhase);
  4048. #endif /* __ISpTranscript_INTERFACE_DEFINED__ */
  4049. /* interface __MIDL_itf_sapi_0276 */
  4050. /* [local] */
  4051. typedef /* [hidden] */
  4052. enum SPDISPLYATTRIBUTES
  4053. { SPAF_ONE_TRAILING_SPACE = 0x2,
  4054. SPAF_TWO_TRAILING_SPACES = 0x4,
  4055. SPAF_CONSUME_LEADING_SPACES = 0x8,
  4056. SPAF_ALL = 0xf
  4057. } SPDISPLAYATTRIBUTES;
  4058. typedef unsigned short SPPHONEID;
  4059. typedef /* [hidden][restricted] */ struct SPPHRASEELEMENT
  4060. {
  4061. ULONG ulAudioTimeOffset;
  4062. ULONG ulAudioSizeTime;
  4063. ULONG ulAudioStreamOffset;
  4064. ULONG ulAudioSizeBytes;
  4065. ULONG ulRetainedStreamOffset;
  4066. ULONG ulRetainedSizeBytes;
  4067. const WCHAR *pszDisplayText;
  4068. const WCHAR *pszLexicalForm;
  4069. const SPPHONEID *pszPronunciation;
  4070. BYTE bDisplayAttributes;
  4071. signed char RequiredConfidence;
  4072. signed char ActualConfidence;
  4073. BYTE Reserved;
  4074. float SREngineConfidence;
  4075. } SPPHRASEELEMENT;
  4076. typedef /* [hidden][restricted] */ struct SPPHRASERULE SPPHRASERULE;
  4077. /* [hidden] */ struct SPPHRASERULE
  4078. {
  4079. const WCHAR *pszName;
  4080. ULONG ulId;
  4081. ULONG ulFirstElement;
  4082. ULONG ulCountOfElements;
  4083. const SPPHRASERULE *pNextSibling;
  4084. const SPPHRASERULE *pFirstChild;
  4085. float SREngineConfidence;
  4086. signed char Confidence;
  4087. } ;
  4088. typedef /* [hidden][restricted] */ struct SPPHRASEPROPERTY SPPHRASEPROPERTY;
  4089. /* [hidden] */ struct SPPHRASEPROPERTY
  4090. {
  4091. const WCHAR *pszName;
  4092. ULONG ulId;
  4093. const WCHAR *pszValue;
  4094. VARIANT vValue;
  4095. ULONG ulFirstElement;
  4096. ULONG ulCountOfElements;
  4097. const SPPHRASEPROPERTY *pNextSibling;
  4098. const SPPHRASEPROPERTY *pFirstChild;
  4099. float SREngineConfidence;
  4100. signed char Confidence;
  4101. } ;
  4102. typedef /* [hidden][restricted] */ struct SPPHRASEREPLACEMENT
  4103. {
  4104. BYTE bDisplayAttributes;
  4105. const WCHAR *pszReplacementText;
  4106. ULONG ulFirstElement;
  4107. ULONG ulCountOfElements;
  4108. } SPPHRASEREPLACEMENT;
  4109. typedef /* [hidden][restricted] */ struct SPPHRASE
  4110. {
  4111. ULONG cbSize;
  4112. WORD LangID;
  4113. WORD wReserved;
  4114. ULONGLONG ullGrammarID;
  4115. ULONGLONG ftStartTime;
  4116. ULONGLONG ullAudioStreamPosition;
  4117. ULONG ulAudioSizeBytes;
  4118. ULONG ulRetainedSizeBytes;
  4119. ULONG ulAudioSizeTime;
  4120. SPPHRASERULE Rule;
  4121. const SPPHRASEPROPERTY *pProperties;
  4122. const SPPHRASEELEMENT *pElements;
  4123. ULONG cReplacements;
  4124. const SPPHRASEREPLACEMENT *pReplacements;
  4125. GUID SREngineID;
  4126. ULONG ulSREnginePrivateDataSize;
  4127. const BYTE *pSREnginePrivateData;
  4128. } SPPHRASE;
  4129. typedef /* [hidden][restricted] */ struct SPSERIALIZEDPHRASE
  4130. {
  4131. ULONG ulSerializedSize;
  4132. } SPSERIALIZEDPHRASE;
  4133. typedef /* [hidden] */
  4134. enum SPVALUETYPE
  4135. { SPDF_PROPERTY = 0x1,
  4136. SPDF_REPLACEMENT = 0x2,
  4137. SPDF_RULE = 0x4,
  4138. SPDF_DISPLAYTEXT = 0x8,
  4139. SPDF_LEXICALFORM = 0x10,
  4140. SPDF_PRONUNCIATION = 0x20,
  4141. SPDF_AUDIO = 0x40,
  4142. SPDF_ALTERNATES = 0x80,
  4143. SPDF_ALL = 0xff
  4144. } SPVALUETYPE;
  4145. typedef /* [hidden] */ struct SPBINARYGRAMMAR
  4146. {
  4147. ULONG ulTotalSerializedSize;
  4148. } SPBINARYGRAMMAR;
  4149. typedef /* [hidden] */
  4150. enum SPPHRASERNG
  4151. { SPPR_ALL_ELEMENTS = -1
  4152. } SPPHRASERNG;
  4153. #define SP_GETWHOLEPHRASE SPPR_ALL_ELEMENTS
  4154. #define SPRR_ALL_ELEMENTS SPPR_ALL_ELEMENTS
  4155. #if 0
  4156. typedef void *SPSTATEHANDLE;
  4157. #else
  4158. DECLARE_HANDLE(SPSTATEHANDLE);
  4159. #endif
  4160. typedef /* [hidden] */
  4161. enum SPRECOEVENTFLAGS
  4162. { SPREF_AutoPause = 1 << 0,
  4163. SPREF_Emulated = 1 << 1
  4164. } SPRECOEVENTFLAGS;
  4165. typedef /* [hidden] */
  4166. enum SPPARTOFSPEECH
  4167. { SPPS_NotOverriden = -1,
  4168. SPPS_Unknown = 0,
  4169. SPPS_Noun = 0x1000,
  4170. SPPS_Verb = 0x2000,
  4171. SPPS_Modifier = 0x3000,
  4172. SPPS_Function = 0x4000,
  4173. SPPS_Interjection = 0x5000
  4174. } SPPARTOFSPEECH;
  4175. typedef /* [hidden] */
  4176. enum SPLEXICONTYPE
  4177. { eLEXTYPE_USER = 1L << 0,
  4178. eLEXTYPE_APP = 1L << 1,
  4179. eLEXTYPE_RESERVED1 = 1L << 2,
  4180. eLEXTYPE_RESERVED2 = 1L << 3,
  4181. eLEXTYPE_RESERVED3 = 1L << 4,
  4182. eLEXTYPE_RESERVED4 = 1L << 5,
  4183. eLEXTYPE_RESERVED5 = 1L << 6,
  4184. eLEXTYPE_RESERVED6 = 1L << 7,
  4185. eLEXTYPE_RESERVED7 = 1L << 8,
  4186. eLEXTYPE_RESERVED8 = 1L << 9,
  4187. eLEXTYPE_RESERVED9 = 1L << 10,
  4188. eLEXTYPE_RESERVED10 = 1L << 11,
  4189. eLEXTYPE_PRIVATE1 = 1L << 12,
  4190. eLEXTYPE_PRIVATE2 = 1L << 13,
  4191. eLEXTYPE_PRIVATE3 = 1L << 14,
  4192. eLEXTYPE_PRIVATE4 = 1L << 15,
  4193. eLEXTYPE_PRIVATE5 = 1L << 16,
  4194. eLEXTYPE_PRIVATE6 = 1L << 17,
  4195. eLEXTYPE_PRIVATE7 = 1L << 18,
  4196. eLEXTYPE_PRIVATE8 = 1L << 19,
  4197. eLEXTYPE_PRIVATE9 = 1L << 20,
  4198. eLEXTYPE_PRIVATE10 = 1L << 21,
  4199. eLEXTYPE_PRIVATE11 = 1L << 22,
  4200. eLEXTYPE_PRIVATE12 = 1L << 23,
  4201. eLEXTYPE_PRIVATE13 = 1L << 24,
  4202. eLEXTYPE_PRIVATE14 = 1L << 25,
  4203. eLEXTYPE_PRIVATE15 = 1L << 26,
  4204. eLEXTYPE_PRIVATE16 = 1L << 27,
  4205. eLEXTYPE_PRIVATE17 = 1L << 28,
  4206. eLEXTYPE_PRIVATE18 = 1L << 29,
  4207. eLEXTYPE_PRIVATE19 = 1L << 30,
  4208. eLEXTYPE_PRIVATE20 = 1L << 31
  4209. } SPLEXICONTYPE;
  4210. typedef /* [hidden] */
  4211. enum SPWORDTYPE
  4212. { eWORDTYPE_ADDED = 1L << 0,
  4213. eWORDTYPE_DELETED = 1L << 1
  4214. } SPWORDTYPE;
  4215. typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATION
  4216. {
  4217. struct SPWORDPRONUNCIATION *pNextWordPronunciation;
  4218. SPLEXICONTYPE eLexiconType;
  4219. WORD LangID;
  4220. WORD wReserved;
  4221. SPPARTOFSPEECH ePartOfSpeech;
  4222. SPPHONEID szPronunciation[ 1 ];
  4223. } SPWORDPRONUNCIATION;
  4224. typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATIONLIST
  4225. {
  4226. ULONG ulSize;
  4227. BYTE *pvBuffer;
  4228. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  4229. } SPWORDPRONUNCIATIONLIST;
  4230. typedef /* [hidden][restricted] */ struct SPWORD
  4231. {
  4232. struct SPWORD *pNextWord;
  4233. WORD LangID;
  4234. WORD wReserved;
  4235. SPWORDTYPE eWordType;
  4236. WCHAR *pszWord;
  4237. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  4238. } SPWORD;
  4239. typedef /* [hidden][restricted] */ struct SPWORDLIST
  4240. {
  4241. ULONG ulSize;
  4242. BYTE *pvBuffer;
  4243. SPWORD *pFirstWord;
  4244. } SPWORDLIST;
  4245. extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_c_ifspec;
  4246. extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_s_ifspec;
  4247. #ifndef __ISpLexicon_INTERFACE_DEFINED__
  4248. #define __ISpLexicon_INTERFACE_DEFINED__
  4249. /* interface ISpLexicon */
  4250. /* [restricted][unique][helpstring][uuid][object] */
  4251. EXTERN_C const IID IID_ISpLexicon;
  4252. #if defined(__cplusplus) && !defined(CINTERFACE)
  4253. MIDL_INTERFACE("DA41A7C2-5383-4DB2-916B-6C1719E3DB58")
  4254. ISpLexicon : public IUnknown
  4255. {
  4256. public:
  4257. virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
  4258. /* [in] */ const WCHAR *pszWord,
  4259. /* [in] */ WORD LangID,
  4260. /* [in] */ DWORD dwFlags,
  4261. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList) = 0;
  4262. virtual HRESULT STDMETHODCALLTYPE AddPronunciation(
  4263. /* [in] */ const WCHAR *pszWord,
  4264. /* [in] */ WORD LangID,
  4265. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4266. /* [in] */ const SPPHONEID *pszPronunciation) = 0;
  4267. virtual HRESULT STDMETHODCALLTYPE RemovePronunciation(
  4268. /* [in] */ const WCHAR *pszWord,
  4269. /* [in] */ WORD LangID,
  4270. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4271. /* [in] */ const SPPHONEID *pszPronunciation) = 0;
  4272. virtual HRESULT STDMETHODCALLTYPE GetGeneration(
  4273. DWORD *pdwGeneration) = 0;
  4274. virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
  4275. /* [in] */ DWORD dwFlags,
  4276. /* [out][in] */ DWORD *pdwGeneration,
  4277. /* [out][in] */ SPWORDLIST *pWordList) = 0;
  4278. virtual HRESULT STDMETHODCALLTYPE GetWords(
  4279. /* [in] */ DWORD dwFlags,
  4280. /* [out][in] */ DWORD *pdwGeneration,
  4281. /* [out][in] */ DWORD *pdwCookie,
  4282. /* [out][in] */ SPWORDLIST *pWordList) = 0;
  4283. };
  4284. #else /* C style interface */
  4285. typedef struct ISpLexiconVtbl
  4286. {
  4287. BEGIN_INTERFACE
  4288. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4289. ISpLexicon * This,
  4290. /* [in] */ REFIID riid,
  4291. /* [iid_is][out] */ void **ppvObject);
  4292. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4293. ISpLexicon * This);
  4294. ULONG ( STDMETHODCALLTYPE *Release )(
  4295. ISpLexicon * This);
  4296. HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  4297. ISpLexicon * This,
  4298. /* [in] */ const WCHAR *pszWord,
  4299. /* [in] */ WORD LangID,
  4300. /* [in] */ DWORD dwFlags,
  4301. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4302. HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  4303. ISpLexicon * This,
  4304. /* [in] */ const WCHAR *pszWord,
  4305. /* [in] */ WORD LangID,
  4306. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4307. /* [in] */ const SPPHONEID *pszPronunciation);
  4308. HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  4309. ISpLexicon * This,
  4310. /* [in] */ const WCHAR *pszWord,
  4311. /* [in] */ WORD LangID,
  4312. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4313. /* [in] */ const SPPHONEID *pszPronunciation);
  4314. HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
  4315. ISpLexicon * This,
  4316. DWORD *pdwGeneration);
  4317. HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  4318. ISpLexicon * This,
  4319. /* [in] */ DWORD dwFlags,
  4320. /* [out][in] */ DWORD *pdwGeneration,
  4321. /* [out][in] */ SPWORDLIST *pWordList);
  4322. HRESULT ( STDMETHODCALLTYPE *GetWords )(
  4323. ISpLexicon * This,
  4324. /* [in] */ DWORD dwFlags,
  4325. /* [out][in] */ DWORD *pdwGeneration,
  4326. /* [out][in] */ DWORD *pdwCookie,
  4327. /* [out][in] */ SPWORDLIST *pWordList);
  4328. END_INTERFACE
  4329. } ISpLexiconVtbl;
  4330. interface ISpLexicon
  4331. {
  4332. CONST_VTBL struct ISpLexiconVtbl *lpVtbl;
  4333. };
  4334. #ifdef COBJMACROS
  4335. #define ISpLexicon_QueryInterface(This,riid,ppvObject) \
  4336. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4337. #define ISpLexicon_AddRef(This) \
  4338. (This)->lpVtbl -> AddRef(This)
  4339. #define ISpLexicon_Release(This) \
  4340. (This)->lpVtbl -> Release(This)
  4341. #define ISpLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) \
  4342. (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  4343. #define ISpLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4344. (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4345. #define ISpLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4346. (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4347. #define ISpLexicon_GetGeneration(This,pdwGeneration) \
  4348. (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
  4349. #define ISpLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) \
  4350. (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  4351. #define ISpLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) \
  4352. (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  4353. #endif /* COBJMACROS */
  4354. #endif /* C style interface */
  4355. HRESULT STDMETHODCALLTYPE ISpLexicon_GetPronunciations_Proxy(
  4356. ISpLexicon * This,
  4357. /* [in] */ const WCHAR *pszWord,
  4358. /* [in] */ WORD LangID,
  4359. /* [in] */ DWORD dwFlags,
  4360. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4361. void __RPC_STUB ISpLexicon_GetPronunciations_Stub(
  4362. IRpcStubBuffer *This,
  4363. IRpcChannelBuffer *_pRpcChannelBuffer,
  4364. PRPC_MESSAGE _pRpcMessage,
  4365. DWORD *_pdwStubPhase);
  4366. HRESULT STDMETHODCALLTYPE ISpLexicon_AddPronunciation_Proxy(
  4367. ISpLexicon * This,
  4368. /* [in] */ const WCHAR *pszWord,
  4369. /* [in] */ WORD LangID,
  4370. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4371. /* [in] */ const SPPHONEID *pszPronunciation);
  4372. void __RPC_STUB ISpLexicon_AddPronunciation_Stub(
  4373. IRpcStubBuffer *This,
  4374. IRpcChannelBuffer *_pRpcChannelBuffer,
  4375. PRPC_MESSAGE _pRpcMessage,
  4376. DWORD *_pdwStubPhase);
  4377. HRESULT STDMETHODCALLTYPE ISpLexicon_RemovePronunciation_Proxy(
  4378. ISpLexicon * This,
  4379. /* [in] */ const WCHAR *pszWord,
  4380. /* [in] */ WORD LangID,
  4381. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4382. /* [in] */ const SPPHONEID *pszPronunciation);
  4383. void __RPC_STUB ISpLexicon_RemovePronunciation_Stub(
  4384. IRpcStubBuffer *This,
  4385. IRpcChannelBuffer *_pRpcChannelBuffer,
  4386. PRPC_MESSAGE _pRpcMessage,
  4387. DWORD *_pdwStubPhase);
  4388. HRESULT STDMETHODCALLTYPE ISpLexicon_GetGeneration_Proxy(
  4389. ISpLexicon * This,
  4390. DWORD *pdwGeneration);
  4391. void __RPC_STUB ISpLexicon_GetGeneration_Stub(
  4392. IRpcStubBuffer *This,
  4393. IRpcChannelBuffer *_pRpcChannelBuffer,
  4394. PRPC_MESSAGE _pRpcMessage,
  4395. DWORD *_pdwStubPhase);
  4396. HRESULT STDMETHODCALLTYPE ISpLexicon_GetGenerationChange_Proxy(
  4397. ISpLexicon * This,
  4398. /* [in] */ DWORD dwFlags,
  4399. /* [out][in] */ DWORD *pdwGeneration,
  4400. /* [out][in] */ SPWORDLIST *pWordList);
  4401. void __RPC_STUB ISpLexicon_GetGenerationChange_Stub(
  4402. IRpcStubBuffer *This,
  4403. IRpcChannelBuffer *_pRpcChannelBuffer,
  4404. PRPC_MESSAGE _pRpcMessage,
  4405. DWORD *_pdwStubPhase);
  4406. HRESULT STDMETHODCALLTYPE ISpLexicon_GetWords_Proxy(
  4407. ISpLexicon * This,
  4408. /* [in] */ DWORD dwFlags,
  4409. /* [out][in] */ DWORD *pdwGeneration,
  4410. /* [out][in] */ DWORD *pdwCookie,
  4411. /* [out][in] */ SPWORDLIST *pWordList);
  4412. void __RPC_STUB ISpLexicon_GetWords_Stub(
  4413. IRpcStubBuffer *This,
  4414. IRpcChannelBuffer *_pRpcChannelBuffer,
  4415. PRPC_MESSAGE _pRpcMessage,
  4416. DWORD *_pdwStubPhase);
  4417. #endif /* __ISpLexicon_INTERFACE_DEFINED__ */
  4418. #ifndef __ISpContainerLexicon_INTERFACE_DEFINED__
  4419. #define __ISpContainerLexicon_INTERFACE_DEFINED__
  4420. /* interface ISpContainerLexicon */
  4421. /* [restricted][unique][helpstring][uuid][object] */
  4422. EXTERN_C const IID IID_ISpContainerLexicon;
  4423. #if defined(__cplusplus) && !defined(CINTERFACE)
  4424. MIDL_INTERFACE("8565572F-C094-41CC-B56E-10BD9C3FF044")
  4425. ISpContainerLexicon : public ISpLexicon
  4426. {
  4427. public:
  4428. virtual HRESULT STDMETHODCALLTYPE AddLexicon(
  4429. /* [in] */ ISpLexicon *pAddLexicon,
  4430. /* [in] */ DWORD dwFlags) = 0;
  4431. };
  4432. #else /* C style interface */
  4433. typedef struct ISpContainerLexiconVtbl
  4434. {
  4435. BEGIN_INTERFACE
  4436. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4437. ISpContainerLexicon * This,
  4438. /* [in] */ REFIID riid,
  4439. /* [iid_is][out] */ void **ppvObject);
  4440. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4441. ISpContainerLexicon * This);
  4442. ULONG ( STDMETHODCALLTYPE *Release )(
  4443. ISpContainerLexicon * This);
  4444. HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  4445. ISpContainerLexicon * This,
  4446. /* [in] */ const WCHAR *pszWord,
  4447. /* [in] */ WORD LangID,
  4448. /* [in] */ DWORD dwFlags,
  4449. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4450. HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  4451. ISpContainerLexicon * This,
  4452. /* [in] */ const WCHAR *pszWord,
  4453. /* [in] */ WORD LangID,
  4454. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4455. /* [in] */ const SPPHONEID *pszPronunciation);
  4456. HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  4457. ISpContainerLexicon * This,
  4458. /* [in] */ const WCHAR *pszWord,
  4459. /* [in] */ WORD LangID,
  4460. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4461. /* [in] */ const SPPHONEID *pszPronunciation);
  4462. HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
  4463. ISpContainerLexicon * This,
  4464. DWORD *pdwGeneration);
  4465. HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  4466. ISpContainerLexicon * This,
  4467. /* [in] */ DWORD dwFlags,
  4468. /* [out][in] */ DWORD *pdwGeneration,
  4469. /* [out][in] */ SPWORDLIST *pWordList);
  4470. HRESULT ( STDMETHODCALLTYPE *GetWords )(
  4471. ISpContainerLexicon * This,
  4472. /* [in] */ DWORD dwFlags,
  4473. /* [out][in] */ DWORD *pdwGeneration,
  4474. /* [out][in] */ DWORD *pdwCookie,
  4475. /* [out][in] */ SPWORDLIST *pWordList);
  4476. HRESULT ( STDMETHODCALLTYPE *AddLexicon )(
  4477. ISpContainerLexicon * This,
  4478. /* [in] */ ISpLexicon *pAddLexicon,
  4479. /* [in] */ DWORD dwFlags);
  4480. END_INTERFACE
  4481. } ISpContainerLexiconVtbl;
  4482. interface ISpContainerLexicon
  4483. {
  4484. CONST_VTBL struct ISpContainerLexiconVtbl *lpVtbl;
  4485. };
  4486. #ifdef COBJMACROS
  4487. #define ISpContainerLexicon_QueryInterface(This,riid,ppvObject) \
  4488. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4489. #define ISpContainerLexicon_AddRef(This) \
  4490. (This)->lpVtbl -> AddRef(This)
  4491. #define ISpContainerLexicon_Release(This) \
  4492. (This)->lpVtbl -> Release(This)
  4493. #define ISpContainerLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) \
  4494. (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  4495. #define ISpContainerLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4496. (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4497. #define ISpContainerLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4498. (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4499. #define ISpContainerLexicon_GetGeneration(This,pdwGeneration) \
  4500. (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
  4501. #define ISpContainerLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) \
  4502. (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  4503. #define ISpContainerLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) \
  4504. (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  4505. #define ISpContainerLexicon_AddLexicon(This,pAddLexicon,dwFlags) \
  4506. (This)->lpVtbl -> AddLexicon(This,pAddLexicon,dwFlags)
  4507. #endif /* COBJMACROS */
  4508. #endif /* C style interface */
  4509. HRESULT STDMETHODCALLTYPE ISpContainerLexicon_AddLexicon_Proxy(
  4510. ISpContainerLexicon * This,
  4511. /* [in] */ ISpLexicon *pAddLexicon,
  4512. /* [in] */ DWORD dwFlags);
  4513. void __RPC_STUB ISpContainerLexicon_AddLexicon_Stub(
  4514. IRpcStubBuffer *This,
  4515. IRpcChannelBuffer *_pRpcChannelBuffer,
  4516. PRPC_MESSAGE _pRpcMessage,
  4517. DWORD *_pdwStubPhase);
  4518. #endif /* __ISpContainerLexicon_INTERFACE_DEFINED__ */
  4519. #ifndef __ISpPhoneConverter_INTERFACE_DEFINED__
  4520. #define __ISpPhoneConverter_INTERFACE_DEFINED__
  4521. /* interface ISpPhoneConverter */
  4522. /* [restricted][unique][helpstring][uuid][object] */
  4523. EXTERN_C const IID IID_ISpPhoneConverter;
  4524. #if defined(__cplusplus) && !defined(CINTERFACE)
  4525. MIDL_INTERFACE("8445C581-0CAC-4A38-ABFE-9B2CE2826455")
  4526. ISpPhoneConverter : public ISpObjectWithToken
  4527. {
  4528. public:
  4529. virtual HRESULT STDMETHODCALLTYPE PhoneToId(
  4530. /* [in] */ const WCHAR *pszPhone,
  4531. /* [out] */ SPPHONEID *pId) = 0;
  4532. virtual HRESULT STDMETHODCALLTYPE IdToPhone(
  4533. /* [in] */ const SPPHONEID *pId,
  4534. /* [out] */ WCHAR *pszPhone) = 0;
  4535. };
  4536. #else /* C style interface */
  4537. typedef struct ISpPhoneConverterVtbl
  4538. {
  4539. BEGIN_INTERFACE
  4540. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4541. ISpPhoneConverter * This,
  4542. /* [in] */ REFIID riid,
  4543. /* [iid_is][out] */ void **ppvObject);
  4544. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4545. ISpPhoneConverter * This);
  4546. ULONG ( STDMETHODCALLTYPE *Release )(
  4547. ISpPhoneConverter * This);
  4548. HRESULT ( STDMETHODCALLTYPE *SetObjectToken )(
  4549. ISpPhoneConverter * This,
  4550. ISpObjectToken *pToken);
  4551. HRESULT ( STDMETHODCALLTYPE *GetObjectToken )(
  4552. ISpPhoneConverter * This,
  4553. ISpObjectToken **ppToken);
  4554. HRESULT ( STDMETHODCALLTYPE *PhoneToId )(
  4555. ISpPhoneConverter * This,
  4556. /* [in] */ const WCHAR *pszPhone,
  4557. /* [out] */ SPPHONEID *pId);
  4558. HRESULT ( STDMETHODCALLTYPE *IdToPhone )(
  4559. ISpPhoneConverter * This,
  4560. /* [in] */ const SPPHONEID *pId,
  4561. /* [out] */ WCHAR *pszPhone);
  4562. END_INTERFACE
  4563. } ISpPhoneConverterVtbl;
  4564. interface ISpPhoneConverter
  4565. {
  4566. CONST_VTBL struct ISpPhoneConverterVtbl *lpVtbl;
  4567. };
  4568. #ifdef COBJMACROS
  4569. #define ISpPhoneConverter_QueryInterface(This,riid,ppvObject) \
  4570. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4571. #define ISpPhoneConverter_AddRef(This) \
  4572. (This)->lpVtbl -> AddRef(This)
  4573. #define ISpPhoneConverter_Release(This) \
  4574. (This)->lpVtbl -> Release(This)
  4575. #define ISpPhoneConverter_SetObjectToken(This,pToken) \
  4576. (This)->lpVtbl -> SetObjectToken(This,pToken)
  4577. #define ISpPhoneConverter_GetObjectToken(This,ppToken) \
  4578. (This)->lpVtbl -> GetObjectToken(This,ppToken)
  4579. #define ISpPhoneConverter_PhoneToId(This,pszPhone,pId) \
  4580. (This)->lpVtbl -> PhoneToId(This,pszPhone,pId)
  4581. #define ISpPhoneConverter_IdToPhone(This,pId,pszPhone) \
  4582. (This)->lpVtbl -> IdToPhone(This,pId,pszPhone)
  4583. #endif /* COBJMACROS */
  4584. #endif /* C style interface */
  4585. HRESULT STDMETHODCALLTYPE ISpPhoneConverter_PhoneToId_Proxy(
  4586. ISpPhoneConverter * This,
  4587. /* [in] */ const WCHAR *pszPhone,
  4588. /* [out] */ SPPHONEID *pId);
  4589. void __RPC_STUB ISpPhoneConverter_PhoneToId_Stub(
  4590. IRpcStubBuffer *This,
  4591. IRpcChannelBuffer *_pRpcChannelBuffer,
  4592. PRPC_MESSAGE _pRpcMessage,
  4593. DWORD *_pdwStubPhase);
  4594. HRESULT STDMETHODCALLTYPE ISpPhoneConverter_IdToPhone_Proxy(
  4595. ISpPhoneConverter * This,
  4596. /* [in] */ const SPPHONEID *pId,
  4597. /* [out] */ WCHAR *pszPhone);
  4598. void __RPC_STUB ISpPhoneConverter_IdToPhone_Stub(
  4599. IRpcStubBuffer *This,
  4600. IRpcChannelBuffer *_pRpcChannelBuffer,
  4601. PRPC_MESSAGE _pRpcMessage,
  4602. DWORD *_pdwStubPhase);
  4603. #endif /* __ISpPhoneConverter_INTERFACE_DEFINED__ */
  4604. /* interface __MIDL_itf_sapi_0279 */
  4605. /* [local] */
  4606. typedef /* [hidden][restricted] */ struct SPVPITCH
  4607. {
  4608. long MiddleAdj;
  4609. long RangeAdj;
  4610. } SPVPITCH;
  4611. typedef /* [hidden] */
  4612. enum SPVACTIONS
  4613. { SPVA_Speak = 0,
  4614. SPVA_Silence = SPVA_Speak + 1,
  4615. SPVA_Pronounce = SPVA_Silence + 1,
  4616. SPVA_Bookmark = SPVA_Pronounce + 1,
  4617. SPVA_SpellOut = SPVA_Bookmark + 1,
  4618. SPVA_Section = SPVA_SpellOut + 1,
  4619. SPVA_ParseUnknownTag = SPVA_Section + 1
  4620. } SPVACTIONS;
  4621. typedef /* [hidden][restricted] */ struct SPVCONTEXT
  4622. {
  4623. LPCWSTR pCategory;
  4624. LPCWSTR pBefore;
  4625. LPCWSTR pAfter;
  4626. } SPVCONTEXT;
  4627. typedef /* [hidden][restricted] */ struct SPVSTATE
  4628. {
  4629. SPVACTIONS eAction;
  4630. WORD LangID;
  4631. WORD wReserved;
  4632. long EmphAdj;
  4633. long RateAdj;
  4634. ULONG Volume;
  4635. SPVPITCH PitchAdj;
  4636. ULONG SilenceMSecs;
  4637. SPPHONEID *pPhoneIds;
  4638. SPPARTOFSPEECH ePartOfSpeech;
  4639. SPVCONTEXT Context;
  4640. } SPVSTATE;
  4641. typedef /* [hidden] */
  4642. enum SPRUNSTATE
  4643. { SPRS_DONE = 1L << 0,
  4644. SPRS_IS_SPEAKING = 1L << 1
  4645. } SPRUNSTATE;
  4646. typedef /* [hidden] */
  4647. enum SPVLIMITS
  4648. { SPMIN_VOLUME = 0,
  4649. SPMAX_VOLUME = 100,
  4650. SPMIN_RATE = -10,
  4651. SPMAX_RATE = 10
  4652. } SPVLIMITS;
  4653. typedef /* [hidden] */
  4654. enum SPVPRIORITY
  4655. { SPVPRI_NORMAL = 0,
  4656. SPVPRI_ALERT = 1L << 0,
  4657. SPVPRI_OVER = 1L << 1
  4658. } SPVPRIORITY;
  4659. typedef /* [hidden][restricted] */ struct SPVOICESTATUS
  4660. {
  4661. ULONG ulCurrentStream;
  4662. ULONG ulLastStreamQueued;
  4663. HRESULT hrLastResult;
  4664. DWORD dwRunningState;
  4665. ULONG ulInputWordPos;
  4666. ULONG ulInputWordLen;
  4667. ULONG ulInputSentPos;
  4668. ULONG ulInputSentLen;
  4669. LONG lBookmarkId;
  4670. SPPHONEID PhonemeId;
  4671. SPVISEMES VisemeId;
  4672. DWORD dwReserved1;
  4673. DWORD dwReserved2;
  4674. } SPVOICESTATUS;
  4675. typedef /* [hidden] */
  4676. enum SPEAKFLAGS
  4677. { SPF_DEFAULT = 0,
  4678. SPF_ASYNC = 1L << 0,
  4679. SPF_PURGEBEFORESPEAK = 1L << 1,
  4680. SPF_IS_FILENAME = 1L << 2,
  4681. SPF_IS_XML = 1L << 3,
  4682. SPF_IS_NOT_XML = 1L << 4,
  4683. SPF_PERSIST_XML = 1L << 5,
  4684. SPF_NLP_SPEAK_PUNC = 1L << 6,
  4685. SPF_NLP_MASK = SPF_NLP_SPEAK_PUNC,
  4686. SPF_VOICE_MASK = SPF_ASYNC | SPF_PURGEBEFORESPEAK | SPF_IS_FILENAME | SPF_IS_XML | SPF_IS_NOT_XML | SPF_NLP_MASK | SPF_PERSIST_XML,
  4687. SPF_UNUSED_FLAGS = ~SPF_VOICE_MASK
  4688. } SPEAKFLAGS;
  4689. extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_c_ifspec;
  4690. extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_s_ifspec;
  4691. #ifndef __ISpVoice_INTERFACE_DEFINED__
  4692. #define __ISpVoice_INTERFACE_DEFINED__
  4693. /* interface ISpVoice */
  4694. /* [restricted][unique][helpstring][uuid][object] */
  4695. EXTERN_C const IID IID_ISpVoice;
  4696. #if defined(__cplusplus) && !defined(CINTERFACE)
  4697. MIDL_INTERFACE("6C44DF74-72B9-4992-A1EC-EF996E0422D4")
  4698. ISpVoice : public ISpEventSource
  4699. {
  4700. public:
  4701. virtual HRESULT STDMETHODCALLTYPE SetOutput(
  4702. /* [in] */ IUnknown *pUnkOutput,
  4703. /* [in] */ BOOL fAllowFormatChanges) = 0;
  4704. virtual HRESULT STDMETHODCALLTYPE GetOutputObjectToken(
  4705. /* [out] */ ISpObjectToken **ppObjectToken) = 0;
  4706. virtual HRESULT STDMETHODCALLTYPE GetOutputStream(
  4707. /* [out] */ ISpStreamFormat **ppStream) = 0;
  4708. virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  4709. virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  4710. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  4711. /* [in] */ ISpObjectToken *pToken) = 0;
  4712. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  4713. /* [out] */ ISpObjectToken **ppToken) = 0;
  4714. virtual HRESULT STDMETHODCALLTYPE Speak(
  4715. /* [string][in] */ const WCHAR *pwcs,
  4716. /* [in] */ DWORD dwFlags,
  4717. /* [out] */ ULONG *pulStreamNumber) = 0;
  4718. virtual HRESULT STDMETHODCALLTYPE SpeakStream(
  4719. /* [in] */ IStream *pStream,
  4720. /* [in] */ DWORD dwFlags,
  4721. /* [out] */ ULONG *pulStreamNumber) = 0;
  4722. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  4723. /* [out] */ SPVOICESTATUS *pStatus,
  4724. /* [string][out] */ WCHAR **ppszLastBookmark) = 0;
  4725. virtual HRESULT STDMETHODCALLTYPE Skip(
  4726. /* [string][in] */ WCHAR *pItemType,
  4727. /* [in] */ long lNumItems,
  4728. /* [out] */ ULONG *pulNumSkipped) = 0;
  4729. virtual HRESULT STDMETHODCALLTYPE SetPriority(
  4730. /* [in] */ SPVPRIORITY ePriority) = 0;
  4731. virtual HRESULT STDMETHODCALLTYPE GetPriority(
  4732. /* [out] */ SPVPRIORITY *pePriority) = 0;
  4733. virtual HRESULT STDMETHODCALLTYPE SetAlertBoundary(
  4734. /* [in] */ SPEVENTENUM eBoundary) = 0;
  4735. virtual HRESULT STDMETHODCALLTYPE GetAlertBoundary(
  4736. /* [out] */ SPEVENTENUM *peBoundary) = 0;
  4737. virtual HRESULT STDMETHODCALLTYPE SetRate(
  4738. /* [in] */ long RateAdjust) = 0;
  4739. virtual HRESULT STDMETHODCALLTYPE GetRate(
  4740. /* [out] */ long *pRateAdjust) = 0;
  4741. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  4742. /* [in] */ USHORT usVolume) = 0;
  4743. virtual HRESULT STDMETHODCALLTYPE GetVolume(
  4744. /* [out] */ USHORT *pusVolume) = 0;
  4745. virtual HRESULT STDMETHODCALLTYPE WaitUntilDone(
  4746. /* [in] */ ULONG msTimeout) = 0;
  4747. virtual HRESULT STDMETHODCALLTYPE SetSyncSpeakTimeout(
  4748. /* [in] */ ULONG msTimeout) = 0;
  4749. virtual HRESULT STDMETHODCALLTYPE GetSyncSpeakTimeout(
  4750. /* [out] */ ULONG *pmsTimeout) = 0;
  4751. virtual /* [local] */ HANDLE STDMETHODCALLTYPE SpeakCompleteEvent( void) = 0;
  4752. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  4753. /* [in] */ const WCHAR *pszTypeOfUI,
  4754. /* [in] */ void *pvExtraData,
  4755. /* [in] */ ULONG cbExtraData,
  4756. /* [out] */ BOOL *pfSupported) = 0;
  4757. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  4758. /* [in] */ HWND hwndParent,
  4759. /* [in] */ const WCHAR *pszTitle,
  4760. /* [in] */ const WCHAR *pszTypeOfUI,
  4761. /* [in] */ void *pvExtraData,
  4762. /* [in] */ ULONG cbExtraData) = 0;
  4763. };
  4764. #else /* C style interface */
  4765. typedef struct ISpVoiceVtbl
  4766. {
  4767. BEGIN_INTERFACE
  4768. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4769. ISpVoice * This,
  4770. /* [in] */ REFIID riid,
  4771. /* [iid_is][out] */ void **ppvObject);
  4772. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4773. ISpVoice * This);
  4774. ULONG ( STDMETHODCALLTYPE *Release )(
  4775. ISpVoice * This);
  4776. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  4777. ISpVoice * This,
  4778. /* [in] */ ISpNotifySink *pNotifySink);
  4779. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  4780. ISpVoice * This,
  4781. /* [in] */ HWND hWnd,
  4782. /* [in] */ UINT Msg,
  4783. /* [in] */ WPARAM wParam,
  4784. /* [in] */ LPARAM lParam);
  4785. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  4786. ISpVoice * This,
  4787. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  4788. /* [in] */ WPARAM wParam,
  4789. /* [in] */ LPARAM lParam);
  4790. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  4791. ISpVoice * This,
  4792. /* [in] */ ISpNotifyCallback *pSpCallback,
  4793. /* [in] */ WPARAM wParam,
  4794. /* [in] */ LPARAM lParam);
  4795. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  4796. ISpVoice * This);
  4797. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  4798. ISpVoice * This,
  4799. /* [in] */ DWORD dwMilliseconds);
  4800. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  4801. ISpVoice * This);
  4802. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  4803. ISpVoice * This,
  4804. /* [in] */ ULONGLONG ullEventInterest,
  4805. /* [in] */ ULONGLONG ullQueuedInterest);
  4806. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  4807. ISpVoice * This,
  4808. /* [in] */ ULONG ulCount,
  4809. /* [size_is][out] */ SPEVENT *pEventArray,
  4810. /* [out] */ ULONG *pulFetched);
  4811. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  4812. ISpVoice * This,
  4813. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  4814. HRESULT ( STDMETHODCALLTYPE *SetOutput )(
  4815. ISpVoice * This,
  4816. /* [in] */ IUnknown *pUnkOutput,
  4817. /* [in] */ BOOL fAllowFormatChanges);
  4818. HRESULT ( STDMETHODCALLTYPE *GetOutputObjectToken )(
  4819. ISpVoice * This,
  4820. /* [out] */ ISpObjectToken **ppObjectToken);
  4821. HRESULT ( STDMETHODCALLTYPE *GetOutputStream )(
  4822. ISpVoice * This,
  4823. /* [out] */ ISpStreamFormat **ppStream);
  4824. HRESULT ( STDMETHODCALLTYPE *Pause )(
  4825. ISpVoice * This);
  4826. HRESULT ( STDMETHODCALLTYPE *Resume )(
  4827. ISpVoice * This);
  4828. HRESULT ( STDMETHODCALLTYPE *SetVoice )(
  4829. ISpVoice * This,
  4830. /* [in] */ ISpObjectToken *pToken);
  4831. HRESULT ( STDMETHODCALLTYPE *GetVoice )(
  4832. ISpVoice * This,
  4833. /* [out] */ ISpObjectToken **ppToken);
  4834. HRESULT ( STDMETHODCALLTYPE *Speak )(
  4835. ISpVoice * This,
  4836. /* [string][in] */ const WCHAR *pwcs,
  4837. /* [in] */ DWORD dwFlags,
  4838. /* [out] */ ULONG *pulStreamNumber);
  4839. HRESULT ( STDMETHODCALLTYPE *SpeakStream )(
  4840. ISpVoice * This,
  4841. /* [in] */ IStream *pStream,
  4842. /* [in] */ DWORD dwFlags,
  4843. /* [out] */ ULONG *pulStreamNumber);
  4844. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  4845. ISpVoice * This,
  4846. /* [out] */ SPVOICESTATUS *pStatus,
  4847. /* [string][out] */ WCHAR **ppszLastBookmark);
  4848. HRESULT ( STDMETHODCALLTYPE *Skip )(
  4849. ISpVoice * This,
  4850. /* [string][in] */ WCHAR *pItemType,
  4851. /* [in] */ long lNumItems,
  4852. /* [out] */ ULONG *pulNumSkipped);
  4853. HRESULT ( STDMETHODCALLTYPE *SetPriority )(
  4854. ISpVoice * This,
  4855. /* [in] */ SPVPRIORITY ePriority);
  4856. HRESULT ( STDMETHODCALLTYPE *GetPriority )(
  4857. ISpVoice * This,
  4858. /* [out] */ SPVPRIORITY *pePriority);
  4859. HRESULT ( STDMETHODCALLTYPE *SetAlertBoundary )(
  4860. ISpVoice * This,
  4861. /* [in] */ SPEVENTENUM eBoundary);
  4862. HRESULT ( STDMETHODCALLTYPE *GetAlertBoundary )(
  4863. ISpVoice * This,
  4864. /* [out] */ SPEVENTENUM *peBoundary);
  4865. HRESULT ( STDMETHODCALLTYPE *SetRate )(
  4866. ISpVoice * This,
  4867. /* [in] */ long RateAdjust);
  4868. HRESULT ( STDMETHODCALLTYPE *GetRate )(
  4869. ISpVoice * This,
  4870. /* [out] */ long *pRateAdjust);
  4871. HRESULT ( STDMETHODCALLTYPE *SetVolume )(
  4872. ISpVoice * This,
  4873. /* [in] */ USHORT usVolume);
  4874. HRESULT ( STDMETHODCALLTYPE *GetVolume )(
  4875. ISpVoice * This,
  4876. /* [out] */ USHORT *pusVolume);
  4877. HRESULT ( STDMETHODCALLTYPE *WaitUntilDone )(
  4878. ISpVoice * This,
  4879. /* [in] */ ULONG msTimeout);
  4880. HRESULT ( STDMETHODCALLTYPE *SetSyncSpeakTimeout )(
  4881. ISpVoice * This,
  4882. /* [in] */ ULONG msTimeout);
  4883. HRESULT ( STDMETHODCALLTYPE *GetSyncSpeakTimeout )(
  4884. ISpVoice * This,
  4885. /* [out] */ ULONG *pmsTimeout);
  4886. /* [local] */ HANDLE ( STDMETHODCALLTYPE *SpeakCompleteEvent )(
  4887. ISpVoice * This);
  4888. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  4889. ISpVoice * This,
  4890. /* [in] */ const WCHAR *pszTypeOfUI,
  4891. /* [in] */ void *pvExtraData,
  4892. /* [in] */ ULONG cbExtraData,
  4893. /* [out] */ BOOL *pfSupported);
  4894. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  4895. ISpVoice * This,
  4896. /* [in] */ HWND hwndParent,
  4897. /* [in] */ const WCHAR *pszTitle,
  4898. /* [in] */ const WCHAR *pszTypeOfUI,
  4899. /* [in] */ void *pvExtraData,
  4900. /* [in] */ ULONG cbExtraData);
  4901. END_INTERFACE
  4902. } ISpVoiceVtbl;
  4903. interface ISpVoice
  4904. {
  4905. CONST_VTBL struct ISpVoiceVtbl *lpVtbl;
  4906. };
  4907. #ifdef COBJMACROS
  4908. #define ISpVoice_QueryInterface(This,riid,ppvObject) \
  4909. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4910. #define ISpVoice_AddRef(This) \
  4911. (This)->lpVtbl -> AddRef(This)
  4912. #define ISpVoice_Release(This) \
  4913. (This)->lpVtbl -> Release(This)
  4914. #define ISpVoice_SetNotifySink(This,pNotifySink) \
  4915. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  4916. #define ISpVoice_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  4917. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  4918. #define ISpVoice_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  4919. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  4920. #define ISpVoice_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  4921. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  4922. #define ISpVoice_SetNotifyWin32Event(This) \
  4923. (This)->lpVtbl -> SetNotifyWin32Event(This)
  4924. #define ISpVoice_WaitForNotifyEvent(This,dwMilliseconds) \
  4925. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  4926. #define ISpVoice_GetNotifyEventHandle(This) \
  4927. (This)->lpVtbl -> GetNotifyEventHandle(This)
  4928. #define ISpVoice_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  4929. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  4930. #define ISpVoice_GetEvents(This,ulCount,pEventArray,pulFetched) \
  4931. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  4932. #define ISpVoice_GetInfo(This,pInfo) \
  4933. (This)->lpVtbl -> GetInfo(This,pInfo)
  4934. #define ISpVoice_SetOutput(This,pUnkOutput,fAllowFormatChanges) \
  4935. (This)->lpVtbl -> SetOutput(This,pUnkOutput,fAllowFormatChanges)
  4936. #define ISpVoice_GetOutputObjectToken(This,ppObjectToken) \
  4937. (This)->lpVtbl -> GetOutputObjectToken(This,ppObjectToken)
  4938. #define ISpVoice_GetOutputStream(This,ppStream) \
  4939. (This)->lpVtbl -> GetOutputStream(This,ppStream)
  4940. #define ISpVoice_Pause(This) \
  4941. (This)->lpVtbl -> Pause(This)
  4942. #define ISpVoice_Resume(This) \
  4943. (This)->lpVtbl -> Resume(This)
  4944. #define ISpVoice_SetVoice(This,pToken) \
  4945. (This)->lpVtbl -> SetVoice(This,pToken)
  4946. #define ISpVoice_GetVoice(This,ppToken) \
  4947. (This)->lpVtbl -> GetVoice(This,ppToken)
  4948. #define ISpVoice_Speak(This,pwcs,dwFlags,pulStreamNumber) \
  4949. (This)->lpVtbl -> Speak(This,pwcs,dwFlags,pulStreamNumber)
  4950. #define ISpVoice_SpeakStream(This,pStream,dwFlags,pulStreamNumber) \
  4951. (This)->lpVtbl -> SpeakStream(This,pStream,dwFlags,pulStreamNumber)
  4952. #define ISpVoice_GetStatus(This,pStatus,ppszLastBookmark) \
  4953. (This)->lpVtbl -> GetStatus(This,pStatus,ppszLastBookmark)
  4954. #define ISpVoice_Skip(This,pItemType,lNumItems,pulNumSkipped) \
  4955. (This)->lpVtbl -> Skip(This,pItemType,lNumItems,pulNumSkipped)
  4956. #define ISpVoice_SetPriority(This,ePriority) \
  4957. (This)->lpVtbl -> SetPriority(This,ePriority)
  4958. #define ISpVoice_GetPriority(This,pePriority) \
  4959. (This)->lpVtbl -> GetPriority(This,pePriority)
  4960. #define ISpVoice_SetAlertBoundary(This,eBoundary) \
  4961. (This)->lpVtbl -> SetAlertBoundary(This,eBoundary)
  4962. #define ISpVoice_GetAlertBoundary(This,peBoundary) \
  4963. (This)->lpVtbl -> GetAlertBoundary(This,peBoundary)
  4964. #define ISpVoice_SetRate(This,RateAdjust) \
  4965. (This)->lpVtbl -> SetRate(This,RateAdjust)
  4966. #define ISpVoice_GetRate(This,pRateAdjust) \
  4967. (This)->lpVtbl -> GetRate(This,pRateAdjust)
  4968. #define ISpVoice_SetVolume(This,usVolume) \
  4969. (This)->lpVtbl -> SetVolume(This,usVolume)
  4970. #define ISpVoice_GetVolume(This,pusVolume) \
  4971. (This)->lpVtbl -> GetVolume(This,pusVolume)
  4972. #define ISpVoice_WaitUntilDone(This,msTimeout) \
  4973. (This)->lpVtbl -> WaitUntilDone(This,msTimeout)
  4974. #define ISpVoice_SetSyncSpeakTimeout(This,msTimeout) \
  4975. (This)->lpVtbl -> SetSyncSpeakTimeout(This,msTimeout)
  4976. #define ISpVoice_GetSyncSpeakTimeout(This,pmsTimeout) \
  4977. (This)->lpVtbl -> GetSyncSpeakTimeout(This,pmsTimeout)
  4978. #define ISpVoice_SpeakCompleteEvent(This) \
  4979. (This)->lpVtbl -> SpeakCompleteEvent(This)
  4980. #define ISpVoice_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) \
  4981. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  4982. #define ISpVoice_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) \
  4983. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  4984. #endif /* COBJMACROS */
  4985. #endif /* C style interface */
  4986. HRESULT STDMETHODCALLTYPE ISpVoice_SetOutput_Proxy(
  4987. ISpVoice * This,
  4988. /* [in] */ IUnknown *pUnkOutput,
  4989. /* [in] */ BOOL fAllowFormatChanges);
  4990. void __RPC_STUB ISpVoice_SetOutput_Stub(
  4991. IRpcStubBuffer *This,
  4992. IRpcChannelBuffer *_pRpcChannelBuffer,
  4993. PRPC_MESSAGE _pRpcMessage,
  4994. DWORD *_pdwStubPhase);
  4995. HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputObjectToken_Proxy(
  4996. ISpVoice * This,
  4997. /* [out] */ ISpObjectToken **ppObjectToken);
  4998. void __RPC_STUB ISpVoice_GetOutputObjectToken_Stub(
  4999. IRpcStubBuffer *This,
  5000. IRpcChannelBuffer *_pRpcChannelBuffer,
  5001. PRPC_MESSAGE _pRpcMessage,
  5002. DWORD *_pdwStubPhase);
  5003. HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputStream_Proxy(
  5004. ISpVoice * This,
  5005. /* [out] */ ISpStreamFormat **ppStream);
  5006. void __RPC_STUB ISpVoice_GetOutputStream_Stub(
  5007. IRpcStubBuffer *This,
  5008. IRpcChannelBuffer *_pRpcChannelBuffer,
  5009. PRPC_MESSAGE _pRpcMessage,
  5010. DWORD *_pdwStubPhase);
  5011. HRESULT STDMETHODCALLTYPE ISpVoice_Pause_Proxy(
  5012. ISpVoice * This);
  5013. void __RPC_STUB ISpVoice_Pause_Stub(
  5014. IRpcStubBuffer *This,
  5015. IRpcChannelBuffer *_pRpcChannelBuffer,
  5016. PRPC_MESSAGE _pRpcMessage,
  5017. DWORD *_pdwStubPhase);
  5018. HRESULT STDMETHODCALLTYPE ISpVoice_Resume_Proxy(
  5019. ISpVoice * This);
  5020. void __RPC_STUB ISpVoice_Resume_Stub(
  5021. IRpcStubBuffer *This,
  5022. IRpcChannelBuffer *_pRpcChannelBuffer,
  5023. PRPC_MESSAGE _pRpcMessage,
  5024. DWORD *_pdwStubPhase);
  5025. HRESULT STDMETHODCALLTYPE ISpVoice_SetVoice_Proxy(
  5026. ISpVoice * This,
  5027. /* [in] */ ISpObjectToken *pToken);
  5028. void __RPC_STUB ISpVoice_SetVoice_Stub(
  5029. IRpcStubBuffer *This,
  5030. IRpcChannelBuffer *_pRpcChannelBuffer,
  5031. PRPC_MESSAGE _pRpcMessage,
  5032. DWORD *_pdwStubPhase);
  5033. HRESULT STDMETHODCALLTYPE ISpVoice_GetVoice_Proxy(
  5034. ISpVoice * This,
  5035. /* [out] */ ISpObjectToken **ppToken);
  5036. void __RPC_STUB ISpVoice_GetVoice_Stub(
  5037. IRpcStubBuffer *This,
  5038. IRpcChannelBuffer *_pRpcChannelBuffer,
  5039. PRPC_MESSAGE _pRpcMessage,
  5040. DWORD *_pdwStubPhase);
  5041. HRESULT STDMETHODCALLTYPE ISpVoice_Speak_Proxy(
  5042. ISpVoice * This,
  5043. /* [string][in] */ const WCHAR *pwcs,
  5044. /* [in] */ DWORD dwFlags,
  5045. /* [out] */ ULONG *pulStreamNumber);
  5046. void __RPC_STUB ISpVoice_Speak_Stub(
  5047. IRpcStubBuffer *This,
  5048. IRpcChannelBuffer *_pRpcChannelBuffer,
  5049. PRPC_MESSAGE _pRpcMessage,
  5050. DWORD *_pdwStubPhase);
  5051. HRESULT STDMETHODCALLTYPE ISpVoice_SpeakStream_Proxy(
  5052. ISpVoice * This,
  5053. /* [in] */ IStream *pStream,
  5054. /* [in] */ DWORD dwFlags,
  5055. /* [out] */ ULONG *pulStreamNumber);
  5056. void __RPC_STUB ISpVoice_SpeakStream_Stub(
  5057. IRpcStubBuffer *This,
  5058. IRpcChannelBuffer *_pRpcChannelBuffer,
  5059. PRPC_MESSAGE _pRpcMessage,
  5060. DWORD *_pdwStubPhase);
  5061. HRESULT STDMETHODCALLTYPE ISpVoice_GetStatus_Proxy(
  5062. ISpVoice * This,
  5063. /* [out] */ SPVOICESTATUS *pStatus,
  5064. /* [string][out] */ WCHAR **ppszLastBookmark);
  5065. void __RPC_STUB ISpVoice_GetStatus_Stub(
  5066. IRpcStubBuffer *This,
  5067. IRpcChannelBuffer *_pRpcChannelBuffer,
  5068. PRPC_MESSAGE _pRpcMessage,
  5069. DWORD *_pdwStubPhase);
  5070. HRESULT STDMETHODCALLTYPE ISpVoice_Skip_Proxy(
  5071. ISpVoice * This,
  5072. /* [string][in] */ WCHAR *pItemType,
  5073. /* [in] */ long lNumItems,
  5074. /* [out] */ ULONG *pulNumSkipped);
  5075. void __RPC_STUB ISpVoice_Skip_Stub(
  5076. IRpcStubBuffer *This,
  5077. IRpcChannelBuffer *_pRpcChannelBuffer,
  5078. PRPC_MESSAGE _pRpcMessage,
  5079. DWORD *_pdwStubPhase);
  5080. HRESULT STDMETHODCALLTYPE ISpVoice_SetPriority_Proxy(
  5081. ISpVoice * This,
  5082. /* [in] */ SPVPRIORITY ePriority);
  5083. void __RPC_STUB ISpVoice_SetPriority_Stub(
  5084. IRpcStubBuffer *This,
  5085. IRpcChannelBuffer *_pRpcChannelBuffer,
  5086. PRPC_MESSAGE _pRpcMessage,
  5087. DWORD *_pdwStubPhase);
  5088. HRESULT STDMETHODCALLTYPE ISpVoice_GetPriority_Proxy(
  5089. ISpVoice * This,
  5090. /* [out] */ SPVPRIORITY *pePriority);
  5091. void __RPC_STUB ISpVoice_GetPriority_Stub(
  5092. IRpcStubBuffer *This,
  5093. IRpcChannelBuffer *_pRpcChannelBuffer,
  5094. PRPC_MESSAGE _pRpcMessage,
  5095. DWORD *_pdwStubPhase);
  5096. HRESULT STDMETHODCALLTYPE ISpVoice_SetAlertBoundary_Proxy(
  5097. ISpVoice * This,
  5098. /* [in] */ SPEVENTENUM eBoundary);
  5099. void __RPC_STUB ISpVoice_SetAlertBoundary_Stub(
  5100. IRpcStubBuffer *This,
  5101. IRpcChannelBuffer *_pRpcChannelBuffer,
  5102. PRPC_MESSAGE _pRpcMessage,
  5103. DWORD *_pdwStubPhase);
  5104. HRESULT STDMETHODCALLTYPE ISpVoice_GetAlertBoundary_Proxy(
  5105. ISpVoice * This,
  5106. /* [out] */ SPEVENTENUM *peBoundary);
  5107. void __RPC_STUB ISpVoice_GetAlertBoundary_Stub(
  5108. IRpcStubBuffer *This,
  5109. IRpcChannelBuffer *_pRpcChannelBuffer,
  5110. PRPC_MESSAGE _pRpcMessage,
  5111. DWORD *_pdwStubPhase);
  5112. HRESULT STDMETHODCALLTYPE ISpVoice_SetRate_Proxy(
  5113. ISpVoice * This,
  5114. /* [in] */ long RateAdjust);
  5115. void __RPC_STUB ISpVoice_SetRate_Stub(
  5116. IRpcStubBuffer *This,
  5117. IRpcChannelBuffer *_pRpcChannelBuffer,
  5118. PRPC_MESSAGE _pRpcMessage,
  5119. DWORD *_pdwStubPhase);
  5120. HRESULT STDMETHODCALLTYPE ISpVoice_GetRate_Proxy(
  5121. ISpVoice * This,
  5122. /* [out] */ long *pRateAdjust);
  5123. void __RPC_STUB ISpVoice_GetRate_Stub(
  5124. IRpcStubBuffer *This,
  5125. IRpcChannelBuffer *_pRpcChannelBuffer,
  5126. PRPC_MESSAGE _pRpcMessage,
  5127. DWORD *_pdwStubPhase);
  5128. HRESULT STDMETHODCALLTYPE ISpVoice_SetVolume_Proxy(
  5129. ISpVoice * This,
  5130. /* [in] */ USHORT usVolume);
  5131. void __RPC_STUB ISpVoice_SetVolume_Stub(
  5132. IRpcStubBuffer *This,
  5133. IRpcChannelBuffer *_pRpcChannelBuffer,
  5134. PRPC_MESSAGE _pRpcMessage,
  5135. DWORD *_pdwStubPhase);
  5136. HRESULT STDMETHODCALLTYPE ISpVoice_GetVolume_Proxy(
  5137. ISpVoice * This,
  5138. /* [out] */ USHORT *pusVolume);
  5139. void __RPC_STUB ISpVoice_GetVolume_Stub(
  5140. IRpcStubBuffer *This,
  5141. IRpcChannelBuffer *_pRpcChannelBuffer,
  5142. PRPC_MESSAGE _pRpcMessage,
  5143. DWORD *_pdwStubPhase);
  5144. HRESULT STDMETHODCALLTYPE ISpVoice_WaitUntilDone_Proxy(
  5145. ISpVoice * This,
  5146. /* [in] */ ULONG msTimeout);
  5147. void __RPC_STUB ISpVoice_WaitUntilDone_Stub(
  5148. IRpcStubBuffer *This,
  5149. IRpcChannelBuffer *_pRpcChannelBuffer,
  5150. PRPC_MESSAGE _pRpcMessage,
  5151. DWORD *_pdwStubPhase);
  5152. HRESULT STDMETHODCALLTYPE ISpVoice_SetSyncSpeakTimeout_Proxy(
  5153. ISpVoice * This,
  5154. /* [in] */ ULONG msTimeout);
  5155. void __RPC_STUB ISpVoice_SetSyncSpeakTimeout_Stub(
  5156. IRpcStubBuffer *This,
  5157. IRpcChannelBuffer *_pRpcChannelBuffer,
  5158. PRPC_MESSAGE _pRpcMessage,
  5159. DWORD *_pdwStubPhase);
  5160. HRESULT STDMETHODCALLTYPE ISpVoice_GetSyncSpeakTimeout_Proxy(
  5161. ISpVoice * This,
  5162. /* [out] */ ULONG *pmsTimeout);
  5163. void __RPC_STUB ISpVoice_GetSyncSpeakTimeout_Stub(
  5164. IRpcStubBuffer *This,
  5165. IRpcChannelBuffer *_pRpcChannelBuffer,
  5166. PRPC_MESSAGE _pRpcMessage,
  5167. DWORD *_pdwStubPhase);
  5168. /* [local] */ HANDLE STDMETHODCALLTYPE ISpVoice_SpeakCompleteEvent_Proxy(
  5169. ISpVoice * This);
  5170. void __RPC_STUB ISpVoice_SpeakCompleteEvent_Stub(
  5171. IRpcStubBuffer *This,
  5172. IRpcChannelBuffer *_pRpcChannelBuffer,
  5173. PRPC_MESSAGE _pRpcMessage,
  5174. DWORD *_pdwStubPhase);
  5175. /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_IsUISupported_Proxy(
  5176. ISpVoice * This,
  5177. /* [in] */ const WCHAR *pszTypeOfUI,
  5178. /* [in] */ void *pvExtraData,
  5179. /* [in] */ ULONG cbExtraData,
  5180. /* [out] */ BOOL *pfSupported);
  5181. void __RPC_STUB ISpVoice_IsUISupported_Stub(
  5182. IRpcStubBuffer *This,
  5183. IRpcChannelBuffer *_pRpcChannelBuffer,
  5184. PRPC_MESSAGE _pRpcMessage,
  5185. DWORD *_pdwStubPhase);
  5186. /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_DisplayUI_Proxy(
  5187. ISpVoice * This,
  5188. /* [in] */ HWND hwndParent,
  5189. /* [in] */ const WCHAR *pszTitle,
  5190. /* [in] */ const WCHAR *pszTypeOfUI,
  5191. /* [in] */ void *pvExtraData,
  5192. /* [in] */ ULONG cbExtraData);
  5193. void __RPC_STUB ISpVoice_DisplayUI_Stub(
  5194. IRpcStubBuffer *This,
  5195. IRpcChannelBuffer *_pRpcChannelBuffer,
  5196. PRPC_MESSAGE _pRpcMessage,
  5197. DWORD *_pdwStubPhase);
  5198. #endif /* __ISpVoice_INTERFACE_DEFINED__ */
  5199. #ifndef __ISpPhrase_INTERFACE_DEFINED__
  5200. #define __ISpPhrase_INTERFACE_DEFINED__
  5201. /* interface ISpPhrase */
  5202. /* [restricted][unique][helpstring][local][uuid][object] */
  5203. EXTERN_C const IID IID_ISpPhrase;
  5204. #if defined(__cplusplus) && !defined(CINTERFACE)
  5205. MIDL_INTERFACE("1A5C0354-B621-4b5a-8791-D306ED379E53")
  5206. ISpPhrase : public IUnknown
  5207. {
  5208. public:
  5209. virtual HRESULT STDMETHODCALLTYPE GetPhrase(
  5210. /* [out] */ SPPHRASE **ppCoMemPhrase) = 0;
  5211. virtual HRESULT STDMETHODCALLTYPE GetSerializedPhrase(
  5212. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase) = 0;
  5213. virtual HRESULT STDMETHODCALLTYPE GetText(
  5214. /* [in] */ ULONG ulStart,
  5215. /* [in] */ ULONG ulCount,
  5216. /* [in] */ BOOL fUseTextReplacements,
  5217. /* [out] */ WCHAR **ppszCoMemText,
  5218. /* [out] */ BYTE *pbDisplayAttributes) = 0;
  5219. virtual HRESULT STDMETHODCALLTYPE Discard(
  5220. /* [in] */ DWORD dwValueTypes) = 0;
  5221. };
  5222. #else /* C style interface */
  5223. typedef struct ISpPhraseVtbl
  5224. {
  5225. BEGIN_INTERFACE
  5226. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5227. ISpPhrase * This,
  5228. /* [in] */ REFIID riid,
  5229. /* [iid_is][out] */ void **ppvObject);
  5230. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5231. ISpPhrase * This);
  5232. ULONG ( STDMETHODCALLTYPE *Release )(
  5233. ISpPhrase * This);
  5234. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5235. ISpPhrase * This,
  5236. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5237. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5238. ISpPhrase * This,
  5239. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5240. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5241. ISpPhrase * This,
  5242. /* [in] */ ULONG ulStart,
  5243. /* [in] */ ULONG ulCount,
  5244. /* [in] */ BOOL fUseTextReplacements,
  5245. /* [out] */ WCHAR **ppszCoMemText,
  5246. /* [out] */ BYTE *pbDisplayAttributes);
  5247. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5248. ISpPhrase * This,
  5249. /* [in] */ DWORD dwValueTypes);
  5250. END_INTERFACE
  5251. } ISpPhraseVtbl;
  5252. interface ISpPhrase
  5253. {
  5254. CONST_VTBL struct ISpPhraseVtbl *lpVtbl;
  5255. };
  5256. #ifdef COBJMACROS
  5257. #define ISpPhrase_QueryInterface(This,riid,ppvObject) \
  5258. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5259. #define ISpPhrase_AddRef(This) \
  5260. (This)->lpVtbl -> AddRef(This)
  5261. #define ISpPhrase_Release(This) \
  5262. (This)->lpVtbl -> Release(This)
  5263. #define ISpPhrase_GetPhrase(This,ppCoMemPhrase) \
  5264. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5265. #define ISpPhrase_GetSerializedPhrase(This,ppCoMemPhrase) \
  5266. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5267. #define ISpPhrase_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5268. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5269. #define ISpPhrase_Discard(This,dwValueTypes) \
  5270. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5271. #endif /* COBJMACROS */
  5272. #endif /* C style interface */
  5273. HRESULT STDMETHODCALLTYPE ISpPhrase_GetPhrase_Proxy(
  5274. ISpPhrase * This,
  5275. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5276. void __RPC_STUB ISpPhrase_GetPhrase_Stub(
  5277. IRpcStubBuffer *This,
  5278. IRpcChannelBuffer *_pRpcChannelBuffer,
  5279. PRPC_MESSAGE _pRpcMessage,
  5280. DWORD *_pdwStubPhase);
  5281. HRESULT STDMETHODCALLTYPE ISpPhrase_GetSerializedPhrase_Proxy(
  5282. ISpPhrase * This,
  5283. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5284. void __RPC_STUB ISpPhrase_GetSerializedPhrase_Stub(
  5285. IRpcStubBuffer *This,
  5286. IRpcChannelBuffer *_pRpcChannelBuffer,
  5287. PRPC_MESSAGE _pRpcMessage,
  5288. DWORD *_pdwStubPhase);
  5289. HRESULT STDMETHODCALLTYPE ISpPhrase_GetText_Proxy(
  5290. ISpPhrase * This,
  5291. /* [in] */ ULONG ulStart,
  5292. /* [in] */ ULONG ulCount,
  5293. /* [in] */ BOOL fUseTextReplacements,
  5294. /* [out] */ WCHAR **ppszCoMemText,
  5295. /* [out] */ BYTE *pbDisplayAttributes);
  5296. void __RPC_STUB ISpPhrase_GetText_Stub(
  5297. IRpcStubBuffer *This,
  5298. IRpcChannelBuffer *_pRpcChannelBuffer,
  5299. PRPC_MESSAGE _pRpcMessage,
  5300. DWORD *_pdwStubPhase);
  5301. HRESULT STDMETHODCALLTYPE ISpPhrase_Discard_Proxy(
  5302. ISpPhrase * This,
  5303. /* [in] */ DWORD dwValueTypes);
  5304. void __RPC_STUB ISpPhrase_Discard_Stub(
  5305. IRpcStubBuffer *This,
  5306. IRpcChannelBuffer *_pRpcChannelBuffer,
  5307. PRPC_MESSAGE _pRpcMessage,
  5308. DWORD *_pdwStubPhase);
  5309. #endif /* __ISpPhrase_INTERFACE_DEFINED__ */
  5310. #ifndef __ISpPhraseAlt_INTERFACE_DEFINED__
  5311. #define __ISpPhraseAlt_INTERFACE_DEFINED__
  5312. /* interface ISpPhraseAlt */
  5313. /* [restricted][unique][helpstring][local][uuid][object] */
  5314. EXTERN_C const IID IID_ISpPhraseAlt;
  5315. #if defined(__cplusplus) && !defined(CINTERFACE)
  5316. MIDL_INTERFACE("8FCEBC98-4E49-4067-9C6C-D86A0E092E3D")
  5317. ISpPhraseAlt : public ISpPhrase
  5318. {
  5319. public:
  5320. virtual HRESULT STDMETHODCALLTYPE GetAltInfo(
  5321. ISpPhrase **ppParent,
  5322. ULONG *pulStartElementInParent,
  5323. ULONG *pcElementsInParent,
  5324. ULONG *pcElementsInAlt) = 0;
  5325. virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  5326. };
  5327. #else /* C style interface */
  5328. typedef struct ISpPhraseAltVtbl
  5329. {
  5330. BEGIN_INTERFACE
  5331. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5332. ISpPhraseAlt * This,
  5333. /* [in] */ REFIID riid,
  5334. /* [iid_is][out] */ void **ppvObject);
  5335. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5336. ISpPhraseAlt * This);
  5337. ULONG ( STDMETHODCALLTYPE *Release )(
  5338. ISpPhraseAlt * This);
  5339. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5340. ISpPhraseAlt * This,
  5341. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5342. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5343. ISpPhraseAlt * This,
  5344. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5345. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5346. ISpPhraseAlt * This,
  5347. /* [in] */ ULONG ulStart,
  5348. /* [in] */ ULONG ulCount,
  5349. /* [in] */ BOOL fUseTextReplacements,
  5350. /* [out] */ WCHAR **ppszCoMemText,
  5351. /* [out] */ BYTE *pbDisplayAttributes);
  5352. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5353. ISpPhraseAlt * This,
  5354. /* [in] */ DWORD dwValueTypes);
  5355. HRESULT ( STDMETHODCALLTYPE *GetAltInfo )(
  5356. ISpPhraseAlt * This,
  5357. ISpPhrase **ppParent,
  5358. ULONG *pulStartElementInParent,
  5359. ULONG *pcElementsInParent,
  5360. ULONG *pcElementsInAlt);
  5361. HRESULT ( STDMETHODCALLTYPE *Commit )(
  5362. ISpPhraseAlt * This);
  5363. END_INTERFACE
  5364. } ISpPhraseAltVtbl;
  5365. interface ISpPhraseAlt
  5366. {
  5367. CONST_VTBL struct ISpPhraseAltVtbl *lpVtbl;
  5368. };
  5369. #ifdef COBJMACROS
  5370. #define ISpPhraseAlt_QueryInterface(This,riid,ppvObject) \
  5371. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5372. #define ISpPhraseAlt_AddRef(This) \
  5373. (This)->lpVtbl -> AddRef(This)
  5374. #define ISpPhraseAlt_Release(This) \
  5375. (This)->lpVtbl -> Release(This)
  5376. #define ISpPhraseAlt_GetPhrase(This,ppCoMemPhrase) \
  5377. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5378. #define ISpPhraseAlt_GetSerializedPhrase(This,ppCoMemPhrase) \
  5379. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5380. #define ISpPhraseAlt_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5381. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5382. #define ISpPhraseAlt_Discard(This,dwValueTypes) \
  5383. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5384. #define ISpPhraseAlt_GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt) \
  5385. (This)->lpVtbl -> GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt)
  5386. #define ISpPhraseAlt_Commit(This) \
  5387. (This)->lpVtbl -> Commit(This)
  5388. #endif /* COBJMACROS */
  5389. #endif /* C style interface */
  5390. HRESULT STDMETHODCALLTYPE ISpPhraseAlt_GetAltInfo_Proxy(
  5391. ISpPhraseAlt * This,
  5392. ISpPhrase **ppParent,
  5393. ULONG *pulStartElementInParent,
  5394. ULONG *pcElementsInParent,
  5395. ULONG *pcElementsInAlt);
  5396. void __RPC_STUB ISpPhraseAlt_GetAltInfo_Stub(
  5397. IRpcStubBuffer *This,
  5398. IRpcChannelBuffer *_pRpcChannelBuffer,
  5399. PRPC_MESSAGE _pRpcMessage,
  5400. DWORD *_pdwStubPhase);
  5401. HRESULT STDMETHODCALLTYPE ISpPhraseAlt_Commit_Proxy(
  5402. ISpPhraseAlt * This);
  5403. void __RPC_STUB ISpPhraseAlt_Commit_Stub(
  5404. IRpcStubBuffer *This,
  5405. IRpcChannelBuffer *_pRpcChannelBuffer,
  5406. PRPC_MESSAGE _pRpcMessage,
  5407. DWORD *_pdwStubPhase);
  5408. #endif /* __ISpPhraseAlt_INTERFACE_DEFINED__ */
  5409. /* interface __MIDL_itf_sapi_0282 */
  5410. /* [local] */
  5411. typedef /* [hidden][restricted] */ struct SPRECORESULTTIMES
  5412. {
  5413. FILETIME ftStreamTime;
  5414. ULONGLONG ullLength;
  5415. DWORD dwTickCount;
  5416. ULONGLONG ullStart;
  5417. } SPRECORESULTTIMES;
  5418. typedef /* [hidden] */ struct SPSERIALIZEDRESULT
  5419. {
  5420. ULONG ulSerializedSize;
  5421. } SPSERIALIZEDRESULT;
  5422. extern RPC_IF_HANDLE __MIDL_itf_sapi_0282_v0_0_c_ifspec;
  5423. extern RPC_IF_HANDLE __MIDL_itf_sapi_0282_v0_0_s_ifspec;
  5424. #ifndef __ISpRecoResult_INTERFACE_DEFINED__
  5425. #define __ISpRecoResult_INTERFACE_DEFINED__
  5426. /* interface ISpRecoResult */
  5427. /* [restricted][local][unique][helpstring][uuid][object] */
  5428. EXTERN_C const IID IID_ISpRecoResult;
  5429. #if defined(__cplusplus) && !defined(CINTERFACE)
  5430. MIDL_INTERFACE("20B053BE-E235-43cd-9A2A-8D17A48B7842")
  5431. ISpRecoResult : public ISpPhrase
  5432. {
  5433. public:
  5434. virtual HRESULT STDMETHODCALLTYPE GetResultTimes(
  5435. /* [out] */ SPRECORESULTTIMES *pTimes) = 0;
  5436. virtual HRESULT STDMETHODCALLTYPE GetAlternates(
  5437. /* [in] */ ULONG ulStartElement,
  5438. /* [in] */ ULONG cElements,
  5439. /* [in] */ ULONG ulRequestCount,
  5440. /* [out] */ ISpPhraseAlt **ppPhrases,
  5441. /* [out] */ ULONG *pcPhrasesReturned) = 0;
  5442. virtual HRESULT STDMETHODCALLTYPE GetAudio(
  5443. /* [in] */ ULONG ulStartElement,
  5444. /* [in] */ ULONG cElements,
  5445. /* [out] */ ISpStreamFormat **ppStream) = 0;
  5446. virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
  5447. /* [in] */ ULONG ulStartElement,
  5448. /* [in] */ ULONG cElements,
  5449. /* [in] */ DWORD dwFlags,
  5450. /* [out] */ ULONG *pulStreamNumber) = 0;
  5451. virtual HRESULT STDMETHODCALLTYPE Serialize(
  5452. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult) = 0;
  5453. virtual HRESULT STDMETHODCALLTYPE ScaleAudio(
  5454. /* [in] */ const GUID *pAudioFormatId,
  5455. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  5456. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  5457. /* [out] */ ISpRecoContext **ppRecoContext) = 0;
  5458. };
  5459. #else /* C style interface */
  5460. typedef struct ISpRecoResultVtbl
  5461. {
  5462. BEGIN_INTERFACE
  5463. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5464. ISpRecoResult * This,
  5465. /* [in] */ REFIID riid,
  5466. /* [iid_is][out] */ void **ppvObject);
  5467. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5468. ISpRecoResult * This);
  5469. ULONG ( STDMETHODCALLTYPE *Release )(
  5470. ISpRecoResult * This);
  5471. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5472. ISpRecoResult * This,
  5473. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5474. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5475. ISpRecoResult * This,
  5476. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5477. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5478. ISpRecoResult * This,
  5479. /* [in] */ ULONG ulStart,
  5480. /* [in] */ ULONG ulCount,
  5481. /* [in] */ BOOL fUseTextReplacements,
  5482. /* [out] */ WCHAR **ppszCoMemText,
  5483. /* [out] */ BYTE *pbDisplayAttributes);
  5484. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5485. ISpRecoResult * This,
  5486. /* [in] */ DWORD dwValueTypes);
  5487. HRESULT ( STDMETHODCALLTYPE *GetResultTimes )(
  5488. ISpRecoResult * This,
  5489. /* [out] */ SPRECORESULTTIMES *pTimes);
  5490. HRESULT ( STDMETHODCALLTYPE *GetAlternates )(
  5491. ISpRecoResult * This,
  5492. /* [in] */ ULONG ulStartElement,
  5493. /* [in] */ ULONG cElements,
  5494. /* [in] */ ULONG ulRequestCount,
  5495. /* [out] */ ISpPhraseAlt **ppPhrases,
  5496. /* [out] */ ULONG *pcPhrasesReturned);
  5497. HRESULT ( STDMETHODCALLTYPE *GetAudio )(
  5498. ISpRecoResult * This,
  5499. /* [in] */ ULONG ulStartElement,
  5500. /* [in] */ ULONG cElements,
  5501. /* [out] */ ISpStreamFormat **ppStream);
  5502. HRESULT ( STDMETHODCALLTYPE *SpeakAudio )(
  5503. ISpRecoResult * This,
  5504. /* [in] */ ULONG ulStartElement,
  5505. /* [in] */ ULONG cElements,
  5506. /* [in] */ DWORD dwFlags,
  5507. /* [out] */ ULONG *pulStreamNumber);
  5508. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  5509. ISpRecoResult * This,
  5510. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  5511. HRESULT ( STDMETHODCALLTYPE *ScaleAudio )(
  5512. ISpRecoResult * This,
  5513. /* [in] */ const GUID *pAudioFormatId,
  5514. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  5515. HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
  5516. ISpRecoResult * This,
  5517. /* [out] */ ISpRecoContext **ppRecoContext);
  5518. END_INTERFACE
  5519. } ISpRecoResultVtbl;
  5520. interface ISpRecoResult
  5521. {
  5522. CONST_VTBL struct ISpRecoResultVtbl *lpVtbl;
  5523. };
  5524. #ifdef COBJMACROS
  5525. #define ISpRecoResult_QueryInterface(This,riid,ppvObject) \
  5526. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5527. #define ISpRecoResult_AddRef(This) \
  5528. (This)->lpVtbl -> AddRef(This)
  5529. #define ISpRecoResult_Release(This) \
  5530. (This)->lpVtbl -> Release(This)
  5531. #define ISpRecoResult_GetPhrase(This,ppCoMemPhrase) \
  5532. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5533. #define ISpRecoResult_GetSerializedPhrase(This,ppCoMemPhrase) \
  5534. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5535. #define ISpRecoResult_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5536. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5537. #define ISpRecoResult_Discard(This,dwValueTypes) \
  5538. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5539. #define ISpRecoResult_GetResultTimes(This,pTimes) \
  5540. (This)->lpVtbl -> GetResultTimes(This,pTimes)
  5541. #define ISpRecoResult_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned) \
  5542. (This)->lpVtbl -> GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
  5543. #define ISpRecoResult_GetAudio(This,ulStartElement,cElements,ppStream) \
  5544. (This)->lpVtbl -> GetAudio(This,ulStartElement,cElements,ppStream)
  5545. #define ISpRecoResult_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber) \
  5546. (This)->lpVtbl -> SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
  5547. #define ISpRecoResult_Serialize(This,ppCoMemSerializedResult) \
  5548. (This)->lpVtbl -> Serialize(This,ppCoMemSerializedResult)
  5549. #define ISpRecoResult_ScaleAudio(This,pAudioFormatId,pWaveFormatEx) \
  5550. (This)->lpVtbl -> ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
  5551. #define ISpRecoResult_GetRecoContext(This,ppRecoContext) \
  5552. (This)->lpVtbl -> GetRecoContext(This,ppRecoContext)
  5553. #endif /* COBJMACROS */
  5554. #endif /* C style interface */
  5555. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetResultTimes_Proxy(
  5556. ISpRecoResult * This,
  5557. /* [out] */ SPRECORESULTTIMES *pTimes);
  5558. void __RPC_STUB ISpRecoResult_GetResultTimes_Stub(
  5559. IRpcStubBuffer *This,
  5560. IRpcChannelBuffer *_pRpcChannelBuffer,
  5561. PRPC_MESSAGE _pRpcMessage,
  5562. DWORD *_pdwStubPhase);
  5563. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAlternates_Proxy(
  5564. ISpRecoResult * This,
  5565. /* [in] */ ULONG ulStartElement,
  5566. /* [in] */ ULONG cElements,
  5567. /* [in] */ ULONG ulRequestCount,
  5568. /* [out] */ ISpPhraseAlt **ppPhrases,
  5569. /* [out] */ ULONG *pcPhrasesReturned);
  5570. void __RPC_STUB ISpRecoResult_GetAlternates_Stub(
  5571. IRpcStubBuffer *This,
  5572. IRpcChannelBuffer *_pRpcChannelBuffer,
  5573. PRPC_MESSAGE _pRpcMessage,
  5574. DWORD *_pdwStubPhase);
  5575. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAudio_Proxy(
  5576. ISpRecoResult * This,
  5577. /* [in] */ ULONG ulStartElement,
  5578. /* [in] */ ULONG cElements,
  5579. /* [out] */ ISpStreamFormat **ppStream);
  5580. void __RPC_STUB ISpRecoResult_GetAudio_Stub(
  5581. IRpcStubBuffer *This,
  5582. IRpcChannelBuffer *_pRpcChannelBuffer,
  5583. PRPC_MESSAGE _pRpcMessage,
  5584. DWORD *_pdwStubPhase);
  5585. HRESULT STDMETHODCALLTYPE ISpRecoResult_SpeakAudio_Proxy(
  5586. ISpRecoResult * This,
  5587. /* [in] */ ULONG ulStartElement,
  5588. /* [in] */ ULONG cElements,
  5589. /* [in] */ DWORD dwFlags,
  5590. /* [out] */ ULONG *pulStreamNumber);
  5591. void __RPC_STUB ISpRecoResult_SpeakAudio_Stub(
  5592. IRpcStubBuffer *This,
  5593. IRpcChannelBuffer *_pRpcChannelBuffer,
  5594. PRPC_MESSAGE _pRpcMessage,
  5595. DWORD *_pdwStubPhase);
  5596. HRESULT STDMETHODCALLTYPE ISpRecoResult_Serialize_Proxy(
  5597. ISpRecoResult * This,
  5598. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  5599. void __RPC_STUB ISpRecoResult_Serialize_Stub(
  5600. IRpcStubBuffer *This,
  5601. IRpcChannelBuffer *_pRpcChannelBuffer,
  5602. PRPC_MESSAGE _pRpcMessage,
  5603. DWORD *_pdwStubPhase);
  5604. HRESULT STDMETHODCALLTYPE ISpRecoResult_ScaleAudio_Proxy(
  5605. ISpRecoResult * This,
  5606. /* [in] */ const GUID *pAudioFormatId,
  5607. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  5608. void __RPC_STUB ISpRecoResult_ScaleAudio_Stub(
  5609. IRpcStubBuffer *This,
  5610. IRpcChannelBuffer *_pRpcChannelBuffer,
  5611. PRPC_MESSAGE _pRpcMessage,
  5612. DWORD *_pdwStubPhase);
  5613. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetRecoContext_Proxy(
  5614. ISpRecoResult * This,
  5615. /* [out] */ ISpRecoContext **ppRecoContext);
  5616. void __RPC_STUB ISpRecoResult_GetRecoContext_Stub(
  5617. IRpcStubBuffer *This,
  5618. IRpcChannelBuffer *_pRpcChannelBuffer,
  5619. PRPC_MESSAGE _pRpcMessage,
  5620. DWORD *_pdwStubPhase);
  5621. #endif /* __ISpRecoResult_INTERFACE_DEFINED__ */
  5622. /* interface __MIDL_itf_sapi_0283 */
  5623. /* [local] */
  5624. typedef /* [hidden] */ struct tagSPTEXTSELECTIONINFO
  5625. {
  5626. ULONG ulStartActiveOffset;
  5627. ULONG cchActiveChars;
  5628. ULONG ulStartSelection;
  5629. ULONG cchSelection;
  5630. } SPTEXTSELECTIONINFO;
  5631. typedef /* [hidden] */
  5632. enum SPWORDPRONOUNCEABLE
  5633. { SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE = 0,
  5634. SPWP_UNKNOWN_WORD_PRONOUNCEABLE = 1,
  5635. SPWP_KNOWN_WORD_PRONOUNCEABLE = 2
  5636. } SPWORDPRONOUNCEABLE;
  5637. typedef /* [hidden] */
  5638. enum SPGRAMMARSTATE
  5639. { SPGS_DISABLED = 0,
  5640. SPGS_ENABLED = 1,
  5641. SPGS_EXCLUSIVE = 3
  5642. } SPGRAMMARSTATE;
  5643. typedef /* [hidden] */
  5644. enum SPCONTEXTSTATE
  5645. { SPCS_DISABLED = 0,
  5646. SPCS_ENABLED = 1
  5647. } SPCONTEXTSTATE;
  5648. typedef /* [hidden] */
  5649. enum SPRULESTATE
  5650. { SPRS_INACTIVE = 0,
  5651. SPRS_ACTIVE = 1,
  5652. SPRS_ACTIVE_WITH_AUTO_PAUSE = 3
  5653. } SPRULESTATE;
  5654. #define SP_STREAMPOS_ASAP ( 0 )
  5655. #define SP_STREAMPOS_REALTIME ( -1 )
  5656. #define SPRULETRANS_TEXTBUFFER (SPSTATEHANDLE)(-1)
  5657. #define SPRULETRANS_WILDCARD (SPSTATEHANDLE)(-2)
  5658. #define SPRULETRANS_DICTATION (SPSTATEHANDLE)(-3)
  5659. typedef /* [hidden] */
  5660. enum SPGRAMMARWORDTYPE
  5661. { SPWT_DISPLAY = 0,
  5662. SPWT_LEXICAL = SPWT_DISPLAY + 1,
  5663. SPWT_PRONUNCIATION = SPWT_LEXICAL + 1
  5664. } SPGRAMMARWORDTYPE;
  5665. typedef /* [hidden] */ struct tagSPPROPERTYINFO
  5666. {
  5667. const WCHAR *pszName;
  5668. ULONG ulId;
  5669. const WCHAR *pszValue;
  5670. VARIANT vValue;
  5671. } SPPROPERTYINFO;
  5672. typedef /* [hidden] */
  5673. enum SPCFGRULEATTRIBUTES
  5674. { SPRAF_TopLevel = 1 << 0,
  5675. SPRAF_Active = 1 << 1,
  5676. SPRAF_Export = 1 << 2,
  5677. SPRAF_Import = 1 << 3,
  5678. SPRAF_Interpreter = 1 << 4,
  5679. SPRAF_Dynamic = 1 << 5,
  5680. SPRAF_AutoPause = 1 << 16
  5681. } SPCFGRULEATTRIBUTES;
  5682. extern RPC_IF_HANDLE __MIDL_itf_sapi_0283_v0_0_c_ifspec;
  5683. extern RPC_IF_HANDLE __MIDL_itf_sapi_0283_v0_0_s_ifspec;
  5684. #ifndef __ISpGrammarBuilder_INTERFACE_DEFINED__
  5685. #define __ISpGrammarBuilder_INTERFACE_DEFINED__
  5686. /* interface ISpGrammarBuilder */
  5687. /* [local][restricted][unique][helpstring][uuid][object] */
  5688. EXTERN_C const IID IID_ISpGrammarBuilder;
  5689. #if defined(__cplusplus) && !defined(CINTERFACE)
  5690. MIDL_INTERFACE("8137828F-591A-4A42-BE58-49EA7EBAAC68")
  5691. ISpGrammarBuilder : public IUnknown
  5692. {
  5693. public:
  5694. virtual HRESULT STDMETHODCALLTYPE ResetGrammar(
  5695. /* [in] */ WORD NewLanguage) = 0;
  5696. virtual HRESULT STDMETHODCALLTYPE GetRule(
  5697. /* [in] */ const WCHAR *pszRuleName,
  5698. /* [in] */ DWORD dwRuleId,
  5699. /* [in] */ DWORD dwAttributes,
  5700. /* [in] */ BOOL fCreateIfNotExist,
  5701. /* [out] */ SPSTATEHANDLE *phInitialState) = 0;
  5702. virtual HRESULT STDMETHODCALLTYPE ClearRule(
  5703. SPSTATEHANDLE hState) = 0;
  5704. virtual HRESULT STDMETHODCALLTYPE CreateNewState(
  5705. SPSTATEHANDLE hState,
  5706. SPSTATEHANDLE *phState) = 0;
  5707. virtual HRESULT STDMETHODCALLTYPE AddWordTransition(
  5708. SPSTATEHANDLE hFromState,
  5709. SPSTATEHANDLE hToState,
  5710. const WCHAR *psz,
  5711. const WCHAR *pszSeparators,
  5712. SPGRAMMARWORDTYPE eWordType,
  5713. float Weight,
  5714. const SPPROPERTYINFO *pPropInfo) = 0;
  5715. virtual HRESULT STDMETHODCALLTYPE AddRuleTransition(
  5716. SPSTATEHANDLE hFromState,
  5717. SPSTATEHANDLE hToState,
  5718. SPSTATEHANDLE hRule,
  5719. float Weight,
  5720. const SPPROPERTYINFO *pPropInfo) = 0;
  5721. virtual HRESULT STDMETHODCALLTYPE AddResource(
  5722. /* [in] */ SPSTATEHANDLE hRuleState,
  5723. /* [in] */ const WCHAR *pszResourceName,
  5724. /* [in] */ const WCHAR *pszResourceValue) = 0;
  5725. virtual HRESULT STDMETHODCALLTYPE Commit(
  5726. DWORD dwReserved) = 0;
  5727. };
  5728. #else /* C style interface */
  5729. typedef struct ISpGrammarBuilderVtbl
  5730. {
  5731. BEGIN_INTERFACE
  5732. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5733. ISpGrammarBuilder * This,
  5734. /* [in] */ REFIID riid,
  5735. /* [iid_is][out] */ void **ppvObject);
  5736. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5737. ISpGrammarBuilder * This);
  5738. ULONG ( STDMETHODCALLTYPE *Release )(
  5739. ISpGrammarBuilder * This);
  5740. HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
  5741. ISpGrammarBuilder * This,
  5742. /* [in] */ WORD NewLanguage);
  5743. HRESULT ( STDMETHODCALLTYPE *GetRule )(
  5744. ISpGrammarBuilder * This,
  5745. /* [in] */ const WCHAR *pszRuleName,
  5746. /* [in] */ DWORD dwRuleId,
  5747. /* [in] */ DWORD dwAttributes,
  5748. /* [in] */ BOOL fCreateIfNotExist,
  5749. /* [out] */ SPSTATEHANDLE *phInitialState);
  5750. HRESULT ( STDMETHODCALLTYPE *ClearRule )(
  5751. ISpGrammarBuilder * This,
  5752. SPSTATEHANDLE hState);
  5753. HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
  5754. ISpGrammarBuilder * This,
  5755. SPSTATEHANDLE hState,
  5756. SPSTATEHANDLE *phState);
  5757. HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  5758. ISpGrammarBuilder * This,
  5759. SPSTATEHANDLE hFromState,
  5760. SPSTATEHANDLE hToState,
  5761. const WCHAR *psz,
  5762. const WCHAR *pszSeparators,
  5763. SPGRAMMARWORDTYPE eWordType,
  5764. float Weight,
  5765. const SPPROPERTYINFO *pPropInfo);
  5766. HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  5767. ISpGrammarBuilder * This,
  5768. SPSTATEHANDLE hFromState,
  5769. SPSTATEHANDLE hToState,
  5770. SPSTATEHANDLE hRule,
  5771. float Weight,
  5772. const SPPROPERTYINFO *pPropInfo);
  5773. HRESULT ( STDMETHODCALLTYPE *AddResource )(
  5774. ISpGrammarBuilder * This,
  5775. /* [in] */ SPSTATEHANDLE hRuleState,
  5776. /* [in] */ const WCHAR *pszResourceName,
  5777. /* [in] */ const WCHAR *pszResourceValue);
  5778. HRESULT ( STDMETHODCALLTYPE *Commit )(
  5779. ISpGrammarBuilder * This,
  5780. DWORD dwReserved);
  5781. END_INTERFACE
  5782. } ISpGrammarBuilderVtbl;
  5783. interface ISpGrammarBuilder
  5784. {
  5785. CONST_VTBL struct ISpGrammarBuilderVtbl *lpVtbl;
  5786. };
  5787. #ifdef COBJMACROS
  5788. #define ISpGrammarBuilder_QueryInterface(This,riid,ppvObject) \
  5789. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5790. #define ISpGrammarBuilder_AddRef(This) \
  5791. (This)->lpVtbl -> AddRef(This)
  5792. #define ISpGrammarBuilder_Release(This) \
  5793. (This)->lpVtbl -> Release(This)
  5794. #define ISpGrammarBuilder_ResetGrammar(This,NewLanguage) \
  5795. (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
  5796. #define ISpGrammarBuilder_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) \
  5797. (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  5798. #define ISpGrammarBuilder_ClearRule(This,hState) \
  5799. (This)->lpVtbl -> ClearRule(This,hState)
  5800. #define ISpGrammarBuilder_CreateNewState(This,hState,phState) \
  5801. (This)->lpVtbl -> CreateNewState(This,hState,phState)
  5802. #define ISpGrammarBuilder_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) \
  5803. (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  5804. #define ISpGrammarBuilder_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) \
  5805. (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  5806. #define ISpGrammarBuilder_AddResource(This,hRuleState,pszResourceName,pszResourceValue) \
  5807. (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  5808. #define ISpGrammarBuilder_Commit(This,dwReserved) \
  5809. (This)->lpVtbl -> Commit(This,dwReserved)
  5810. #endif /* COBJMACROS */
  5811. #endif /* C style interface */
  5812. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ResetGrammar_Proxy(
  5813. ISpGrammarBuilder * This,
  5814. /* [in] */ WORD NewLanguage);
  5815. void __RPC_STUB ISpGrammarBuilder_ResetGrammar_Stub(
  5816. IRpcStubBuffer *This,
  5817. IRpcChannelBuffer *_pRpcChannelBuffer,
  5818. PRPC_MESSAGE _pRpcMessage,
  5819. DWORD *_pdwStubPhase);
  5820. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_GetRule_Proxy(
  5821. ISpGrammarBuilder * This,
  5822. /* [in] */ const WCHAR *pszRuleName,
  5823. /* [in] */ DWORD dwRuleId,
  5824. /* [in] */ DWORD dwAttributes,
  5825. /* [in] */ BOOL fCreateIfNotExist,
  5826. /* [out] */ SPSTATEHANDLE *phInitialState);
  5827. void __RPC_STUB ISpGrammarBuilder_GetRule_Stub(
  5828. IRpcStubBuffer *This,
  5829. IRpcChannelBuffer *_pRpcChannelBuffer,
  5830. PRPC_MESSAGE _pRpcMessage,
  5831. DWORD *_pdwStubPhase);
  5832. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ClearRule_Proxy(
  5833. ISpGrammarBuilder * This,
  5834. SPSTATEHANDLE hState);
  5835. void __RPC_STUB ISpGrammarBuilder_ClearRule_Stub(
  5836. IRpcStubBuffer *This,
  5837. IRpcChannelBuffer *_pRpcChannelBuffer,
  5838. PRPC_MESSAGE _pRpcMessage,
  5839. DWORD *_pdwStubPhase);
  5840. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_CreateNewState_Proxy(
  5841. ISpGrammarBuilder * This,
  5842. SPSTATEHANDLE hState,
  5843. SPSTATEHANDLE *phState);
  5844. void __RPC_STUB ISpGrammarBuilder_CreateNewState_Stub(
  5845. IRpcStubBuffer *This,
  5846. IRpcChannelBuffer *_pRpcChannelBuffer,
  5847. PRPC_MESSAGE _pRpcMessage,
  5848. DWORD *_pdwStubPhase);
  5849. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddWordTransition_Proxy(
  5850. ISpGrammarBuilder * This,
  5851. SPSTATEHANDLE hFromState,
  5852. SPSTATEHANDLE hToState,
  5853. const WCHAR *psz,
  5854. const WCHAR *pszSeparators,
  5855. SPGRAMMARWORDTYPE eWordType,
  5856. float Weight,
  5857. const SPPROPERTYINFO *pPropInfo);
  5858. void __RPC_STUB ISpGrammarBuilder_AddWordTransition_Stub(
  5859. IRpcStubBuffer *This,
  5860. IRpcChannelBuffer *_pRpcChannelBuffer,
  5861. PRPC_MESSAGE _pRpcMessage,
  5862. DWORD *_pdwStubPhase);
  5863. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddRuleTransition_Proxy(
  5864. ISpGrammarBuilder * This,
  5865. SPSTATEHANDLE hFromState,
  5866. SPSTATEHANDLE hToState,
  5867. SPSTATEHANDLE hRule,
  5868. float Weight,
  5869. const SPPROPERTYINFO *pPropInfo);
  5870. void __RPC_STUB ISpGrammarBuilder_AddRuleTransition_Stub(
  5871. IRpcStubBuffer *This,
  5872. IRpcChannelBuffer *_pRpcChannelBuffer,
  5873. PRPC_MESSAGE _pRpcMessage,
  5874. DWORD *_pdwStubPhase);
  5875. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddResource_Proxy(
  5876. ISpGrammarBuilder * This,
  5877. /* [in] */ SPSTATEHANDLE hRuleState,
  5878. /* [in] */ const WCHAR *pszResourceName,
  5879. /* [in] */ const WCHAR *pszResourceValue);
  5880. void __RPC_STUB ISpGrammarBuilder_AddResource_Stub(
  5881. IRpcStubBuffer *This,
  5882. IRpcChannelBuffer *_pRpcChannelBuffer,
  5883. PRPC_MESSAGE _pRpcMessage,
  5884. DWORD *_pdwStubPhase);
  5885. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_Commit_Proxy(
  5886. ISpGrammarBuilder * This,
  5887. DWORD dwReserved);
  5888. void __RPC_STUB ISpGrammarBuilder_Commit_Stub(
  5889. IRpcStubBuffer *This,
  5890. IRpcChannelBuffer *_pRpcChannelBuffer,
  5891. PRPC_MESSAGE _pRpcMessage,
  5892. DWORD *_pdwStubPhase);
  5893. #endif /* __ISpGrammarBuilder_INTERFACE_DEFINED__ */
  5894. /* interface __MIDL_itf_sapi_0284 */
  5895. /* [local] */
  5896. typedef /* [hidden] */
  5897. enum SPLOADOPTIONS
  5898. { SPLO_STATIC = 0,
  5899. SPLO_DYNAMIC = 1
  5900. } SPLOADOPTIONS;
  5901. extern RPC_IF_HANDLE __MIDL_itf_sapi_0284_v0_0_c_ifspec;
  5902. extern RPC_IF_HANDLE __MIDL_itf_sapi_0284_v0_0_s_ifspec;
  5903. #ifndef __ISpRecoGrammar_INTERFACE_DEFINED__
  5904. #define __ISpRecoGrammar_INTERFACE_DEFINED__
  5905. /* interface ISpRecoGrammar */
  5906. /* [local][restricted][unique][helpstring][uuid][object] */
  5907. EXTERN_C const IID IID_ISpRecoGrammar;
  5908. #if defined(__cplusplus) && !defined(CINTERFACE)
  5909. MIDL_INTERFACE("2177DB29-7F45-47D0-8554-067E91C80502")
  5910. ISpRecoGrammar : public ISpGrammarBuilder
  5911. {
  5912. public:
  5913. virtual HRESULT STDMETHODCALLTYPE GetGrammarId(
  5914. /* [out] */ ULONGLONG *pullGrammarId) = 0;
  5915. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  5916. /* [out] */ ISpRecoContext **ppRecoCtxt) = 0;
  5917. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromFile(
  5918. /* [string][in] */ const WCHAR *pszFileName,
  5919. /* [in] */ SPLOADOPTIONS Options) = 0;
  5920. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromObject(
  5921. /* [in] */ REFCLSID rcid,
  5922. /* [string][in] */ const WCHAR *pszGrammarName,
  5923. /* [in] */ SPLOADOPTIONS Options) = 0;
  5924. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromResource(
  5925. /* [in] */ HMODULE hModule,
  5926. /* [string][in] */ const WCHAR *pszResourceName,
  5927. /* [string][in] */ const WCHAR *pszResourceType,
  5928. /* [in] */ WORD wLanguage,
  5929. /* [in] */ SPLOADOPTIONS Options) = 0;
  5930. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromMemory(
  5931. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  5932. /* [in] */ SPLOADOPTIONS Options) = 0;
  5933. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromProprietaryGrammar(
  5934. /* [in] */ REFGUID rguidParam,
  5935. /* [string][in] */ const WCHAR *pszStringParam,
  5936. /* [in] */ const void *pvDataPrarm,
  5937. /* [in] */ ULONG cbDataSize,
  5938. /* [in] */ SPLOADOPTIONS Options) = 0;
  5939. virtual HRESULT STDMETHODCALLTYPE SetRuleState(
  5940. /* [string][in] */ const WCHAR *pszName,
  5941. void *pReserved,
  5942. /* [in] */ SPRULESTATE NewState) = 0;
  5943. virtual HRESULT STDMETHODCALLTYPE SetRuleIdState(
  5944. /* [in] */ ULONG ulRuleId,
  5945. /* [in] */ SPRULESTATE NewState) = 0;
  5946. virtual HRESULT STDMETHODCALLTYPE LoadDictation(
  5947. /* [string][in] */ const WCHAR *pszTopicName,
  5948. /* [in] */ SPLOADOPTIONS Options) = 0;
  5949. virtual HRESULT STDMETHODCALLTYPE UnloadDictation( void) = 0;
  5950. virtual HRESULT STDMETHODCALLTYPE SetDictationState(
  5951. /* [in] */ SPRULESTATE NewState) = 0;
  5952. virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  5953. /* [in] */ const WCHAR *pText,
  5954. /* [in] */ ULONG cchText,
  5955. /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
  5956. virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
  5957. /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
  5958. virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
  5959. /* [string][in] */ const WCHAR *pszWord,
  5960. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable) = 0;
  5961. virtual HRESULT STDMETHODCALLTYPE SetGrammarState(
  5962. /* [in] */ SPGRAMMARSTATE eGrammarState) = 0;
  5963. virtual HRESULT STDMETHODCALLTYPE SaveCmd(
  5964. /* [in] */ IStream *pStream,
  5965. /* [optional][out] */ WCHAR **ppszCoMemErrorText) = 0;
  5966. virtual HRESULT STDMETHODCALLTYPE GetGrammarState(
  5967. /* [out] */ SPGRAMMARSTATE *peGrammarState) = 0;
  5968. };
  5969. #else /* C style interface */
  5970. typedef struct ISpRecoGrammarVtbl
  5971. {
  5972. BEGIN_INTERFACE
  5973. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5974. ISpRecoGrammar * This,
  5975. /* [in] */ REFIID riid,
  5976. /* [iid_is][out] */ void **ppvObject);
  5977. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5978. ISpRecoGrammar * This);
  5979. ULONG ( STDMETHODCALLTYPE *Release )(
  5980. ISpRecoGrammar * This);
  5981. HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
  5982. ISpRecoGrammar * This,
  5983. /* [in] */ WORD NewLanguage);
  5984. HRESULT ( STDMETHODCALLTYPE *GetRule )(
  5985. ISpRecoGrammar * This,
  5986. /* [in] */ const WCHAR *pszRuleName,
  5987. /* [in] */ DWORD dwRuleId,
  5988. /* [in] */ DWORD dwAttributes,
  5989. /* [in] */ BOOL fCreateIfNotExist,
  5990. /* [out] */ SPSTATEHANDLE *phInitialState);
  5991. HRESULT ( STDMETHODCALLTYPE *ClearRule )(
  5992. ISpRecoGrammar * This,
  5993. SPSTATEHANDLE hState);
  5994. HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
  5995. ISpRecoGrammar * This,
  5996. SPSTATEHANDLE hState,
  5997. SPSTATEHANDLE *phState);
  5998. HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  5999. ISpRecoGrammar * This,
  6000. SPSTATEHANDLE hFromState,
  6001. SPSTATEHANDLE hToState,
  6002. const WCHAR *psz,
  6003. const WCHAR *pszSeparators,
  6004. SPGRAMMARWORDTYPE eWordType,
  6005. float Weight,
  6006. const SPPROPERTYINFO *pPropInfo);
  6007. HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  6008. ISpRecoGrammar * This,
  6009. SPSTATEHANDLE hFromState,
  6010. SPSTATEHANDLE hToState,
  6011. SPSTATEHANDLE hRule,
  6012. float Weight,
  6013. const SPPROPERTYINFO *pPropInfo);
  6014. HRESULT ( STDMETHODCALLTYPE *AddResource )(
  6015. ISpRecoGrammar * This,
  6016. /* [in] */ SPSTATEHANDLE hRuleState,
  6017. /* [in] */ const WCHAR *pszResourceName,
  6018. /* [in] */ const WCHAR *pszResourceValue);
  6019. HRESULT ( STDMETHODCALLTYPE *Commit )(
  6020. ISpRecoGrammar * This,
  6021. DWORD dwReserved);
  6022. HRESULT ( STDMETHODCALLTYPE *GetGrammarId )(
  6023. ISpRecoGrammar * This,
  6024. /* [out] */ ULONGLONG *pullGrammarId);
  6025. HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
  6026. ISpRecoGrammar * This,
  6027. /* [out] */ ISpRecoContext **ppRecoCtxt);
  6028. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromFile )(
  6029. ISpRecoGrammar * This,
  6030. /* [string][in] */ const WCHAR *pszFileName,
  6031. /* [in] */ SPLOADOPTIONS Options);
  6032. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromObject )(
  6033. ISpRecoGrammar * This,
  6034. /* [in] */ REFCLSID rcid,
  6035. /* [string][in] */ const WCHAR *pszGrammarName,
  6036. /* [in] */ SPLOADOPTIONS Options);
  6037. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromResource )(
  6038. ISpRecoGrammar * This,
  6039. /* [in] */ HMODULE hModule,
  6040. /* [string][in] */ const WCHAR *pszResourceName,
  6041. /* [string][in] */ const WCHAR *pszResourceType,
  6042. /* [in] */ WORD wLanguage,
  6043. /* [in] */ SPLOADOPTIONS Options);
  6044. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromMemory )(
  6045. ISpRecoGrammar * This,
  6046. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  6047. /* [in] */ SPLOADOPTIONS Options);
  6048. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromProprietaryGrammar )(
  6049. ISpRecoGrammar * This,
  6050. /* [in] */ REFGUID rguidParam,
  6051. /* [string][in] */ const WCHAR *pszStringParam,
  6052. /* [in] */ const void *pvDataPrarm,
  6053. /* [in] */ ULONG cbDataSize,
  6054. /* [in] */ SPLOADOPTIONS Options);
  6055. HRESULT ( STDMETHODCALLTYPE *SetRuleState )(
  6056. ISpRecoGrammar * This,
  6057. /* [string][in] */ const WCHAR *pszName,
  6058. void *pReserved,
  6059. /* [in] */ SPRULESTATE NewState);
  6060. HRESULT ( STDMETHODCALLTYPE *SetRuleIdState )(
  6061. ISpRecoGrammar * This,
  6062. /* [in] */ ULONG ulRuleId,
  6063. /* [in] */ SPRULESTATE NewState);
  6064. HRESULT ( STDMETHODCALLTYPE *LoadDictation )(
  6065. ISpRecoGrammar * This,
  6066. /* [string][in] */ const WCHAR *pszTopicName,
  6067. /* [in] */ SPLOADOPTIONS Options);
  6068. HRESULT ( STDMETHODCALLTYPE *UnloadDictation )(
  6069. ISpRecoGrammar * This);
  6070. HRESULT ( STDMETHODCALLTYPE *SetDictationState )(
  6071. ISpRecoGrammar * This,
  6072. /* [in] */ SPRULESTATE NewState);
  6073. HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
  6074. ISpRecoGrammar * This,
  6075. /* [in] */ const WCHAR *pText,
  6076. /* [in] */ ULONG cchText,
  6077. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6078. HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
  6079. ISpRecoGrammar * This,
  6080. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6081. HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
  6082. ISpRecoGrammar * This,
  6083. /* [string][in] */ const WCHAR *pszWord,
  6084. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
  6085. HRESULT ( STDMETHODCALLTYPE *SetGrammarState )(
  6086. ISpRecoGrammar * This,
  6087. /* [in] */ SPGRAMMARSTATE eGrammarState);
  6088. HRESULT ( STDMETHODCALLTYPE *SaveCmd )(
  6089. ISpRecoGrammar * This,
  6090. /* [in] */ IStream *pStream,
  6091. /* [optional][out] */ WCHAR **ppszCoMemErrorText);
  6092. HRESULT ( STDMETHODCALLTYPE *GetGrammarState )(
  6093. ISpRecoGrammar * This,
  6094. /* [out] */ SPGRAMMARSTATE *peGrammarState);
  6095. END_INTERFACE
  6096. } ISpRecoGrammarVtbl;
  6097. interface ISpRecoGrammar
  6098. {
  6099. CONST_VTBL struct ISpRecoGrammarVtbl *lpVtbl;
  6100. };
  6101. #ifdef COBJMACROS
  6102. #define ISpRecoGrammar_QueryInterface(This,riid,ppvObject) \
  6103. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6104. #define ISpRecoGrammar_AddRef(This) \
  6105. (This)->lpVtbl -> AddRef(This)
  6106. #define ISpRecoGrammar_Release(This) \
  6107. (This)->lpVtbl -> Release(This)
  6108. #define ISpRecoGrammar_ResetGrammar(This,NewLanguage) \
  6109. (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
  6110. #define ISpRecoGrammar_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) \
  6111. (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  6112. #define ISpRecoGrammar_ClearRule(This,hState) \
  6113. (This)->lpVtbl -> ClearRule(This,hState)
  6114. #define ISpRecoGrammar_CreateNewState(This,hState,phState) \
  6115. (This)->lpVtbl -> CreateNewState(This,hState,phState)
  6116. #define ISpRecoGrammar_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) \
  6117. (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  6118. #define ISpRecoGrammar_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) \
  6119. (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  6120. #define ISpRecoGrammar_AddResource(This,hRuleState,pszResourceName,pszResourceValue) \
  6121. (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  6122. #define ISpRecoGrammar_Commit(This,dwReserved) \
  6123. (This)->lpVtbl -> Commit(This,dwReserved)
  6124. #define ISpRecoGrammar_GetGrammarId(This,pullGrammarId) \
  6125. (This)->lpVtbl -> GetGrammarId(This,pullGrammarId)
  6126. #define ISpRecoGrammar_GetRecoContext(This,ppRecoCtxt) \
  6127. (This)->lpVtbl -> GetRecoContext(This,ppRecoCtxt)
  6128. #define ISpRecoGrammar_LoadCmdFromFile(This,pszFileName,Options) \
  6129. (This)->lpVtbl -> LoadCmdFromFile(This,pszFileName,Options)
  6130. #define ISpRecoGrammar_LoadCmdFromObject(This,rcid,pszGrammarName,Options) \
  6131. (This)->lpVtbl -> LoadCmdFromObject(This,rcid,pszGrammarName,Options)
  6132. #define ISpRecoGrammar_LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options) \
  6133. (This)->lpVtbl -> LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options)
  6134. #define ISpRecoGrammar_LoadCmdFromMemory(This,pGrammar,Options) \
  6135. (This)->lpVtbl -> LoadCmdFromMemory(This,pGrammar,Options)
  6136. #define ISpRecoGrammar_LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options) \
  6137. (This)->lpVtbl -> LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options)
  6138. #define ISpRecoGrammar_SetRuleState(This,pszName,pReserved,NewState) \
  6139. (This)->lpVtbl -> SetRuleState(This,pszName,pReserved,NewState)
  6140. #define ISpRecoGrammar_SetRuleIdState(This,ulRuleId,NewState) \
  6141. (This)->lpVtbl -> SetRuleIdState(This,ulRuleId,NewState)
  6142. #define ISpRecoGrammar_LoadDictation(This,pszTopicName,Options) \
  6143. (This)->lpVtbl -> LoadDictation(This,pszTopicName,Options)
  6144. #define ISpRecoGrammar_UnloadDictation(This) \
  6145. (This)->lpVtbl -> UnloadDictation(This)
  6146. #define ISpRecoGrammar_SetDictationState(This,NewState) \
  6147. (This)->lpVtbl -> SetDictationState(This,NewState)
  6148. #define ISpRecoGrammar_SetWordSequenceData(This,pText,cchText,pInfo) \
  6149. (This)->lpVtbl -> SetWordSequenceData(This,pText,cchText,pInfo)
  6150. #define ISpRecoGrammar_SetTextSelection(This,pInfo) \
  6151. (This)->lpVtbl -> SetTextSelection(This,pInfo)
  6152. #define ISpRecoGrammar_IsPronounceable(This,pszWord,pWordPronounceable) \
  6153. (This)->lpVtbl -> IsPronounceable(This,pszWord,pWordPronounceable)
  6154. #define ISpRecoGrammar_SetGrammarState(This,eGrammarState) \
  6155. (This)->lpVtbl -> SetGrammarState(This,eGrammarState)
  6156. #define ISpRecoGrammar_SaveCmd(This,pStream,ppszCoMemErrorText) \
  6157. (This)->lpVtbl -> SaveCmd(This,pStream,ppszCoMemErrorText)
  6158. #define ISpRecoGrammar_GetGrammarState(This,peGrammarState) \
  6159. (This)->lpVtbl -> GetGrammarState(This,peGrammarState)
  6160. #endif /* COBJMACROS */
  6161. #endif /* C style interface */
  6162. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarId_Proxy(
  6163. ISpRecoGrammar * This,
  6164. /* [out] */ ULONGLONG *pullGrammarId);
  6165. void __RPC_STUB ISpRecoGrammar_GetGrammarId_Stub(
  6166. IRpcStubBuffer *This,
  6167. IRpcChannelBuffer *_pRpcChannelBuffer,
  6168. PRPC_MESSAGE _pRpcMessage,
  6169. DWORD *_pdwStubPhase);
  6170. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetRecoContext_Proxy(
  6171. ISpRecoGrammar * This,
  6172. /* [out] */ ISpRecoContext **ppRecoCtxt);
  6173. void __RPC_STUB ISpRecoGrammar_GetRecoContext_Stub(
  6174. IRpcStubBuffer *This,
  6175. IRpcChannelBuffer *_pRpcChannelBuffer,
  6176. PRPC_MESSAGE _pRpcMessage,
  6177. DWORD *_pdwStubPhase);
  6178. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromFile_Proxy(
  6179. ISpRecoGrammar * This,
  6180. /* [string][in] */ const WCHAR *pszFileName,
  6181. /* [in] */ SPLOADOPTIONS Options);
  6182. void __RPC_STUB ISpRecoGrammar_LoadCmdFromFile_Stub(
  6183. IRpcStubBuffer *This,
  6184. IRpcChannelBuffer *_pRpcChannelBuffer,
  6185. PRPC_MESSAGE _pRpcMessage,
  6186. DWORD *_pdwStubPhase);
  6187. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromObject_Proxy(
  6188. ISpRecoGrammar * This,
  6189. /* [in] */ REFCLSID rcid,
  6190. /* [string][in] */ const WCHAR *pszGrammarName,
  6191. /* [in] */ SPLOADOPTIONS Options);
  6192. void __RPC_STUB ISpRecoGrammar_LoadCmdFromObject_Stub(
  6193. IRpcStubBuffer *This,
  6194. IRpcChannelBuffer *_pRpcChannelBuffer,
  6195. PRPC_MESSAGE _pRpcMessage,
  6196. DWORD *_pdwStubPhase);
  6197. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromResource_Proxy(
  6198. ISpRecoGrammar * This,
  6199. /* [in] */ HMODULE hModule,
  6200. /* [string][in] */ const WCHAR *pszResourceName,
  6201. /* [string][in] */ const WCHAR *pszResourceType,
  6202. /* [in] */ WORD wLanguage,
  6203. /* [in] */ SPLOADOPTIONS Options);
  6204. void __RPC_STUB ISpRecoGrammar_LoadCmdFromResource_Stub(
  6205. IRpcStubBuffer *This,
  6206. IRpcChannelBuffer *_pRpcChannelBuffer,
  6207. PRPC_MESSAGE _pRpcMessage,
  6208. DWORD *_pdwStubPhase);
  6209. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromMemory_Proxy(
  6210. ISpRecoGrammar * This,
  6211. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  6212. /* [in] */ SPLOADOPTIONS Options);
  6213. void __RPC_STUB ISpRecoGrammar_LoadCmdFromMemory_Stub(
  6214. IRpcStubBuffer *This,
  6215. IRpcChannelBuffer *_pRpcChannelBuffer,
  6216. PRPC_MESSAGE _pRpcMessage,
  6217. DWORD *_pdwStubPhase);
  6218. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Proxy(
  6219. ISpRecoGrammar * This,
  6220. /* [in] */ REFGUID rguidParam,
  6221. /* [string][in] */ const WCHAR *pszStringParam,
  6222. /* [in] */ const void *pvDataPrarm,
  6223. /* [in] */ ULONG cbDataSize,
  6224. /* [in] */ SPLOADOPTIONS Options);
  6225. void __RPC_STUB ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Stub(
  6226. IRpcStubBuffer *This,
  6227. IRpcChannelBuffer *_pRpcChannelBuffer,
  6228. PRPC_MESSAGE _pRpcMessage,
  6229. DWORD *_pdwStubPhase);
  6230. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleState_Proxy(
  6231. ISpRecoGrammar * This,
  6232. /* [string][in] */ const WCHAR *pszName,
  6233. void *pReserved,
  6234. /* [in] */ SPRULESTATE NewState);
  6235. void __RPC_STUB ISpRecoGrammar_SetRuleState_Stub(
  6236. IRpcStubBuffer *This,
  6237. IRpcChannelBuffer *_pRpcChannelBuffer,
  6238. PRPC_MESSAGE _pRpcMessage,
  6239. DWORD *_pdwStubPhase);
  6240. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleIdState_Proxy(
  6241. ISpRecoGrammar * This,
  6242. /* [in] */ ULONG ulRuleId,
  6243. /* [in] */ SPRULESTATE NewState);
  6244. void __RPC_STUB ISpRecoGrammar_SetRuleIdState_Stub(
  6245. IRpcStubBuffer *This,
  6246. IRpcChannelBuffer *_pRpcChannelBuffer,
  6247. PRPC_MESSAGE _pRpcMessage,
  6248. DWORD *_pdwStubPhase);
  6249. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadDictation_Proxy(
  6250. ISpRecoGrammar * This,
  6251. /* [string][in] */ const WCHAR *pszTopicName,
  6252. /* [in] */ SPLOADOPTIONS Options);
  6253. void __RPC_STUB ISpRecoGrammar_LoadDictation_Stub(
  6254. IRpcStubBuffer *This,
  6255. IRpcChannelBuffer *_pRpcChannelBuffer,
  6256. PRPC_MESSAGE _pRpcMessage,
  6257. DWORD *_pdwStubPhase);
  6258. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_UnloadDictation_Proxy(
  6259. ISpRecoGrammar * This);
  6260. void __RPC_STUB ISpRecoGrammar_UnloadDictation_Stub(
  6261. IRpcStubBuffer *This,
  6262. IRpcChannelBuffer *_pRpcChannelBuffer,
  6263. PRPC_MESSAGE _pRpcMessage,
  6264. DWORD *_pdwStubPhase);
  6265. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetDictationState_Proxy(
  6266. ISpRecoGrammar * This,
  6267. /* [in] */ SPRULESTATE NewState);
  6268. void __RPC_STUB ISpRecoGrammar_SetDictationState_Stub(
  6269. IRpcStubBuffer *This,
  6270. IRpcChannelBuffer *_pRpcChannelBuffer,
  6271. PRPC_MESSAGE _pRpcMessage,
  6272. DWORD *_pdwStubPhase);
  6273. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetWordSequenceData_Proxy(
  6274. ISpRecoGrammar * This,
  6275. /* [in] */ const WCHAR *pText,
  6276. /* [in] */ ULONG cchText,
  6277. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6278. void __RPC_STUB ISpRecoGrammar_SetWordSequenceData_Stub(
  6279. IRpcStubBuffer *This,
  6280. IRpcChannelBuffer *_pRpcChannelBuffer,
  6281. PRPC_MESSAGE _pRpcMessage,
  6282. DWORD *_pdwStubPhase);
  6283. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetTextSelection_Proxy(
  6284. ISpRecoGrammar * This,
  6285. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6286. void __RPC_STUB ISpRecoGrammar_SetTextSelection_Stub(
  6287. IRpcStubBuffer *This,
  6288. IRpcChannelBuffer *_pRpcChannelBuffer,
  6289. PRPC_MESSAGE _pRpcMessage,
  6290. DWORD *_pdwStubPhase);
  6291. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_IsPronounceable_Proxy(
  6292. ISpRecoGrammar * This,
  6293. /* [string][in] */ const WCHAR *pszWord,
  6294. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
  6295. void __RPC_STUB ISpRecoGrammar_IsPronounceable_Stub(
  6296. IRpcStubBuffer *This,
  6297. IRpcChannelBuffer *_pRpcChannelBuffer,
  6298. PRPC_MESSAGE _pRpcMessage,
  6299. DWORD *_pdwStubPhase);
  6300. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetGrammarState_Proxy(
  6301. ISpRecoGrammar * This,
  6302. /* [in] */ SPGRAMMARSTATE eGrammarState);
  6303. void __RPC_STUB ISpRecoGrammar_SetGrammarState_Stub(
  6304. IRpcStubBuffer *This,
  6305. IRpcChannelBuffer *_pRpcChannelBuffer,
  6306. PRPC_MESSAGE _pRpcMessage,
  6307. DWORD *_pdwStubPhase);
  6308. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SaveCmd_Proxy(
  6309. ISpRecoGrammar * This,
  6310. /* [in] */ IStream *pStream,
  6311. /* [optional][out] */ WCHAR **ppszCoMemErrorText);
  6312. void __RPC_STUB ISpRecoGrammar_SaveCmd_Stub(
  6313. IRpcStubBuffer *This,
  6314. IRpcChannelBuffer *_pRpcChannelBuffer,
  6315. PRPC_MESSAGE _pRpcMessage,
  6316. DWORD *_pdwStubPhase);
  6317. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarState_Proxy(
  6318. ISpRecoGrammar * This,
  6319. /* [out] */ SPGRAMMARSTATE *peGrammarState);
  6320. void __RPC_STUB ISpRecoGrammar_GetGrammarState_Stub(
  6321. IRpcStubBuffer *This,
  6322. IRpcChannelBuffer *_pRpcChannelBuffer,
  6323. PRPC_MESSAGE _pRpcMessage,
  6324. DWORD *_pdwStubPhase);
  6325. #endif /* __ISpRecoGrammar_INTERFACE_DEFINED__ */
  6326. /* interface __MIDL_itf_sapi_0285 */
  6327. /* [local] */
  6328. typedef /* [hidden][restricted] */ struct SPRECOCONTEXTSTATUS
  6329. {
  6330. SPINTERFERENCE eInterference;
  6331. WCHAR szRequestTypeOfUI[ 255 ];
  6332. DWORD dwReserved1;
  6333. DWORD dwReserved2;
  6334. } SPRECOCONTEXTSTATUS;
  6335. typedef /* [hidden] */
  6336. enum SPBOOKMARKOPTIONS
  6337. { SPBO_NONE = 0,
  6338. SPBO_PAUSE = 1
  6339. } SPBOOKMARKOPTIONS;
  6340. typedef /* [hidden] */
  6341. enum SPAUDIOOPTIONS
  6342. { SPAO_NONE = 0,
  6343. SPAO_RETAIN_AUDIO = 1 << 0
  6344. } SPAUDIOOPTIONS;
  6345. extern RPC_IF_HANDLE __MIDL_itf_sapi_0285_v0_0_c_ifspec;
  6346. extern RPC_IF_HANDLE __MIDL_itf_sapi_0285_v0_0_s_ifspec;
  6347. #ifndef __ISpRecoContext_INTERFACE_DEFINED__
  6348. #define __ISpRecoContext_INTERFACE_DEFINED__
  6349. /* interface ISpRecoContext */
  6350. /* [restricted][local][unique][helpstring][uuid][object] */
  6351. EXTERN_C const IID IID_ISpRecoContext;
  6352. #if defined(__cplusplus) && !defined(CINTERFACE)
  6353. MIDL_INTERFACE("F740A62F-7C15-489E-8234-940A33D9272D")
  6354. ISpRecoContext : public ISpEventSource
  6355. {
  6356. public:
  6357. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  6358. /* [out] */ ISpRecognizer **ppRecognizer) = 0;
  6359. virtual HRESULT STDMETHODCALLTYPE CreateGrammar(
  6360. /* [in] */ ULONGLONG ullGrammarId,
  6361. /* [out] */ ISpRecoGrammar **ppGrammar) = 0;
  6362. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  6363. /* [out] */ SPRECOCONTEXTSTATUS *pStatus) = 0;
  6364. virtual HRESULT STDMETHODCALLTYPE GetMaxAlternates(
  6365. /* [in] */ ULONG *pcAlternates) = 0;
  6366. virtual HRESULT STDMETHODCALLTYPE SetMaxAlternates(
  6367. /* [in] */ ULONG cAlternates) = 0;
  6368. virtual HRESULT STDMETHODCALLTYPE SetAudioOptions(
  6369. /* [in] */ SPAUDIOOPTIONS Options,
  6370. /* [in] */ const GUID *pAudioFormatId,
  6371. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  6372. virtual HRESULT STDMETHODCALLTYPE GetAudioOptions(
  6373. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6374. /* [out] */ GUID *pAudioFormatId,
  6375. /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
  6376. virtual HRESULT STDMETHODCALLTYPE DeserializeResult(
  6377. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6378. /* [out] */ ISpRecoResult **ppResult) = 0;
  6379. virtual HRESULT STDMETHODCALLTYPE Bookmark(
  6380. /* [in] */ SPBOOKMARKOPTIONS Options,
  6381. /* [in] */ ULONGLONG ullStreamPosition,
  6382. /* [in] */ LPARAM lparamEvent) = 0;
  6383. virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
  6384. /* [string][in] */ const WCHAR *pAdaptationData,
  6385. /* [in] */ const ULONG cch) = 0;
  6386. virtual HRESULT STDMETHODCALLTYPE Pause(
  6387. DWORD dwReserved) = 0;
  6388. virtual HRESULT STDMETHODCALLTYPE Resume(
  6389. DWORD dwReserved) = 0;
  6390. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  6391. /* [in] */ ISpVoice *pVoice,
  6392. /* [in] */ BOOL fAllowFormatChanges) = 0;
  6393. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  6394. /* [out] */ ISpVoice **ppVoice) = 0;
  6395. virtual HRESULT STDMETHODCALLTYPE SetVoicePurgeEvent(
  6396. /* [in] */ ULONGLONG ullEventInterest) = 0;
  6397. virtual HRESULT STDMETHODCALLTYPE GetVoicePurgeEvent(
  6398. /* [out] */ ULONGLONG *pullEventInterest) = 0;
  6399. virtual HRESULT STDMETHODCALLTYPE SetContextState(
  6400. /* [in] */ SPCONTEXTSTATE eContextState) = 0;
  6401. virtual HRESULT STDMETHODCALLTYPE GetContextState(
  6402. /* [in] */ SPCONTEXTSTATE *peContextState) = 0;
  6403. };
  6404. #else /* C style interface */
  6405. typedef struct ISpRecoContextVtbl
  6406. {
  6407. BEGIN_INTERFACE
  6408. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6409. ISpRecoContext * This,
  6410. /* [in] */ REFIID riid,
  6411. /* [iid_is][out] */ void **ppvObject);
  6412. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6413. ISpRecoContext * This);
  6414. ULONG ( STDMETHODCALLTYPE *Release )(
  6415. ISpRecoContext * This);
  6416. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  6417. ISpRecoContext * This,
  6418. /* [in] */ ISpNotifySink *pNotifySink);
  6419. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  6420. ISpRecoContext * This,
  6421. /* [in] */ HWND hWnd,
  6422. /* [in] */ UINT Msg,
  6423. /* [in] */ WPARAM wParam,
  6424. /* [in] */ LPARAM lParam);
  6425. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  6426. ISpRecoContext * This,
  6427. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  6428. /* [in] */ WPARAM wParam,
  6429. /* [in] */ LPARAM lParam);
  6430. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  6431. ISpRecoContext * This,
  6432. /* [in] */ ISpNotifyCallback *pSpCallback,
  6433. /* [in] */ WPARAM wParam,
  6434. /* [in] */ LPARAM lParam);
  6435. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  6436. ISpRecoContext * This);
  6437. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  6438. ISpRecoContext * This,
  6439. /* [in] */ DWORD dwMilliseconds);
  6440. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  6441. ISpRecoContext * This);
  6442. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  6443. ISpRecoContext * This,
  6444. /* [in] */ ULONGLONG ullEventInterest,
  6445. /* [in] */ ULONGLONG ullQueuedInterest);
  6446. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  6447. ISpRecoContext * This,
  6448. /* [in] */ ULONG ulCount,
  6449. /* [size_is][out] */ SPEVENT *pEventArray,
  6450. /* [out] */ ULONG *pulFetched);
  6451. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  6452. ISpRecoContext * This,
  6453. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  6454. HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
  6455. ISpRecoContext * This,
  6456. /* [out] */ ISpRecognizer **ppRecognizer);
  6457. HRESULT ( STDMETHODCALLTYPE *CreateGrammar )(
  6458. ISpRecoContext * This,
  6459. /* [in] */ ULONGLONG ullGrammarId,
  6460. /* [out] */ ISpRecoGrammar **ppGrammar);
  6461. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  6462. ISpRecoContext * This,
  6463. /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
  6464. HRESULT ( STDMETHODCALLTYPE *GetMaxAlternates )(
  6465. ISpRecoContext * This,
  6466. /* [in] */ ULONG *pcAlternates);
  6467. HRESULT ( STDMETHODCALLTYPE *SetMaxAlternates )(
  6468. ISpRecoContext * This,
  6469. /* [in] */ ULONG cAlternates);
  6470. HRESULT ( STDMETHODCALLTYPE *SetAudioOptions )(
  6471. ISpRecoContext * This,
  6472. /* [in] */ SPAUDIOOPTIONS Options,
  6473. /* [in] */ const GUID *pAudioFormatId,
  6474. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  6475. HRESULT ( STDMETHODCALLTYPE *GetAudioOptions )(
  6476. ISpRecoContext * This,
  6477. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6478. /* [out] */ GUID *pAudioFormatId,
  6479. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  6480. HRESULT ( STDMETHODCALLTYPE *DeserializeResult )(
  6481. ISpRecoContext * This,
  6482. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6483. /* [out] */ ISpRecoResult **ppResult);
  6484. HRESULT ( STDMETHODCALLTYPE *Bookmark )(
  6485. ISpRecoContext * This,
  6486. /* [in] */ SPBOOKMARKOPTIONS Options,
  6487. /* [in] */ ULONGLONG ullStreamPosition,
  6488. /* [in] */ LPARAM lparamEvent);
  6489. HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
  6490. ISpRecoContext * This,
  6491. /* [string][in] */ const WCHAR *pAdaptationData,
  6492. /* [in] */ const ULONG cch);
  6493. HRESULT ( STDMETHODCALLTYPE *Pause )(
  6494. ISpRecoContext * This,
  6495. DWORD dwReserved);
  6496. HRESULT ( STDMETHODCALLTYPE *Resume )(
  6497. ISpRecoContext * This,
  6498. DWORD dwReserved);
  6499. HRESULT ( STDMETHODCALLTYPE *SetVoice )(
  6500. ISpRecoContext * This,
  6501. /* [in] */ ISpVoice *pVoice,
  6502. /* [in] */ BOOL fAllowFormatChanges);
  6503. HRESULT ( STDMETHODCALLTYPE *GetVoice )(
  6504. ISpRecoContext * This,
  6505. /* [out] */ ISpVoice **ppVoice);
  6506. HRESULT ( STDMETHODCALLTYPE *SetVoicePurgeEvent )(
  6507. ISpRecoContext * This,
  6508. /* [in] */ ULONGLONG ullEventInterest);
  6509. HRESULT ( STDMETHODCALLTYPE *GetVoicePurgeEvent )(
  6510. ISpRecoContext * This,
  6511. /* [out] */ ULONGLONG *pullEventInterest);
  6512. HRESULT ( STDMETHODCALLTYPE *SetContextState )(
  6513. ISpRecoContext * This,
  6514. /* [in] */ SPCONTEXTSTATE eContextState);
  6515. HRESULT ( STDMETHODCALLTYPE *GetContextState )(
  6516. ISpRecoContext * This,
  6517. /* [in] */ SPCONTEXTSTATE *peContextState);
  6518. END_INTERFACE
  6519. } ISpRecoContextVtbl;
  6520. interface ISpRecoContext
  6521. {
  6522. CONST_VTBL struct ISpRecoContextVtbl *lpVtbl;
  6523. };
  6524. #ifdef COBJMACROS
  6525. #define ISpRecoContext_QueryInterface(This,riid,ppvObject) \
  6526. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6527. #define ISpRecoContext_AddRef(This) \
  6528. (This)->lpVtbl -> AddRef(This)
  6529. #define ISpRecoContext_Release(This) \
  6530. (This)->lpVtbl -> Release(This)
  6531. #define ISpRecoContext_SetNotifySink(This,pNotifySink) \
  6532. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  6533. #define ISpRecoContext_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  6534. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  6535. #define ISpRecoContext_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  6536. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  6537. #define ISpRecoContext_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  6538. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  6539. #define ISpRecoContext_SetNotifyWin32Event(This) \
  6540. (This)->lpVtbl -> SetNotifyWin32Event(This)
  6541. #define ISpRecoContext_WaitForNotifyEvent(This,dwMilliseconds) \
  6542. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  6543. #define ISpRecoContext_GetNotifyEventHandle(This) \
  6544. (This)->lpVtbl -> GetNotifyEventHandle(This)
  6545. #define ISpRecoContext_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  6546. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  6547. #define ISpRecoContext_GetEvents(This,ulCount,pEventArray,pulFetched) \
  6548. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  6549. #define ISpRecoContext_GetInfo(This,pInfo) \
  6550. (This)->lpVtbl -> GetInfo(This,pInfo)
  6551. #define ISpRecoContext_GetRecognizer(This,ppRecognizer) \
  6552. (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
  6553. #define ISpRecoContext_CreateGrammar(This,ullGrammarId,ppGrammar) \
  6554. (This)->lpVtbl -> CreateGrammar(This,ullGrammarId,ppGrammar)
  6555. #define ISpRecoContext_GetStatus(This,pStatus) \
  6556. (This)->lpVtbl -> GetStatus(This,pStatus)
  6557. #define ISpRecoContext_GetMaxAlternates(This,pcAlternates) \
  6558. (This)->lpVtbl -> GetMaxAlternates(This,pcAlternates)
  6559. #define ISpRecoContext_SetMaxAlternates(This,cAlternates) \
  6560. (This)->lpVtbl -> SetMaxAlternates(This,cAlternates)
  6561. #define ISpRecoContext_SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx) \
  6562. (This)->lpVtbl -> SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx)
  6563. #define ISpRecoContext_GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX) \
  6564. (This)->lpVtbl -> GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX)
  6565. #define ISpRecoContext_DeserializeResult(This,pSerializedResult,ppResult) \
  6566. (This)->lpVtbl -> DeserializeResult(This,pSerializedResult,ppResult)
  6567. #define ISpRecoContext_Bookmark(This,Options,ullStreamPosition,lparamEvent) \
  6568. (This)->lpVtbl -> Bookmark(This,Options,ullStreamPosition,lparamEvent)
  6569. #define ISpRecoContext_SetAdaptationData(This,pAdaptationData,cch) \
  6570. (This)->lpVtbl -> SetAdaptationData(This,pAdaptationData,cch)
  6571. #define ISpRecoContext_Pause(This,dwReserved) \
  6572. (This)->lpVtbl -> Pause(This,dwReserved)
  6573. #define ISpRecoContext_Resume(This,dwReserved) \
  6574. (This)->lpVtbl -> Resume(This,dwReserved)
  6575. #define ISpRecoContext_SetVoice(This,pVoice,fAllowFormatChanges) \
  6576. (This)->lpVtbl -> SetVoice(This,pVoice,fAllowFormatChanges)
  6577. #define ISpRecoContext_GetVoice(This,ppVoice) \
  6578. (This)->lpVtbl -> GetVoice(This,ppVoice)
  6579. #define ISpRecoContext_SetVoicePurgeEvent(This,ullEventInterest) \
  6580. (This)->lpVtbl -> SetVoicePurgeEvent(This,ullEventInterest)
  6581. #define ISpRecoContext_GetVoicePurgeEvent(This,pullEventInterest) \
  6582. (This)->lpVtbl -> GetVoicePurgeEvent(This,pullEventInterest)
  6583. #define ISpRecoContext_SetContextState(This,eContextState) \
  6584. (This)->lpVtbl -> SetContextState(This,eContextState)
  6585. #define ISpRecoContext_GetContextState(This,peContextState) \
  6586. (This)->lpVtbl -> GetContextState(This,peContextState)
  6587. #endif /* COBJMACROS */
  6588. #endif /* C style interface */
  6589. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetRecognizer_Proxy(
  6590. ISpRecoContext * This,
  6591. /* [out] */ ISpRecognizer **ppRecognizer);
  6592. void __RPC_STUB ISpRecoContext_GetRecognizer_Stub(
  6593. IRpcStubBuffer *This,
  6594. IRpcChannelBuffer *_pRpcChannelBuffer,
  6595. PRPC_MESSAGE _pRpcMessage,
  6596. DWORD *_pdwStubPhase);
  6597. HRESULT STDMETHODCALLTYPE ISpRecoContext_CreateGrammar_Proxy(
  6598. ISpRecoContext * This,
  6599. /* [in] */ ULONGLONG ullGrammarId,
  6600. /* [out] */ ISpRecoGrammar **ppGrammar);
  6601. void __RPC_STUB ISpRecoContext_CreateGrammar_Stub(
  6602. IRpcStubBuffer *This,
  6603. IRpcChannelBuffer *_pRpcChannelBuffer,
  6604. PRPC_MESSAGE _pRpcMessage,
  6605. DWORD *_pdwStubPhase);
  6606. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetStatus_Proxy(
  6607. ISpRecoContext * This,
  6608. /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
  6609. void __RPC_STUB ISpRecoContext_GetStatus_Stub(
  6610. IRpcStubBuffer *This,
  6611. IRpcChannelBuffer *_pRpcChannelBuffer,
  6612. PRPC_MESSAGE _pRpcMessage,
  6613. DWORD *_pdwStubPhase);
  6614. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetMaxAlternates_Proxy(
  6615. ISpRecoContext * This,
  6616. /* [in] */ ULONG *pcAlternates);
  6617. void __RPC_STUB ISpRecoContext_GetMaxAlternates_Stub(
  6618. IRpcStubBuffer *This,
  6619. IRpcChannelBuffer *_pRpcChannelBuffer,
  6620. PRPC_MESSAGE _pRpcMessage,
  6621. DWORD *_pdwStubPhase);
  6622. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetMaxAlternates_Proxy(
  6623. ISpRecoContext * This,
  6624. /* [in] */ ULONG cAlternates);
  6625. void __RPC_STUB ISpRecoContext_SetMaxAlternates_Stub(
  6626. IRpcStubBuffer *This,
  6627. IRpcChannelBuffer *_pRpcChannelBuffer,
  6628. PRPC_MESSAGE _pRpcMessage,
  6629. DWORD *_pdwStubPhase);
  6630. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAudioOptions_Proxy(
  6631. ISpRecoContext * This,
  6632. /* [in] */ SPAUDIOOPTIONS Options,
  6633. /* [in] */ const GUID *pAudioFormatId,
  6634. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  6635. void __RPC_STUB ISpRecoContext_SetAudioOptions_Stub(
  6636. IRpcStubBuffer *This,
  6637. IRpcChannelBuffer *_pRpcChannelBuffer,
  6638. PRPC_MESSAGE _pRpcMessage,
  6639. DWORD *_pdwStubPhase);
  6640. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetAudioOptions_Proxy(
  6641. ISpRecoContext * This,
  6642. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6643. /* [out] */ GUID *pAudioFormatId,
  6644. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  6645. void __RPC_STUB ISpRecoContext_GetAudioOptions_Stub(
  6646. IRpcStubBuffer *This,
  6647. IRpcChannelBuffer *_pRpcChannelBuffer,
  6648. PRPC_MESSAGE _pRpcMessage,
  6649. DWORD *_pdwStubPhase);
  6650. HRESULT STDMETHODCALLTYPE ISpRecoContext_DeserializeResult_Proxy(
  6651. ISpRecoContext * This,
  6652. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6653. /* [out] */ ISpRecoResult **ppResult);
  6654. void __RPC_STUB ISpRecoContext_DeserializeResult_Stub(
  6655. IRpcStubBuffer *This,
  6656. IRpcChannelBuffer *_pRpcChannelBuffer,
  6657. PRPC_MESSAGE _pRpcMessage,
  6658. DWORD *_pdwStubPhase);
  6659. HRESULT STDMETHODCALLTYPE ISpRecoContext_Bookmark_Proxy(
  6660. ISpRecoContext * This,
  6661. /* [in] */ SPBOOKMARKOPTIONS Options,
  6662. /* [in] */ ULONGLONG ullStreamPosition,
  6663. /* [in] */ LPARAM lparamEvent);
  6664. void __RPC_STUB ISpRecoContext_Bookmark_Stub(
  6665. IRpcStubBuffer *This,
  6666. IRpcChannelBuffer *_pRpcChannelBuffer,
  6667. PRPC_MESSAGE _pRpcMessage,
  6668. DWORD *_pdwStubPhase);
  6669. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAdaptationData_Proxy(
  6670. ISpRecoContext * This,
  6671. /* [string][in] */ const WCHAR *pAdaptationData,
  6672. /* [in] */ const ULONG cch);
  6673. void __RPC_STUB ISpRecoContext_SetAdaptationData_Stub(
  6674. IRpcStubBuffer *This,
  6675. IRpcChannelBuffer *_pRpcChannelBuffer,
  6676. PRPC_MESSAGE _pRpcMessage,
  6677. DWORD *_pdwStubPhase);
  6678. HRESULT STDMETHODCALLTYPE ISpRecoContext_Pause_Proxy(
  6679. ISpRecoContext * This,
  6680. DWORD dwReserved);
  6681. void __RPC_STUB ISpRecoContext_Pause_Stub(
  6682. IRpcStubBuffer *This,
  6683. IRpcChannelBuffer *_pRpcChannelBuffer,
  6684. PRPC_MESSAGE _pRpcMessage,
  6685. DWORD *_pdwStubPhase);
  6686. HRESULT STDMETHODCALLTYPE ISpRecoContext_Resume_Proxy(
  6687. ISpRecoContext * This,
  6688. DWORD dwReserved);
  6689. void __RPC_STUB ISpRecoContext_Resume_Stub(
  6690. IRpcStubBuffer *This,
  6691. IRpcChannelBuffer *_pRpcChannelBuffer,
  6692. PRPC_MESSAGE _pRpcMessage,
  6693. DWORD *_pdwStubPhase);
  6694. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoice_Proxy(
  6695. ISpRecoContext * This,
  6696. /* [in] */ ISpVoice *pVoice,
  6697. /* [in] */ BOOL fAllowFormatChanges);
  6698. void __RPC_STUB ISpRecoContext_SetVoice_Stub(
  6699. IRpcStubBuffer *This,
  6700. IRpcChannelBuffer *_pRpcChannelBuffer,
  6701. PRPC_MESSAGE _pRpcMessage,
  6702. DWORD *_pdwStubPhase);
  6703. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoice_Proxy(
  6704. ISpRecoContext * This,
  6705. /* [out] */ ISpVoice **ppVoice);
  6706. void __RPC_STUB ISpRecoContext_GetVoice_Stub(
  6707. IRpcStubBuffer *This,
  6708. IRpcChannelBuffer *_pRpcChannelBuffer,
  6709. PRPC_MESSAGE _pRpcMessage,
  6710. DWORD *_pdwStubPhase);
  6711. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoicePurgeEvent_Proxy(
  6712. ISpRecoContext * This,
  6713. /* [in] */ ULONGLONG ullEventInterest);
  6714. void __RPC_STUB ISpRecoContext_SetVoicePurgeEvent_Stub(
  6715. IRpcStubBuffer *This,
  6716. IRpcChannelBuffer *_pRpcChannelBuffer,
  6717. PRPC_MESSAGE _pRpcMessage,
  6718. DWORD *_pdwStubPhase);
  6719. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoicePurgeEvent_Proxy(
  6720. ISpRecoContext * This,
  6721. /* [out] */ ULONGLONG *pullEventInterest);
  6722. void __RPC_STUB ISpRecoContext_GetVoicePurgeEvent_Stub(
  6723. IRpcStubBuffer *This,
  6724. IRpcChannelBuffer *_pRpcChannelBuffer,
  6725. PRPC_MESSAGE _pRpcMessage,
  6726. DWORD *_pdwStubPhase);
  6727. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetContextState_Proxy(
  6728. ISpRecoContext * This,
  6729. /* [in] */ SPCONTEXTSTATE eContextState);
  6730. void __RPC_STUB ISpRecoContext_SetContextState_Stub(
  6731. IRpcStubBuffer *This,
  6732. IRpcChannelBuffer *_pRpcChannelBuffer,
  6733. PRPC_MESSAGE _pRpcMessage,
  6734. DWORD *_pdwStubPhase);
  6735. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetContextState_Proxy(
  6736. ISpRecoContext * This,
  6737. /* [in] */ SPCONTEXTSTATE *peContextState);
  6738. void __RPC_STUB ISpRecoContext_GetContextState_Stub(
  6739. IRpcStubBuffer *This,
  6740. IRpcChannelBuffer *_pRpcChannelBuffer,
  6741. PRPC_MESSAGE _pRpcMessage,
  6742. DWORD *_pdwStubPhase);
  6743. #endif /* __ISpRecoContext_INTERFACE_DEFINED__ */
  6744. #ifndef __ISpProperties_INTERFACE_DEFINED__
  6745. #define __ISpProperties_INTERFACE_DEFINED__
  6746. /* interface ISpProperties */
  6747. /* [restricted][local][unique][helpstring][uuid][object] */
  6748. EXTERN_C const IID IID_ISpProperties;
  6749. #if defined(__cplusplus) && !defined(CINTERFACE)
  6750. MIDL_INTERFACE("5B4FB971-B115-4DE1-AD97-E482E3BF6EE4")
  6751. ISpProperties : public IUnknown
  6752. {
  6753. public:
  6754. virtual HRESULT STDMETHODCALLTYPE SetPropertyNum(
  6755. /* [in] */ const WCHAR *pName,
  6756. /* [in] */ LONG lValue) = 0;
  6757. virtual HRESULT STDMETHODCALLTYPE GetPropertyNum(
  6758. /* [in] */ const WCHAR *pName,
  6759. /* [out] */ LONG *plValue) = 0;
  6760. virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
  6761. /* [in] */ const WCHAR *pName,
  6762. /* [in] */ const WCHAR *pValue) = 0;
  6763. virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
  6764. /* [in] */ const WCHAR *pName,
  6765. /* [out] */ WCHAR **ppCoMemValue) = 0;
  6766. };
  6767. #else /* C style interface */
  6768. typedef struct ISpPropertiesVtbl
  6769. {
  6770. BEGIN_INTERFACE
  6771. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6772. ISpProperties * This,
  6773. /* [in] */ REFIID riid,
  6774. /* [iid_is][out] */ void **ppvObject);
  6775. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6776. ISpProperties * This);
  6777. ULONG ( STDMETHODCALLTYPE *Release )(
  6778. ISpProperties * This);
  6779. HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
  6780. ISpProperties * This,
  6781. /* [in] */ const WCHAR *pName,
  6782. /* [in] */ LONG lValue);
  6783. HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
  6784. ISpProperties * This,
  6785. /* [in] */ const WCHAR *pName,
  6786. /* [out] */ LONG *plValue);
  6787. HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  6788. ISpProperties * This,
  6789. /* [in] */ const WCHAR *pName,
  6790. /* [in] */ const WCHAR *pValue);
  6791. HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  6792. ISpProperties * This,
  6793. /* [in] */ const WCHAR *pName,
  6794. /* [out] */ WCHAR **ppCoMemValue);
  6795. END_INTERFACE
  6796. } ISpPropertiesVtbl;
  6797. interface ISpProperties
  6798. {
  6799. CONST_VTBL struct ISpPropertiesVtbl *lpVtbl;
  6800. };
  6801. #ifdef COBJMACROS
  6802. #define ISpProperties_QueryInterface(This,riid,ppvObject) \
  6803. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6804. #define ISpProperties_AddRef(This) \
  6805. (This)->lpVtbl -> AddRef(This)
  6806. #define ISpProperties_Release(This) \
  6807. (This)->lpVtbl -> Release(This)
  6808. #define ISpProperties_SetPropertyNum(This,pName,lValue) \
  6809. (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
  6810. #define ISpProperties_GetPropertyNum(This,pName,plValue) \
  6811. (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
  6812. #define ISpProperties_SetPropertyString(This,pName,pValue) \
  6813. (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
  6814. #define ISpProperties_GetPropertyString(This,pName,ppCoMemValue) \
  6815. (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
  6816. #endif /* COBJMACROS */
  6817. #endif /* C style interface */
  6818. HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyNum_Proxy(
  6819. ISpProperties * This,
  6820. /* [in] */ const WCHAR *pName,
  6821. /* [in] */ LONG lValue);
  6822. void __RPC_STUB ISpProperties_SetPropertyNum_Stub(
  6823. IRpcStubBuffer *This,
  6824. IRpcChannelBuffer *_pRpcChannelBuffer,
  6825. PRPC_MESSAGE _pRpcMessage,
  6826. DWORD *_pdwStubPhase);
  6827. HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyNum_Proxy(
  6828. ISpProperties * This,
  6829. /* [in] */ const WCHAR *pName,
  6830. /* [out] */ LONG *plValue);
  6831. void __RPC_STUB ISpProperties_GetPropertyNum_Stub(
  6832. IRpcStubBuffer *This,
  6833. IRpcChannelBuffer *_pRpcChannelBuffer,
  6834. PRPC_MESSAGE _pRpcMessage,
  6835. DWORD *_pdwStubPhase);
  6836. HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyString_Proxy(
  6837. ISpProperties * This,
  6838. /* [in] */ const WCHAR *pName,
  6839. /* [in] */ const WCHAR *pValue);
  6840. void __RPC_STUB ISpProperties_SetPropertyString_Stub(
  6841. IRpcStubBuffer *This,
  6842. IRpcChannelBuffer *_pRpcChannelBuffer,
  6843. PRPC_MESSAGE _pRpcMessage,
  6844. DWORD *_pdwStubPhase);
  6845. HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyString_Proxy(
  6846. ISpProperties * This,
  6847. /* [in] */ const WCHAR *pName,
  6848. /* [out] */ WCHAR **ppCoMemValue);
  6849. void __RPC_STUB ISpProperties_GetPropertyString_Stub(
  6850. IRpcStubBuffer *This,
  6851. IRpcChannelBuffer *_pRpcChannelBuffer,
  6852. PRPC_MESSAGE _pRpcMessage,
  6853. DWORD *_pdwStubPhase);
  6854. #endif /* __ISpProperties_INTERFACE_DEFINED__ */
  6855. /* interface __MIDL_itf_sapi_0287 */
  6856. /* [local] */
  6857. #define SP_MAX_LANGIDS ( 20 )
  6858. typedef /* [hidden][restricted] */ struct SPRECOGNIZERSTATUS
  6859. {
  6860. SPAUDIOSTATUS AudioStatus;
  6861. ULONGLONG ullRecognitionStreamPos;
  6862. ULONG ulStreamNumber;
  6863. ULONG ulNumActive;
  6864. CLSID clsidEngine;
  6865. ULONG cLangIDs;
  6866. WORD aLangID[ 20 ];
  6867. DWORD dwReserved1;
  6868. DWORD dwReserved2;
  6869. } SPRECOGNIZERSTATUS;
  6870. typedef /* [hidden] */
  6871. enum SPWAVEFORMATTYPE
  6872. { SPWF_INPUT = 0,
  6873. SPWF_SRENGINE = SPWF_INPUT + 1
  6874. } SPSTREAMFORMATTYPE;
  6875. typedef /* [hidden] */
  6876. enum SPRECOSTATE
  6877. { SPRST_INACTIVE = 0,
  6878. SPRST_ACTIVE = SPRST_INACTIVE + 1,
  6879. SPRST_ACTIVE_ALWAYS = SPRST_ACTIVE + 1,
  6880. SPRST_INACTIVE_WITH_PURGE = SPRST_ACTIVE_ALWAYS + 1,
  6881. SPRST_NUM_STATES = SPRST_INACTIVE_WITH_PURGE + 1
  6882. } SPRECOSTATE;
  6883. extern RPC_IF_HANDLE __MIDL_itf_sapi_0287_v0_0_c_ifspec;
  6884. extern RPC_IF_HANDLE __MIDL_itf_sapi_0287_v0_0_s_ifspec;
  6885. #ifndef __ISpRecognizer_INTERFACE_DEFINED__
  6886. #define __ISpRecognizer_INTERFACE_DEFINED__
  6887. /* interface ISpRecognizer */
  6888. /* [restricted][unique][helpstring][uuid][object] */
  6889. EXTERN_C const IID IID_ISpRecognizer;
  6890. #if defined(__cplusplus) && !defined(CINTERFACE)
  6891. MIDL_INTERFACE("C2B5F241-DAA0-4507-9E16-5A1EAA2B7A5C")
  6892. ISpRecognizer : public ISpProperties
  6893. {
  6894. public:
  6895. virtual HRESULT STDMETHODCALLTYPE SetRecognizer(
  6896. /* [in] */ ISpObjectToken *pRecognizer) = 0;
  6897. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  6898. /* [out] */ ISpObjectToken **ppRecognizer) = 0;
  6899. virtual HRESULT STDMETHODCALLTYPE SetInput(
  6900. /* [in] */ IUnknown *pUnkInput,
  6901. /* [in] */ BOOL fAllowFormatChanges) = 0;
  6902. virtual HRESULT STDMETHODCALLTYPE GetInputObjectToken(
  6903. /* [out] */ ISpObjectToken **ppToken) = 0;
  6904. virtual HRESULT STDMETHODCALLTYPE GetInputStream(
  6905. /* [out] */ ISpStreamFormat **ppStream) = 0;
  6906. virtual HRESULT STDMETHODCALLTYPE CreateRecoContext(
  6907. /* [out] */ ISpRecoContext **ppNewCtxt) = 0;
  6908. virtual HRESULT STDMETHODCALLTYPE GetRecoProfile(
  6909. /* [out] */ ISpObjectToken **ppToken) = 0;
  6910. virtual HRESULT STDMETHODCALLTYPE SetRecoProfile(
  6911. /* [in] */ ISpObjectToken *pToken) = 0;
  6912. virtual HRESULT STDMETHODCALLTYPE IsSharedInstance( void) = 0;
  6913. virtual HRESULT STDMETHODCALLTYPE GetRecoState(
  6914. /* [out] */ SPRECOSTATE *pState) = 0;
  6915. virtual HRESULT STDMETHODCALLTYPE SetRecoState(
  6916. /* [in] */ SPRECOSTATE NewState) = 0;
  6917. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  6918. /* [out] */ SPRECOGNIZERSTATUS *pStatus) = 0;
  6919. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  6920. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  6921. /* [out] */ GUID *pFormatId,
  6922. /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
  6923. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  6924. /* [in] */ const WCHAR *pszTypeOfUI,
  6925. /* [in] */ void *pvExtraData,
  6926. /* [in] */ ULONG cbExtraData,
  6927. /* [out] */ BOOL *pfSupported) = 0;
  6928. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  6929. /* [in] */ HWND hwndParent,
  6930. /* [in] */ const WCHAR *pszTitle,
  6931. /* [in] */ const WCHAR *pszTypeOfUI,
  6932. /* [in] */ void *pvExtraData,
  6933. /* [in] */ ULONG cbExtraData) = 0;
  6934. virtual HRESULT STDMETHODCALLTYPE EmulateRecognition(
  6935. /* [in] */ ISpPhrase *pPhrase) = 0;
  6936. };
  6937. #else /* C style interface */
  6938. typedef struct ISpRecognizerVtbl
  6939. {
  6940. BEGIN_INTERFACE
  6941. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6942. ISpRecognizer * This,
  6943. /* [in] */ REFIID riid,
  6944. /* [iid_is][out] */ void **ppvObject);
  6945. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6946. ISpRecognizer * This);
  6947. ULONG ( STDMETHODCALLTYPE *Release )(
  6948. ISpRecognizer * This);
  6949. HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
  6950. ISpRecognizer * This,
  6951. /* [in] */ const WCHAR *pName,
  6952. /* [in] */ LONG lValue);
  6953. HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
  6954. ISpRecognizer * This,
  6955. /* [in] */ const WCHAR *pName,
  6956. /* [out] */ LONG *plValue);
  6957. HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  6958. ISpRecognizer * This,
  6959. /* [in] */ const WCHAR *pName,
  6960. /* [in] */ const WCHAR *pValue);
  6961. HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  6962. ISpRecognizer * This,
  6963. /* [in] */ const WCHAR *pName,
  6964. /* [out] */ WCHAR **ppCoMemValue);
  6965. HRESULT ( STDMETHODCALLTYPE *SetRecognizer )(
  6966. ISpRecognizer * This,
  6967. /* [in] */ ISpObjectToken *pRecognizer);
  6968. HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
  6969. ISpRecognizer * This,
  6970. /* [out] */ ISpObjectToken **ppRecognizer);
  6971. HRESULT ( STDMETHODCALLTYPE *SetInput )(
  6972. ISpRecognizer * This,
  6973. /* [in] */ IUnknown *pUnkInput,
  6974. /* [in] */ BOOL fAllowFormatChanges);
  6975. HRESULT ( STDMETHODCALLTYPE *GetInputObjectToken )(
  6976. ISpRecognizer * This,
  6977. /* [out] */ ISpObjectToken **ppToken);
  6978. HRESULT ( STDMETHODCALLTYPE *GetInputStream )(
  6979. ISpRecognizer * This,
  6980. /* [out] */ ISpStreamFormat **ppStream);
  6981. HRESULT ( STDMETHODCALLTYPE *CreateRecoContext )(
  6982. ISpRecognizer * This,
  6983. /* [out] */ ISpRecoContext **ppNewCtxt);
  6984. HRESULT ( STDMETHODCALLTYPE *GetRecoProfile )(
  6985. ISpRecognizer * This,
  6986. /* [out] */ ISpObjectToken **ppToken);
  6987. HRESULT ( STDMETHODCALLTYPE *SetRecoProfile )(
  6988. ISpRecognizer * This,
  6989. /* [in] */ ISpObjectToken *pToken);
  6990. HRESULT ( STDMETHODCALLTYPE *IsSharedInstance )(
  6991. ISpRecognizer * This);
  6992. HRESULT ( STDMETHODCALLTYPE *GetRecoState )(
  6993. ISpRecognizer * This,
  6994. /* [out] */ SPRECOSTATE *pState);
  6995. HRESULT ( STDMETHODCALLTYPE *SetRecoState )(
  6996. ISpRecognizer * This,
  6997. /* [in] */ SPRECOSTATE NewState);
  6998. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  6999. ISpRecognizer * This,
  7000. /* [out] */ SPRECOGNIZERSTATUS *pStatus);
  7001. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  7002. ISpRecognizer * This,
  7003. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  7004. /* [out] */ GUID *pFormatId,
  7005. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  7006. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  7007. ISpRecognizer * This,
  7008. /* [in] */ const WCHAR *pszTypeOfUI,
  7009. /* [in] */ void *pvExtraData,
  7010. /* [in] */ ULONG cbExtraData,
  7011. /* [out] */ BOOL *pfSupported);
  7012. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  7013. ISpRecognizer * This,
  7014. /* [in] */ HWND hwndParent,
  7015. /* [in] */ const WCHAR *pszTitle,
  7016. /* [in] */ const WCHAR *pszTypeOfUI,
  7017. /* [in] */ void *pvExtraData,
  7018. /* [in] */ ULONG cbExtraData);
  7019. HRESULT ( STDMETHODCALLTYPE *EmulateRecognition )(
  7020. ISpRecognizer * This,
  7021. /* [in] */ ISpPhrase *pPhrase);
  7022. END_INTERFACE
  7023. } ISpRecognizerVtbl;
  7024. interface ISpRecognizer
  7025. {
  7026. CONST_VTBL struct ISpRecognizerVtbl *lpVtbl;
  7027. };
  7028. #ifdef COBJMACROS
  7029. #define ISpRecognizer_QueryInterface(This,riid,ppvObject) \
  7030. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7031. #define ISpRecognizer_AddRef(This) \
  7032. (This)->lpVtbl -> AddRef(This)
  7033. #define ISpRecognizer_Release(This) \
  7034. (This)->lpVtbl -> Release(This)
  7035. #define ISpRecognizer_SetPropertyNum(This,pName,lValue) \
  7036. (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
  7037. #define ISpRecognizer_GetPropertyNum(This,pName,plValue) \
  7038. (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
  7039. #define ISpRecognizer_SetPropertyString(This,pName,pValue) \
  7040. (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
  7041. #define ISpRecognizer_GetPropertyString(This,pName,ppCoMemValue) \
  7042. (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
  7043. #define ISpRecognizer_SetRecognizer(This,pRecognizer) \
  7044. (This)->lpVtbl -> SetRecognizer(This,pRecognizer)
  7045. #define ISpRecognizer_GetRecognizer(This,ppRecognizer) \
  7046. (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
  7047. #define ISpRecognizer_SetInput(This,pUnkInput,fAllowFormatChanges) \
  7048. (This)->lpVtbl -> SetInput(This,pUnkInput,fAllowFormatChanges)
  7049. #define ISpRecognizer_GetInputObjectToken(This,ppToken) \
  7050. (This)->lpVtbl -> GetInputObjectToken(This,ppToken)
  7051. #define ISpRecognizer_GetInputStream(This,ppStream) \
  7052. (This)->lpVtbl -> GetInputStream(This,ppStream)
  7053. #define ISpRecognizer_CreateRecoContext(This,ppNewCtxt) \
  7054. (This)->lpVtbl -> CreateRecoContext(This,ppNewCtxt)
  7055. #define ISpRecognizer_GetRecoProfile(This,ppToken) \
  7056. (This)->lpVtbl -> GetRecoProfile(This,ppToken)
  7057. #define ISpRecognizer_SetRecoProfile(This,pToken) \
  7058. (This)->lpVtbl -> SetRecoProfile(This,pToken)
  7059. #define ISpRecognizer_IsSharedInstance(This) \
  7060. (This)->lpVtbl -> IsSharedInstance(This)
  7061. #define ISpRecognizer_GetRecoState(This,pState) \
  7062. (This)->lpVtbl -> GetRecoState(This,pState)
  7063. #define ISpRecognizer_SetRecoState(This,NewState) \
  7064. (This)->lpVtbl -> SetRecoState(This,NewState)
  7065. #define ISpRecognizer_GetStatus(This,pStatus) \
  7066. (This)->lpVtbl -> GetStatus(This,pStatus)
  7067. #define ISpRecognizer_GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX) \
  7068. (This)->lpVtbl -> GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX)
  7069. #define ISpRecognizer_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) \
  7070. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  7071. #define ISpRecognizer_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) \
  7072. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  7073. #define ISpRecognizer_EmulateRecognition(This,pPhrase) \
  7074. (This)->lpVtbl -> EmulateRecognition(This,pPhrase)
  7075. #endif /* COBJMACROS */
  7076. #endif /* C style interface */
  7077. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecognizer_Proxy(
  7078. ISpRecognizer * This,
  7079. /* [in] */ ISpObjectToken *pRecognizer);
  7080. void __RPC_STUB ISpRecognizer_SetRecognizer_Stub(
  7081. IRpcStubBuffer *This,
  7082. IRpcChannelBuffer *_pRpcChannelBuffer,
  7083. PRPC_MESSAGE _pRpcMessage,
  7084. DWORD *_pdwStubPhase);
  7085. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecognizer_Proxy(
  7086. ISpRecognizer * This,
  7087. /* [out] */ ISpObjectToken **ppRecognizer);
  7088. void __RPC_STUB ISpRecognizer_GetRecognizer_Stub(
  7089. IRpcStubBuffer *This,
  7090. IRpcChannelBuffer *_pRpcChannelBuffer,
  7091. PRPC_MESSAGE _pRpcMessage,
  7092. DWORD *_pdwStubPhase);
  7093. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetInput_Proxy(
  7094. ISpRecognizer * This,
  7095. /* [in] */ IUnknown *pUnkInput,
  7096. /* [in] */ BOOL fAllowFormatChanges);
  7097. void __RPC_STUB ISpRecognizer_SetInput_Stub(
  7098. IRpcStubBuffer *This,
  7099. IRpcChannelBuffer *_pRpcChannelBuffer,
  7100. PRPC_MESSAGE _pRpcMessage,
  7101. DWORD *_pdwStubPhase);
  7102. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputObjectToken_Proxy(
  7103. ISpRecognizer * This,
  7104. /* [out] */ ISpObjectToken **ppToken);
  7105. void __RPC_STUB ISpRecognizer_GetInputObjectToken_Stub(
  7106. IRpcStubBuffer *This,
  7107. IRpcChannelBuffer *_pRpcChannelBuffer,
  7108. PRPC_MESSAGE _pRpcMessage,
  7109. DWORD *_pdwStubPhase);
  7110. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputStream_Proxy(
  7111. ISpRecognizer * This,
  7112. /* [out] */ ISpStreamFormat **ppStream);
  7113. void __RPC_STUB ISpRecognizer_GetInputStream_Stub(
  7114. IRpcStubBuffer *This,
  7115. IRpcChannelBuffer *_pRpcChannelBuffer,
  7116. PRPC_MESSAGE _pRpcMessage,
  7117. DWORD *_pdwStubPhase);
  7118. HRESULT STDMETHODCALLTYPE ISpRecognizer_CreateRecoContext_Proxy(
  7119. ISpRecognizer * This,
  7120. /* [out] */ ISpRecoContext **ppNewCtxt);
  7121. void __RPC_STUB ISpRecognizer_CreateRecoContext_Stub(
  7122. IRpcStubBuffer *This,
  7123. IRpcChannelBuffer *_pRpcChannelBuffer,
  7124. PRPC_MESSAGE _pRpcMessage,
  7125. DWORD *_pdwStubPhase);
  7126. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoProfile_Proxy(
  7127. ISpRecognizer * This,
  7128. /* [out] */ ISpObjectToken **ppToken);
  7129. void __RPC_STUB ISpRecognizer_GetRecoProfile_Stub(
  7130. IRpcStubBuffer *This,
  7131. IRpcChannelBuffer *_pRpcChannelBuffer,
  7132. PRPC_MESSAGE _pRpcMessage,
  7133. DWORD *_pdwStubPhase);
  7134. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoProfile_Proxy(
  7135. ISpRecognizer * This,
  7136. /* [in] */ ISpObjectToken *pToken);
  7137. void __RPC_STUB ISpRecognizer_SetRecoProfile_Stub(
  7138. IRpcStubBuffer *This,
  7139. IRpcChannelBuffer *_pRpcChannelBuffer,
  7140. PRPC_MESSAGE _pRpcMessage,
  7141. DWORD *_pdwStubPhase);
  7142. HRESULT STDMETHODCALLTYPE ISpRecognizer_IsSharedInstance_Proxy(
  7143. ISpRecognizer * This);
  7144. void __RPC_STUB ISpRecognizer_IsSharedInstance_Stub(
  7145. IRpcStubBuffer *This,
  7146. IRpcChannelBuffer *_pRpcChannelBuffer,
  7147. PRPC_MESSAGE _pRpcMessage,
  7148. DWORD *_pdwStubPhase);
  7149. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoState_Proxy(
  7150. ISpRecognizer * This,
  7151. /* [out] */ SPRECOSTATE *pState);
  7152. void __RPC_STUB ISpRecognizer_GetRecoState_Stub(
  7153. IRpcStubBuffer *This,
  7154. IRpcChannelBuffer *_pRpcChannelBuffer,
  7155. PRPC_MESSAGE _pRpcMessage,
  7156. DWORD *_pdwStubPhase);
  7157. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoState_Proxy(
  7158. ISpRecognizer * This,
  7159. /* [in] */ SPRECOSTATE NewState);
  7160. void __RPC_STUB ISpRecognizer_SetRecoState_Stub(
  7161. IRpcStubBuffer *This,
  7162. IRpcChannelBuffer *_pRpcChannelBuffer,
  7163. PRPC_MESSAGE _pRpcMessage,
  7164. DWORD *_pdwStubPhase);
  7165. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetStatus_Proxy(
  7166. ISpRecognizer * This,
  7167. /* [out] */ SPRECOGNIZERSTATUS *pStatus);
  7168. void __RPC_STUB ISpRecognizer_GetStatus_Stub(
  7169. IRpcStubBuffer *This,
  7170. IRpcChannelBuffer *_pRpcChannelBuffer,
  7171. PRPC_MESSAGE _pRpcMessage,
  7172. DWORD *_pdwStubPhase);
  7173. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetFormat_Proxy(
  7174. ISpRecognizer * This,
  7175. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  7176. /* [out] */ GUID *pFormatId,
  7177. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  7178. void __RPC_STUB ISpRecognizer_GetFormat_Stub(
  7179. IRpcStubBuffer *This,
  7180. IRpcChannelBuffer *_pRpcChannelBuffer,
  7181. PRPC_MESSAGE _pRpcMessage,
  7182. DWORD *_pdwStubPhase);
  7183. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_IsUISupported_Proxy(
  7184. ISpRecognizer * This,
  7185. /* [in] */ const WCHAR *pszTypeOfUI,
  7186. /* [in] */ void *pvExtraData,
  7187. /* [in] */ ULONG cbExtraData,
  7188. /* [out] */ BOOL *pfSupported);
  7189. void __RPC_STUB ISpRecognizer_IsUISupported_Stub(
  7190. IRpcStubBuffer *This,
  7191. IRpcChannelBuffer *_pRpcChannelBuffer,
  7192. PRPC_MESSAGE _pRpcMessage,
  7193. DWORD *_pdwStubPhase);
  7194. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_DisplayUI_Proxy(
  7195. ISpRecognizer * This,
  7196. /* [in] */ HWND hwndParent,
  7197. /* [in] */ const WCHAR *pszTitle,
  7198. /* [in] */ const WCHAR *pszTypeOfUI,
  7199. /* [in] */ void *pvExtraData,
  7200. /* [in] */ ULONG cbExtraData);
  7201. void __RPC_STUB ISpRecognizer_DisplayUI_Stub(
  7202. IRpcStubBuffer *This,
  7203. IRpcChannelBuffer *_pRpcChannelBuffer,
  7204. PRPC_MESSAGE _pRpcMessage,
  7205. DWORD *_pdwStubPhase);
  7206. HRESULT STDMETHODCALLTYPE ISpRecognizer_EmulateRecognition_Proxy(
  7207. ISpRecognizer * This,
  7208. /* [in] */ ISpPhrase *pPhrase);
  7209. void __RPC_STUB ISpRecognizer_EmulateRecognition_Stub(
  7210. IRpcStubBuffer *This,
  7211. IRpcChannelBuffer *_pRpcChannelBuffer,
  7212. PRPC_MESSAGE _pRpcMessage,
  7213. DWORD *_pdwStubPhase);
  7214. #endif /* __ISpRecognizer_INTERFACE_DEFINED__ */
  7215. #ifndef __SpeechLib_LIBRARY_DEFINED__
  7216. #define __SpeechLib_LIBRARY_DEFINED__
  7217. /* library SpeechLib */
  7218. /* [version][uuid][helpstring] */
  7219. typedef long SpeechLanguageId;
  7220. #define __SpeechStringConstants_MODULE_DEFINED__
  7221. typedef /* [hidden] */
  7222. enum DISPID_SpeechDataKey
  7223. { DISPID_SDKSetBinaryValue = 1,
  7224. DISPID_SDKGetBinaryValue = DISPID_SDKSetBinaryValue + 1,
  7225. DISPID_SDKSetStringValue = DISPID_SDKGetBinaryValue + 1,
  7226. DISPID_SDKGetStringValue = DISPID_SDKSetStringValue + 1,
  7227. DISPID_SDKSetLongValue = DISPID_SDKGetStringValue + 1,
  7228. DISPID_SDKGetlongValue = DISPID_SDKSetLongValue + 1,
  7229. DISPID_SDKOpenKey = DISPID_SDKGetlongValue + 1,
  7230. DISPID_SDKCreateKey = DISPID_SDKOpenKey + 1,
  7231. DISPID_SDKDeleteKey = DISPID_SDKCreateKey + 1,
  7232. DISPID_SDKDeleteValue = DISPID_SDKDeleteKey + 1,
  7233. DISPID_SDKEnumKeys = DISPID_SDKDeleteValue + 1,
  7234. DISPID_SDKEnumValues = DISPID_SDKEnumKeys + 1
  7235. } DISPID_SpeechDataKey;
  7236. typedef /* [hidden] */
  7237. enum DISPID_SpeechObjectToken
  7238. { DISPID_SOTId = 1,
  7239. DISPID_SOTDataKey = DISPID_SOTId + 1,
  7240. DISPID_SOTCategory = DISPID_SOTDataKey + 1,
  7241. DISPID_SOTGetDescription = DISPID_SOTCategory + 1,
  7242. DISPID_SOTSetId = DISPID_SOTGetDescription + 1,
  7243. DISPID_SOTGetAttribute = DISPID_SOTSetId + 1,
  7244. DISPID_SOTCreateInstance = DISPID_SOTGetAttribute + 1,
  7245. DISPID_SOTRemove = DISPID_SOTCreateInstance + 1,
  7246. DISPID_SOTGetStorageFileName = DISPID_SOTRemove + 1,
  7247. DISPID_SOTRemoveStorageFileName = DISPID_SOTGetStorageFileName + 1,
  7248. DISPID_SOTIsUISupported = DISPID_SOTRemoveStorageFileName + 1,
  7249. DISPID_SOTDisplayUI = DISPID_SOTIsUISupported + 1,
  7250. DISPID_SOTMatchesAttributes = DISPID_SOTDisplayUI + 1
  7251. } DISPID_SpeechObjectToken;
  7252. typedef
  7253. enum SpeechDataKeyLocation
  7254. { SDKLDefaultLocation = SPDKL_DefaultLocation,
  7255. SDKLCurrentUser = SPDKL_CurrentUser,
  7256. SDKLLocalMachine = SPDKL_LocalMachine,
  7257. SDKLCurrentConfig = SPDKL_CurrentConfig
  7258. } SpeechDataKeyLocation;
  7259. typedef
  7260. enum SpeechTokenContext
  7261. { STCInprocServer = CLSCTX_INPROC_SERVER,
  7262. STCInprocHandler = CLSCTX_INPROC_HANDLER,
  7263. STCLocalServer = CLSCTX_LOCAL_SERVER,
  7264. STCRemoteServer = CLSCTX_REMOTE_SERVER,
  7265. STCAll = CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER
  7266. } SpeechTokenContext;
  7267. typedef
  7268. enum SpeechTokenShellFolder
  7269. { STSF_AppData = 0x1a,
  7270. STSF_LocalAppData = 0x1c,
  7271. STSF_CommonAppData = 0x23,
  7272. STSF_FlagCreate = 0x8000
  7273. } SpeechTokenShellFolder;
  7274. typedef /* [hidden] */
  7275. enum DISPID_SpeechObjectTokens
  7276. { DISPID_SOTsCount = 1,
  7277. DISPID_SOTsItem = DISPID_VALUE,
  7278. DISPID_SOTs_NewEnum = DISPID_NEWENUM
  7279. } DISPID_SpeechObjectTokens;
  7280. typedef /* [hidden] */
  7281. enum DISPID_SpeechObjectTokenCategory
  7282. { DISPID_SOTCId = 1,
  7283. DISPID_SOTCDefault = DISPID_SOTCId + 1,
  7284. DISPID_SOTCSetId = DISPID_SOTCDefault + 1,
  7285. DISPID_SOTCGetDataKey = DISPID_SOTCSetId + 1,
  7286. DISPID_SOTCEnumerateTokens = DISPID_SOTCGetDataKey + 1
  7287. } DISPID_SpeechObjectTokenCategory;
  7288. typedef
  7289. enum SpeechAudioFormatType
  7290. { SAFTDefault = -1,
  7291. SAFTNoAssignedFormat = 0,
  7292. SAFTText = SAFTNoAssignedFormat + 1,
  7293. SAFTNonStandardFormat = SAFTText + 1,
  7294. SAFTExtendedAudioFormat = SAFTNonStandardFormat + 1,
  7295. SAFT8kHz8BitMono = SAFTExtendedAudioFormat + 1,
  7296. SAFT8kHz8BitStereo = SAFT8kHz8BitMono + 1,
  7297. SAFT8kHz16BitMono = SAFT8kHz8BitStereo + 1,
  7298. SAFT8kHz16BitStereo = SAFT8kHz16BitMono + 1,
  7299. SAFT11kHz8BitMono = SAFT8kHz16BitStereo + 1,
  7300. SAFT11kHz8BitStereo = SAFT11kHz8BitMono + 1,
  7301. SAFT11kHz16BitMono = SAFT11kHz8BitStereo + 1,
  7302. SAFT11kHz16BitStereo = SAFT11kHz16BitMono + 1,
  7303. SAFT12kHz8BitMono = SAFT11kHz16BitStereo + 1,
  7304. SAFT12kHz8BitStereo = SAFT12kHz8BitMono + 1,
  7305. SAFT12kHz16BitMono = SAFT12kHz8BitStereo + 1,
  7306. SAFT12kHz16BitStereo = SAFT12kHz16BitMono + 1,
  7307. SAFT16kHz8BitMono = SAFT12kHz16BitStereo + 1,
  7308. SAFT16kHz8BitStereo = SAFT16kHz8BitMono + 1,
  7309. SAFT16kHz16BitMono = SAFT16kHz8BitStereo + 1,
  7310. SAFT16kHz16BitStereo = SAFT16kHz16BitMono + 1,
  7311. SAFT22kHz8BitMono = SAFT16kHz16BitStereo + 1,
  7312. SAFT22kHz8BitStereo = SAFT22kHz8BitMono + 1,
  7313. SAFT22kHz16BitMono = SAFT22kHz8BitStereo + 1,
  7314. SAFT22kHz16BitStereo = SAFT22kHz16BitMono + 1,
  7315. SAFT24kHz8BitMono = SAFT22kHz16BitStereo + 1,
  7316. SAFT24kHz8BitStereo = SAFT24kHz8BitMono + 1,
  7317. SAFT24kHz16BitMono = SAFT24kHz8BitStereo + 1,
  7318. SAFT24kHz16BitStereo = SAFT24kHz16BitMono + 1,
  7319. SAFT32kHz8BitMono = SAFT24kHz16BitStereo + 1,
  7320. SAFT32kHz8BitStereo = SAFT32kHz8BitMono + 1,
  7321. SAFT32kHz16BitMono = SAFT32kHz8BitStereo + 1,
  7322. SAFT32kHz16BitStereo = SAFT32kHz16BitMono + 1,
  7323. SAFT44kHz8BitMono = SAFT32kHz16BitStereo + 1,
  7324. SAFT44kHz8BitStereo = SAFT44kHz8BitMono + 1,
  7325. SAFT44kHz16BitMono = SAFT44kHz8BitStereo + 1,
  7326. SAFT44kHz16BitStereo = SAFT44kHz16BitMono + 1,
  7327. SAFT48kHz8BitMono = SAFT44kHz16BitStereo + 1,
  7328. SAFT48kHz8BitStereo = SAFT48kHz8BitMono + 1,
  7329. SAFT48kHz16BitMono = SAFT48kHz8BitStereo + 1,
  7330. SAFT48kHz16BitStereo = SAFT48kHz16BitMono + 1,
  7331. SAFTTrueSpeech_8kHz1BitMono = SAFT48kHz16BitStereo + 1,
  7332. SAFTCCITT_ALaw_8kHzMono = SAFTTrueSpeech_8kHz1BitMono + 1,
  7333. SAFTCCITT_ALaw_8kHzStereo = SAFTCCITT_ALaw_8kHzMono + 1,
  7334. SAFTCCITT_ALaw_11kHzMono = SAFTCCITT_ALaw_8kHzStereo + 1,
  7335. SAFTCCITT_ALaw_11kHzStereo = SAFTCCITT_ALaw_11kHzMono + 1,
  7336. SAFTCCITT_ALaw_22kHzMono = SAFTCCITT_ALaw_11kHzStereo + 1,
  7337. SAFTCCITT_ALaw_22kHzStereo = SAFTCCITT_ALaw_22kHzMono + 1,
  7338. SAFTCCITT_ALaw_44kHzMono = SAFTCCITT_ALaw_22kHzStereo + 1,
  7339. SAFTCCITT_ALaw_44kHzStereo = SAFTCCITT_ALaw_44kHzMono + 1,
  7340. SAFTCCITT_uLaw_8kHzMono = SAFTCCITT_ALaw_44kHzStereo + 1,
  7341. SAFTCCITT_uLaw_8kHzStereo = SAFTCCITT_uLaw_8kHzMono + 1,
  7342. SAFTCCITT_uLaw_11kHzMono = SAFTCCITT_uLaw_8kHzStereo + 1,
  7343. SAFTCCITT_uLaw_11kHzStereo = SAFTCCITT_uLaw_11kHzMono + 1,
  7344. SAFTCCITT_uLaw_22kHzMono = SAFTCCITT_uLaw_11kHzStereo + 1,
  7345. SAFTCCITT_uLaw_22kHzStereo = SAFTCCITT_uLaw_22kHzMono + 1,
  7346. SAFTCCITT_uLaw_44kHzMono = SAFTCCITT_uLaw_22kHzStereo + 1,
  7347. SAFTCCITT_uLaw_44kHzStereo = SAFTCCITT_uLaw_44kHzMono + 1,
  7348. SAFTADPCM_8kHzMono = SAFTCCITT_uLaw_44kHzStereo + 1,
  7349. SAFTADPCM_8kHzStereo = SAFTADPCM_8kHzMono + 1,
  7350. SAFTADPCM_11kHzMono = SAFTADPCM_8kHzStereo + 1,
  7351. SAFTADPCM_11kHzStereo = SAFTADPCM_11kHzMono + 1,
  7352. SAFTADPCM_22kHzMono = SAFTADPCM_11kHzStereo + 1,
  7353. SAFTADPCM_22kHzStereo = SAFTADPCM_22kHzMono + 1,
  7354. SAFTADPCM_44kHzMono = SAFTADPCM_22kHzStereo + 1,
  7355. SAFTADPCM_44kHzStereo = SAFTADPCM_44kHzMono + 1,
  7356. SAFTGSM610_8kHzMono = SAFTADPCM_44kHzStereo + 1,
  7357. SAFTGSM610_11kHzMono = SAFTGSM610_8kHzMono + 1,
  7358. SAFTGSM610_22kHzMono = SAFTGSM610_11kHzMono + 1,
  7359. SAFTGSM610_44kHzMono = SAFTGSM610_22kHzMono + 1
  7360. } SpeechAudioFormatType;
  7361. typedef /* [hidden] */
  7362. enum DISPID_SpeechAudioFormat
  7363. { DISPID_SAFType = 1,
  7364. DISPID_SAFGuid = DISPID_SAFType + 1,
  7365. DISPID_SAFGetWaveFormatEx = DISPID_SAFGuid + 1,
  7366. DISPID_SAFSetWaveFormatEx = DISPID_SAFGetWaveFormatEx + 1
  7367. } DISPID_SpeechAudioFormat;
  7368. typedef /* [hidden] */
  7369. enum DISPID_SpeechBaseStream
  7370. { DISPID_SBSFormat = 1,
  7371. DISPID_SBSRead = DISPID_SBSFormat + 1,
  7372. DISPID_SBSWrite = DISPID_SBSRead + 1,
  7373. DISPID_SBSSeek = DISPID_SBSWrite + 1
  7374. } DISPID_SpeechBaseStream;
  7375. typedef
  7376. enum SpeechStreamSeekPositionType
  7377. { SSSPTRelativeToStart = STREAM_SEEK_SET,
  7378. SSSPTRelativeToCurrentPosition = STREAM_SEEK_CUR,
  7379. SSSPTRelativeToEnd = STREAM_SEEK_END
  7380. } SpeechStreamSeekPositionType;
  7381. typedef /* [hidden] */
  7382. enum DISPID_SpeechAudio
  7383. { DISPID_SAStatus = 200,
  7384. DISPID_SABufferInfo = DISPID_SAStatus + 1,
  7385. DISPID_SADefaultFormat = DISPID_SABufferInfo + 1,
  7386. DISPID_SAVolume = DISPID_SADefaultFormat + 1,
  7387. DISPID_SABufferNotifySize = DISPID_SAVolume + 1,
  7388. DISPID_SAEventHandle = DISPID_SABufferNotifySize + 1,
  7389. DISPID_SASetState = DISPID_SAEventHandle + 1
  7390. } DISPID_SpeechAudio;
  7391. typedef
  7392. enum SpeechAudioState
  7393. { SASClosed = SPAS_CLOSED,
  7394. SASStop = SPAS_STOP,
  7395. SASPause = SPAS_PAUSE,
  7396. SASRun = SPAS_RUN
  7397. } SpeechAudioState;
  7398. typedef /* [hidden] */
  7399. enum DISPID_SpeechMMSysAudio
  7400. { DISPID_SMSADeviceId = 300,
  7401. DISPID_SMSALineId = DISPID_SMSADeviceId + 1,
  7402. DISPID_SMSAMMHandle = DISPID_SMSALineId + 1
  7403. } DISPID_SpeechMMSysAudio;
  7404. typedef /* [hidden] */
  7405. enum DISPID_SpeechFileStream
  7406. { DISPID_SFSOpen = 100,
  7407. DISPID_SFSClose = DISPID_SFSOpen + 1
  7408. } DISPID_SpeechFileStream;
  7409. typedef
  7410. enum SpeechStreamFileMode
  7411. { SSFMOpenForRead = SPFM_OPEN_READONLY,
  7412. SSFMOpenReadWrite = SPFM_OPEN_READWRITE,
  7413. SSFMCreate = SPFM_CREATE,
  7414. SSFMCreateForWrite = SPFM_CREATE_ALWAYS
  7415. } SpeechStreamFileMode;
  7416. typedef /* [hidden] */
  7417. enum DISPID_SpeechCustomStream
  7418. { DISPID_SCSBaseStream = 100
  7419. } DISPID_SpeechCustomStream;
  7420. typedef /* [hidden] */
  7421. enum DISPID_SpeechMemoryStream
  7422. { DISPID_SMSSetData = 100,
  7423. DISPID_SMSGetData = DISPID_SMSSetData + 1
  7424. } DISPID_SpeechMemoryStream;
  7425. typedef /* [hidden] */
  7426. enum DISPID_SpeechAudioStatus
  7427. { DISPID_SASFreeBufferSpace = 1,
  7428. DISPID_SASNonBlockingIO = DISPID_SASFreeBufferSpace + 1,
  7429. DISPID_SASState = DISPID_SASNonBlockingIO + 1,
  7430. DISPID_SASCurrentSeekPosition = DISPID_SASState + 1,
  7431. DISPID_SASCurrentDevicePosition = DISPID_SASCurrentSeekPosition + 1
  7432. } DISPID_SpeechAudioStatus;
  7433. typedef /* [hidden] */
  7434. enum DISPID_SpeechAudioBufferInfo
  7435. { DISPID_SABIMinNotification = 1,
  7436. DISPID_SABIBufferSize = DISPID_SABIMinNotification + 1,
  7437. DISPID_SABIEventBias = DISPID_SABIBufferSize + 1
  7438. } DISPID_SpeechAudioBufferInfo;
  7439. typedef /* [hidden] */
  7440. enum DISPID_SpeechWaveFormatEx
  7441. { DISPID_SWFEFormatTag = 1,
  7442. DISPID_SWFEChannels = DISPID_SWFEFormatTag + 1,
  7443. DISPID_SWFESamplesPerSec = DISPID_SWFEChannels + 1,
  7444. DISPID_SWFEAvgBytesPerSec = DISPID_SWFESamplesPerSec + 1,
  7445. DISPID_SWFEBlockAlign = DISPID_SWFEAvgBytesPerSec + 1,
  7446. DISPID_SWFEBitsPerSample = DISPID_SWFEBlockAlign + 1,
  7447. DISPID_SWFEExtraData = DISPID_SWFEBitsPerSample + 1
  7448. } DISPID_SpeechWaveFormatEx;
  7449. typedef /* [hidden] */
  7450. enum DISPID_SpeechVoice
  7451. { DISPID_SVStatus = 1,
  7452. DISPID_SVVoice = DISPID_SVStatus + 1,
  7453. DISPID_SVAudioOutput = DISPID_SVVoice + 1,
  7454. DISPID_SVAudioOutputStream = DISPID_SVAudioOutput + 1,
  7455. DISPID_SVRate = DISPID_SVAudioOutputStream + 1,
  7456. DISPID_SVVolume = DISPID_SVRate + 1,
  7457. DISPID_SVAllowAudioOuputFormatChangesOnNextSet = DISPID_SVVolume + 1,
  7458. DISPID_SVEventInterests = DISPID_SVAllowAudioOuputFormatChangesOnNextSet + 1,
  7459. DISPID_SVPriority = DISPID_SVEventInterests + 1,
  7460. DISPID_SVAlertBoundary = DISPID_SVPriority + 1,
  7461. DISPID_SVSyncronousSpeakTimeout = DISPID_SVAlertBoundary + 1,
  7462. DISPID_SVSpeak = DISPID_SVSyncronousSpeakTimeout + 1,
  7463. DISPID_SVSpeakStream = DISPID_SVSpeak + 1,
  7464. DISPID_SVPause = DISPID_SVSpeakStream + 1,
  7465. DISPID_SVResume = DISPID_SVPause + 1,
  7466. DISPID_SVSkip = DISPID_SVResume + 1,
  7467. DISPID_SVGetVoices = DISPID_SVSkip + 1,
  7468. DISPID_SVGetAudioOutputs = DISPID_SVGetVoices + 1,
  7469. DISPID_SVWaitUntilDone = DISPID_SVGetAudioOutputs + 1,
  7470. DISPID_SVSpeakCompleteEvent = DISPID_SVWaitUntilDone + 1,
  7471. DISPID_SVIsUISupported = DISPID_SVSpeakCompleteEvent + 1,
  7472. DISPID_SVDisplayUI = DISPID_SVIsUISupported + 1
  7473. } DISPID_SpeechVoice;
  7474. typedef
  7475. enum SpeechVoicePriority
  7476. { SVPNormal = SPVPRI_NORMAL,
  7477. SVPAlert = SPVPRI_ALERT,
  7478. SVPOver = SPVPRI_OVER
  7479. } SpeechVoicePriority;
  7480. typedef
  7481. enum SpeechVoiceSpeakFlags
  7482. { SVSFDefault = SPF_DEFAULT,
  7483. SVSFlagsAsync = SPF_ASYNC,
  7484. SVSFPurgeBeforeSpeak = SPF_PURGEBEFORESPEAK,
  7485. SVSFIsFilename = SPF_IS_FILENAME,
  7486. SVSFIsXML = SPF_IS_XML,
  7487. SVSFIsNotXML = SPF_IS_NOT_XML,
  7488. SVSFPersistXML = SPF_PERSIST_XML,
  7489. SVSFNLPSpeakPunc = SPF_NLP_SPEAK_PUNC,
  7490. SVSFNLPMask = SPF_NLP_MASK,
  7491. SVSFVoiceMask = SPF_VOICE_MASK,
  7492. SVSFUnusedFlags = SPF_UNUSED_FLAGS
  7493. } SpeechVoiceSpeakFlags;
  7494. typedef
  7495. enum SpeechVoiceEvents
  7496. { SVEStartInputStream = 1L << 1,
  7497. SVEEndInputStream = 1L << 2,
  7498. SVEVoiceChange = 1L << 3,
  7499. SVEBookmark = 1L << 4,
  7500. SVEWordBoundary = 1L << 5,
  7501. SVEPhoneme = 1L << 6,
  7502. SVESentenceBoundary = 1L << 7,
  7503. SVEViseme = 1L << 8,
  7504. SVEAudioLevel = 1L << 9,
  7505. SVEPrivate = 1L << 15,
  7506. SVEAllEvents = 0x83fe
  7507. } SpeechVoiceEvents;
  7508. typedef /* [hidden] */
  7509. enum DISPID_SpeechVoiceStatus
  7510. { DISPID_SVSCurrentStreamNumber = 1,
  7511. DISPID_SVSLastStreamNumberQueued = DISPID_SVSCurrentStreamNumber + 1,
  7512. DISPID_SVSLastResult = DISPID_SVSLastStreamNumberQueued + 1,
  7513. DISPID_SVSRunningState = DISPID_SVSLastResult + 1,
  7514. DISPID_SVSInputWordPosition = DISPID_SVSRunningState + 1,
  7515. DISPID_SVSInputWordLength = DISPID_SVSInputWordPosition + 1,
  7516. DISPID_SVSInputSentencePosition = DISPID_SVSInputWordLength + 1,
  7517. DISPID_SVSInputSentenceLength = DISPID_SVSInputSentencePosition + 1,
  7518. DISPID_SVSLastBookmark = DISPID_SVSInputSentenceLength + 1,
  7519. DISPID_SVSLastBookmarkId = DISPID_SVSLastBookmark + 1,
  7520. DISPID_SVSPhonemeId = DISPID_SVSLastBookmarkId + 1,
  7521. DISPID_SVSVisemeId = DISPID_SVSPhonemeId + 1
  7522. } DISPID_SpeechVoiceStatus;
  7523. typedef
  7524. enum SpeechRunState
  7525. { SRSEDone = SPRS_DONE,
  7526. SRSEIsSpeaking = SPRS_IS_SPEAKING
  7527. } SpeechRunState;
  7528. typedef
  7529. enum SpeechVisemeType
  7530. { SVP_0 = 0,
  7531. SVP_1 = SVP_0 + 1,
  7532. SVP_2 = SVP_1 + 1,
  7533. SVP_3 = SVP_2 + 1,
  7534. SVP_4 = SVP_3 + 1,
  7535. SVP_5 = SVP_4 + 1,
  7536. SVP_6 = SVP_5 + 1,
  7537. SVP_7 = SVP_6 + 1,
  7538. SVP_8 = SVP_7 + 1,
  7539. SVP_9 = SVP_8 + 1,
  7540. SVP_10 = SVP_9 + 1,
  7541. SVP_11 = SVP_10 + 1,
  7542. SVP_12 = SVP_11 + 1,
  7543. SVP_13 = SVP_12 + 1,
  7544. SVP_14 = SVP_13 + 1,
  7545. SVP_15 = SVP_14 + 1,
  7546. SVP_16 = SVP_15 + 1,
  7547. SVP_17 = SVP_16 + 1,
  7548. SVP_18 = SVP_17 + 1,
  7549. SVP_19 = SVP_18 + 1,
  7550. SVP_20 = SVP_19 + 1,
  7551. SVP_21 = SVP_20 + 1
  7552. } SpeechVisemeType;
  7553. typedef
  7554. enum SpeechVisemeFeature
  7555. { SVF_None = 0,
  7556. SVF_Stressed = SPVFEATURE_STRESSED,
  7557. SVF_Emphasis = SPVFEATURE_EMPHASIS
  7558. } SpeechVisemeFeature;
  7559. typedef /* [hidden] */
  7560. enum DISPID_SpeechVoiceEvent
  7561. { DISPID_SVEStreamStart = 1,
  7562. DISPID_SVEStreamEnd = DISPID_SVEStreamStart + 1,
  7563. DISPID_SVEVoiceChange = DISPID_SVEStreamEnd + 1,
  7564. DISPID_SVEBookmark = DISPID_SVEVoiceChange + 1,
  7565. DISPID_SVEWord = DISPID_SVEBookmark + 1,
  7566. DISPID_SVEPhoneme = DISPID_SVEWord + 1,
  7567. DISPID_SVESentenceBoundary = DISPID_SVEPhoneme + 1,
  7568. DISPID_SVEViseme = DISPID_SVESentenceBoundary + 1,
  7569. DISPID_SVEAudioLevel = DISPID_SVEViseme + 1,
  7570. DISPID_SVEEnginePrivate = DISPID_SVEAudioLevel + 1
  7571. } DISPID_SpeechVoiceEvent;
  7572. typedef /* [hidden] */
  7573. enum DISPID_SpeechRecognizer
  7574. { DISPID_SRRecognizer = 1,
  7575. DISPID_SRAllowAudioInputFormatChangesOnNextSet = DISPID_SRRecognizer + 1,
  7576. DISPID_SRAudioInput = DISPID_SRAllowAudioInputFormatChangesOnNextSet + 1,
  7577. DISPID_SRAudioInputStream = DISPID_SRAudioInput + 1,
  7578. DISPID_SRIsShared = DISPID_SRAudioInputStream + 1,
  7579. DISPID_SRState = DISPID_SRIsShared + 1,
  7580. DISPID_SRStatus = DISPID_SRState + 1,
  7581. DISPID_SRProfile = DISPID_SRStatus + 1,
  7582. DISPID_SREmulateRecognition = DISPID_SRProfile + 1,
  7583. DISPID_SRCreateRecoContext = DISPID_SREmulateRecognition + 1,
  7584. DISPID_SRGetFormat = DISPID_SRCreateRecoContext + 1,
  7585. DISPID_SRSetPropertyNumber = DISPID_SRGetFormat + 1,
  7586. DISPID_SRGetPropertyNumber = DISPID_SRSetPropertyNumber + 1,
  7587. DISPID_SRSetPropertyString = DISPID_SRGetPropertyNumber + 1,
  7588. DISPID_SRGetPropertyString = DISPID_SRSetPropertyString + 1,
  7589. DISPID_SRIsUISupported = DISPID_SRGetPropertyString + 1,
  7590. DISPID_SRDisplayUI = DISPID_SRIsUISupported + 1,
  7591. DISPID_SRGetRecognizers = DISPID_SRDisplayUI + 1,
  7592. DISPID_SVGetAudioInputs = DISPID_SRGetRecognizers + 1,
  7593. DISPID_SVGetProfiles = DISPID_SVGetAudioInputs + 1
  7594. } DISPID_SpeechRecognizer;
  7595. typedef
  7596. enum SpeechRecognizerState
  7597. { SRSInactive = SPRST_INACTIVE,
  7598. SRSActive = SPRST_ACTIVE,
  7599. SRSActiveAlways = SPRST_ACTIVE_ALWAYS,
  7600. SRSInactiveWithPurge = SPRST_INACTIVE_WITH_PURGE
  7601. } SpeechRecognizerState;
  7602. typedef
  7603. enum SpeechDisplayAttributes
  7604. { SDA_No_Trailing_Space = 0,
  7605. SDA_One_Trailing_Space = SPAF_ONE_TRAILING_SPACE,
  7606. SDA_Two_Trailing_Spaces = SPAF_TWO_TRAILING_SPACES,
  7607. SDA_Consume_Leading_Spaces = SPAF_CONSUME_LEADING_SPACES
  7608. } SpeechDisplayAttributes;
  7609. typedef
  7610. enum SpeechFormatType
  7611. { SFTInput = SPWF_INPUT,
  7612. SFTSREngine = SPWF_SRENGINE
  7613. } SpeechFormatType;
  7614. typedef /* [hidden] */
  7615. enum DISPID_SpeechRecognizerStatus
  7616. { DISPID_SRSAudioStatus = 1,
  7617. DISPID_SRSCurrentStreamPosition = DISPID_SRSAudioStatus + 1,
  7618. DISPID_SRSCurrentStreamNumber = DISPID_SRSCurrentStreamPosition + 1,
  7619. DISPID_SRSNumberOfActiveRules = DISPID_SRSCurrentStreamNumber + 1,
  7620. DISPID_SRSClsidEngine = DISPID_SRSNumberOfActiveRules + 1,
  7621. DISPID_SRSSupportedLanguages = DISPID_SRSClsidEngine + 1
  7622. } DISPID_SpeechRecognizerStatus;
  7623. typedef /* [hidden] */
  7624. enum DISPID_SpeechRecoContext
  7625. { DISPID_SRCRecognizer = 1,
  7626. DISPID_SRCAudioInInterferenceStatus = DISPID_SRCRecognizer + 1,
  7627. DISPID_SRCRequestedUIType = DISPID_SRCAudioInInterferenceStatus + 1,
  7628. DISPID_SRCVoice = DISPID_SRCRequestedUIType + 1,
  7629. DISPID_SRAllowVoiceFormatMatchingOnNextSet = DISPID_SRCVoice + 1,
  7630. DISPID_SRCVoicePurgeEvent = DISPID_SRAllowVoiceFormatMatchingOnNextSet + 1,
  7631. DISPID_SRCEventInterests = DISPID_SRCVoicePurgeEvent + 1,
  7632. DISPID_SRCCmdMaxAlternates = DISPID_SRCEventInterests + 1,
  7633. DISPID_SRCState = DISPID_SRCCmdMaxAlternates + 1,
  7634. DISPID_SRCRetainedAudio = DISPID_SRCState + 1,
  7635. DISPID_SRCRetainedAudioFormat = DISPID_SRCRetainedAudio + 1,
  7636. DISPID_SRCPause = DISPID_SRCRetainedAudioFormat + 1,
  7637. DISPID_SRCResume = DISPID_SRCPause + 1,
  7638. DISPID_SRCCreateGrammar = DISPID_SRCResume + 1,
  7639. DISPID_SRCCreateResultFromMemory = DISPID_SRCCreateGrammar + 1,
  7640. DISPID_SRCBookmark = DISPID_SRCCreateResultFromMemory + 1,
  7641. DISPID_SRCSetAdaptationData = DISPID_SRCBookmark + 1
  7642. } DISPID_SpeechRecoContext;
  7643. typedef
  7644. enum SpeechRetainedAudioOptions
  7645. { SRAONone = SPAO_NONE,
  7646. SRAORetainAudio = SPAO_RETAIN_AUDIO
  7647. } SpeechRetainedAudioOptions;
  7648. typedef
  7649. enum SpeechBookmarkOptions
  7650. { SBONone = SPBO_NONE,
  7651. SBOPause = SPBO_PAUSE
  7652. } SpeechBookmarkOptions;
  7653. typedef
  7654. enum SpeechInterference
  7655. { SINone = SPINTERFERENCE_NONE,
  7656. SINoise = SPINTERFERENCE_NOISE,
  7657. SINoSignal = SPINTERFERENCE_NOSIGNAL,
  7658. SITooLoud = SPINTERFERENCE_TOOLOUD,
  7659. SITooQuiet = SPINTERFERENCE_TOOQUIET,
  7660. SITooFast = SPINTERFERENCE_TOOFAST,
  7661. SITooSlow = SPINTERFERENCE_TOOSLOW
  7662. } SpeechInterference;
  7663. typedef
  7664. enum SpeechRecoEvents
  7665. { SREStreamEnd = 1L << 0,
  7666. SRESoundStart = 1L << 1,
  7667. SRESoundEnd = 1L << 2,
  7668. SREPhraseStart = 1L << 3,
  7669. SRERecognition = 1L << 4,
  7670. SREHypothesis = 1L << 5,
  7671. SREBookmark = 1L << 6,
  7672. SREPropertyNumChange = 1L << 7,
  7673. SREPropertyStringChange = 1L << 8,
  7674. SREFalseRecognition = 1L << 9,
  7675. SREInterference = 1L << 10,
  7676. SRERequestUI = 1L << 11,
  7677. SREStateChange = 1L << 12,
  7678. SREAdaptation = 1L << 13,
  7679. SREStreamStart = 1L << 14,
  7680. SRERecoOtherContext = 1L << 15,
  7681. SREAudioLevel = 1L << 16,
  7682. SREPrivate = 1L << 18,
  7683. SREAllEvents = 0x5ffff
  7684. } SpeechRecoEvents;
  7685. typedef
  7686. enum SpeechRecoContextState
  7687. { SRCS_Disabled = SPCS_DISABLED,
  7688. SRCS_Enabled = SPCS_ENABLED
  7689. } SpeechRecoContextState;
  7690. typedef /* [hidden] */
  7691. enum DISPIDSPRG
  7692. { DISPID_SRGId = 1,
  7693. DISPID_SRGRecoContext = DISPID_SRGId + 1,
  7694. DISPID_SRGState = DISPID_SRGRecoContext + 1,
  7695. DISPID_SRGRules = DISPID_SRGState + 1,
  7696. DISPID_SRGReset = DISPID_SRGRules + 1,
  7697. DISPID_SRGCommit = DISPID_SRGReset + 1,
  7698. DISPID_SRGCmdLoadFromFile = DISPID_SRGCommit + 1,
  7699. DISPID_SRGCmdLoadFromObject = DISPID_SRGCmdLoadFromFile + 1,
  7700. DISPID_SRGCmdLoadFromResource = DISPID_SRGCmdLoadFromObject + 1,
  7701. DISPID_SRGCmdLoadFromMemory = DISPID_SRGCmdLoadFromResource + 1,
  7702. DISPID_SRGCmdLoadFromProprietaryGrammar = DISPID_SRGCmdLoadFromMemory + 1,
  7703. DISPID_SRGCmdSetRuleState = DISPID_SRGCmdLoadFromProprietaryGrammar + 1,
  7704. DISPID_SRGCmdSetRuleIdState = DISPID_SRGCmdSetRuleState + 1,
  7705. DISPID_SRGDictationLoad = DISPID_SRGCmdSetRuleIdState + 1,
  7706. DISPID_SRGDictationUnload = DISPID_SRGDictationLoad + 1,
  7707. DISPID_SRGDictationSetState = DISPID_SRGDictationUnload + 1,
  7708. DISPID_SRGSetWordSequenceData = DISPID_SRGDictationSetState + 1,
  7709. DISPID_SRGSetTextSelection = DISPID_SRGSetWordSequenceData + 1,
  7710. DISPID_SRGIsPronounceable = DISPID_SRGSetTextSelection + 1
  7711. } DISPIDSPRG;
  7712. typedef
  7713. enum SpeechLoadOption
  7714. { SLOStatic = SPLO_STATIC,
  7715. SLODynamic = SPLO_DYNAMIC
  7716. } SpeechLoadOption;
  7717. typedef
  7718. enum SpeechWordPronounceable
  7719. { SWPUnknownWordUnpronounceable = SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE,
  7720. SWPUnknownWordPronounceable = SPWP_UNKNOWN_WORD_PRONOUNCEABLE,
  7721. SWPKnownWordPronounceable = SPWP_KNOWN_WORD_PRONOUNCEABLE
  7722. } SpeechWordPronounceable;
  7723. typedef
  7724. enum SpeechGrammarState
  7725. { SGSEnabled = SPGS_ENABLED,
  7726. SGSDisabled = SPGS_DISABLED,
  7727. SGSExclusive = SPGS_EXCLUSIVE
  7728. } SpeechGrammarState;
  7729. typedef
  7730. enum SpeechRuleState
  7731. { SGDSInactive = SPRS_INACTIVE,
  7732. SGDSActive = SPRS_ACTIVE,
  7733. SGDSActiveWithAutoPause = SPRS_ACTIVE_WITH_AUTO_PAUSE
  7734. } SpeechRuleState;
  7735. typedef
  7736. enum SpeechRuleAttributes
  7737. { SRATopLevel = SPRAF_TopLevel,
  7738. SRADefaultToActive = SPRAF_Active,
  7739. SRAExport = SPRAF_Export,
  7740. SRAImport = SPRAF_Import,
  7741. SRAInterpreter = SPRAF_Interpreter,
  7742. SRADynamic = SPRAF_Dynamic
  7743. } SpeechRuleAttributes;
  7744. typedef
  7745. enum SpeechGrammarWordType
  7746. { SGDisplay = SPWT_DISPLAY,
  7747. SGLexical = SPWT_LEXICAL,
  7748. SGPronounciation = SPWT_PRONUNCIATION
  7749. } SpeechGrammarWordType;
  7750. typedef /* [hidden] */
  7751. enum DISPID_SpeechRecoContextEvents
  7752. { DISPID_SRCEStartStream = 1,
  7753. DISPID_SRCEEndStream = DISPID_SRCEStartStream + 1,
  7754. DISPID_SRCEBookmark = DISPID_SRCEEndStream + 1,
  7755. DISPID_SRCESoundStart = DISPID_SRCEBookmark + 1,
  7756. DISPID_SRCESoundEnd = DISPID_SRCESoundStart + 1,
  7757. DISPID_SRCEPhraseStart = DISPID_SRCESoundEnd + 1,
  7758. DISPID_SRCERecognition = DISPID_SRCEPhraseStart + 1,
  7759. DISPID_SRCEHypothesis = DISPID_SRCERecognition + 1,
  7760. DISPID_SRCEPropertyNumberChange = DISPID_SRCEHypothesis + 1,
  7761. DISPID_SRCEPropertyStringChange = DISPID_SRCEPropertyNumberChange + 1,
  7762. DISPID_SRCEFalseRecognition = DISPID_SRCEPropertyStringChange + 1,
  7763. DISPID_SRCEInterference = DISPID_SRCEFalseRecognition + 1,
  7764. DISPID_SRCERequestUI = DISPID_SRCEInterference + 1,
  7765. DISPID_SRCERecognizerStateChange = DISPID_SRCERequestUI + 1,
  7766. DISPID_SRCEAdaptation = DISPID_SRCERecognizerStateChange + 1,
  7767. DISPID_SRCERecognitionForOtherContext = DISPID_SRCEAdaptation + 1,
  7768. DISPID_SRCEAudioLevel = DISPID_SRCERecognitionForOtherContext + 1,
  7769. DISPID_SRCEEnginePrivate = DISPID_SRCEAudioLevel + 1
  7770. } DISPID_SpeechRecoContextEvents;
  7771. typedef
  7772. enum SpeechRecognitionType
  7773. { SRTStandard = 0,
  7774. SRTAutopause = SPREF_AutoPause,
  7775. SRTEmulated = SPREF_Emulated
  7776. } SpeechRecognitionType;
  7777. typedef /* [hidden] */
  7778. enum DISPID_SpeechGrammarRule
  7779. { DISPID_SGRAttributes = 1,
  7780. DISPID_SGRInitialState = DISPID_SGRAttributes + 1,
  7781. DISPID_SGRName = DISPID_SGRInitialState + 1,
  7782. DISPID_SGRId = DISPID_SGRName + 1,
  7783. DISPID_SGRClear = DISPID_SGRId + 1,
  7784. DISPID_SGRAddResource = DISPID_SGRClear + 1,
  7785. DISPID_SGRAddState = DISPID_SGRAddResource + 1
  7786. } DISPID_SpeechGrammarRule;
  7787. typedef /* [hidden] */
  7788. enum DISPID_SpeechGrammarRules
  7789. { DISPID_SGRsCount = 1,
  7790. DISPID_SGRsDynamic = DISPID_SGRsCount + 1,
  7791. DISPID_SGRsAdd = DISPID_SGRsDynamic + 1,
  7792. DISPID_SGRsCommit = DISPID_SGRsAdd + 1,
  7793. DISPID_SGRsCommitAndSave = DISPID_SGRsCommit + 1,
  7794. DISPID_SGRsFindRule = DISPID_SGRsCommitAndSave + 1,
  7795. DISPID_SGRsItem = DISPID_VALUE,
  7796. DISPID_SGRs_NewEnum = DISPID_NEWENUM
  7797. } DISPID_SpeechGrammarRules;
  7798. typedef /* [hidden] */
  7799. enum DISPID_SpeechGrammarRuleState
  7800. { DISPID_SGRSRule = 1,
  7801. DISPID_SGRSTransitions = DISPID_SGRSRule + 1,
  7802. DISPID_SGRSAddWordTransition = DISPID_SGRSTransitions + 1,
  7803. DISPID_SGRSAddRuleTransition = DISPID_SGRSAddWordTransition + 1,
  7804. DISPID_SGRSAddSpecialTransition = DISPID_SGRSAddRuleTransition + 1
  7805. } DISPID_SpeechGrammarRuleState;
  7806. typedef
  7807. enum SpeechSpecialTransitionType
  7808. { SSTTWildcard = 1,
  7809. SSTTDictation = SSTTWildcard + 1,
  7810. SSTTTextBuffer = SSTTDictation + 1
  7811. } SpeechSpecialTransitionType;
  7812. typedef /* [hidden] */
  7813. enum DISPID_SpeechGrammarRuleStateTransitions
  7814. { DISPID_SGRSTsCount = 1,
  7815. DISPID_SGRSTsItem = DISPID_VALUE,
  7816. DISPID_SGRSTs_NewEnum = DISPID_NEWENUM
  7817. } DISPID_SpeechGrammarRuleStateTransitions;
  7818. typedef /* [hidden] */
  7819. enum DISPID_SpeechGrammarRuleStateTransition
  7820. { DISPID_SGRSTType = 1,
  7821. DISPID_SGRSTText = DISPID_SGRSTType + 1,
  7822. DISPID_SGRSTRule = DISPID_SGRSTText + 1,
  7823. DISPID_SGRSTWeight = DISPID_SGRSTRule + 1,
  7824. DISPID_SGRSTPropertyName = DISPID_SGRSTWeight + 1,
  7825. DISPID_SGRSTPropertyId = DISPID_SGRSTPropertyName + 1,
  7826. DISPID_SGRSTPropertyValue = DISPID_SGRSTPropertyId + 1,
  7827. DISPID_SGRSTNextState = DISPID_SGRSTPropertyValue + 1
  7828. } DISPID_SpeechGrammarRuleStateTransition;
  7829. typedef
  7830. enum SpeechGrammarRuleStateTransitionType
  7831. { SGRSTTEpsilon = 0,
  7832. SGRSTTWord = SGRSTTEpsilon + 1,
  7833. SGRSTTRule = SGRSTTWord + 1,
  7834. SGRSTTDictation = SGRSTTRule + 1,
  7835. SGRSTTWildcard = SGRSTTDictation + 1,
  7836. SGRSTTTextBuffer = SGRSTTWildcard + 1
  7837. } SpeechGrammarRuleStateTransitionType;
  7838. typedef /* [hidden] */
  7839. enum DISPIDSPTSI
  7840. { DISPIDSPTSI_ActiveOffset = 1,
  7841. DISPIDSPTSI_ActiveLength = DISPIDSPTSI_ActiveOffset + 1,
  7842. DISPIDSPTSI_SelectionOffset = DISPIDSPTSI_ActiveLength + 1,
  7843. DISPIDSPTSI_SelectionLength = DISPIDSPTSI_SelectionOffset + 1
  7844. } DISPIDSPTSI;
  7845. typedef /* [hidden] */
  7846. enum DISPID_SpeechRecoResult
  7847. { DISPID_SRRRecoContext = 1,
  7848. DISPID_SRRTimes = DISPID_SRRRecoContext + 1,
  7849. DISPID_SRRAudioFormat = DISPID_SRRTimes + 1,
  7850. DISPID_SRRPhraseInfo = DISPID_SRRAudioFormat + 1,
  7851. DISPID_SRRAlternates = DISPID_SRRPhraseInfo + 1,
  7852. DISPID_SRRAudio = DISPID_SRRAlternates + 1,
  7853. DISPID_SRRSpeakAudio = DISPID_SRRAudio + 1,
  7854. DISPID_SRRSaveToMemory = DISPID_SRRSpeakAudio + 1,
  7855. DISPID_SRRDiscardResultInfo = DISPID_SRRSaveToMemory + 1
  7856. } DISPID_SpeechRecoResult;
  7857. typedef
  7858. enum SpeechDiscardType
  7859. { SDTProperty = SPDF_PROPERTY,
  7860. SDTReplacement = SPDF_REPLACEMENT,
  7861. SDTRule = SPDF_RULE,
  7862. SDTDisplayText = SPDF_DISPLAYTEXT,
  7863. SDTLexicalForm = SPDF_LEXICALFORM,
  7864. SDTPronunciation = SPDF_PRONUNCIATION,
  7865. SDTAudio = SPDF_AUDIO,
  7866. SDTAlternates = SPDF_ALTERNATES,
  7867. SDTAll = SPDF_ALL
  7868. } SpeechDiscardType;
  7869. typedef /* [hidden] */
  7870. enum DISPID_SpeechPhraseBuilder
  7871. { DISPID_SPPBRestorePhraseFromMemory = 1
  7872. } DISPID_SpeechPhraseBuilder;
  7873. typedef /* [hidden] */
  7874. enum DISPID_SpeechRecoResultTimes
  7875. { DISPID_SRRTStreamTime = 1,
  7876. DISPID_SRRTLength = DISPID_SRRTStreamTime + 1,
  7877. DISPID_SRRTTickCount = DISPID_SRRTLength + 1,
  7878. DISPID_SRRTOffsetFromStart = DISPID_SRRTTickCount + 1
  7879. } DISPID_SpeechRecoResultTimes;
  7880. typedef /* [hidden] */
  7881. enum DISPID_SpeechPhraseAlternate
  7882. { DISPID_SPARecoResult = 1,
  7883. DISPID_SPAStartElementInResult = DISPID_SPARecoResult + 1,
  7884. DISPID_SPANumberOfElementsInResult = DISPID_SPAStartElementInResult + 1,
  7885. DISPID_SPAPhraseInfo = DISPID_SPANumberOfElementsInResult + 1,
  7886. DISPID_SPACommit = DISPID_SPAPhraseInfo + 1
  7887. } DISPID_SpeechPhraseAlternate;
  7888. typedef /* [hidden] */
  7889. enum DISPID_SpeechPhraseAlternates
  7890. { DISPID_SPAsCount = 1,
  7891. DISPID_SPAsItem = DISPID_VALUE,
  7892. DISPID_SPAs_NewEnum = DISPID_NEWENUM
  7893. } DISPID_SpeechPhraseAlternates;
  7894. typedef /* [hidden] */
  7895. enum DISPID_SpeechPhraseInfo
  7896. { DISPID_SPILanguageId = 1,
  7897. DISPID_SPIGrammarId = DISPID_SPILanguageId + 1,
  7898. DISPID_SPIStartTime = DISPID_SPIGrammarId + 1,
  7899. DISPID_SPIAudioStreamPosition = DISPID_SPIStartTime + 1,
  7900. DISPID_SPIAudioSizeBytes = DISPID_SPIAudioStreamPosition + 1,
  7901. DISPID_SPIRetainedSizeBytes = DISPID_SPIAudioSizeBytes + 1,
  7902. DISPID_SPIAudioSizeTime = DISPID_SPIRetainedSizeBytes + 1,
  7903. DISPID_SPIRule = DISPID_SPIAudioSizeTime + 1,
  7904. DISPID_SPIProperties = DISPID_SPIRule + 1,
  7905. DISPID_SPIElements = DISPID_SPIProperties + 1,
  7906. DISPID_SPIReplacements = DISPID_SPIElements + 1,
  7907. DISPID_SPIEngineId = DISPID_SPIReplacements + 1,
  7908. DISPID_SPIEnginePrivateData = DISPID_SPIEngineId + 1,
  7909. DISPID_SPISaveToMemory = DISPID_SPIEnginePrivateData + 1,
  7910. DISPID_SPIGetText = DISPID_SPISaveToMemory + 1,
  7911. DISPID_SPIGetDisplayAttributes = DISPID_SPIGetText + 1
  7912. } DISPID_SpeechPhraseInfo;
  7913. typedef /* [hidden] */
  7914. enum DISPID_SpeechPhraseElement
  7915. { DISPID_SPEAudioTimeOffset = 1,
  7916. DISPID_SPEAudioSizeTime = DISPID_SPEAudioTimeOffset + 1,
  7917. DISPID_SPEAudioStreamOffset = DISPID_SPEAudioSizeTime + 1,
  7918. DISPID_SPEAudioSizeBytes = DISPID_SPEAudioStreamOffset + 1,
  7919. DISPID_SPERetainedStreamOffset = DISPID_SPEAudioSizeBytes + 1,
  7920. DISPID_SPERetainedSizeBytes = DISPID_SPERetainedStreamOffset + 1,
  7921. DISPID_SPEDisplayText = DISPID_SPERetainedSizeBytes + 1,
  7922. DISPID_SPELexicalForm = DISPID_SPEDisplayText + 1,
  7923. DISPID_SPEPronunciation = DISPID_SPELexicalForm + 1,
  7924. DISPID_SPEDisplayAttributes = DISPID_SPEPronunciation + 1,
  7925. DISPID_SPERequiredConfidence = DISPID_SPEDisplayAttributes + 1,
  7926. DISPID_SPEActualConfidence = DISPID_SPERequiredConfidence + 1,
  7927. DISPID_SPEEngineConfidence = DISPID_SPEActualConfidence + 1
  7928. } DISPID_SpeechPhraseElement;
  7929. typedef
  7930. enum SpeechEngineConfidence
  7931. { SECLowConfidence = -1,
  7932. SECNormalConfidence = 0,
  7933. SECHighConfidence = 1
  7934. } SpeechEngineConfidence;
  7935. typedef /* [hidden] */
  7936. enum DISPID_SpeechPhraseElements
  7937. { DISPID_SPEsCount = 1,
  7938. DISPID_SPEsItem = DISPID_VALUE,
  7939. DISPID_SPEs_NewEnum = DISPID_NEWENUM
  7940. } DISPID_SpeechPhraseElements;
  7941. typedef /* [hidden] */
  7942. enum DISPID_SpeechPhraseReplacement
  7943. { DISPID_SPRDisplayAttributes = 1,
  7944. DISPID_SPRText = DISPID_SPRDisplayAttributes + 1,
  7945. DISPID_SPRFirstElement = DISPID_SPRText + 1,
  7946. DISPID_SPRNumberOfElements = DISPID_SPRFirstElement + 1
  7947. } DISPID_SpeechPhraseReplacement;
  7948. typedef /* [hidden] */
  7949. enum DISPID_SpeechPhraseReplacements
  7950. { DISPID_SPRsCount = 1,
  7951. DISPID_SPRsItem = DISPID_VALUE,
  7952. DISPID_SPRs_NewEnum = DISPID_NEWENUM
  7953. } DISPID_SpeechPhraseReplacements;
  7954. typedef /* [hidden] */
  7955. enum DISPID_SpeechPhraseProperty
  7956. { DISPID_SPPName = 1,
  7957. DISPID_SPPId = DISPID_SPPName + 1,
  7958. DISPID_SPPValue = DISPID_SPPId + 1,
  7959. DISPID_SPPFirstElement = DISPID_SPPValue + 1,
  7960. DISPID_SPPNumberOfElements = DISPID_SPPFirstElement + 1,
  7961. DISPID_SPPEngineConfidence = DISPID_SPPNumberOfElements + 1,
  7962. DISPID_SPPConfidence = DISPID_SPPEngineConfidence + 1,
  7963. DISPID_SPPParent = DISPID_SPPConfidence + 1,
  7964. DISPID_SPPChildren = DISPID_SPPParent + 1
  7965. } DISPID_SpeechPhraseProperty;
  7966. typedef /* [hidden] */
  7967. enum DISPID_SpeechPhraseProperties
  7968. { DISPID_SPPsCount = 1,
  7969. DISPID_SPPsItem = DISPID_VALUE,
  7970. DISPID_SPPs_NewEnum = DISPID_NEWENUM
  7971. } DISPID_SpeechPhraseProperties;
  7972. typedef /* [hidden] */
  7973. enum DISPID_SpeechPhraseRule
  7974. { DISPID_SPRuleName = 1,
  7975. DISPID_SPRuleId = DISPID_SPRuleName + 1,
  7976. DISPID_SPRuleFirstElement = DISPID_SPRuleId + 1,
  7977. DISPID_SPRuleNumberOfElements = DISPID_SPRuleFirstElement + 1,
  7978. DISPID_SPRuleParent = DISPID_SPRuleNumberOfElements + 1,
  7979. DISPID_SPRuleChildren = DISPID_SPRuleParent + 1,
  7980. DISPID_SPRuleConfidence = DISPID_SPRuleChildren + 1,
  7981. DISPID_SPRuleEngineConfidence = DISPID_SPRuleConfidence + 1
  7982. } DISPID_SpeechPhraseRule;
  7983. typedef /* [hidden] */
  7984. enum DISPID_SpeechPhraseRules
  7985. { DISPID_SPRulesCount = 1,
  7986. DISPID_SPRulesItem = DISPID_VALUE,
  7987. DISPID_SPRules_NewEnum = DISPID_NEWENUM
  7988. } DISPID_SpeechPhraseRules;
  7989. typedef /* [hidden] */
  7990. enum DISPID_SpeechLexicon
  7991. { DISPID_SLGenerationId = 1,
  7992. DISPID_SLGetWords = DISPID_SLGenerationId + 1,
  7993. DISPID_SLAddPronunciation = DISPID_SLGetWords + 1,
  7994. DISPID_SLAddPronunciationByPhoneIds = DISPID_SLAddPronunciation + 1,
  7995. DISPID_SLRemovePronunciation = DISPID_SLAddPronunciationByPhoneIds + 1,
  7996. DISPID_SLRemovePronunciationByPhoneIds = DISPID_SLRemovePronunciation + 1,
  7997. DISPID_SLGetPronunciations = DISPID_SLRemovePronunciationByPhoneIds + 1,
  7998. DISPID_SLGetGenerationChange = DISPID_SLGetPronunciations + 1
  7999. } DISPID_SpeechLexicon;
  8000. typedef
  8001. enum SpeechLexiconType
  8002. { SLTUser = eLEXTYPE_USER,
  8003. SLTApp = eLEXTYPE_APP
  8004. } SpeechLexiconType;
  8005. typedef
  8006. enum SpeechPartOfSpeech
  8007. { SPSNotOverriden = SPPS_NotOverriden,
  8008. SPSUnknown = SPPS_Unknown,
  8009. SPSNoun = SPPS_Noun,
  8010. SPSVerb = SPPS_Verb,
  8011. SPSModifier = SPPS_Modifier,
  8012. SPSFunction = SPPS_Function,
  8013. SPSInterjection = SPPS_Interjection
  8014. } SpeechPartOfSpeech;
  8015. typedef /* [hidden] */
  8016. enum DISPID_SpeechLexiconWords
  8017. { DISPID_SLWsCount = 1,
  8018. DISPID_SLWsItem = DISPID_VALUE,
  8019. DISPID_SLWs_NewEnum = DISPID_NEWENUM
  8020. } DISPID_SpeechLexiconWords;
  8021. typedef
  8022. enum SpeechWordType
  8023. { SWTAdded = eWORDTYPE_ADDED,
  8024. SWTDeleted = eWORDTYPE_DELETED
  8025. } SpeechWordType;
  8026. typedef /* [hidden] */
  8027. enum DISPID_SpeechLexiconWord
  8028. { DISPID_SLWLangId = 1,
  8029. DISPID_SLWType = DISPID_SLWLangId + 1,
  8030. DISPID_SLWWord = DISPID_SLWType + 1,
  8031. DISPID_SLWPronunciations = DISPID_SLWWord + 1
  8032. } DISPID_SpeechLexiconWord;
  8033. typedef /* [hidden] */
  8034. enum DISPID_SpeechLexiconProns
  8035. { DISPID_SLPsCount = 1,
  8036. DISPID_SLPsItem = DISPID_VALUE,
  8037. DISPID_SLPs_NewEnum = DISPID_NEWENUM
  8038. } DISPID_SpeechLexiconProns;
  8039. typedef /* [hidden] */
  8040. enum DISPID_SpeechLexiconPronunciation
  8041. { DISPID_SLPType = 1,
  8042. DISPID_SLPLangId = DISPID_SLPType + 1,
  8043. DISPID_SLPPartOfSpeech = DISPID_SLPLangId + 1,
  8044. DISPID_SLPPhoneIds = DISPID_SLPPartOfSpeech + 1,
  8045. DISPID_SLPSymbolic = DISPID_SLPPhoneIds + 1
  8046. } DISPID_SpeechLexiconPronunciation;
  8047. typedef /* [hidden] */
  8048. enum DISPID_SpeechPhoneConverter
  8049. { DISPID_SPCLangId = 1,
  8050. DISPID_SPCPhoneToId = DISPID_SPCLangId + 1,
  8051. DISPID_SPCIdToPhone = DISPID_SPCPhoneToId + 1
  8052. } DISPID_SpeechPhoneConverter;
  8053. EXTERN_C const IID LIBID_SpeechLib;
  8054. #ifndef __ISpeechDataKey_INTERFACE_DEFINED__
  8055. #define __ISpeechDataKey_INTERFACE_DEFINED__
  8056. /* interface ISpeechDataKey */
  8057. /* [unique][helpstring][dual][uuid][object] */
  8058. EXTERN_C const IID IID_ISpeechDataKey;
  8059. #if defined(__cplusplus) && !defined(CINTERFACE)
  8060. MIDL_INTERFACE("CE17C09B-4EFA-44d5-A4C9-59D9585AB0CD")
  8061. ISpeechDataKey : public IDispatch
  8062. {
  8063. public:
  8064. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetBinaryValue(
  8065. /* [in] */ const BSTR ValueName,
  8066. /* [in] */ VARIANT Value) = 0;
  8067. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetBinaryValue(
  8068. /* [in] */ const BSTR ValueName,
  8069. /* [retval][out] */ VARIANT *Value) = 0;
  8070. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetStringValue(
  8071. /* [in] */ const BSTR ValueName,
  8072. /* [in] */ const BSTR Value) = 0;
  8073. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetStringValue(
  8074. /* [in] */ const BSTR ValueName,
  8075. /* [retval][out] */ BSTR *Value) = 0;
  8076. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetLongValue(
  8077. /* [in] */ const BSTR ValueName,
  8078. /* [in] */ long Value) = 0;
  8079. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetLongValue(
  8080. /* [in] */ const BSTR ValueName,
  8081. /* [retval][out] */ long *Value) = 0;
  8082. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE OpenKey(
  8083. /* [in] */ const BSTR SubKeyName,
  8084. /* [retval][out] */ ISpeechDataKey **SubKey) = 0;
  8085. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateKey(
  8086. /* [in] */ const BSTR SubKeyName,
  8087. /* [retval][out] */ ISpeechDataKey **SubKey) = 0;
  8088. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DeleteKey(
  8089. /* [in] */ const BSTR SubKeyName) = 0;
  8090. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DeleteValue(
  8091. /* [in] */ const BSTR ValueName) = 0;
  8092. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumKeys(
  8093. /* [in] */ long Index,
  8094. /* [retval][out] */ BSTR *SubKeyName) = 0;
  8095. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumValues(
  8096. /* [in] */ long Index,
  8097. /* [retval][out] */ BSTR *ValueName) = 0;
  8098. };
  8099. #else /* C style interface */
  8100. typedef struct ISpeechDataKeyVtbl
  8101. {
  8102. BEGIN_INTERFACE
  8103. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8104. ISpeechDataKey * This,
  8105. /* [in] */ REFIID riid,
  8106. /* [iid_is][out] */ void **ppvObject);
  8107. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8108. ISpeechDataKey * This);
  8109. ULONG ( STDMETHODCALLTYPE *Release )(
  8110. ISpeechDataKey * This);
  8111. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8112. ISpeechDataKey * This,
  8113. /* [out] */ UINT *pctinfo);
  8114. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8115. ISpeechDataKey * This,
  8116. /* [in] */ UINT iTInfo,
  8117. /* [in] */ LCID lcid,
  8118. /* [out] */ ITypeInfo **ppTInfo);
  8119. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8120. ISpeechDataKey * This,
  8121. /* [in] */ REFIID riid,
  8122. /* [size_is][in] */ LPOLESTR *rgszNames,
  8123. /* [in] */ UINT cNames,
  8124. /* [in] */ LCID lcid,
  8125. /* [size_is][out] */ DISPID *rgDispId);
  8126. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8127. ISpeechDataKey * This,
  8128. /* [in] */ DISPID dispIdMember,
  8129. /* [in] */ REFIID riid,
  8130. /* [in] */ LCID lcid,
  8131. /* [in] */ WORD wFlags,
  8132. /* [out][in] */ DISPPARAMS *pDispParams,
  8133. /* [out] */ VARIANT *pVarResult,
  8134. /* [out] */ EXCEPINFO *pExcepInfo,
  8135. /* [out] */ UINT *puArgErr);
  8136. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetBinaryValue )(
  8137. ISpeechDataKey * This,
  8138. /* [in] */ const BSTR ValueName,
  8139. /* [in] */ VARIANT Value);
  8140. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetBinaryValue )(
  8141. ISpeechDataKey * This,
  8142. /* [in] */ const BSTR ValueName,
  8143. /* [retval][out] */ VARIANT *Value);
  8144. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  8145. ISpeechDataKey * This,
  8146. /* [in] */ const BSTR ValueName,
  8147. /* [in] */ const BSTR Value);
  8148. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  8149. ISpeechDataKey * This,
  8150. /* [in] */ const BSTR ValueName,
  8151. /* [retval][out] */ BSTR *Value);
  8152. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetLongValue )(
  8153. ISpeechDataKey * This,
  8154. /* [in] */ const BSTR ValueName,
  8155. /* [in] */ long Value);
  8156. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLongValue )(
  8157. ISpeechDataKey * This,
  8158. /* [in] */ const BSTR ValueName,
  8159. /* [retval][out] */ long *Value);
  8160. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  8161. ISpeechDataKey * This,
  8162. /* [in] */ const BSTR SubKeyName,
  8163. /* [retval][out] */ ISpeechDataKey **SubKey);
  8164. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  8165. ISpeechDataKey * This,
  8166. /* [in] */ const BSTR SubKeyName,
  8167. /* [retval][out] */ ISpeechDataKey **SubKey);
  8168. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  8169. ISpeechDataKey * This,
  8170. /* [in] */ const BSTR SubKeyName);
  8171. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  8172. ISpeechDataKey * This,
  8173. /* [in] */ const BSTR ValueName);
  8174. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  8175. ISpeechDataKey * This,
  8176. /* [in] */ long Index,
  8177. /* [retval][out] */ BSTR *SubKeyName);
  8178. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  8179. ISpeechDataKey * This,
  8180. /* [in] */ long Index,
  8181. /* [retval][out] */ BSTR *ValueName);
  8182. END_INTERFACE
  8183. } ISpeechDataKeyVtbl;
  8184. interface ISpeechDataKey
  8185. {
  8186. CONST_VTBL struct ISpeechDataKeyVtbl *lpVtbl;
  8187. };
  8188. #ifdef COBJMACROS
  8189. #define ISpeechDataKey_QueryInterface(This,riid,ppvObject) \
  8190. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8191. #define ISpeechDataKey_AddRef(This) \
  8192. (This)->lpVtbl -> AddRef(This)
  8193. #define ISpeechDataKey_Release(This) \
  8194. (This)->lpVtbl -> Release(This)
  8195. #define ISpeechDataKey_GetTypeInfoCount(This,pctinfo) \
  8196. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8197. #define ISpeechDataKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8198. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8199. #define ISpeechDataKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8200. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8201. #define ISpeechDataKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8202. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8203. #define ISpeechDataKey_SetBinaryValue(This,ValueName,Value) \
  8204. (This)->lpVtbl -> SetBinaryValue(This,ValueName,Value)
  8205. #define ISpeechDataKey_GetBinaryValue(This,ValueName,Value) \
  8206. (This)->lpVtbl -> GetBinaryValue(This,ValueName,Value)
  8207. #define ISpeechDataKey_SetStringValue(This,ValueName,Value) \
  8208. (This)->lpVtbl -> SetStringValue(This,ValueName,Value)
  8209. #define ISpeechDataKey_GetStringValue(This,ValueName,Value) \
  8210. (This)->lpVtbl -> GetStringValue(This,ValueName,Value)
  8211. #define ISpeechDataKey_SetLongValue(This,ValueName,Value) \
  8212. (This)->lpVtbl -> SetLongValue(This,ValueName,Value)
  8213. #define ISpeechDataKey_GetLongValue(This,ValueName,Value) \
  8214. (This)->lpVtbl -> GetLongValue(This,ValueName,Value)
  8215. #define ISpeechDataKey_OpenKey(This,SubKeyName,SubKey) \
  8216. (This)->lpVtbl -> OpenKey(This,SubKeyName,SubKey)
  8217. #define ISpeechDataKey_CreateKey(This,SubKeyName,SubKey) \
  8218. (This)->lpVtbl -> CreateKey(This,SubKeyName,SubKey)
  8219. #define ISpeechDataKey_DeleteKey(This,SubKeyName) \
  8220. (This)->lpVtbl -> DeleteKey(This,SubKeyName)
  8221. #define ISpeechDataKey_DeleteValue(This,ValueName) \
  8222. (This)->lpVtbl -> DeleteValue(This,ValueName)
  8223. #define ISpeechDataKey_EnumKeys(This,Index,SubKeyName) \
  8224. (This)->lpVtbl -> EnumKeys(This,Index,SubKeyName)
  8225. #define ISpeechDataKey_EnumValues(This,Index,ValueName) \
  8226. (This)->lpVtbl -> EnumValues(This,Index,ValueName)
  8227. #endif /* COBJMACROS */
  8228. #endif /* C style interface */
  8229. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetBinaryValue_Proxy(
  8230. ISpeechDataKey * This,
  8231. /* [in] */ const BSTR ValueName,
  8232. /* [in] */ VARIANT Value);
  8233. void __RPC_STUB ISpeechDataKey_SetBinaryValue_Stub(
  8234. IRpcStubBuffer *This,
  8235. IRpcChannelBuffer *_pRpcChannelBuffer,
  8236. PRPC_MESSAGE _pRpcMessage,
  8237. DWORD *_pdwStubPhase);
  8238. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetBinaryValue_Proxy(
  8239. ISpeechDataKey * This,
  8240. /* [in] */ const BSTR ValueName,
  8241. /* [retval][out] */ VARIANT *Value);
  8242. void __RPC_STUB ISpeechDataKey_GetBinaryValue_Stub(
  8243. IRpcStubBuffer *This,
  8244. IRpcChannelBuffer *_pRpcChannelBuffer,
  8245. PRPC_MESSAGE _pRpcMessage,
  8246. DWORD *_pdwStubPhase);
  8247. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetStringValue_Proxy(
  8248. ISpeechDataKey * This,
  8249. /* [in] */ const BSTR ValueName,
  8250. /* [in] */ const BSTR Value);
  8251. void __RPC_STUB ISpeechDataKey_SetStringValue_Stub(
  8252. IRpcStubBuffer *This,
  8253. IRpcChannelBuffer *_pRpcChannelBuffer,
  8254. PRPC_MESSAGE _pRpcMessage,
  8255. DWORD *_pdwStubPhase);
  8256. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetStringValue_Proxy(
  8257. ISpeechDataKey * This,
  8258. /* [in] */ const BSTR ValueName,
  8259. /* [retval][out] */ BSTR *Value);
  8260. void __RPC_STUB ISpeechDataKey_GetStringValue_Stub(
  8261. IRpcStubBuffer *This,
  8262. IRpcChannelBuffer *_pRpcChannelBuffer,
  8263. PRPC_MESSAGE _pRpcMessage,
  8264. DWORD *_pdwStubPhase);
  8265. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetLongValue_Proxy(
  8266. ISpeechDataKey * This,
  8267. /* [in] */ const BSTR ValueName,
  8268. /* [in] */ long Value);
  8269. void __RPC_STUB ISpeechDataKey_SetLongValue_Stub(
  8270. IRpcStubBuffer *This,
  8271. IRpcChannelBuffer *_pRpcChannelBuffer,
  8272. PRPC_MESSAGE _pRpcMessage,
  8273. DWORD *_pdwStubPhase);
  8274. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetLongValue_Proxy(
  8275. ISpeechDataKey * This,
  8276. /* [in] */ const BSTR ValueName,
  8277. /* [retval][out] */ long *Value);
  8278. void __RPC_STUB ISpeechDataKey_GetLongValue_Stub(
  8279. IRpcStubBuffer *This,
  8280. IRpcChannelBuffer *_pRpcChannelBuffer,
  8281. PRPC_MESSAGE _pRpcMessage,
  8282. DWORD *_pdwStubPhase);
  8283. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_OpenKey_Proxy(
  8284. ISpeechDataKey * This,
  8285. /* [in] */ const BSTR SubKeyName,
  8286. /* [retval][out] */ ISpeechDataKey **SubKey);
  8287. void __RPC_STUB ISpeechDataKey_OpenKey_Stub(
  8288. IRpcStubBuffer *This,
  8289. IRpcChannelBuffer *_pRpcChannelBuffer,
  8290. PRPC_MESSAGE _pRpcMessage,
  8291. DWORD *_pdwStubPhase);
  8292. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_CreateKey_Proxy(
  8293. ISpeechDataKey * This,
  8294. /* [in] */ const BSTR SubKeyName,
  8295. /* [retval][out] */ ISpeechDataKey **SubKey);
  8296. void __RPC_STUB ISpeechDataKey_CreateKey_Stub(
  8297. IRpcStubBuffer *This,
  8298. IRpcChannelBuffer *_pRpcChannelBuffer,
  8299. PRPC_MESSAGE _pRpcMessage,
  8300. DWORD *_pdwStubPhase);
  8301. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_DeleteKey_Proxy(
  8302. ISpeechDataKey * This,
  8303. /* [in] */ const BSTR SubKeyName);
  8304. void __RPC_STUB ISpeechDataKey_DeleteKey_Stub(
  8305. IRpcStubBuffer *This,
  8306. IRpcChannelBuffer *_pRpcChannelBuffer,
  8307. PRPC_MESSAGE _pRpcMessage,
  8308. DWORD *_pdwStubPhase);
  8309. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_DeleteValue_Proxy(
  8310. ISpeechDataKey * This,
  8311. /* [in] */ const BSTR ValueName);
  8312. void __RPC_STUB ISpeechDataKey_DeleteValue_Stub(
  8313. IRpcStubBuffer *This,
  8314. IRpcChannelBuffer *_pRpcChannelBuffer,
  8315. PRPC_MESSAGE _pRpcMessage,
  8316. DWORD *_pdwStubPhase);
  8317. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_EnumKeys_Proxy(
  8318. ISpeechDataKey * This,
  8319. /* [in] */ long Index,
  8320. /* [retval][out] */ BSTR *SubKeyName);
  8321. void __RPC_STUB ISpeechDataKey_EnumKeys_Stub(
  8322. IRpcStubBuffer *This,
  8323. IRpcChannelBuffer *_pRpcChannelBuffer,
  8324. PRPC_MESSAGE _pRpcMessage,
  8325. DWORD *_pdwStubPhase);
  8326. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_EnumValues_Proxy(
  8327. ISpeechDataKey * This,
  8328. /* [in] */ long Index,
  8329. /* [retval][out] */ BSTR *ValueName);
  8330. void __RPC_STUB ISpeechDataKey_EnumValues_Stub(
  8331. IRpcStubBuffer *This,
  8332. IRpcChannelBuffer *_pRpcChannelBuffer,
  8333. PRPC_MESSAGE _pRpcMessage,
  8334. DWORD *_pdwStubPhase);
  8335. #endif /* __ISpeechDataKey_INTERFACE_DEFINED__ */
  8336. #ifndef __ISpeechObjectToken_INTERFACE_DEFINED__
  8337. #define __ISpeechObjectToken_INTERFACE_DEFINED__
  8338. /* interface ISpeechObjectToken */
  8339. /* [unique][helpstring][dual][uuid][object] */
  8340. EXTERN_C const IID IID_ISpeechObjectToken;
  8341. #if defined(__cplusplus) && !defined(CINTERFACE)
  8342. MIDL_INTERFACE("C74A3ADC-B727-4500-A84A-B526721C8B8C")
  8343. ISpeechObjectToken : public IDispatch
  8344. {
  8345. public:
  8346. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  8347. /* [retval][out] */ BSTR *ObjectId) = 0;
  8348. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DataKey(
  8349. /* [retval][out] */ ISpeechDataKey **DataKey) = 0;
  8350. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Category(
  8351. /* [retval][out] */ ISpeechObjectTokenCategory **Category) = 0;
  8352. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetDescription(
  8353. /* [defaultvalue][in] */ long Locale,
  8354. /* [retval][out] */ BSTR *Description) = 0;
  8355. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetId(
  8356. /* [in] */ BSTR Id,
  8357. /* [defaultvalue][in] */ BSTR CategoryID = L"",
  8358. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist = 0) = 0;
  8359. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAttribute(
  8360. /* [in] */ BSTR AttributeName,
  8361. /* [retval][out] */ BSTR *AttributeValue) = 0;
  8362. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateInstance(
  8363. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8364. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8365. /* [retval][out] */ IUnknown **Object) = 0;
  8366. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE Remove(
  8367. /* [in] */ BSTR ObjectStorageCLSID) = 0;
  8368. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetStorageFileName(
  8369. /* [in] */ BSTR ObjectStorageCLSID,
  8370. /* [in] */ BSTR KeyName,
  8371. /* [in] */ BSTR FileName,
  8372. /* [in] */ SpeechTokenShellFolder Folder,
  8373. /* [retval][out] */ BSTR *FilePath) = 0;
  8374. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  8375. /* [in] */ BSTR ObjectStorageCLSID,
  8376. /* [in] */ BSTR KeyName,
  8377. /* [in] */ VARIANT_BOOL DeleteFile) = 0;
  8378. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  8379. /* [in] */ const BSTR TypeOfUI,
  8380. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8381. /* [defaultvalue][in] */ IUnknown *Object,
  8382. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  8383. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  8384. /* [in] */ long hWnd,
  8385. /* [in] */ BSTR Title,
  8386. /* [in] */ const BSTR TypeOfUI,
  8387. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0,
  8388. /* [defaultvalue][in] */ IUnknown *Object = 0) = 0;
  8389. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE MatchesAttributes(
  8390. /* [in] */ BSTR Attributes,
  8391. /* [retval][out] */ VARIANT_BOOL *Matches) = 0;
  8392. };
  8393. #else /* C style interface */
  8394. typedef struct ISpeechObjectTokenVtbl
  8395. {
  8396. BEGIN_INTERFACE
  8397. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8398. ISpeechObjectToken * This,
  8399. /* [in] */ REFIID riid,
  8400. /* [iid_is][out] */ void **ppvObject);
  8401. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8402. ISpeechObjectToken * This);
  8403. ULONG ( STDMETHODCALLTYPE *Release )(
  8404. ISpeechObjectToken * This);
  8405. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8406. ISpeechObjectToken * This,
  8407. /* [out] */ UINT *pctinfo);
  8408. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8409. ISpeechObjectToken * This,
  8410. /* [in] */ UINT iTInfo,
  8411. /* [in] */ LCID lcid,
  8412. /* [out] */ ITypeInfo **ppTInfo);
  8413. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8414. ISpeechObjectToken * This,
  8415. /* [in] */ REFIID riid,
  8416. /* [size_is][in] */ LPOLESTR *rgszNames,
  8417. /* [in] */ UINT cNames,
  8418. /* [in] */ LCID lcid,
  8419. /* [size_is][out] */ DISPID *rgDispId);
  8420. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8421. ISpeechObjectToken * This,
  8422. /* [in] */ DISPID dispIdMember,
  8423. /* [in] */ REFIID riid,
  8424. /* [in] */ LCID lcid,
  8425. /* [in] */ WORD wFlags,
  8426. /* [out][in] */ DISPPARAMS *pDispParams,
  8427. /* [out] */ VARIANT *pVarResult,
  8428. /* [out] */ EXCEPINFO *pExcepInfo,
  8429. /* [out] */ UINT *puArgErr);
  8430. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  8431. ISpeechObjectToken * This,
  8432. /* [retval][out] */ BSTR *ObjectId);
  8433. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataKey )(
  8434. ISpeechObjectToken * This,
  8435. /* [retval][out] */ ISpeechDataKey **DataKey);
  8436. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )(
  8437. ISpeechObjectToken * This,
  8438. /* [retval][out] */ ISpeechObjectTokenCategory **Category);
  8439. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDescription )(
  8440. ISpeechObjectToken * This,
  8441. /* [defaultvalue][in] */ long Locale,
  8442. /* [retval][out] */ BSTR *Description);
  8443. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetId )(
  8444. ISpeechObjectToken * This,
  8445. /* [in] */ BSTR Id,
  8446. /* [defaultvalue][in] */ BSTR CategoryID,
  8447. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8448. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAttribute )(
  8449. ISpeechObjectToken * This,
  8450. /* [in] */ BSTR AttributeName,
  8451. /* [retval][out] */ BSTR *AttributeValue);
  8452. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  8453. ISpeechObjectToken * This,
  8454. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8455. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8456. /* [retval][out] */ IUnknown **Object);
  8457. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Remove )(
  8458. ISpeechObjectToken * This,
  8459. /* [in] */ BSTR ObjectStorageCLSID);
  8460. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  8461. ISpeechObjectToken * This,
  8462. /* [in] */ BSTR ObjectStorageCLSID,
  8463. /* [in] */ BSTR KeyName,
  8464. /* [in] */ BSTR FileName,
  8465. /* [in] */ SpeechTokenShellFolder Folder,
  8466. /* [retval][out] */ BSTR *FilePath);
  8467. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  8468. ISpeechObjectToken * This,
  8469. /* [in] */ BSTR ObjectStorageCLSID,
  8470. /* [in] */ BSTR KeyName,
  8471. /* [in] */ VARIANT_BOOL DeleteFile);
  8472. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  8473. ISpeechObjectToken * This,
  8474. /* [in] */ const BSTR TypeOfUI,
  8475. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8476. /* [defaultvalue][in] */ IUnknown *Object,
  8477. /* [retval][out] */ VARIANT_BOOL *Supported);
  8478. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  8479. ISpeechObjectToken * This,
  8480. /* [in] */ long hWnd,
  8481. /* [in] */ BSTR Title,
  8482. /* [in] */ const BSTR TypeOfUI,
  8483. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8484. /* [defaultvalue][in] */ IUnknown *Object);
  8485. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  8486. ISpeechObjectToken * This,
  8487. /* [in] */ BSTR Attributes,
  8488. /* [retval][out] */ VARIANT_BOOL *Matches);
  8489. END_INTERFACE
  8490. } ISpeechObjectTokenVtbl;
  8491. interface ISpeechObjectToken
  8492. {
  8493. CONST_VTBL struct ISpeechObjectTokenVtbl *lpVtbl;
  8494. };
  8495. #ifdef COBJMACROS
  8496. #define ISpeechObjectToken_QueryInterface(This,riid,ppvObject) \
  8497. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8498. #define ISpeechObjectToken_AddRef(This) \
  8499. (This)->lpVtbl -> AddRef(This)
  8500. #define ISpeechObjectToken_Release(This) \
  8501. (This)->lpVtbl -> Release(This)
  8502. #define ISpeechObjectToken_GetTypeInfoCount(This,pctinfo) \
  8503. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8504. #define ISpeechObjectToken_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8505. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8506. #define ISpeechObjectToken_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8507. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8508. #define ISpeechObjectToken_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8509. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8510. #define ISpeechObjectToken_get_Id(This,ObjectId) \
  8511. (This)->lpVtbl -> get_Id(This,ObjectId)
  8512. #define ISpeechObjectToken_get_DataKey(This,DataKey) \
  8513. (This)->lpVtbl -> get_DataKey(This,DataKey)
  8514. #define ISpeechObjectToken_get_Category(This,Category) \
  8515. (This)->lpVtbl -> get_Category(This,Category)
  8516. #define ISpeechObjectToken_GetDescription(This,Locale,Description) \
  8517. (This)->lpVtbl -> GetDescription(This,Locale,Description)
  8518. #define ISpeechObjectToken_SetId(This,Id,CategoryID,CreateIfNotExist) \
  8519. (This)->lpVtbl -> SetId(This,Id,CategoryID,CreateIfNotExist)
  8520. #define ISpeechObjectToken_GetAttribute(This,AttributeName,AttributeValue) \
  8521. (This)->lpVtbl -> GetAttribute(This,AttributeName,AttributeValue)
  8522. #define ISpeechObjectToken_CreateInstance(This,pUnkOuter,ClsContext,Object) \
  8523. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,ClsContext,Object)
  8524. #define ISpeechObjectToken_Remove(This,ObjectStorageCLSID) \
  8525. (This)->lpVtbl -> Remove(This,ObjectStorageCLSID)
  8526. #define ISpeechObjectToken_GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath) \
  8527. (This)->lpVtbl -> GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath)
  8528. #define ISpeechObjectToken_RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile) \
  8529. (This)->lpVtbl -> RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile)
  8530. #define ISpeechObjectToken_IsUISupported(This,TypeOfUI,ExtraData,Object,Supported) \
  8531. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Object,Supported)
  8532. #define ISpeechObjectToken_DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object) \
  8533. (This)->lpVtbl -> DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object)
  8534. #define ISpeechObjectToken_MatchesAttributes(This,Attributes,Matches) \
  8535. (This)->lpVtbl -> MatchesAttributes(This,Attributes,Matches)
  8536. #endif /* COBJMACROS */
  8537. #endif /* C style interface */
  8538. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_Id_Proxy(
  8539. ISpeechObjectToken * This,
  8540. /* [retval][out] */ BSTR *ObjectId);
  8541. void __RPC_STUB ISpeechObjectToken_get_Id_Stub(
  8542. IRpcStubBuffer *This,
  8543. IRpcChannelBuffer *_pRpcChannelBuffer,
  8544. PRPC_MESSAGE _pRpcMessage,
  8545. DWORD *_pdwStubPhase);
  8546. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_DataKey_Proxy(
  8547. ISpeechObjectToken * This,
  8548. /* [retval][out] */ ISpeechDataKey **DataKey);
  8549. void __RPC_STUB ISpeechObjectToken_get_DataKey_Stub(
  8550. IRpcStubBuffer *This,
  8551. IRpcChannelBuffer *_pRpcChannelBuffer,
  8552. PRPC_MESSAGE _pRpcMessage,
  8553. DWORD *_pdwStubPhase);
  8554. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_Category_Proxy(
  8555. ISpeechObjectToken * This,
  8556. /* [retval][out] */ ISpeechObjectTokenCategory **Category);
  8557. void __RPC_STUB ISpeechObjectToken_get_Category_Stub(
  8558. IRpcStubBuffer *This,
  8559. IRpcChannelBuffer *_pRpcChannelBuffer,
  8560. PRPC_MESSAGE _pRpcMessage,
  8561. DWORD *_pdwStubPhase);
  8562. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetDescription_Proxy(
  8563. ISpeechObjectToken * This,
  8564. /* [defaultvalue][in] */ long Locale,
  8565. /* [retval][out] */ BSTR *Description);
  8566. void __RPC_STUB ISpeechObjectToken_GetDescription_Stub(
  8567. IRpcStubBuffer *This,
  8568. IRpcChannelBuffer *_pRpcChannelBuffer,
  8569. PRPC_MESSAGE _pRpcMessage,
  8570. DWORD *_pdwStubPhase);
  8571. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_SetId_Proxy(
  8572. ISpeechObjectToken * This,
  8573. /* [in] */ BSTR Id,
  8574. /* [defaultvalue][in] */ BSTR CategoryID,
  8575. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8576. void __RPC_STUB ISpeechObjectToken_SetId_Stub(
  8577. IRpcStubBuffer *This,
  8578. IRpcChannelBuffer *_pRpcChannelBuffer,
  8579. PRPC_MESSAGE _pRpcMessage,
  8580. DWORD *_pdwStubPhase);
  8581. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetAttribute_Proxy(
  8582. ISpeechObjectToken * This,
  8583. /* [in] */ BSTR AttributeName,
  8584. /* [retval][out] */ BSTR *AttributeValue);
  8585. void __RPC_STUB ISpeechObjectToken_GetAttribute_Stub(
  8586. IRpcStubBuffer *This,
  8587. IRpcChannelBuffer *_pRpcChannelBuffer,
  8588. PRPC_MESSAGE _pRpcMessage,
  8589. DWORD *_pdwStubPhase);
  8590. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_CreateInstance_Proxy(
  8591. ISpeechObjectToken * This,
  8592. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8593. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8594. /* [retval][out] */ IUnknown **Object);
  8595. void __RPC_STUB ISpeechObjectToken_CreateInstance_Stub(
  8596. IRpcStubBuffer *This,
  8597. IRpcChannelBuffer *_pRpcChannelBuffer,
  8598. PRPC_MESSAGE _pRpcMessage,
  8599. DWORD *_pdwStubPhase);
  8600. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_Remove_Proxy(
  8601. ISpeechObjectToken * This,
  8602. /* [in] */ BSTR ObjectStorageCLSID);
  8603. void __RPC_STUB ISpeechObjectToken_Remove_Stub(
  8604. IRpcStubBuffer *This,
  8605. IRpcChannelBuffer *_pRpcChannelBuffer,
  8606. PRPC_MESSAGE _pRpcMessage,
  8607. DWORD *_pdwStubPhase);
  8608. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetStorageFileName_Proxy(
  8609. ISpeechObjectToken * This,
  8610. /* [in] */ BSTR ObjectStorageCLSID,
  8611. /* [in] */ BSTR KeyName,
  8612. /* [in] */ BSTR FileName,
  8613. /* [in] */ SpeechTokenShellFolder Folder,
  8614. /* [retval][out] */ BSTR *FilePath);
  8615. void __RPC_STUB ISpeechObjectToken_GetStorageFileName_Stub(
  8616. IRpcStubBuffer *This,
  8617. IRpcChannelBuffer *_pRpcChannelBuffer,
  8618. PRPC_MESSAGE _pRpcMessage,
  8619. DWORD *_pdwStubPhase);
  8620. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_RemoveStorageFileName_Proxy(
  8621. ISpeechObjectToken * This,
  8622. /* [in] */ BSTR ObjectStorageCLSID,
  8623. /* [in] */ BSTR KeyName,
  8624. /* [in] */ VARIANT_BOOL DeleteFile);
  8625. void __RPC_STUB ISpeechObjectToken_RemoveStorageFileName_Stub(
  8626. IRpcStubBuffer *This,
  8627. IRpcChannelBuffer *_pRpcChannelBuffer,
  8628. PRPC_MESSAGE _pRpcMessage,
  8629. DWORD *_pdwStubPhase);
  8630. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_IsUISupported_Proxy(
  8631. ISpeechObjectToken * This,
  8632. /* [in] */ const BSTR TypeOfUI,
  8633. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8634. /* [defaultvalue][in] */ IUnknown *Object,
  8635. /* [retval][out] */ VARIANT_BOOL *Supported);
  8636. void __RPC_STUB ISpeechObjectToken_IsUISupported_Stub(
  8637. IRpcStubBuffer *This,
  8638. IRpcChannelBuffer *_pRpcChannelBuffer,
  8639. PRPC_MESSAGE _pRpcMessage,
  8640. DWORD *_pdwStubPhase);
  8641. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_DisplayUI_Proxy(
  8642. ISpeechObjectToken * This,
  8643. /* [in] */ long hWnd,
  8644. /* [in] */ BSTR Title,
  8645. /* [in] */ const BSTR TypeOfUI,
  8646. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8647. /* [defaultvalue][in] */ IUnknown *Object);
  8648. void __RPC_STUB ISpeechObjectToken_DisplayUI_Stub(
  8649. IRpcStubBuffer *This,
  8650. IRpcChannelBuffer *_pRpcChannelBuffer,
  8651. PRPC_MESSAGE _pRpcMessage,
  8652. DWORD *_pdwStubPhase);
  8653. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_MatchesAttributes_Proxy(
  8654. ISpeechObjectToken * This,
  8655. /* [in] */ BSTR Attributes,
  8656. /* [retval][out] */ VARIANT_BOOL *Matches);
  8657. void __RPC_STUB ISpeechObjectToken_MatchesAttributes_Stub(
  8658. IRpcStubBuffer *This,
  8659. IRpcChannelBuffer *_pRpcChannelBuffer,
  8660. PRPC_MESSAGE _pRpcMessage,
  8661. DWORD *_pdwStubPhase);
  8662. #endif /* __ISpeechObjectToken_INTERFACE_DEFINED__ */
  8663. #ifndef __ISpeechObjectTokens_INTERFACE_DEFINED__
  8664. #define __ISpeechObjectTokens_INTERFACE_DEFINED__
  8665. /* interface ISpeechObjectTokens */
  8666. /* [unique][helpstring][dual][uuid][object] */
  8667. EXTERN_C const IID IID_ISpeechObjectTokens;
  8668. #if defined(__cplusplus) && !defined(CINTERFACE)
  8669. MIDL_INTERFACE("9285B776-2E7B-4bc0-B53E-580EB6FA967F")
  8670. ISpeechObjectTokens : public IDispatch
  8671. {
  8672. public:
  8673. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  8674. /* [retval][out] */ long *Count) = 0;
  8675. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  8676. /* [in] */ long Index,
  8677. /* [retval][out] */ ISpeechObjectToken **Token) = 0;
  8678. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  8679. /* [retval][out] */ IUnknown **ppEnumVARIANT) = 0;
  8680. };
  8681. #else /* C style interface */
  8682. typedef struct ISpeechObjectTokensVtbl
  8683. {
  8684. BEGIN_INTERFACE
  8685. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8686. ISpeechObjectTokens * This,
  8687. /* [in] */ REFIID riid,
  8688. /* [iid_is][out] */ void **ppvObject);
  8689. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8690. ISpeechObjectTokens * This);
  8691. ULONG ( STDMETHODCALLTYPE *Release )(
  8692. ISpeechObjectTokens * This);
  8693. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8694. ISpeechObjectTokens * This,
  8695. /* [out] */ UINT *pctinfo);
  8696. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8697. ISpeechObjectTokens * This,
  8698. /* [in] */ UINT iTInfo,
  8699. /* [in] */ LCID lcid,
  8700. /* [out] */ ITypeInfo **ppTInfo);
  8701. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8702. ISpeechObjectTokens * This,
  8703. /* [in] */ REFIID riid,
  8704. /* [size_is][in] */ LPOLESTR *rgszNames,
  8705. /* [in] */ UINT cNames,
  8706. /* [in] */ LCID lcid,
  8707. /* [size_is][out] */ DISPID *rgDispId);
  8708. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8709. ISpeechObjectTokens * This,
  8710. /* [in] */ DISPID dispIdMember,
  8711. /* [in] */ REFIID riid,
  8712. /* [in] */ LCID lcid,
  8713. /* [in] */ WORD wFlags,
  8714. /* [out][in] */ DISPPARAMS *pDispParams,
  8715. /* [out] */ VARIANT *pVarResult,
  8716. /* [out] */ EXCEPINFO *pExcepInfo,
  8717. /* [out] */ UINT *puArgErr);
  8718. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  8719. ISpeechObjectTokens * This,
  8720. /* [retval][out] */ long *Count);
  8721. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  8722. ISpeechObjectTokens * This,
  8723. /* [in] */ long Index,
  8724. /* [retval][out] */ ISpeechObjectToken **Token);
  8725. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  8726. ISpeechObjectTokens * This,
  8727. /* [retval][out] */ IUnknown **ppEnumVARIANT);
  8728. END_INTERFACE
  8729. } ISpeechObjectTokensVtbl;
  8730. interface ISpeechObjectTokens
  8731. {
  8732. CONST_VTBL struct ISpeechObjectTokensVtbl *lpVtbl;
  8733. };
  8734. #ifdef COBJMACROS
  8735. #define ISpeechObjectTokens_QueryInterface(This,riid,ppvObject) \
  8736. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8737. #define ISpeechObjectTokens_AddRef(This) \
  8738. (This)->lpVtbl -> AddRef(This)
  8739. #define ISpeechObjectTokens_Release(This) \
  8740. (This)->lpVtbl -> Release(This)
  8741. #define ISpeechObjectTokens_GetTypeInfoCount(This,pctinfo) \
  8742. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8743. #define ISpeechObjectTokens_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8744. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8745. #define ISpeechObjectTokens_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8746. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8747. #define ISpeechObjectTokens_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8748. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8749. #define ISpeechObjectTokens_get_Count(This,Count) \
  8750. (This)->lpVtbl -> get_Count(This,Count)
  8751. #define ISpeechObjectTokens_Item(This,Index,Token) \
  8752. (This)->lpVtbl -> Item(This,Index,Token)
  8753. #define ISpeechObjectTokens_get__NewEnum(This,ppEnumVARIANT) \
  8754. (This)->lpVtbl -> get__NewEnum(This,ppEnumVARIANT)
  8755. #endif /* COBJMACROS */
  8756. #endif /* C style interface */
  8757. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_get_Count_Proxy(
  8758. ISpeechObjectTokens * This,
  8759. /* [retval][out] */ long *Count);
  8760. void __RPC_STUB ISpeechObjectTokens_get_Count_Stub(
  8761. IRpcStubBuffer *This,
  8762. IRpcChannelBuffer *_pRpcChannelBuffer,
  8763. PRPC_MESSAGE _pRpcMessage,
  8764. DWORD *_pdwStubPhase);
  8765. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_Item_Proxy(
  8766. ISpeechObjectTokens * This,
  8767. /* [in] */ long Index,
  8768. /* [retval][out] */ ISpeechObjectToken **Token);
  8769. void __RPC_STUB ISpeechObjectTokens_Item_Stub(
  8770. IRpcStubBuffer *This,
  8771. IRpcChannelBuffer *_pRpcChannelBuffer,
  8772. PRPC_MESSAGE _pRpcMessage,
  8773. DWORD *_pdwStubPhase);
  8774. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_get__NewEnum_Proxy(
  8775. ISpeechObjectTokens * This,
  8776. /* [retval][out] */ IUnknown **ppEnumVARIANT);
  8777. void __RPC_STUB ISpeechObjectTokens_get__NewEnum_Stub(
  8778. IRpcStubBuffer *This,
  8779. IRpcChannelBuffer *_pRpcChannelBuffer,
  8780. PRPC_MESSAGE _pRpcMessage,
  8781. DWORD *_pdwStubPhase);
  8782. #endif /* __ISpeechObjectTokens_INTERFACE_DEFINED__ */
  8783. #ifndef __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  8784. #define __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  8785. /* interface ISpeechObjectTokenCategory */
  8786. /* [unique][helpstring][dual][uuid][object] */
  8787. EXTERN_C const IID IID_ISpeechObjectTokenCategory;
  8788. #if defined(__cplusplus) && !defined(CINTERFACE)
  8789. MIDL_INTERFACE("CA7EAC50-2D01-4145-86D4-5AE7D70F4469")
  8790. ISpeechObjectTokenCategory : public IDispatch
  8791. {
  8792. public:
  8793. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  8794. /* [retval][out] */ BSTR *Id) = 0;
  8795. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Default(
  8796. /* [in] */ const BSTR TokenId) = 0;
  8797. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Default(
  8798. /* [retval][out] */ BSTR *TokenId) = 0;
  8799. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetId(
  8800. /* [in] */ const BSTR Id,
  8801. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist = 0) = 0;
  8802. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetDataKey(
  8803. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8804. /* [retval][out] */ ISpeechDataKey **DataKey) = 0;
  8805. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumerateTokens(
  8806. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8807. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8808. /* [retval][out] */ ISpeechObjectTokens **Tokens) = 0;
  8809. };
  8810. #else /* C style interface */
  8811. typedef struct ISpeechObjectTokenCategoryVtbl
  8812. {
  8813. BEGIN_INTERFACE
  8814. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8815. ISpeechObjectTokenCategory * This,
  8816. /* [in] */ REFIID riid,
  8817. /* [iid_is][out] */ void **ppvObject);
  8818. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8819. ISpeechObjectTokenCategory * This);
  8820. ULONG ( STDMETHODCALLTYPE *Release )(
  8821. ISpeechObjectTokenCategory * This);
  8822. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8823. ISpeechObjectTokenCategory * This,
  8824. /* [out] */ UINT *pctinfo);
  8825. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8826. ISpeechObjectTokenCategory * This,
  8827. /* [in] */ UINT iTInfo,
  8828. /* [in] */ LCID lcid,
  8829. /* [out] */ ITypeInfo **ppTInfo);
  8830. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8831. ISpeechObjectTokenCategory * This,
  8832. /* [in] */ REFIID riid,
  8833. /* [size_is][in] */ LPOLESTR *rgszNames,
  8834. /* [in] */ UINT cNames,
  8835. /* [in] */ LCID lcid,
  8836. /* [size_is][out] */ DISPID *rgDispId);
  8837. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8838. ISpeechObjectTokenCategory * This,
  8839. /* [in] */ DISPID dispIdMember,
  8840. /* [in] */ REFIID riid,
  8841. /* [in] */ LCID lcid,
  8842. /* [in] */ WORD wFlags,
  8843. /* [out][in] */ DISPPARAMS *pDispParams,
  8844. /* [out] */ VARIANT *pVarResult,
  8845. /* [out] */ EXCEPINFO *pExcepInfo,
  8846. /* [out] */ UINT *puArgErr);
  8847. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  8848. ISpeechObjectTokenCategory * This,
  8849. /* [retval][out] */ BSTR *Id);
  8850. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Default )(
  8851. ISpeechObjectTokenCategory * This,
  8852. /* [in] */ const BSTR TokenId);
  8853. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Default )(
  8854. ISpeechObjectTokenCategory * This,
  8855. /* [retval][out] */ BSTR *TokenId);
  8856. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetId )(
  8857. ISpeechObjectTokenCategory * This,
  8858. /* [in] */ const BSTR Id,
  8859. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8860. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDataKey )(
  8861. ISpeechObjectTokenCategory * This,
  8862. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8863. /* [retval][out] */ ISpeechDataKey **DataKey);
  8864. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumerateTokens )(
  8865. ISpeechObjectTokenCategory * This,
  8866. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8867. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8868. /* [retval][out] */ ISpeechObjectTokens **Tokens);
  8869. END_INTERFACE
  8870. } ISpeechObjectTokenCategoryVtbl;
  8871. interface ISpeechObjectTokenCategory
  8872. {
  8873. CONST_VTBL struct ISpeechObjectTokenCategoryVtbl *lpVtbl;
  8874. };
  8875. #ifdef COBJMACROS
  8876. #define ISpeechObjectTokenCategory_QueryInterface(This,riid,ppvObject) \
  8877. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8878. #define ISpeechObjectTokenCategory_AddRef(This) \
  8879. (This)->lpVtbl -> AddRef(This)
  8880. #define ISpeechObjectTokenCategory_Release(This) \
  8881. (This)->lpVtbl -> Release(This)
  8882. #define ISpeechObjectTokenCategory_GetTypeInfoCount(This,pctinfo) \
  8883. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8884. #define ISpeechObjectTokenCategory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8885. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8886. #define ISpeechObjectTokenCategory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8887. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8888. #define ISpeechObjectTokenCategory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8889. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8890. #define ISpeechObjectTokenCategory_get_Id(This,Id) \
  8891. (This)->lpVtbl -> get_Id(This,Id)
  8892. #define ISpeechObjectTokenCategory_put_Default(This,TokenId) \
  8893. (This)->lpVtbl -> put_Default(This,TokenId)
  8894. #define ISpeechObjectTokenCategory_get_Default(This,TokenId) \
  8895. (This)->lpVtbl -> get_Default(This,TokenId)
  8896. #define ISpeechObjectTokenCategory_SetId(This,Id,CreateIfNotExist) \
  8897. (This)->lpVtbl -> SetId(This,Id,CreateIfNotExist)
  8898. #define ISpeechObjectTokenCategory_GetDataKey(This,Location,DataKey) \
  8899. (This)->lpVtbl -> GetDataKey(This,Location,DataKey)
  8900. #define ISpeechObjectTokenCategory_EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens) \
  8901. (This)->lpVtbl -> EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens)
  8902. #endif /* COBJMACROS */
  8903. #endif /* C style interface */
  8904. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_get_Id_Proxy(
  8905. ISpeechObjectTokenCategory * This,
  8906. /* [retval][out] */ BSTR *Id);
  8907. void __RPC_STUB ISpeechObjectTokenCategory_get_Id_Stub(
  8908. IRpcStubBuffer *This,
  8909. IRpcChannelBuffer *_pRpcChannelBuffer,
  8910. PRPC_MESSAGE _pRpcMessage,
  8911. DWORD *_pdwStubPhase);
  8912. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_put_Default_Proxy(
  8913. ISpeechObjectTokenCategory * This,
  8914. /* [in] */ const BSTR TokenId);
  8915. void __RPC_STUB ISpeechObjectTokenCategory_put_Default_Stub(
  8916. IRpcStubBuffer *This,
  8917. IRpcChannelBuffer *_pRpcChannelBuffer,
  8918. PRPC_MESSAGE _pRpcMessage,
  8919. DWORD *_pdwStubPhase);
  8920. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_get_Default_Proxy(
  8921. ISpeechObjectTokenCategory * This,
  8922. /* [retval][out] */ BSTR *TokenId);
  8923. void __RPC_STUB ISpeechObjectTokenCategory_get_Default_Stub(
  8924. IRpcStubBuffer *This,
  8925. IRpcChannelBuffer *_pRpcChannelBuffer,
  8926. PRPC_MESSAGE _pRpcMessage,
  8927. DWORD *_pdwStubPhase);
  8928. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_SetId_Proxy(
  8929. ISpeechObjectTokenCategory * This,
  8930. /* [in] */ const BSTR Id,
  8931. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8932. void __RPC_STUB ISpeechObjectTokenCategory_SetId_Stub(
  8933. IRpcStubBuffer *This,
  8934. IRpcChannelBuffer *_pRpcChannelBuffer,
  8935. PRPC_MESSAGE _pRpcMessage,
  8936. DWORD *_pdwStubPhase);
  8937. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_GetDataKey_Proxy(
  8938. ISpeechObjectTokenCategory * This,
  8939. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8940. /* [retval][out] */ ISpeechDataKey **DataKey);
  8941. void __RPC_STUB ISpeechObjectTokenCategory_GetDataKey_Stub(
  8942. IRpcStubBuffer *This,
  8943. IRpcChannelBuffer *_pRpcChannelBuffer,
  8944. PRPC_MESSAGE _pRpcMessage,
  8945. DWORD *_pdwStubPhase);
  8946. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_EnumerateTokens_Proxy(
  8947. ISpeechObjectTokenCategory * This,
  8948. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8949. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8950. /* [retval][out] */ ISpeechObjectTokens **Tokens);
  8951. void __RPC_STUB ISpeechObjectTokenCategory_EnumerateTokens_Stub(
  8952. IRpcStubBuffer *This,
  8953. IRpcChannelBuffer *_pRpcChannelBuffer,
  8954. PRPC_MESSAGE _pRpcMessage,
  8955. DWORD *_pdwStubPhase);
  8956. #endif /* __ISpeechObjectTokenCategory_INTERFACE_DEFINED__ */
  8957. #ifndef __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  8958. #define __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  8959. /* interface ISpeechAudioBufferInfo */
  8960. /* [unique][helpstring][dual][uuid][object] */
  8961. EXTERN_C const IID IID_ISpeechAudioBufferInfo;
  8962. #if defined(__cplusplus) && !defined(CINTERFACE)
  8963. MIDL_INTERFACE("11B103D8-1142-4edf-A093-82FB3915F8CC")
  8964. ISpeechAudioBufferInfo : public IDispatch
  8965. {
  8966. public:
  8967. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_MinNotification(
  8968. /* [retval][out] */ long *MinNotification) = 0;
  8969. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_MinNotification(
  8970. /* [in] */ long MinNotification) = 0;
  8971. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferSize(
  8972. /* [retval][out] */ long *BufferSize) = 0;
  8973. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BufferSize(
  8974. /* [in] */ long BufferSize) = 0;
  8975. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventBias(
  8976. /* [retval][out] */ long *EventBias) = 0;
  8977. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventBias(
  8978. /* [in] */ long EventBias) = 0;
  8979. };
  8980. #else /* C style interface */
  8981. typedef struct ISpeechAudioBufferInfoVtbl
  8982. {
  8983. BEGIN_INTERFACE
  8984. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8985. ISpeechAudioBufferInfo * This,
  8986. /* [in] */ REFIID riid,
  8987. /* [iid_is][out] */ void **ppvObject);
  8988. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8989. ISpeechAudioBufferInfo * This);
  8990. ULONG ( STDMETHODCALLTYPE *Release )(
  8991. ISpeechAudioBufferInfo * This);
  8992. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8993. ISpeechAudioBufferInfo * This,
  8994. /* [out] */ UINT *pctinfo);
  8995. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8996. ISpeechAudioBufferInfo * This,
  8997. /* [in] */ UINT iTInfo,
  8998. /* [in] */ LCID lcid,
  8999. /* [out] */ ITypeInfo **ppTInfo);
  9000. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9001. ISpeechAudioBufferInfo * This,
  9002. /* [in] */ REFIID riid,
  9003. /* [size_is][in] */ LPOLESTR *rgszNames,
  9004. /* [in] */ UINT cNames,
  9005. /* [in] */ LCID lcid,
  9006. /* [size_is][out] */ DISPID *rgDispId);
  9007. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9008. ISpeechAudioBufferInfo * This,
  9009. /* [in] */ DISPID dispIdMember,
  9010. /* [in] */ REFIID riid,
  9011. /* [in] */ LCID lcid,
  9012. /* [in] */ WORD wFlags,
  9013. /* [out][in] */ DISPPARAMS *pDispParams,
  9014. /* [out] */ VARIANT *pVarResult,
  9015. /* [out] */ EXCEPINFO *pExcepInfo,
  9016. /* [out] */ UINT *puArgErr);
  9017. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinNotification )(
  9018. ISpeechAudioBufferInfo * This,
  9019. /* [retval][out] */ long *MinNotification);
  9020. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinNotification )(
  9021. ISpeechAudioBufferInfo * This,
  9022. /* [in] */ long MinNotification);
  9023. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferSize )(
  9024. ISpeechAudioBufferInfo * This,
  9025. /* [retval][out] */ long *BufferSize);
  9026. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferSize )(
  9027. ISpeechAudioBufferInfo * This,
  9028. /* [in] */ long BufferSize);
  9029. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventBias )(
  9030. ISpeechAudioBufferInfo * This,
  9031. /* [retval][out] */ long *EventBias);
  9032. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventBias )(
  9033. ISpeechAudioBufferInfo * This,
  9034. /* [in] */ long EventBias);
  9035. END_INTERFACE
  9036. } ISpeechAudioBufferInfoVtbl;
  9037. interface ISpeechAudioBufferInfo
  9038. {
  9039. CONST_VTBL struct ISpeechAudioBufferInfoVtbl *lpVtbl;
  9040. };
  9041. #ifdef COBJMACROS
  9042. #define ISpeechAudioBufferInfo_QueryInterface(This,riid,ppvObject) \
  9043. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9044. #define ISpeechAudioBufferInfo_AddRef(This) \
  9045. (This)->lpVtbl -> AddRef(This)
  9046. #define ISpeechAudioBufferInfo_Release(This) \
  9047. (This)->lpVtbl -> Release(This)
  9048. #define ISpeechAudioBufferInfo_GetTypeInfoCount(This,pctinfo) \
  9049. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9050. #define ISpeechAudioBufferInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9051. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9052. #define ISpeechAudioBufferInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9053. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9054. #define ISpeechAudioBufferInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9055. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9056. #define ISpeechAudioBufferInfo_get_MinNotification(This,MinNotification) \
  9057. (This)->lpVtbl -> get_MinNotification(This,MinNotification)
  9058. #define ISpeechAudioBufferInfo_put_MinNotification(This,MinNotification) \
  9059. (This)->lpVtbl -> put_MinNotification(This,MinNotification)
  9060. #define ISpeechAudioBufferInfo_get_BufferSize(This,BufferSize) \
  9061. (This)->lpVtbl -> get_BufferSize(This,BufferSize)
  9062. #define ISpeechAudioBufferInfo_put_BufferSize(This,BufferSize) \
  9063. (This)->lpVtbl -> put_BufferSize(This,BufferSize)
  9064. #define ISpeechAudioBufferInfo_get_EventBias(This,EventBias) \
  9065. (This)->lpVtbl -> get_EventBias(This,EventBias)
  9066. #define ISpeechAudioBufferInfo_put_EventBias(This,EventBias) \
  9067. (This)->lpVtbl -> put_EventBias(This,EventBias)
  9068. #endif /* COBJMACROS */
  9069. #endif /* C style interface */
  9070. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_MinNotification_Proxy(
  9071. ISpeechAudioBufferInfo * This,
  9072. /* [retval][out] */ long *MinNotification);
  9073. void __RPC_STUB ISpeechAudioBufferInfo_get_MinNotification_Stub(
  9074. IRpcStubBuffer *This,
  9075. IRpcChannelBuffer *_pRpcChannelBuffer,
  9076. PRPC_MESSAGE _pRpcMessage,
  9077. DWORD *_pdwStubPhase);
  9078. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_MinNotification_Proxy(
  9079. ISpeechAudioBufferInfo * This,
  9080. /* [in] */ long MinNotification);
  9081. void __RPC_STUB ISpeechAudioBufferInfo_put_MinNotification_Stub(
  9082. IRpcStubBuffer *This,
  9083. IRpcChannelBuffer *_pRpcChannelBuffer,
  9084. PRPC_MESSAGE _pRpcMessage,
  9085. DWORD *_pdwStubPhase);
  9086. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_BufferSize_Proxy(
  9087. ISpeechAudioBufferInfo * This,
  9088. /* [retval][out] */ long *BufferSize);
  9089. void __RPC_STUB ISpeechAudioBufferInfo_get_BufferSize_Stub(
  9090. IRpcStubBuffer *This,
  9091. IRpcChannelBuffer *_pRpcChannelBuffer,
  9092. PRPC_MESSAGE _pRpcMessage,
  9093. DWORD *_pdwStubPhase);
  9094. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_BufferSize_Proxy(
  9095. ISpeechAudioBufferInfo * This,
  9096. /* [in] */ long BufferSize);
  9097. void __RPC_STUB ISpeechAudioBufferInfo_put_BufferSize_Stub(
  9098. IRpcStubBuffer *This,
  9099. IRpcChannelBuffer *_pRpcChannelBuffer,
  9100. PRPC_MESSAGE _pRpcMessage,
  9101. DWORD *_pdwStubPhase);
  9102. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_EventBias_Proxy(
  9103. ISpeechAudioBufferInfo * This,
  9104. /* [retval][out] */ long *EventBias);
  9105. void __RPC_STUB ISpeechAudioBufferInfo_get_EventBias_Stub(
  9106. IRpcStubBuffer *This,
  9107. IRpcChannelBuffer *_pRpcChannelBuffer,
  9108. PRPC_MESSAGE _pRpcMessage,
  9109. DWORD *_pdwStubPhase);
  9110. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_EventBias_Proxy(
  9111. ISpeechAudioBufferInfo * This,
  9112. /* [in] */ long EventBias);
  9113. void __RPC_STUB ISpeechAudioBufferInfo_put_EventBias_Stub(
  9114. IRpcStubBuffer *This,
  9115. IRpcChannelBuffer *_pRpcChannelBuffer,
  9116. PRPC_MESSAGE _pRpcMessage,
  9117. DWORD *_pdwStubPhase);
  9118. #endif /* __ISpeechAudioBufferInfo_INTERFACE_DEFINED__ */
  9119. #ifndef __ISpeechAudioStatus_INTERFACE_DEFINED__
  9120. #define __ISpeechAudioStatus_INTERFACE_DEFINED__
  9121. /* interface ISpeechAudioStatus */
  9122. /* [unique][helpstring][dual][uuid][object] */
  9123. EXTERN_C const IID IID_ISpeechAudioStatus;
  9124. #if defined(__cplusplus) && !defined(CINTERFACE)
  9125. MIDL_INTERFACE("C62D9C91-7458-47f6-862D-1EF86FB0B278")
  9126. ISpeechAudioStatus : public IDispatch
  9127. {
  9128. public:
  9129. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FreeBufferSpace(
  9130. /* [retval][out] */ long *FreeBufferSpace) = 0;
  9131. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NonBlockingIO(
  9132. /* [retval][out] */ long *NonBlockingIO) = 0;
  9133. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  9134. /* [retval][out] */ SpeechAudioState *State) = 0;
  9135. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentSeekPosition(
  9136. /* [retval][out] */ VARIANT *CurrentSeekPosition) = 0;
  9137. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentDevicePosition(
  9138. /* [retval][out] */ VARIANT *CurrentDevicePosition) = 0;
  9139. };
  9140. #else /* C style interface */
  9141. typedef struct ISpeechAudioStatusVtbl
  9142. {
  9143. BEGIN_INTERFACE
  9144. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9145. ISpeechAudioStatus * This,
  9146. /* [in] */ REFIID riid,
  9147. /* [iid_is][out] */ void **ppvObject);
  9148. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9149. ISpeechAudioStatus * This);
  9150. ULONG ( STDMETHODCALLTYPE *Release )(
  9151. ISpeechAudioStatus * This);
  9152. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9153. ISpeechAudioStatus * This,
  9154. /* [out] */ UINT *pctinfo);
  9155. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9156. ISpeechAudioStatus * This,
  9157. /* [in] */ UINT iTInfo,
  9158. /* [in] */ LCID lcid,
  9159. /* [out] */ ITypeInfo **ppTInfo);
  9160. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9161. ISpeechAudioStatus * This,
  9162. /* [in] */ REFIID riid,
  9163. /* [size_is][in] */ LPOLESTR *rgszNames,
  9164. /* [in] */ UINT cNames,
  9165. /* [in] */ LCID lcid,
  9166. /* [size_is][out] */ DISPID *rgDispId);
  9167. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9168. ISpeechAudioStatus * This,
  9169. /* [in] */ DISPID dispIdMember,
  9170. /* [in] */ REFIID riid,
  9171. /* [in] */ LCID lcid,
  9172. /* [in] */ WORD wFlags,
  9173. /* [out][in] */ DISPPARAMS *pDispParams,
  9174. /* [out] */ VARIANT *pVarResult,
  9175. /* [out] */ EXCEPINFO *pExcepInfo,
  9176. /* [out] */ UINT *puArgErr);
  9177. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeBufferSpace )(
  9178. ISpeechAudioStatus * This,
  9179. /* [retval][out] */ long *FreeBufferSpace);
  9180. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonBlockingIO )(
  9181. ISpeechAudioStatus * This,
  9182. /* [retval][out] */ long *NonBlockingIO);
  9183. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  9184. ISpeechAudioStatus * This,
  9185. /* [retval][out] */ SpeechAudioState *State);
  9186. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentSeekPosition )(
  9187. ISpeechAudioStatus * This,
  9188. /* [retval][out] */ VARIANT *CurrentSeekPosition);
  9189. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentDevicePosition )(
  9190. ISpeechAudioStatus * This,
  9191. /* [retval][out] */ VARIANT *CurrentDevicePosition);
  9192. END_INTERFACE
  9193. } ISpeechAudioStatusVtbl;
  9194. interface ISpeechAudioStatus
  9195. {
  9196. CONST_VTBL struct ISpeechAudioStatusVtbl *lpVtbl;
  9197. };
  9198. #ifdef COBJMACROS
  9199. #define ISpeechAudioStatus_QueryInterface(This,riid,ppvObject) \
  9200. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9201. #define ISpeechAudioStatus_AddRef(This) \
  9202. (This)->lpVtbl -> AddRef(This)
  9203. #define ISpeechAudioStatus_Release(This) \
  9204. (This)->lpVtbl -> Release(This)
  9205. #define ISpeechAudioStatus_GetTypeInfoCount(This,pctinfo) \
  9206. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9207. #define ISpeechAudioStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9208. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9209. #define ISpeechAudioStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9210. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9211. #define ISpeechAudioStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9212. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9213. #define ISpeechAudioStatus_get_FreeBufferSpace(This,FreeBufferSpace) \
  9214. (This)->lpVtbl -> get_FreeBufferSpace(This,FreeBufferSpace)
  9215. #define ISpeechAudioStatus_get_NonBlockingIO(This,NonBlockingIO) \
  9216. (This)->lpVtbl -> get_NonBlockingIO(This,NonBlockingIO)
  9217. #define ISpeechAudioStatus_get_State(This,State) \
  9218. (This)->lpVtbl -> get_State(This,State)
  9219. #define ISpeechAudioStatus_get_CurrentSeekPosition(This,CurrentSeekPosition) \
  9220. (This)->lpVtbl -> get_CurrentSeekPosition(This,CurrentSeekPosition)
  9221. #define ISpeechAudioStatus_get_CurrentDevicePosition(This,CurrentDevicePosition) \
  9222. (This)->lpVtbl -> get_CurrentDevicePosition(This,CurrentDevicePosition)
  9223. #endif /* COBJMACROS */
  9224. #endif /* C style interface */
  9225. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_FreeBufferSpace_Proxy(
  9226. ISpeechAudioStatus * This,
  9227. /* [retval][out] */ long *FreeBufferSpace);
  9228. void __RPC_STUB ISpeechAudioStatus_get_FreeBufferSpace_Stub(
  9229. IRpcStubBuffer *This,
  9230. IRpcChannelBuffer *_pRpcChannelBuffer,
  9231. PRPC_MESSAGE _pRpcMessage,
  9232. DWORD *_pdwStubPhase);
  9233. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_NonBlockingIO_Proxy(
  9234. ISpeechAudioStatus * This,
  9235. /* [retval][out] */ long *NonBlockingIO);
  9236. void __RPC_STUB ISpeechAudioStatus_get_NonBlockingIO_Stub(
  9237. IRpcStubBuffer *This,
  9238. IRpcChannelBuffer *_pRpcChannelBuffer,
  9239. PRPC_MESSAGE _pRpcMessage,
  9240. DWORD *_pdwStubPhase);
  9241. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_State_Proxy(
  9242. ISpeechAudioStatus * This,
  9243. /* [retval][out] */ SpeechAudioState *State);
  9244. void __RPC_STUB ISpeechAudioStatus_get_State_Stub(
  9245. IRpcStubBuffer *This,
  9246. IRpcChannelBuffer *_pRpcChannelBuffer,
  9247. PRPC_MESSAGE _pRpcMessage,
  9248. DWORD *_pdwStubPhase);
  9249. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_CurrentSeekPosition_Proxy(
  9250. ISpeechAudioStatus * This,
  9251. /* [retval][out] */ VARIANT *CurrentSeekPosition);
  9252. void __RPC_STUB ISpeechAudioStatus_get_CurrentSeekPosition_Stub(
  9253. IRpcStubBuffer *This,
  9254. IRpcChannelBuffer *_pRpcChannelBuffer,
  9255. PRPC_MESSAGE _pRpcMessage,
  9256. DWORD *_pdwStubPhase);
  9257. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_CurrentDevicePosition_Proxy(
  9258. ISpeechAudioStatus * This,
  9259. /* [retval][out] */ VARIANT *CurrentDevicePosition);
  9260. void __RPC_STUB ISpeechAudioStatus_get_CurrentDevicePosition_Stub(
  9261. IRpcStubBuffer *This,
  9262. IRpcChannelBuffer *_pRpcChannelBuffer,
  9263. PRPC_MESSAGE _pRpcMessage,
  9264. DWORD *_pdwStubPhase);
  9265. #endif /* __ISpeechAudioStatus_INTERFACE_DEFINED__ */
  9266. #ifndef __ISpeechAudioFormat_INTERFACE_DEFINED__
  9267. #define __ISpeechAudioFormat_INTERFACE_DEFINED__
  9268. /* interface ISpeechAudioFormat */
  9269. /* [unique][helpstring][dual][uuid][object] */
  9270. EXTERN_C const IID IID_ISpeechAudioFormat;
  9271. #if defined(__cplusplus) && !defined(CINTERFACE)
  9272. MIDL_INTERFACE("E6E9C590-3E18-40e3-8299-061F98BDE7C7")
  9273. ISpeechAudioFormat : public IDispatch
  9274. {
  9275. public:
  9276. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Type(
  9277. /* [retval][out] */ SpeechAudioFormatType *AudioFormat) = 0;
  9278. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Type(
  9279. /* [in] */ SpeechAudioFormatType AudioFormat) = 0;
  9280. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_Guid(
  9281. /* [retval][out] */ BSTR *Guid) = 0;
  9282. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_Guid(
  9283. /* [in] */ BSTR Guid) = 0;
  9284. virtual /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE GetWaveFormatEx(
  9285. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx) = 0;
  9286. virtual /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE SetWaveFormatEx(
  9287. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx) = 0;
  9288. };
  9289. #else /* C style interface */
  9290. typedef struct ISpeechAudioFormatVtbl
  9291. {
  9292. BEGIN_INTERFACE
  9293. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9294. ISpeechAudioFormat * This,
  9295. /* [in] */ REFIID riid,
  9296. /* [iid_is][out] */ void **ppvObject);
  9297. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9298. ISpeechAudioFormat * This);
  9299. ULONG ( STDMETHODCALLTYPE *Release )(
  9300. ISpeechAudioFormat * This);
  9301. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9302. ISpeechAudioFormat * This,
  9303. /* [out] */ UINT *pctinfo);
  9304. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9305. ISpeechAudioFormat * This,
  9306. /* [in] */ UINT iTInfo,
  9307. /* [in] */ LCID lcid,
  9308. /* [out] */ ITypeInfo **ppTInfo);
  9309. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9310. ISpeechAudioFormat * This,
  9311. /* [in] */ REFIID riid,
  9312. /* [size_is][in] */ LPOLESTR *rgszNames,
  9313. /* [in] */ UINT cNames,
  9314. /* [in] */ LCID lcid,
  9315. /* [size_is][out] */ DISPID *rgDispId);
  9316. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9317. ISpeechAudioFormat * This,
  9318. /* [in] */ DISPID dispIdMember,
  9319. /* [in] */ REFIID riid,
  9320. /* [in] */ LCID lcid,
  9321. /* [in] */ WORD wFlags,
  9322. /* [out][in] */ DISPPARAMS *pDispParams,
  9323. /* [out] */ VARIANT *pVarResult,
  9324. /* [out] */ EXCEPINFO *pExcepInfo,
  9325. /* [out] */ UINT *puArgErr);
  9326. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  9327. ISpeechAudioFormat * This,
  9328. /* [retval][out] */ SpeechAudioFormatType *AudioFormat);
  9329. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )(
  9330. ISpeechAudioFormat * This,
  9331. /* [in] */ SpeechAudioFormatType AudioFormat);
  9332. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guid )(
  9333. ISpeechAudioFormat * This,
  9334. /* [retval][out] */ BSTR *Guid);
  9335. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Guid )(
  9336. ISpeechAudioFormat * This,
  9337. /* [in] */ BSTR Guid);
  9338. /* [id][helpstring][hidden] */ HRESULT ( STDMETHODCALLTYPE *GetWaveFormatEx )(
  9339. ISpeechAudioFormat * This,
  9340. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx);
  9341. /* [id][helpstring][hidden] */ HRESULT ( STDMETHODCALLTYPE *SetWaveFormatEx )(
  9342. ISpeechAudioFormat * This,
  9343. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx);
  9344. END_INTERFACE
  9345. } ISpeechAudioFormatVtbl;
  9346. interface ISpeechAudioFormat
  9347. {
  9348. CONST_VTBL struct ISpeechAudioFormatVtbl *lpVtbl;
  9349. };
  9350. #ifdef COBJMACROS
  9351. #define ISpeechAudioFormat_QueryInterface(This,riid,ppvObject) \
  9352. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9353. #define ISpeechAudioFormat_AddRef(This) \
  9354. (This)->lpVtbl -> AddRef(This)
  9355. #define ISpeechAudioFormat_Release(This) \
  9356. (This)->lpVtbl -> Release(This)
  9357. #define ISpeechAudioFormat_GetTypeInfoCount(This,pctinfo) \
  9358. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9359. #define ISpeechAudioFormat_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9360. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9361. #define ISpeechAudioFormat_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9362. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9363. #define ISpeechAudioFormat_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9364. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9365. #define ISpeechAudioFormat_get_Type(This,AudioFormat) \
  9366. (This)->lpVtbl -> get_Type(This,AudioFormat)
  9367. #define ISpeechAudioFormat_put_Type(This,AudioFormat) \
  9368. (This)->lpVtbl -> put_Type(This,AudioFormat)
  9369. #define ISpeechAudioFormat_get_Guid(This,Guid) \
  9370. (This)->lpVtbl -> get_Guid(This,Guid)
  9371. #define ISpeechAudioFormat_put_Guid(This,Guid) \
  9372. (This)->lpVtbl -> put_Guid(This,Guid)
  9373. #define ISpeechAudioFormat_GetWaveFormatEx(This,WaveFormatEx) \
  9374. (This)->lpVtbl -> GetWaveFormatEx(This,WaveFormatEx)
  9375. #define ISpeechAudioFormat_SetWaveFormatEx(This,WaveFormatEx) \
  9376. (This)->lpVtbl -> SetWaveFormatEx(This,WaveFormatEx)
  9377. #endif /* COBJMACROS */
  9378. #endif /* C style interface */
  9379. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_get_Type_Proxy(
  9380. ISpeechAudioFormat * This,
  9381. /* [retval][out] */ SpeechAudioFormatType *AudioFormat);
  9382. void __RPC_STUB ISpeechAudioFormat_get_Type_Stub(
  9383. IRpcStubBuffer *This,
  9384. IRpcChannelBuffer *_pRpcChannelBuffer,
  9385. PRPC_MESSAGE _pRpcMessage,
  9386. DWORD *_pdwStubPhase);
  9387. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_put_Type_Proxy(
  9388. ISpeechAudioFormat * This,
  9389. /* [in] */ SpeechAudioFormatType AudioFormat);
  9390. void __RPC_STUB ISpeechAudioFormat_put_Type_Stub(
  9391. IRpcStubBuffer *This,
  9392. IRpcChannelBuffer *_pRpcChannelBuffer,
  9393. PRPC_MESSAGE _pRpcMessage,
  9394. DWORD *_pdwStubPhase);
  9395. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_get_Guid_Proxy(
  9396. ISpeechAudioFormat * This,
  9397. /* [retval][out] */ BSTR *Guid);
  9398. void __RPC_STUB ISpeechAudioFormat_get_Guid_Stub(
  9399. IRpcStubBuffer *This,
  9400. IRpcChannelBuffer *_pRpcChannelBuffer,
  9401. PRPC_MESSAGE _pRpcMessage,
  9402. DWORD *_pdwStubPhase);
  9403. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_put_Guid_Proxy(
  9404. ISpeechAudioFormat * This,
  9405. /* [in] */ BSTR Guid);
  9406. void __RPC_STUB ISpeechAudioFormat_put_Guid_Stub(
  9407. IRpcStubBuffer *This,
  9408. IRpcChannelBuffer *_pRpcChannelBuffer,
  9409. PRPC_MESSAGE _pRpcMessage,
  9410. DWORD *_pdwStubPhase);
  9411. /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_GetWaveFormatEx_Proxy(
  9412. ISpeechAudioFormat * This,
  9413. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx);
  9414. void __RPC_STUB ISpeechAudioFormat_GetWaveFormatEx_Stub(
  9415. IRpcStubBuffer *This,
  9416. IRpcChannelBuffer *_pRpcChannelBuffer,
  9417. PRPC_MESSAGE _pRpcMessage,
  9418. DWORD *_pdwStubPhase);
  9419. /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_SetWaveFormatEx_Proxy(
  9420. ISpeechAudioFormat * This,
  9421. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx);
  9422. void __RPC_STUB ISpeechAudioFormat_SetWaveFormatEx_Stub(
  9423. IRpcStubBuffer *This,
  9424. IRpcChannelBuffer *_pRpcChannelBuffer,
  9425. PRPC_MESSAGE _pRpcMessage,
  9426. DWORD *_pdwStubPhase);
  9427. #endif /* __ISpeechAudioFormat_INTERFACE_DEFINED__ */
  9428. #ifndef __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  9429. #define __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  9430. /* interface ISpeechWaveFormatEx */
  9431. /* [unique][helpstring][dual][uuid][object] */
  9432. EXTERN_C const IID IID_ISpeechWaveFormatEx;
  9433. #if defined(__cplusplus) && !defined(CINTERFACE)
  9434. MIDL_INTERFACE("7A1EF0D5-1581-4741-88E4-209A49F11A10")
  9435. ISpeechWaveFormatEx : public IDispatch
  9436. {
  9437. public:
  9438. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FormatTag(
  9439. /* [retval][out] */ short *FormatTag) = 0;
  9440. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_FormatTag(
  9441. /* [in] */ short FormatTag) = 0;
  9442. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Channels(
  9443. /* [retval][out] */ short *Channels) = 0;
  9444. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Channels(
  9445. /* [in] */ short Channels) = 0;
  9446. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SamplesPerSec(
  9447. /* [retval][out] */ long *SamplesPerSec) = 0;
  9448. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SamplesPerSec(
  9449. /* [in] */ long SamplesPerSec) = 0;
  9450. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AvgBytesPerSec(
  9451. /* [retval][out] */ long *AvgBytesPerSec) = 0;
  9452. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_AvgBytesPerSec(
  9453. /* [in] */ long AvgBytesPerSec) = 0;
  9454. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BlockAlign(
  9455. /* [retval][out] */ short *BlockAlign) = 0;
  9456. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BlockAlign(
  9457. /* [in] */ short BlockAlign) = 0;
  9458. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BitsPerSample(
  9459. /* [retval][out] */ short *BitsPerSample) = 0;
  9460. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BitsPerSample(
  9461. /* [in] */ short BitsPerSample) = 0;
  9462. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ExtraData(
  9463. /* [retval][out] */ VARIANT *ExtraData) = 0;
  9464. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ExtraData(
  9465. /* [in] */ VARIANT ExtraData) = 0;
  9466. };
  9467. #else /* C style interface */
  9468. typedef struct ISpeechWaveFormatExVtbl
  9469. {
  9470. BEGIN_INTERFACE
  9471. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9472. ISpeechWaveFormatEx * This,
  9473. /* [in] */ REFIID riid,
  9474. /* [iid_is][out] */ void **ppvObject);
  9475. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9476. ISpeechWaveFormatEx * This);
  9477. ULONG ( STDMETHODCALLTYPE *Release )(
  9478. ISpeechWaveFormatEx * This);
  9479. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9480. ISpeechWaveFormatEx * This,
  9481. /* [out] */ UINT *pctinfo);
  9482. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9483. ISpeechWaveFormatEx * This,
  9484. /* [in] */ UINT iTInfo,
  9485. /* [in] */ LCID lcid,
  9486. /* [out] */ ITypeInfo **ppTInfo);
  9487. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9488. ISpeechWaveFormatEx * This,
  9489. /* [in] */ REFIID riid,
  9490. /* [size_is][in] */ LPOLESTR *rgszNames,
  9491. /* [in] */ UINT cNames,
  9492. /* [in] */ LCID lcid,
  9493. /* [size_is][out] */ DISPID *rgDispId);
  9494. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9495. ISpeechWaveFormatEx * This,
  9496. /* [in] */ DISPID dispIdMember,
  9497. /* [in] */ REFIID riid,
  9498. /* [in] */ LCID lcid,
  9499. /* [in] */ WORD wFlags,
  9500. /* [out][in] */ DISPPARAMS *pDispParams,
  9501. /* [out] */ VARIANT *pVarResult,
  9502. /* [out] */ EXCEPINFO *pExcepInfo,
  9503. /* [out] */ UINT *puArgErr);
  9504. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FormatTag )(
  9505. ISpeechWaveFormatEx * This,
  9506. /* [retval][out] */ short *FormatTag);
  9507. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FormatTag )(
  9508. ISpeechWaveFormatEx * This,
  9509. /* [in] */ short FormatTag);
  9510. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Channels )(
  9511. ISpeechWaveFormatEx * This,
  9512. /* [retval][out] */ short *Channels);
  9513. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Channels )(
  9514. ISpeechWaveFormatEx * This,
  9515. /* [in] */ short Channels);
  9516. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SamplesPerSec )(
  9517. ISpeechWaveFormatEx * This,
  9518. /* [retval][out] */ long *SamplesPerSec);
  9519. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SamplesPerSec )(
  9520. ISpeechWaveFormatEx * This,
  9521. /* [in] */ long SamplesPerSec);
  9522. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvgBytesPerSec )(
  9523. ISpeechWaveFormatEx * This,
  9524. /* [retval][out] */ long *AvgBytesPerSec);
  9525. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AvgBytesPerSec )(
  9526. ISpeechWaveFormatEx * This,
  9527. /* [in] */ long AvgBytesPerSec);
  9528. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockAlign )(
  9529. ISpeechWaveFormatEx * This,
  9530. /* [retval][out] */ short *BlockAlign);
  9531. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockAlign )(
  9532. ISpeechWaveFormatEx * This,
  9533. /* [in] */ short BlockAlign);
  9534. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitsPerSample )(
  9535. ISpeechWaveFormatEx * This,
  9536. /* [retval][out] */ short *BitsPerSample);
  9537. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BitsPerSample )(
  9538. ISpeechWaveFormatEx * This,
  9539. /* [in] */ short BitsPerSample);
  9540. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtraData )(
  9541. ISpeechWaveFormatEx * This,
  9542. /* [retval][out] */ VARIANT *ExtraData);
  9543. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExtraData )(
  9544. ISpeechWaveFormatEx * This,
  9545. /* [in] */ VARIANT ExtraData);
  9546. END_INTERFACE
  9547. } ISpeechWaveFormatExVtbl;
  9548. interface ISpeechWaveFormatEx
  9549. {
  9550. CONST_VTBL struct ISpeechWaveFormatExVtbl *lpVtbl;
  9551. };
  9552. #ifdef COBJMACROS
  9553. #define ISpeechWaveFormatEx_QueryInterface(This,riid,ppvObject) \
  9554. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9555. #define ISpeechWaveFormatEx_AddRef(This) \
  9556. (This)->lpVtbl -> AddRef(This)
  9557. #define ISpeechWaveFormatEx_Release(This) \
  9558. (This)->lpVtbl -> Release(This)
  9559. #define ISpeechWaveFormatEx_GetTypeInfoCount(This,pctinfo) \
  9560. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9561. #define ISpeechWaveFormatEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9562. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9563. #define ISpeechWaveFormatEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9564. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9565. #define ISpeechWaveFormatEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9566. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9567. #define ISpeechWaveFormatEx_get_FormatTag(This,FormatTag) \
  9568. (This)->lpVtbl -> get_FormatTag(This,FormatTag)
  9569. #define ISpeechWaveFormatEx_put_FormatTag(This,FormatTag) \
  9570. (This)->lpVtbl -> put_FormatTag(This,FormatTag)
  9571. #define ISpeechWaveFormatEx_get_Channels(This,Channels) \
  9572. (This)->lpVtbl -> get_Channels(This,Channels)
  9573. #define ISpeechWaveFormatEx_put_Channels(This,Channels) \
  9574. (This)->lpVtbl -> put_Channels(This,Channels)
  9575. #define ISpeechWaveFormatEx_get_SamplesPerSec(This,SamplesPerSec) \
  9576. (This)->lpVtbl -> get_SamplesPerSec(This,SamplesPerSec)
  9577. #define ISpeechWaveFormatEx_put_SamplesPerSec(This,SamplesPerSec) \
  9578. (This)->lpVtbl -> put_SamplesPerSec(This,SamplesPerSec)
  9579. #define ISpeechWaveFormatEx_get_AvgBytesPerSec(This,AvgBytesPerSec) \
  9580. (This)->lpVtbl -> get_AvgBytesPerSec(This,AvgBytesPerSec)
  9581. #define ISpeechWaveFormatEx_put_AvgBytesPerSec(This,AvgBytesPerSec) \
  9582. (This)->lpVtbl -> put_AvgBytesPerSec(This,AvgBytesPerSec)
  9583. #define ISpeechWaveFormatEx_get_BlockAlign(This,BlockAlign) \
  9584. (This)->lpVtbl -> get_BlockAlign(This,BlockAlign)
  9585. #define ISpeechWaveFormatEx_put_BlockAlign(This,BlockAlign) \
  9586. (This)->lpVtbl -> put_BlockAlign(This,BlockAlign)
  9587. #define ISpeechWaveFormatEx_get_BitsPerSample(This,BitsPerSample) \
  9588. (This)->lpVtbl -> get_BitsPerSample(This,BitsPerSample)
  9589. #define ISpeechWaveFormatEx_put_BitsPerSample(This,BitsPerSample) \
  9590. (This)->lpVtbl -> put_BitsPerSample(This,BitsPerSample)
  9591. #define ISpeechWaveFormatEx_get_ExtraData(This,ExtraData) \
  9592. (This)->lpVtbl -> get_ExtraData(This,ExtraData)
  9593. #define ISpeechWaveFormatEx_put_ExtraData(This,ExtraData) \
  9594. (This)->lpVtbl -> put_ExtraData(This,ExtraData)
  9595. #endif /* COBJMACROS */
  9596. #endif /* C style interface */
  9597. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_FormatTag_Proxy(
  9598. ISpeechWaveFormatEx * This,
  9599. /* [retval][out] */ short *FormatTag);
  9600. void __RPC_STUB ISpeechWaveFormatEx_get_FormatTag_Stub(
  9601. IRpcStubBuffer *This,
  9602. IRpcChannelBuffer *_pRpcChannelBuffer,
  9603. PRPC_MESSAGE _pRpcMessage,
  9604. DWORD *_pdwStubPhase);
  9605. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_FormatTag_Proxy(
  9606. ISpeechWaveFormatEx * This,
  9607. /* [in] */ short FormatTag);
  9608. void __RPC_STUB ISpeechWaveFormatEx_put_FormatTag_Stub(
  9609. IRpcStubBuffer *This,
  9610. IRpcChannelBuffer *_pRpcChannelBuffer,
  9611. PRPC_MESSAGE _pRpcMessage,
  9612. DWORD *_pdwStubPhase);
  9613. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_Channels_Proxy(
  9614. ISpeechWaveFormatEx * This,
  9615. /* [retval][out] */ short *Channels);
  9616. void __RPC_STUB ISpeechWaveFormatEx_get_Channels_Stub(
  9617. IRpcStubBuffer *This,
  9618. IRpcChannelBuffer *_pRpcChannelBuffer,
  9619. PRPC_MESSAGE _pRpcMessage,
  9620. DWORD *_pdwStubPhase);
  9621. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_Channels_Proxy(
  9622. ISpeechWaveFormatEx * This,
  9623. /* [in] */ short Channels);
  9624. void __RPC_STUB ISpeechWaveFormatEx_put_Channels_Stub(
  9625. IRpcStubBuffer *This,
  9626. IRpcChannelBuffer *_pRpcChannelBuffer,
  9627. PRPC_MESSAGE _pRpcMessage,
  9628. DWORD *_pdwStubPhase);
  9629. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_SamplesPerSec_Proxy(
  9630. ISpeechWaveFormatEx * This,
  9631. /* [retval][out] */ long *SamplesPerSec);
  9632. void __RPC_STUB ISpeechWaveFormatEx_get_SamplesPerSec_Stub(
  9633. IRpcStubBuffer *This,
  9634. IRpcChannelBuffer *_pRpcChannelBuffer,
  9635. PRPC_MESSAGE _pRpcMessage,
  9636. DWORD *_pdwStubPhase);
  9637. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_SamplesPerSec_Proxy(
  9638. ISpeechWaveFormatEx * This,
  9639. /* [in] */ long SamplesPerSec);
  9640. void __RPC_STUB ISpeechWaveFormatEx_put_SamplesPerSec_Stub(
  9641. IRpcStubBuffer *This,
  9642. IRpcChannelBuffer *_pRpcChannelBuffer,
  9643. PRPC_MESSAGE _pRpcMessage,
  9644. DWORD *_pdwStubPhase);
  9645. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_AvgBytesPerSec_Proxy(
  9646. ISpeechWaveFormatEx * This,
  9647. /* [retval][out] */ long *AvgBytesPerSec);
  9648. void __RPC_STUB ISpeechWaveFormatEx_get_AvgBytesPerSec_Stub(
  9649. IRpcStubBuffer *This,
  9650. IRpcChannelBuffer *_pRpcChannelBuffer,
  9651. PRPC_MESSAGE _pRpcMessage,
  9652. DWORD *_pdwStubPhase);
  9653. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_AvgBytesPerSec_Proxy(
  9654. ISpeechWaveFormatEx * This,
  9655. /* [in] */ long AvgBytesPerSec);
  9656. void __RPC_STUB ISpeechWaveFormatEx_put_AvgBytesPerSec_Stub(
  9657. IRpcStubBuffer *This,
  9658. IRpcChannelBuffer *_pRpcChannelBuffer,
  9659. PRPC_MESSAGE _pRpcMessage,
  9660. DWORD *_pdwStubPhase);
  9661. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_BlockAlign_Proxy(
  9662. ISpeechWaveFormatEx * This,
  9663. /* [retval][out] */ short *BlockAlign);
  9664. void __RPC_STUB ISpeechWaveFormatEx_get_BlockAlign_Stub(
  9665. IRpcStubBuffer *This,
  9666. IRpcChannelBuffer *_pRpcChannelBuffer,
  9667. PRPC_MESSAGE _pRpcMessage,
  9668. DWORD *_pdwStubPhase);
  9669. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_BlockAlign_Proxy(
  9670. ISpeechWaveFormatEx * This,
  9671. /* [in] */ short BlockAlign);
  9672. void __RPC_STUB ISpeechWaveFormatEx_put_BlockAlign_Stub(
  9673. IRpcStubBuffer *This,
  9674. IRpcChannelBuffer *_pRpcChannelBuffer,
  9675. PRPC_MESSAGE _pRpcMessage,
  9676. DWORD *_pdwStubPhase);
  9677. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_BitsPerSample_Proxy(
  9678. ISpeechWaveFormatEx * This,
  9679. /* [retval][out] */ short *BitsPerSample);
  9680. void __RPC_STUB ISpeechWaveFormatEx_get_BitsPerSample_Stub(
  9681. IRpcStubBuffer *This,
  9682. IRpcChannelBuffer *_pRpcChannelBuffer,
  9683. PRPC_MESSAGE _pRpcMessage,
  9684. DWORD *_pdwStubPhase);
  9685. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_BitsPerSample_Proxy(
  9686. ISpeechWaveFormatEx * This,
  9687. /* [in] */ short BitsPerSample);
  9688. void __RPC_STUB ISpeechWaveFormatEx_put_BitsPerSample_Stub(
  9689. IRpcStubBuffer *This,
  9690. IRpcChannelBuffer *_pRpcChannelBuffer,
  9691. PRPC_MESSAGE _pRpcMessage,
  9692. DWORD *_pdwStubPhase);
  9693. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_ExtraData_Proxy(
  9694. ISpeechWaveFormatEx * This,
  9695. /* [retval][out] */ VARIANT *ExtraData);
  9696. void __RPC_STUB ISpeechWaveFormatEx_get_ExtraData_Stub(
  9697. IRpcStubBuffer *This,
  9698. IRpcChannelBuffer *_pRpcChannelBuffer,
  9699. PRPC_MESSAGE _pRpcMessage,
  9700. DWORD *_pdwStubPhase);
  9701. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_ExtraData_Proxy(
  9702. ISpeechWaveFormatEx * This,
  9703. /* [in] */ VARIANT ExtraData);
  9704. void __RPC_STUB ISpeechWaveFormatEx_put_ExtraData_Stub(
  9705. IRpcStubBuffer *This,
  9706. IRpcChannelBuffer *_pRpcChannelBuffer,
  9707. PRPC_MESSAGE _pRpcMessage,
  9708. DWORD *_pdwStubPhase);
  9709. #endif /* __ISpeechWaveFormatEx_INTERFACE_DEFINED__ */
  9710. #ifndef __ISpeechBaseStream_INTERFACE_DEFINED__
  9711. #define __ISpeechBaseStream_INTERFACE_DEFINED__
  9712. /* interface ISpeechBaseStream */
  9713. /* [unique][helpstring][dual][uuid][object] */
  9714. EXTERN_C const IID IID_ISpeechBaseStream;
  9715. #if defined(__cplusplus) && !defined(CINTERFACE)
  9716. MIDL_INTERFACE("6450336F-7D49-4ced-8097-49D6DEE37294")
  9717. ISpeechBaseStream : public IDispatch
  9718. {
  9719. public:
  9720. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Format(
  9721. /* [retval][out] */ ISpeechAudioFormat **AudioFormat) = 0;
  9722. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Format(
  9723. /* [in] */ ISpeechAudioFormat *AudioFormat) = 0;
  9724. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Read(
  9725. /* [out] */ VARIANT *Buffer,
  9726. /* [in] */ long NumberOfBytes,
  9727. /* [retval][out] */ long *BytesRead) = 0;
  9728. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Write(
  9729. /* [in] */ VARIANT Buffer,
  9730. /* [retval][out] */ long *BytesWritten) = 0;
  9731. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Seek(
  9732. /* [in] */ VARIANT Position,
  9733. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9734. /* [retval][out] */ VARIANT *NewPosition) = 0;
  9735. };
  9736. #else /* C style interface */
  9737. typedef struct ISpeechBaseStreamVtbl
  9738. {
  9739. BEGIN_INTERFACE
  9740. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9741. ISpeechBaseStream * This,
  9742. /* [in] */ REFIID riid,
  9743. /* [iid_is][out] */ void **ppvObject);
  9744. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9745. ISpeechBaseStream * This);
  9746. ULONG ( STDMETHODCALLTYPE *Release )(
  9747. ISpeechBaseStream * This);
  9748. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9749. ISpeechBaseStream * This,
  9750. /* [out] */ UINT *pctinfo);
  9751. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9752. ISpeechBaseStream * This,
  9753. /* [in] */ UINT iTInfo,
  9754. /* [in] */ LCID lcid,
  9755. /* [out] */ ITypeInfo **ppTInfo);
  9756. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9757. ISpeechBaseStream * This,
  9758. /* [in] */ REFIID riid,
  9759. /* [size_is][in] */ LPOLESTR *rgszNames,
  9760. /* [in] */ UINT cNames,
  9761. /* [in] */ LCID lcid,
  9762. /* [size_is][out] */ DISPID *rgDispId);
  9763. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9764. ISpeechBaseStream * This,
  9765. /* [in] */ DISPID dispIdMember,
  9766. /* [in] */ REFIID riid,
  9767. /* [in] */ LCID lcid,
  9768. /* [in] */ WORD wFlags,
  9769. /* [out][in] */ DISPPARAMS *pDispParams,
  9770. /* [out] */ VARIANT *pVarResult,
  9771. /* [out] */ EXCEPINFO *pExcepInfo,
  9772. /* [out] */ UINT *puArgErr);
  9773. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  9774. ISpeechBaseStream * This,
  9775. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9776. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  9777. ISpeechBaseStream * This,
  9778. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9779. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  9780. ISpeechBaseStream * This,
  9781. /* [out] */ VARIANT *Buffer,
  9782. /* [in] */ long NumberOfBytes,
  9783. /* [retval][out] */ long *BytesRead);
  9784. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  9785. ISpeechBaseStream * This,
  9786. /* [in] */ VARIANT Buffer,
  9787. /* [retval][out] */ long *BytesWritten);
  9788. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  9789. ISpeechBaseStream * This,
  9790. /* [in] */ VARIANT Position,
  9791. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9792. /* [retval][out] */ VARIANT *NewPosition);
  9793. END_INTERFACE
  9794. } ISpeechBaseStreamVtbl;
  9795. interface ISpeechBaseStream
  9796. {
  9797. CONST_VTBL struct ISpeechBaseStreamVtbl *lpVtbl;
  9798. };
  9799. #ifdef COBJMACROS
  9800. #define ISpeechBaseStream_QueryInterface(This,riid,ppvObject) \
  9801. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9802. #define ISpeechBaseStream_AddRef(This) \
  9803. (This)->lpVtbl -> AddRef(This)
  9804. #define ISpeechBaseStream_Release(This) \
  9805. (This)->lpVtbl -> Release(This)
  9806. #define ISpeechBaseStream_GetTypeInfoCount(This,pctinfo) \
  9807. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9808. #define ISpeechBaseStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9809. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9810. #define ISpeechBaseStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9811. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9812. #define ISpeechBaseStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9813. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9814. #define ISpeechBaseStream_get_Format(This,AudioFormat) \
  9815. (This)->lpVtbl -> get_Format(This,AudioFormat)
  9816. #define ISpeechBaseStream_putref_Format(This,AudioFormat) \
  9817. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  9818. #define ISpeechBaseStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  9819. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  9820. #define ISpeechBaseStream_Write(This,Buffer,BytesWritten) \
  9821. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  9822. #define ISpeechBaseStream_Seek(This,Position,Origin,NewPosition) \
  9823. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  9824. #endif /* COBJMACROS */
  9825. #endif /* C style interface */
  9826. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_get_Format_Proxy(
  9827. ISpeechBaseStream * This,
  9828. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9829. void __RPC_STUB ISpeechBaseStream_get_Format_Stub(
  9830. IRpcStubBuffer *This,
  9831. IRpcChannelBuffer *_pRpcChannelBuffer,
  9832. PRPC_MESSAGE _pRpcMessage,
  9833. DWORD *_pdwStubPhase);
  9834. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_putref_Format_Proxy(
  9835. ISpeechBaseStream * This,
  9836. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9837. void __RPC_STUB ISpeechBaseStream_putref_Format_Stub(
  9838. IRpcStubBuffer *This,
  9839. IRpcChannelBuffer *_pRpcChannelBuffer,
  9840. PRPC_MESSAGE _pRpcMessage,
  9841. DWORD *_pdwStubPhase);
  9842. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Read_Proxy(
  9843. ISpeechBaseStream * This,
  9844. /* [out] */ VARIANT *Buffer,
  9845. /* [in] */ long NumberOfBytes,
  9846. /* [retval][out] */ long *BytesRead);
  9847. void __RPC_STUB ISpeechBaseStream_Read_Stub(
  9848. IRpcStubBuffer *This,
  9849. IRpcChannelBuffer *_pRpcChannelBuffer,
  9850. PRPC_MESSAGE _pRpcMessage,
  9851. DWORD *_pdwStubPhase);
  9852. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Write_Proxy(
  9853. ISpeechBaseStream * This,
  9854. /* [in] */ VARIANT Buffer,
  9855. /* [retval][out] */ long *BytesWritten);
  9856. void __RPC_STUB ISpeechBaseStream_Write_Stub(
  9857. IRpcStubBuffer *This,
  9858. IRpcChannelBuffer *_pRpcChannelBuffer,
  9859. PRPC_MESSAGE _pRpcMessage,
  9860. DWORD *_pdwStubPhase);
  9861. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Seek_Proxy(
  9862. ISpeechBaseStream * This,
  9863. /* [in] */ VARIANT Position,
  9864. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9865. /* [retval][out] */ VARIANT *NewPosition);
  9866. void __RPC_STUB ISpeechBaseStream_Seek_Stub(
  9867. IRpcStubBuffer *This,
  9868. IRpcChannelBuffer *_pRpcChannelBuffer,
  9869. PRPC_MESSAGE _pRpcMessage,
  9870. DWORD *_pdwStubPhase);
  9871. #endif /* __ISpeechBaseStream_INTERFACE_DEFINED__ */
  9872. #ifndef __ISpeechFileStream_INTERFACE_DEFINED__
  9873. #define __ISpeechFileStream_INTERFACE_DEFINED__
  9874. /* interface ISpeechFileStream */
  9875. /* [unique][helpstring][dual][uuid][object] */
  9876. EXTERN_C const IID IID_ISpeechFileStream;
  9877. #if defined(__cplusplus) && !defined(CINTERFACE)
  9878. MIDL_INTERFACE("AF67F125-AB39-4e93-B4A2-CC2E66E182A7")
  9879. ISpeechFileStream : public ISpeechBaseStream
  9880. {
  9881. public:
  9882. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Open(
  9883. /* [in] */ BSTR FileName,
  9884. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode = SSFMOpenForRead,
  9885. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents = 0) = 0;
  9886. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Close( void) = 0;
  9887. };
  9888. #else /* C style interface */
  9889. typedef struct ISpeechFileStreamVtbl
  9890. {
  9891. BEGIN_INTERFACE
  9892. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9893. ISpeechFileStream * This,
  9894. /* [in] */ REFIID riid,
  9895. /* [iid_is][out] */ void **ppvObject);
  9896. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9897. ISpeechFileStream * This);
  9898. ULONG ( STDMETHODCALLTYPE *Release )(
  9899. ISpeechFileStream * This);
  9900. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9901. ISpeechFileStream * This,
  9902. /* [out] */ UINT *pctinfo);
  9903. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9904. ISpeechFileStream * This,
  9905. /* [in] */ UINT iTInfo,
  9906. /* [in] */ LCID lcid,
  9907. /* [out] */ ITypeInfo **ppTInfo);
  9908. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9909. ISpeechFileStream * This,
  9910. /* [in] */ REFIID riid,
  9911. /* [size_is][in] */ LPOLESTR *rgszNames,
  9912. /* [in] */ UINT cNames,
  9913. /* [in] */ LCID lcid,
  9914. /* [size_is][out] */ DISPID *rgDispId);
  9915. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9916. ISpeechFileStream * This,
  9917. /* [in] */ DISPID dispIdMember,
  9918. /* [in] */ REFIID riid,
  9919. /* [in] */ LCID lcid,
  9920. /* [in] */ WORD wFlags,
  9921. /* [out][in] */ DISPPARAMS *pDispParams,
  9922. /* [out] */ VARIANT *pVarResult,
  9923. /* [out] */ EXCEPINFO *pExcepInfo,
  9924. /* [out] */ UINT *puArgErr);
  9925. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  9926. ISpeechFileStream * This,
  9927. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9928. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  9929. ISpeechFileStream * This,
  9930. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9931. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  9932. ISpeechFileStream * This,
  9933. /* [out] */ VARIANT *Buffer,
  9934. /* [in] */ long NumberOfBytes,
  9935. /* [retval][out] */ long *BytesRead);
  9936. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  9937. ISpeechFileStream * This,
  9938. /* [in] */ VARIANT Buffer,
  9939. /* [retval][out] */ long *BytesWritten);
  9940. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  9941. ISpeechFileStream * This,
  9942. /* [in] */ VARIANT Position,
  9943. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9944. /* [retval][out] */ VARIANT *NewPosition);
  9945. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Open )(
  9946. ISpeechFileStream * This,
  9947. /* [in] */ BSTR FileName,
  9948. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode,
  9949. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents);
  9950. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Close )(
  9951. ISpeechFileStream * This);
  9952. END_INTERFACE
  9953. } ISpeechFileStreamVtbl;
  9954. interface ISpeechFileStream
  9955. {
  9956. CONST_VTBL struct ISpeechFileStreamVtbl *lpVtbl;
  9957. };
  9958. #ifdef COBJMACROS
  9959. #define ISpeechFileStream_QueryInterface(This,riid,ppvObject) \
  9960. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9961. #define ISpeechFileStream_AddRef(This) \
  9962. (This)->lpVtbl -> AddRef(This)
  9963. #define ISpeechFileStream_Release(This) \
  9964. (This)->lpVtbl -> Release(This)
  9965. #define ISpeechFileStream_GetTypeInfoCount(This,pctinfo) \
  9966. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9967. #define ISpeechFileStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9968. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9969. #define ISpeechFileStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9970. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9971. #define ISpeechFileStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9972. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9973. #define ISpeechFileStream_get_Format(This,AudioFormat) \
  9974. (This)->lpVtbl -> get_Format(This,AudioFormat)
  9975. #define ISpeechFileStream_putref_Format(This,AudioFormat) \
  9976. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  9977. #define ISpeechFileStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  9978. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  9979. #define ISpeechFileStream_Write(This,Buffer,BytesWritten) \
  9980. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  9981. #define ISpeechFileStream_Seek(This,Position,Origin,NewPosition) \
  9982. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  9983. #define ISpeechFileStream_Open(This,FileName,FileMode,DoEvents) \
  9984. (This)->lpVtbl -> Open(This,FileName,FileMode,DoEvents)
  9985. #define ISpeechFileStream_Close(This) \
  9986. (This)->lpVtbl -> Close(This)
  9987. #endif /* COBJMACROS */
  9988. #endif /* C style interface */
  9989. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechFileStream_Open_Proxy(
  9990. ISpeechFileStream * This,
  9991. /* [in] */ BSTR FileName,
  9992. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode,
  9993. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents);
  9994. void __RPC_STUB ISpeechFileStream_Open_Stub(
  9995. IRpcStubBuffer *This,
  9996. IRpcChannelBuffer *_pRpcChannelBuffer,
  9997. PRPC_MESSAGE _pRpcMessage,
  9998. DWORD *_pdwStubPhase);
  9999. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechFileStream_Close_Proxy(
  10000. ISpeechFileStream * This);
  10001. void __RPC_STUB ISpeechFileStream_Close_Stub(
  10002. IRpcStubBuffer *This,
  10003. IRpcChannelBuffer *_pRpcChannelBuffer,
  10004. PRPC_MESSAGE _pRpcMessage,
  10005. DWORD *_pdwStubPhase);
  10006. #endif /* __ISpeechFileStream_INTERFACE_DEFINED__ */
  10007. #ifndef __ISpeechMemoryStream_INTERFACE_DEFINED__
  10008. #define __ISpeechMemoryStream_INTERFACE_DEFINED__
  10009. /* interface ISpeechMemoryStream */
  10010. /* [unique][helpstring][dual][uuid][object] */
  10011. EXTERN_C const IID IID_ISpeechMemoryStream;
  10012. #if defined(__cplusplus) && !defined(CINTERFACE)
  10013. MIDL_INTERFACE("EEB14B68-808B-4abe-A5EA-B51DA7588008")
  10014. ISpeechMemoryStream : public ISpeechBaseStream
  10015. {
  10016. public:
  10017. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetData(
  10018. /* [in] */ VARIANT Data) = 0;
  10019. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetData(
  10020. /* [retval][out] */ VARIANT *pData) = 0;
  10021. };
  10022. #else /* C style interface */
  10023. typedef struct ISpeechMemoryStreamVtbl
  10024. {
  10025. BEGIN_INTERFACE
  10026. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10027. ISpeechMemoryStream * This,
  10028. /* [in] */ REFIID riid,
  10029. /* [iid_is][out] */ void **ppvObject);
  10030. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10031. ISpeechMemoryStream * This);
  10032. ULONG ( STDMETHODCALLTYPE *Release )(
  10033. ISpeechMemoryStream * This);
  10034. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10035. ISpeechMemoryStream * This,
  10036. /* [out] */ UINT *pctinfo);
  10037. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10038. ISpeechMemoryStream * This,
  10039. /* [in] */ UINT iTInfo,
  10040. /* [in] */ LCID lcid,
  10041. /* [out] */ ITypeInfo **ppTInfo);
  10042. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10043. ISpeechMemoryStream * This,
  10044. /* [in] */ REFIID riid,
  10045. /* [size_is][in] */ LPOLESTR *rgszNames,
  10046. /* [in] */ UINT cNames,
  10047. /* [in] */ LCID lcid,
  10048. /* [size_is][out] */ DISPID *rgDispId);
  10049. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10050. ISpeechMemoryStream * This,
  10051. /* [in] */ DISPID dispIdMember,
  10052. /* [in] */ REFIID riid,
  10053. /* [in] */ LCID lcid,
  10054. /* [in] */ WORD wFlags,
  10055. /* [out][in] */ DISPPARAMS *pDispParams,
  10056. /* [out] */ VARIANT *pVarResult,
  10057. /* [out] */ EXCEPINFO *pExcepInfo,
  10058. /* [out] */ UINT *puArgErr);
  10059. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10060. ISpeechMemoryStream * This,
  10061. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10062. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10063. ISpeechMemoryStream * This,
  10064. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10065. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10066. ISpeechMemoryStream * This,
  10067. /* [out] */ VARIANT *Buffer,
  10068. /* [in] */ long NumberOfBytes,
  10069. /* [retval][out] */ long *BytesRead);
  10070. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10071. ISpeechMemoryStream * This,
  10072. /* [in] */ VARIANT Buffer,
  10073. /* [retval][out] */ long *BytesWritten);
  10074. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10075. ISpeechMemoryStream * This,
  10076. /* [in] */ VARIANT Position,
  10077. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10078. /* [retval][out] */ VARIANT *NewPosition);
  10079. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetData )(
  10080. ISpeechMemoryStream * This,
  10081. /* [in] */ VARIANT Data);
  10082. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetData )(
  10083. ISpeechMemoryStream * This,
  10084. /* [retval][out] */ VARIANT *pData);
  10085. END_INTERFACE
  10086. } ISpeechMemoryStreamVtbl;
  10087. interface ISpeechMemoryStream
  10088. {
  10089. CONST_VTBL struct ISpeechMemoryStreamVtbl *lpVtbl;
  10090. };
  10091. #ifdef COBJMACROS
  10092. #define ISpeechMemoryStream_QueryInterface(This,riid,ppvObject) \
  10093. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10094. #define ISpeechMemoryStream_AddRef(This) \
  10095. (This)->lpVtbl -> AddRef(This)
  10096. #define ISpeechMemoryStream_Release(This) \
  10097. (This)->lpVtbl -> Release(This)
  10098. #define ISpeechMemoryStream_GetTypeInfoCount(This,pctinfo) \
  10099. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10100. #define ISpeechMemoryStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10101. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10102. #define ISpeechMemoryStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10103. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10104. #define ISpeechMemoryStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10105. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10106. #define ISpeechMemoryStream_get_Format(This,AudioFormat) \
  10107. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10108. #define ISpeechMemoryStream_putref_Format(This,AudioFormat) \
  10109. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10110. #define ISpeechMemoryStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10111. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10112. #define ISpeechMemoryStream_Write(This,Buffer,BytesWritten) \
  10113. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10114. #define ISpeechMemoryStream_Seek(This,Position,Origin,NewPosition) \
  10115. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10116. #define ISpeechMemoryStream_SetData(This,Data) \
  10117. (This)->lpVtbl -> SetData(This,Data)
  10118. #define ISpeechMemoryStream_GetData(This,pData) \
  10119. (This)->lpVtbl -> GetData(This,pData)
  10120. #endif /* COBJMACROS */
  10121. #endif /* C style interface */
  10122. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechMemoryStream_SetData_Proxy(
  10123. ISpeechMemoryStream * This,
  10124. /* [in] */ VARIANT Data);
  10125. void __RPC_STUB ISpeechMemoryStream_SetData_Stub(
  10126. IRpcStubBuffer *This,
  10127. IRpcChannelBuffer *_pRpcChannelBuffer,
  10128. PRPC_MESSAGE _pRpcMessage,
  10129. DWORD *_pdwStubPhase);
  10130. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechMemoryStream_GetData_Proxy(
  10131. ISpeechMemoryStream * This,
  10132. /* [retval][out] */ VARIANT *pData);
  10133. void __RPC_STUB ISpeechMemoryStream_GetData_Stub(
  10134. IRpcStubBuffer *This,
  10135. IRpcChannelBuffer *_pRpcChannelBuffer,
  10136. PRPC_MESSAGE _pRpcMessage,
  10137. DWORD *_pdwStubPhase);
  10138. #endif /* __ISpeechMemoryStream_INTERFACE_DEFINED__ */
  10139. #ifndef __ISpeechCustomStream_INTERFACE_DEFINED__
  10140. #define __ISpeechCustomStream_INTERFACE_DEFINED__
  10141. /* interface ISpeechCustomStream */
  10142. /* [unique][helpstring][dual][uuid][object] */
  10143. EXTERN_C const IID IID_ISpeechCustomStream;
  10144. #if defined(__cplusplus) && !defined(CINTERFACE)
  10145. MIDL_INTERFACE("1A9E9F4F-104F-4db8-A115-EFD7FD0C97AE")
  10146. ISpeechCustomStream : public ISpeechBaseStream
  10147. {
  10148. public:
  10149. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BaseStream(
  10150. /* [retval][out] */ IUnknown **ppUnkStream) = 0;
  10151. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_BaseStream(
  10152. /* [in] */ IUnknown *pUnkStream) = 0;
  10153. };
  10154. #else /* C style interface */
  10155. typedef struct ISpeechCustomStreamVtbl
  10156. {
  10157. BEGIN_INTERFACE
  10158. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10159. ISpeechCustomStream * This,
  10160. /* [in] */ REFIID riid,
  10161. /* [iid_is][out] */ void **ppvObject);
  10162. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10163. ISpeechCustomStream * This);
  10164. ULONG ( STDMETHODCALLTYPE *Release )(
  10165. ISpeechCustomStream * This);
  10166. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10167. ISpeechCustomStream * This,
  10168. /* [out] */ UINT *pctinfo);
  10169. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10170. ISpeechCustomStream * This,
  10171. /* [in] */ UINT iTInfo,
  10172. /* [in] */ LCID lcid,
  10173. /* [out] */ ITypeInfo **ppTInfo);
  10174. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10175. ISpeechCustomStream * This,
  10176. /* [in] */ REFIID riid,
  10177. /* [size_is][in] */ LPOLESTR *rgszNames,
  10178. /* [in] */ UINT cNames,
  10179. /* [in] */ LCID lcid,
  10180. /* [size_is][out] */ DISPID *rgDispId);
  10181. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10182. ISpeechCustomStream * This,
  10183. /* [in] */ DISPID dispIdMember,
  10184. /* [in] */ REFIID riid,
  10185. /* [in] */ LCID lcid,
  10186. /* [in] */ WORD wFlags,
  10187. /* [out][in] */ DISPPARAMS *pDispParams,
  10188. /* [out] */ VARIANT *pVarResult,
  10189. /* [out] */ EXCEPINFO *pExcepInfo,
  10190. /* [out] */ UINT *puArgErr);
  10191. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10192. ISpeechCustomStream * This,
  10193. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10194. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10195. ISpeechCustomStream * This,
  10196. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10197. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10198. ISpeechCustomStream * This,
  10199. /* [out] */ VARIANT *Buffer,
  10200. /* [in] */ long NumberOfBytes,
  10201. /* [retval][out] */ long *BytesRead);
  10202. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10203. ISpeechCustomStream * This,
  10204. /* [in] */ VARIANT Buffer,
  10205. /* [retval][out] */ long *BytesWritten);
  10206. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10207. ISpeechCustomStream * This,
  10208. /* [in] */ VARIANT Position,
  10209. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10210. /* [retval][out] */ VARIANT *NewPosition);
  10211. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BaseStream )(
  10212. ISpeechCustomStream * This,
  10213. /* [retval][out] */ IUnknown **ppUnkStream);
  10214. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_BaseStream )(
  10215. ISpeechCustomStream * This,
  10216. /* [in] */ IUnknown *pUnkStream);
  10217. END_INTERFACE
  10218. } ISpeechCustomStreamVtbl;
  10219. interface ISpeechCustomStream
  10220. {
  10221. CONST_VTBL struct ISpeechCustomStreamVtbl *lpVtbl;
  10222. };
  10223. #ifdef COBJMACROS
  10224. #define ISpeechCustomStream_QueryInterface(This,riid,ppvObject) \
  10225. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10226. #define ISpeechCustomStream_AddRef(This) \
  10227. (This)->lpVtbl -> AddRef(This)
  10228. #define ISpeechCustomStream_Release(This) \
  10229. (This)->lpVtbl -> Release(This)
  10230. #define ISpeechCustomStream_GetTypeInfoCount(This,pctinfo) \
  10231. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10232. #define ISpeechCustomStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10233. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10234. #define ISpeechCustomStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10235. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10236. #define ISpeechCustomStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10237. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10238. #define ISpeechCustomStream_get_Format(This,AudioFormat) \
  10239. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10240. #define ISpeechCustomStream_putref_Format(This,AudioFormat) \
  10241. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10242. #define ISpeechCustomStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10243. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10244. #define ISpeechCustomStream_Write(This,Buffer,BytesWritten) \
  10245. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10246. #define ISpeechCustomStream_Seek(This,Position,Origin,NewPosition) \
  10247. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10248. #define ISpeechCustomStream_get_BaseStream(This,ppUnkStream) \
  10249. (This)->lpVtbl -> get_BaseStream(This,ppUnkStream)
  10250. #define ISpeechCustomStream_putref_BaseStream(This,pUnkStream) \
  10251. (This)->lpVtbl -> putref_BaseStream(This,pUnkStream)
  10252. #endif /* COBJMACROS */
  10253. #endif /* C style interface */
  10254. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechCustomStream_get_BaseStream_Proxy(
  10255. ISpeechCustomStream * This,
  10256. /* [retval][out] */ IUnknown **ppUnkStream);
  10257. void __RPC_STUB ISpeechCustomStream_get_BaseStream_Stub(
  10258. IRpcStubBuffer *This,
  10259. IRpcChannelBuffer *_pRpcChannelBuffer,
  10260. PRPC_MESSAGE _pRpcMessage,
  10261. DWORD *_pdwStubPhase);
  10262. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechCustomStream_putref_BaseStream_Proxy(
  10263. ISpeechCustomStream * This,
  10264. /* [in] */ IUnknown *pUnkStream);
  10265. void __RPC_STUB ISpeechCustomStream_putref_BaseStream_Stub(
  10266. IRpcStubBuffer *This,
  10267. IRpcChannelBuffer *_pRpcChannelBuffer,
  10268. PRPC_MESSAGE _pRpcMessage,
  10269. DWORD *_pdwStubPhase);
  10270. #endif /* __ISpeechCustomStream_INTERFACE_DEFINED__ */
  10271. #ifndef __ISpeechAudio_INTERFACE_DEFINED__
  10272. #define __ISpeechAudio_INTERFACE_DEFINED__
  10273. /* interface ISpeechAudio */
  10274. /* [unique][helpstring][dual][uuid][object] */
  10275. EXTERN_C const IID IID_ISpeechAudio;
  10276. #if defined(__cplusplus) && !defined(CINTERFACE)
  10277. MIDL_INTERFACE("CFF8E175-019E-11d3-A08E-00C04F8EF9B5")
  10278. ISpeechAudio : public ISpeechBaseStream
  10279. {
  10280. public:
  10281. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  10282. /* [retval][out] */ ISpeechAudioStatus **Status) = 0;
  10283. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferInfo(
  10284. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo) = 0;
  10285. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultFormat(
  10286. /* [retval][out] */ ISpeechAudioFormat **StreamFormat) = 0;
  10287. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Volume(
  10288. /* [retval][out] */ long *Volume) = 0;
  10289. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Volume(
  10290. /* [in] */ long Volume) = 0;
  10291. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferNotifySize(
  10292. /* [retval][out] */ long *BufferNotifySize) = 0;
  10293. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BufferNotifySize(
  10294. /* [in] */ long BufferNotifySize) = 0;
  10295. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_EventHandle(
  10296. /* [retval][out] */ long *EventHandle) = 0;
  10297. virtual /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE SetState(
  10298. /* [in] */ SpeechAudioState State) = 0;
  10299. };
  10300. #else /* C style interface */
  10301. typedef struct ISpeechAudioVtbl
  10302. {
  10303. BEGIN_INTERFACE
  10304. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10305. ISpeechAudio * This,
  10306. /* [in] */ REFIID riid,
  10307. /* [iid_is][out] */ void **ppvObject);
  10308. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10309. ISpeechAudio * This);
  10310. ULONG ( STDMETHODCALLTYPE *Release )(
  10311. ISpeechAudio * This);
  10312. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10313. ISpeechAudio * This,
  10314. /* [out] */ UINT *pctinfo);
  10315. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10316. ISpeechAudio * This,
  10317. /* [in] */ UINT iTInfo,
  10318. /* [in] */ LCID lcid,
  10319. /* [out] */ ITypeInfo **ppTInfo);
  10320. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10321. ISpeechAudio * This,
  10322. /* [in] */ REFIID riid,
  10323. /* [size_is][in] */ LPOLESTR *rgszNames,
  10324. /* [in] */ UINT cNames,
  10325. /* [in] */ LCID lcid,
  10326. /* [size_is][out] */ DISPID *rgDispId);
  10327. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10328. ISpeechAudio * This,
  10329. /* [in] */ DISPID dispIdMember,
  10330. /* [in] */ REFIID riid,
  10331. /* [in] */ LCID lcid,
  10332. /* [in] */ WORD wFlags,
  10333. /* [out][in] */ DISPPARAMS *pDispParams,
  10334. /* [out] */ VARIANT *pVarResult,
  10335. /* [out] */ EXCEPINFO *pExcepInfo,
  10336. /* [out] */ UINT *puArgErr);
  10337. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10338. ISpeechAudio * This,
  10339. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10340. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10341. ISpeechAudio * This,
  10342. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10343. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10344. ISpeechAudio * This,
  10345. /* [out] */ VARIANT *Buffer,
  10346. /* [in] */ long NumberOfBytes,
  10347. /* [retval][out] */ long *BytesRead);
  10348. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10349. ISpeechAudio * This,
  10350. /* [in] */ VARIANT Buffer,
  10351. /* [retval][out] */ long *BytesWritten);
  10352. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10353. ISpeechAudio * This,
  10354. /* [in] */ VARIANT Position,
  10355. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10356. /* [retval][out] */ VARIANT *NewPosition);
  10357. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10358. ISpeechAudio * This,
  10359. /* [retval][out] */ ISpeechAudioStatus **Status);
  10360. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferInfo )(
  10361. ISpeechAudio * This,
  10362. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10363. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFormat )(
  10364. ISpeechAudio * This,
  10365. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10366. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10367. ISpeechAudio * This,
  10368. /* [retval][out] */ long *Volume);
  10369. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10370. ISpeechAudio * This,
  10371. /* [in] */ long Volume);
  10372. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferNotifySize )(
  10373. ISpeechAudio * This,
  10374. /* [retval][out] */ long *BufferNotifySize);
  10375. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferNotifySize )(
  10376. ISpeechAudio * This,
  10377. /* [in] */ long BufferNotifySize);
  10378. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventHandle )(
  10379. ISpeechAudio * This,
  10380. /* [retval][out] */ long *EventHandle);
  10381. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetState )(
  10382. ISpeechAudio * This,
  10383. /* [in] */ SpeechAudioState State);
  10384. END_INTERFACE
  10385. } ISpeechAudioVtbl;
  10386. interface ISpeechAudio
  10387. {
  10388. CONST_VTBL struct ISpeechAudioVtbl *lpVtbl;
  10389. };
  10390. #ifdef COBJMACROS
  10391. #define ISpeechAudio_QueryInterface(This,riid,ppvObject) \
  10392. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10393. #define ISpeechAudio_AddRef(This) \
  10394. (This)->lpVtbl -> AddRef(This)
  10395. #define ISpeechAudio_Release(This) \
  10396. (This)->lpVtbl -> Release(This)
  10397. #define ISpeechAudio_GetTypeInfoCount(This,pctinfo) \
  10398. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10399. #define ISpeechAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10400. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10401. #define ISpeechAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10402. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10403. #define ISpeechAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10404. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10405. #define ISpeechAudio_get_Format(This,AudioFormat) \
  10406. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10407. #define ISpeechAudio_putref_Format(This,AudioFormat) \
  10408. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10409. #define ISpeechAudio_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10410. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10411. #define ISpeechAudio_Write(This,Buffer,BytesWritten) \
  10412. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10413. #define ISpeechAudio_Seek(This,Position,Origin,NewPosition) \
  10414. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10415. #define ISpeechAudio_get_Status(This,Status) \
  10416. (This)->lpVtbl -> get_Status(This,Status)
  10417. #define ISpeechAudio_get_BufferInfo(This,BufferInfo) \
  10418. (This)->lpVtbl -> get_BufferInfo(This,BufferInfo)
  10419. #define ISpeechAudio_get_DefaultFormat(This,StreamFormat) \
  10420. (This)->lpVtbl -> get_DefaultFormat(This,StreamFormat)
  10421. #define ISpeechAudio_get_Volume(This,Volume) \
  10422. (This)->lpVtbl -> get_Volume(This,Volume)
  10423. #define ISpeechAudio_put_Volume(This,Volume) \
  10424. (This)->lpVtbl -> put_Volume(This,Volume)
  10425. #define ISpeechAudio_get_BufferNotifySize(This,BufferNotifySize) \
  10426. (This)->lpVtbl -> get_BufferNotifySize(This,BufferNotifySize)
  10427. #define ISpeechAudio_put_BufferNotifySize(This,BufferNotifySize) \
  10428. (This)->lpVtbl -> put_BufferNotifySize(This,BufferNotifySize)
  10429. #define ISpeechAudio_get_EventHandle(This,EventHandle) \
  10430. (This)->lpVtbl -> get_EventHandle(This,EventHandle)
  10431. #define ISpeechAudio_SetState(This,State) \
  10432. (This)->lpVtbl -> SetState(This,State)
  10433. #endif /* COBJMACROS */
  10434. #endif /* C style interface */
  10435. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_Status_Proxy(
  10436. ISpeechAudio * This,
  10437. /* [retval][out] */ ISpeechAudioStatus **Status);
  10438. void __RPC_STUB ISpeechAudio_get_Status_Stub(
  10439. IRpcStubBuffer *This,
  10440. IRpcChannelBuffer *_pRpcChannelBuffer,
  10441. PRPC_MESSAGE _pRpcMessage,
  10442. DWORD *_pdwStubPhase);
  10443. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_BufferInfo_Proxy(
  10444. ISpeechAudio * This,
  10445. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10446. void __RPC_STUB ISpeechAudio_get_BufferInfo_Stub(
  10447. IRpcStubBuffer *This,
  10448. IRpcChannelBuffer *_pRpcChannelBuffer,
  10449. PRPC_MESSAGE _pRpcMessage,
  10450. DWORD *_pdwStubPhase);
  10451. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_DefaultFormat_Proxy(
  10452. ISpeechAudio * This,
  10453. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10454. void __RPC_STUB ISpeechAudio_get_DefaultFormat_Stub(
  10455. IRpcStubBuffer *This,
  10456. IRpcChannelBuffer *_pRpcChannelBuffer,
  10457. PRPC_MESSAGE _pRpcMessage,
  10458. DWORD *_pdwStubPhase);
  10459. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_Volume_Proxy(
  10460. ISpeechAudio * This,
  10461. /* [retval][out] */ long *Volume);
  10462. void __RPC_STUB ISpeechAudio_get_Volume_Stub(
  10463. IRpcStubBuffer *This,
  10464. IRpcChannelBuffer *_pRpcChannelBuffer,
  10465. PRPC_MESSAGE _pRpcMessage,
  10466. DWORD *_pdwStubPhase);
  10467. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_put_Volume_Proxy(
  10468. ISpeechAudio * This,
  10469. /* [in] */ long Volume);
  10470. void __RPC_STUB ISpeechAudio_put_Volume_Stub(
  10471. IRpcStubBuffer *This,
  10472. IRpcChannelBuffer *_pRpcChannelBuffer,
  10473. PRPC_MESSAGE _pRpcMessage,
  10474. DWORD *_pdwStubPhase);
  10475. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_BufferNotifySize_Proxy(
  10476. ISpeechAudio * This,
  10477. /* [retval][out] */ long *BufferNotifySize);
  10478. void __RPC_STUB ISpeechAudio_get_BufferNotifySize_Stub(
  10479. IRpcStubBuffer *This,
  10480. IRpcChannelBuffer *_pRpcChannelBuffer,
  10481. PRPC_MESSAGE _pRpcMessage,
  10482. DWORD *_pdwStubPhase);
  10483. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_put_BufferNotifySize_Proxy(
  10484. ISpeechAudio * This,
  10485. /* [in] */ long BufferNotifySize);
  10486. void __RPC_STUB ISpeechAudio_put_BufferNotifySize_Stub(
  10487. IRpcStubBuffer *This,
  10488. IRpcChannelBuffer *_pRpcChannelBuffer,
  10489. PRPC_MESSAGE _pRpcMessage,
  10490. DWORD *_pdwStubPhase);
  10491. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_EventHandle_Proxy(
  10492. ISpeechAudio * This,
  10493. /* [retval][out] */ long *EventHandle);
  10494. void __RPC_STUB ISpeechAudio_get_EventHandle_Stub(
  10495. IRpcStubBuffer *This,
  10496. IRpcChannelBuffer *_pRpcChannelBuffer,
  10497. PRPC_MESSAGE _pRpcMessage,
  10498. DWORD *_pdwStubPhase);
  10499. /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_SetState_Proxy(
  10500. ISpeechAudio * This,
  10501. /* [in] */ SpeechAudioState State);
  10502. void __RPC_STUB ISpeechAudio_SetState_Stub(
  10503. IRpcStubBuffer *This,
  10504. IRpcChannelBuffer *_pRpcChannelBuffer,
  10505. PRPC_MESSAGE _pRpcMessage,
  10506. DWORD *_pdwStubPhase);
  10507. #endif /* __ISpeechAudio_INTERFACE_DEFINED__ */
  10508. #ifndef __ISpeechMMSysAudio_INTERFACE_DEFINED__
  10509. #define __ISpeechMMSysAudio_INTERFACE_DEFINED__
  10510. /* interface ISpeechMMSysAudio */
  10511. /* [unique][helpstring][dual][uuid][object] */
  10512. EXTERN_C const IID IID_ISpeechMMSysAudio;
  10513. #if defined(__cplusplus) && !defined(CINTERFACE)
  10514. MIDL_INTERFACE("3C76AF6D-1FD7-4831-81D1-3B71D5A13C44")
  10515. ISpeechMMSysAudio : public ISpeechAudio
  10516. {
  10517. public:
  10518. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId(
  10519. /* [retval][out] */ long *DeviceId) = 0;
  10520. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_DeviceId(
  10521. /* [in] */ long DeviceId) = 0;
  10522. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LineId(
  10523. /* [retval][out] */ long *LineId) = 0;
  10524. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_LineId(
  10525. /* [in] */ long LineId) = 0;
  10526. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_MMHandle(
  10527. /* [retval][out] */ long *Handle) = 0;
  10528. };
  10529. #else /* C style interface */
  10530. typedef struct ISpeechMMSysAudioVtbl
  10531. {
  10532. BEGIN_INTERFACE
  10533. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10534. ISpeechMMSysAudio * This,
  10535. /* [in] */ REFIID riid,
  10536. /* [iid_is][out] */ void **ppvObject);
  10537. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10538. ISpeechMMSysAudio * This);
  10539. ULONG ( STDMETHODCALLTYPE *Release )(
  10540. ISpeechMMSysAudio * This);
  10541. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10542. ISpeechMMSysAudio * This,
  10543. /* [out] */ UINT *pctinfo);
  10544. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10545. ISpeechMMSysAudio * This,
  10546. /* [in] */ UINT iTInfo,
  10547. /* [in] */ LCID lcid,
  10548. /* [out] */ ITypeInfo **ppTInfo);
  10549. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10550. ISpeechMMSysAudio * This,
  10551. /* [in] */ REFIID riid,
  10552. /* [size_is][in] */ LPOLESTR *rgszNames,
  10553. /* [in] */ UINT cNames,
  10554. /* [in] */ LCID lcid,
  10555. /* [size_is][out] */ DISPID *rgDispId);
  10556. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10557. ISpeechMMSysAudio * This,
  10558. /* [in] */ DISPID dispIdMember,
  10559. /* [in] */ REFIID riid,
  10560. /* [in] */ LCID lcid,
  10561. /* [in] */ WORD wFlags,
  10562. /* [out][in] */ DISPPARAMS *pDispParams,
  10563. /* [out] */ VARIANT *pVarResult,
  10564. /* [out] */ EXCEPINFO *pExcepInfo,
  10565. /* [out] */ UINT *puArgErr);
  10566. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10567. ISpeechMMSysAudio * This,
  10568. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10569. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10570. ISpeechMMSysAudio * This,
  10571. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10572. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10573. ISpeechMMSysAudio * This,
  10574. /* [out] */ VARIANT *Buffer,
  10575. /* [in] */ long NumberOfBytes,
  10576. /* [retval][out] */ long *BytesRead);
  10577. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10578. ISpeechMMSysAudio * This,
  10579. /* [in] */ VARIANT Buffer,
  10580. /* [retval][out] */ long *BytesWritten);
  10581. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10582. ISpeechMMSysAudio * This,
  10583. /* [in] */ VARIANT Position,
  10584. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10585. /* [retval][out] */ VARIANT *NewPosition);
  10586. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10587. ISpeechMMSysAudio * This,
  10588. /* [retval][out] */ ISpeechAudioStatus **Status);
  10589. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferInfo )(
  10590. ISpeechMMSysAudio * This,
  10591. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10592. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFormat )(
  10593. ISpeechMMSysAudio * This,
  10594. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10595. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10596. ISpeechMMSysAudio * This,
  10597. /* [retval][out] */ long *Volume);
  10598. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10599. ISpeechMMSysAudio * This,
  10600. /* [in] */ long Volume);
  10601. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferNotifySize )(
  10602. ISpeechMMSysAudio * This,
  10603. /* [retval][out] */ long *BufferNotifySize);
  10604. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferNotifySize )(
  10605. ISpeechMMSysAudio * This,
  10606. /* [in] */ long BufferNotifySize);
  10607. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventHandle )(
  10608. ISpeechMMSysAudio * This,
  10609. /* [retval][out] */ long *EventHandle);
  10610. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetState )(
  10611. ISpeechMMSysAudio * This,
  10612. /* [in] */ SpeechAudioState State);
  10613. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )(
  10614. ISpeechMMSysAudio * This,
  10615. /* [retval][out] */ long *DeviceId);
  10616. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DeviceId )(
  10617. ISpeechMMSysAudio * This,
  10618. /* [in] */ long DeviceId);
  10619. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineId )(
  10620. ISpeechMMSysAudio * This,
  10621. /* [retval][out] */ long *LineId);
  10622. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LineId )(
  10623. ISpeechMMSysAudio * This,
  10624. /* [in] */ long LineId);
  10625. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MMHandle )(
  10626. ISpeechMMSysAudio * This,
  10627. /* [retval][out] */ long *Handle);
  10628. END_INTERFACE
  10629. } ISpeechMMSysAudioVtbl;
  10630. interface ISpeechMMSysAudio
  10631. {
  10632. CONST_VTBL struct ISpeechMMSysAudioVtbl *lpVtbl;
  10633. };
  10634. #ifdef COBJMACROS
  10635. #define ISpeechMMSysAudio_QueryInterface(This,riid,ppvObject) \
  10636. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10637. #define ISpeechMMSysAudio_AddRef(This) \
  10638. (This)->lpVtbl -> AddRef(This)
  10639. #define ISpeechMMSysAudio_Release(This) \
  10640. (This)->lpVtbl -> Release(This)
  10641. #define ISpeechMMSysAudio_GetTypeInfoCount(This,pctinfo) \
  10642. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10643. #define ISpeechMMSysAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10644. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10645. #define ISpeechMMSysAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10646. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10647. #define ISpeechMMSysAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10648. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10649. #define ISpeechMMSysAudio_get_Format(This,AudioFormat) \
  10650. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10651. #define ISpeechMMSysAudio_putref_Format(This,AudioFormat) \
  10652. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10653. #define ISpeechMMSysAudio_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10654. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10655. #define ISpeechMMSysAudio_Write(This,Buffer,BytesWritten) \
  10656. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10657. #define ISpeechMMSysAudio_Seek(This,Position,Origin,NewPosition) \
  10658. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10659. #define ISpeechMMSysAudio_get_Status(This,Status) \
  10660. (This)->lpVtbl -> get_Status(This,Status)
  10661. #define ISpeechMMSysAudio_get_BufferInfo(This,BufferInfo) \
  10662. (This)->lpVtbl -> get_BufferInfo(This,BufferInfo)
  10663. #define ISpeechMMSysAudio_get_DefaultFormat(This,StreamFormat) \
  10664. (This)->lpVtbl -> get_DefaultFormat(This,StreamFormat)
  10665. #define ISpeechMMSysAudio_get_Volume(This,Volume) \
  10666. (This)->lpVtbl -> get_Volume(This,Volume)
  10667. #define ISpeechMMSysAudio_put_Volume(This,Volume) \
  10668. (This)->lpVtbl -> put_Volume(This,Volume)
  10669. #define ISpeechMMSysAudio_get_BufferNotifySize(This,BufferNotifySize) \
  10670. (This)->lpVtbl -> get_BufferNotifySize(This,BufferNotifySize)
  10671. #define ISpeechMMSysAudio_put_BufferNotifySize(This,BufferNotifySize) \
  10672. (This)->lpVtbl -> put_BufferNotifySize(This,BufferNotifySize)
  10673. #define ISpeechMMSysAudio_get_EventHandle(This,EventHandle) \
  10674. (This)->lpVtbl -> get_EventHandle(This,EventHandle)
  10675. #define ISpeechMMSysAudio_SetState(This,State) \
  10676. (This)->lpVtbl -> SetState(This,State)
  10677. #define ISpeechMMSysAudio_get_DeviceId(This,DeviceId) \
  10678. (This)->lpVtbl -> get_DeviceId(This,DeviceId)
  10679. #define ISpeechMMSysAudio_put_DeviceId(This,DeviceId) \
  10680. (This)->lpVtbl -> put_DeviceId(This,DeviceId)
  10681. #define ISpeechMMSysAudio_get_LineId(This,LineId) \
  10682. (This)->lpVtbl -> get_LineId(This,LineId)
  10683. #define ISpeechMMSysAudio_put_LineId(This,LineId) \
  10684. (This)->lpVtbl -> put_LineId(This,LineId)
  10685. #define ISpeechMMSysAudio_get_MMHandle(This,Handle) \
  10686. (This)->lpVtbl -> get_MMHandle(This,Handle)
  10687. #endif /* COBJMACROS */
  10688. #endif /* C style interface */
  10689. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_DeviceId_Proxy(
  10690. ISpeechMMSysAudio * This,
  10691. /* [retval][out] */ long *DeviceId);
  10692. void __RPC_STUB ISpeechMMSysAudio_get_DeviceId_Stub(
  10693. IRpcStubBuffer *This,
  10694. IRpcChannelBuffer *_pRpcChannelBuffer,
  10695. PRPC_MESSAGE _pRpcMessage,
  10696. DWORD *_pdwStubPhase);
  10697. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_put_DeviceId_Proxy(
  10698. ISpeechMMSysAudio * This,
  10699. /* [in] */ long DeviceId);
  10700. void __RPC_STUB ISpeechMMSysAudio_put_DeviceId_Stub(
  10701. IRpcStubBuffer *This,
  10702. IRpcChannelBuffer *_pRpcChannelBuffer,
  10703. PRPC_MESSAGE _pRpcMessage,
  10704. DWORD *_pdwStubPhase);
  10705. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_LineId_Proxy(
  10706. ISpeechMMSysAudio * This,
  10707. /* [retval][out] */ long *LineId);
  10708. void __RPC_STUB ISpeechMMSysAudio_get_LineId_Stub(
  10709. IRpcStubBuffer *This,
  10710. IRpcChannelBuffer *_pRpcChannelBuffer,
  10711. PRPC_MESSAGE _pRpcMessage,
  10712. DWORD *_pdwStubPhase);
  10713. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_put_LineId_Proxy(
  10714. ISpeechMMSysAudio * This,
  10715. /* [in] */ long LineId);
  10716. void __RPC_STUB ISpeechMMSysAudio_put_LineId_Stub(
  10717. IRpcStubBuffer *This,
  10718. IRpcChannelBuffer *_pRpcChannelBuffer,
  10719. PRPC_MESSAGE _pRpcMessage,
  10720. DWORD *_pdwStubPhase);
  10721. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_MMHandle_Proxy(
  10722. ISpeechMMSysAudio * This,
  10723. /* [retval][out] */ long *Handle);
  10724. void __RPC_STUB ISpeechMMSysAudio_get_MMHandle_Stub(
  10725. IRpcStubBuffer *This,
  10726. IRpcChannelBuffer *_pRpcChannelBuffer,
  10727. PRPC_MESSAGE _pRpcMessage,
  10728. DWORD *_pdwStubPhase);
  10729. #endif /* __ISpeechMMSysAudio_INTERFACE_DEFINED__ */
  10730. #ifndef __ISpeechVoice_INTERFACE_DEFINED__
  10731. #define __ISpeechVoice_INTERFACE_DEFINED__
  10732. /* interface ISpeechVoice */
  10733. /* [unique][helpstring][dual][uuid][object] */
  10734. EXTERN_C const IID IID_ISpeechVoice;
  10735. #if defined(__cplusplus) && !defined(CINTERFACE)
  10736. MIDL_INTERFACE("269316D8-57BD-11D2-9EEE-00C04F797396")
  10737. ISpeechVoice : public IDispatch
  10738. {
  10739. public:
  10740. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  10741. /* [retval][out] */ ISpeechVoiceStatus **Status) = 0;
  10742. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Voice(
  10743. /* [retval][out] */ ISpeechObjectToken **Voice) = 0;
  10744. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Voice(
  10745. /* [in] */ ISpeechObjectToken *Voice) = 0;
  10746. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioOutput(
  10747. /* [retval][out] */ ISpeechObjectToken **AudioOutput) = 0;
  10748. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioOutput(
  10749. /* [in] */ ISpeechObjectToken *AudioOutput) = 0;
  10750. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioOutputStream(
  10751. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream) = 0;
  10752. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioOutputStream(
  10753. /* [in] */ ISpeechBaseStream *AudioOutputStream) = 0;
  10754. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rate(
  10755. /* [retval][out] */ long *Rate) = 0;
  10756. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Rate(
  10757. /* [in] */ long Rate) = 0;
  10758. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Volume(
  10759. /* [retval][out] */ long *Volume) = 0;
  10760. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Volume(
  10761. /* [in] */ long Volume) = 0;
  10762. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowAudioOutputFormatChangesOnNextSet(
  10763. /* [in] */ VARIANT_BOOL Allow) = 0;
  10764. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowAudioOutputFormatChangesOnNextSet(
  10765. /* [retval][out] */ VARIANT_BOOL *Allow) = 0;
  10766. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventInterests(
  10767. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags) = 0;
  10768. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventInterests(
  10769. /* [in] */ SpeechVoiceEvents EventInterestFlags) = 0;
  10770. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Priority(
  10771. /* [in] */ SpeechVoicePriority Priority) = 0;
  10772. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Priority(
  10773. /* [retval][out] */ SpeechVoicePriority *Priority) = 0;
  10774. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_AlertBoundary(
  10775. /* [in] */ SpeechVoiceEvents Boundary) = 0;
  10776. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AlertBoundary(
  10777. /* [retval][out] */ SpeechVoiceEvents *Boundary) = 0;
  10778. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SynchronousSpeakTimeout(
  10779. /* [in] */ long msTimeout) = 0;
  10780. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SynchronousSpeakTimeout(
  10781. /* [retval][out] */ long *msTimeout) = 0;
  10782. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Speak(
  10783. /* [in] */ BSTR Text,
  10784. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10785. /* [retval][out] */ long *StreamNumber) = 0;
  10786. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakStream(
  10787. /* [in] */ ISpeechBaseStream *Stream,
  10788. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10789. /* [retval][out] */ long *StreamNumber) = 0;
  10790. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  10791. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  10792. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Skip(
  10793. /* [in] */ const BSTR Type,
  10794. /* [in] */ long NumItems,
  10795. /* [retval][out] */ long *NumSkipped) = 0;
  10796. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetVoices(
  10797. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10798. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10799. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  10800. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAudioOutputs(
  10801. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10802. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10803. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  10804. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE WaitUntilDone(
  10805. /* [in] */ long msTimeout,
  10806. /* [retval][out] */ VARIANT_BOOL *Done) = 0;
  10807. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakCompleteEvent(
  10808. /* [retval][out] */ long *Handle) = 0;
  10809. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  10810. /* [in] */ const BSTR TypeOfUI,
  10811. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  10812. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  10813. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  10814. /* [in] */ long hWndParent,
  10815. /* [in] */ BSTR Title,
  10816. /* [in] */ const BSTR TypeOfUI,
  10817. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0) = 0;
  10818. };
  10819. #else /* C style interface */
  10820. typedef struct ISpeechVoiceVtbl
  10821. {
  10822. BEGIN_INTERFACE
  10823. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10824. ISpeechVoice * This,
  10825. /* [in] */ REFIID riid,
  10826. /* [iid_is][out] */ void **ppvObject);
  10827. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10828. ISpeechVoice * This);
  10829. ULONG ( STDMETHODCALLTYPE *Release )(
  10830. ISpeechVoice * This);
  10831. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10832. ISpeechVoice * This,
  10833. /* [out] */ UINT *pctinfo);
  10834. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10835. ISpeechVoice * This,
  10836. /* [in] */ UINT iTInfo,
  10837. /* [in] */ LCID lcid,
  10838. /* [out] */ ITypeInfo **ppTInfo);
  10839. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10840. ISpeechVoice * This,
  10841. /* [in] */ REFIID riid,
  10842. /* [size_is][in] */ LPOLESTR *rgszNames,
  10843. /* [in] */ UINT cNames,
  10844. /* [in] */ LCID lcid,
  10845. /* [size_is][out] */ DISPID *rgDispId);
  10846. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10847. ISpeechVoice * This,
  10848. /* [in] */ DISPID dispIdMember,
  10849. /* [in] */ REFIID riid,
  10850. /* [in] */ LCID lcid,
  10851. /* [in] */ WORD wFlags,
  10852. /* [out][in] */ DISPPARAMS *pDispParams,
  10853. /* [out] */ VARIANT *pVarResult,
  10854. /* [out] */ EXCEPINFO *pExcepInfo,
  10855. /* [out] */ UINT *puArgErr);
  10856. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10857. ISpeechVoice * This,
  10858. /* [retval][out] */ ISpeechVoiceStatus **Status);
  10859. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Voice )(
  10860. ISpeechVoice * This,
  10861. /* [retval][out] */ ISpeechObjectToken **Voice);
  10862. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Voice )(
  10863. ISpeechVoice * This,
  10864. /* [in] */ ISpeechObjectToken *Voice);
  10865. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioOutput )(
  10866. ISpeechVoice * This,
  10867. /* [retval][out] */ ISpeechObjectToken **AudioOutput);
  10868. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioOutput )(
  10869. ISpeechVoice * This,
  10870. /* [in] */ ISpeechObjectToken *AudioOutput);
  10871. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioOutputStream )(
  10872. ISpeechVoice * This,
  10873. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream);
  10874. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioOutputStream )(
  10875. ISpeechVoice * This,
  10876. /* [in] */ ISpeechBaseStream *AudioOutputStream);
  10877. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )(
  10878. ISpeechVoice * This,
  10879. /* [retval][out] */ long *Rate);
  10880. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )(
  10881. ISpeechVoice * This,
  10882. /* [in] */ long Rate);
  10883. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10884. ISpeechVoice * This,
  10885. /* [retval][out] */ long *Volume);
  10886. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10887. ISpeechVoice * This,
  10888. /* [in] */ long Volume);
  10889. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowAudioOutputFormatChangesOnNextSet )(
  10890. ISpeechVoice * This,
  10891. /* [in] */ VARIANT_BOOL Allow);
  10892. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowAudioOutputFormatChangesOnNextSet )(
  10893. ISpeechVoice * This,
  10894. /* [retval][out] */ VARIANT_BOOL *Allow);
  10895. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventInterests )(
  10896. ISpeechVoice * This,
  10897. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags);
  10898. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventInterests )(
  10899. ISpeechVoice * This,
  10900. /* [in] */ SpeechVoiceEvents EventInterestFlags);
  10901. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )(
  10902. ISpeechVoice * This,
  10903. /* [in] */ SpeechVoicePriority Priority);
  10904. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )(
  10905. ISpeechVoice * This,
  10906. /* [retval][out] */ SpeechVoicePriority *Priority);
  10907. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlertBoundary )(
  10908. ISpeechVoice * This,
  10909. /* [in] */ SpeechVoiceEvents Boundary);
  10910. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlertBoundary )(
  10911. ISpeechVoice * This,
  10912. /* [retval][out] */ SpeechVoiceEvents *Boundary);
  10913. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SynchronousSpeakTimeout )(
  10914. ISpeechVoice * This,
  10915. /* [in] */ long msTimeout);
  10916. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SynchronousSpeakTimeout )(
  10917. ISpeechVoice * This,
  10918. /* [retval][out] */ long *msTimeout);
  10919. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Speak )(
  10920. ISpeechVoice * This,
  10921. /* [in] */ BSTR Text,
  10922. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10923. /* [retval][out] */ long *StreamNumber);
  10924. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakStream )(
  10925. ISpeechVoice * This,
  10926. /* [in] */ ISpeechBaseStream *Stream,
  10927. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10928. /* [retval][out] */ long *StreamNumber);
  10929. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Pause )(
  10930. ISpeechVoice * This);
  10931. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Resume )(
  10932. ISpeechVoice * This);
  10933. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Skip )(
  10934. ISpeechVoice * This,
  10935. /* [in] */ const BSTR Type,
  10936. /* [in] */ long NumItems,
  10937. /* [retval][out] */ long *NumSkipped);
  10938. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVoices )(
  10939. ISpeechVoice * This,
  10940. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10941. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10942. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  10943. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAudioOutputs )(
  10944. ISpeechVoice * This,
  10945. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10946. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10947. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  10948. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *WaitUntilDone )(
  10949. ISpeechVoice * This,
  10950. /* [in] */ long msTimeout,
  10951. /* [retval][out] */ VARIANT_BOOL *Done);
  10952. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakCompleteEvent )(
  10953. ISpeechVoice * This,
  10954. /* [retval][out] */ long *Handle);
  10955. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  10956. ISpeechVoice * This,
  10957. /* [in] */ const BSTR TypeOfUI,
  10958. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  10959. /* [retval][out] */ VARIANT_BOOL *Supported);
  10960. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  10961. ISpeechVoice * This,
  10962. /* [in] */ long hWndParent,
  10963. /* [in] */ BSTR Title,
  10964. /* [in] */ const BSTR TypeOfUI,
  10965. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  10966. END_INTERFACE
  10967. } ISpeechVoiceVtbl;
  10968. interface ISpeechVoice
  10969. {
  10970. CONST_VTBL struct ISpeechVoiceVtbl *lpVtbl;
  10971. };
  10972. #ifdef COBJMACROS
  10973. #define ISpeechVoice_QueryInterface(This,riid,ppvObject) \
  10974. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10975. #define ISpeechVoice_AddRef(This) \
  10976. (This)->lpVtbl -> AddRef(This)
  10977. #define ISpeechVoice_Release(This) \
  10978. (This)->lpVtbl -> Release(This)
  10979. #define ISpeechVoice_GetTypeInfoCount(This,pctinfo) \
  10980. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10981. #define ISpeechVoice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10982. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10983. #define ISpeechVoice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10984. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10985. #define ISpeechVoice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10986. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10987. #define ISpeechVoice_get_Status(This,Status) \
  10988. (This)->lpVtbl -> get_Status(This,Status)
  10989. #define ISpeechVoice_get_Voice(This,Voice) \
  10990. (This)->lpVtbl -> get_Voice(This,Voice)
  10991. #define ISpeechVoice_putref_Voice(This,Voice) \
  10992. (This)->lpVtbl -> putref_Voice(This,Voice)
  10993. #define ISpeechVoice_get_AudioOutput(This,AudioOutput) \
  10994. (This)->lpVtbl -> get_AudioOutput(This,AudioOutput)
  10995. #define ISpeechVoice_putref_AudioOutput(This,AudioOutput) \
  10996. (This)->lpVtbl -> putref_AudioOutput(This,AudioOutput)
  10997. #define ISpeechVoice_get_AudioOutputStream(This,AudioOutputStream) \
  10998. (This)->lpVtbl -> get_AudioOutputStream(This,AudioOutputStream)
  10999. #define ISpeechVoice_putref_AudioOutputStream(This,AudioOutputStream) \
  11000. (This)->lpVtbl -> putref_AudioOutputStream(This,AudioOutputStream)
  11001. #define ISpeechVoice_get_Rate(This,Rate) \
  11002. (This)->lpVtbl -> get_Rate(This,Rate)
  11003. #define ISpeechVoice_put_Rate(This,Rate) \
  11004. (This)->lpVtbl -> put_Rate(This,Rate)
  11005. #define ISpeechVoice_get_Volume(This,Volume) \
  11006. (This)->lpVtbl -> get_Volume(This,Volume)
  11007. #define ISpeechVoice_put_Volume(This,Volume) \
  11008. (This)->lpVtbl -> put_Volume(This,Volume)
  11009. #define ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet(This,Allow) \
  11010. (This)->lpVtbl -> put_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  11011. #define ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet(This,Allow) \
  11012. (This)->lpVtbl -> get_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  11013. #define ISpeechVoice_get_EventInterests(This,EventInterestFlags) \
  11014. (This)->lpVtbl -> get_EventInterests(This,EventInterestFlags)
  11015. #define ISpeechVoice_put_EventInterests(This,EventInterestFlags) \
  11016. (This)->lpVtbl -> put_EventInterests(This,EventInterestFlags)
  11017. #define ISpeechVoice_put_Priority(This,Priority) \
  11018. (This)->lpVtbl -> put_Priority(This,Priority)
  11019. #define ISpeechVoice_get_Priority(This,Priority) \
  11020. (This)->lpVtbl -> get_Priority(This,Priority)
  11021. #define ISpeechVoice_put_AlertBoundary(This,Boundary) \
  11022. (This)->lpVtbl -> put_AlertBoundary(This,Boundary)
  11023. #define ISpeechVoice_get_AlertBoundary(This,Boundary) \
  11024. (This)->lpVtbl -> get_AlertBoundary(This,Boundary)
  11025. #define ISpeechVoice_put_SynchronousSpeakTimeout(This,msTimeout) \
  11026. (This)->lpVtbl -> put_SynchronousSpeakTimeout(This,msTimeout)
  11027. #define ISpeechVoice_get_SynchronousSpeakTimeout(This,msTimeout) \
  11028. (This)->lpVtbl -> get_SynchronousSpeakTimeout(This,msTimeout)
  11029. #define ISpeechVoice_Speak(This,Text,Flags,StreamNumber) \
  11030. (This)->lpVtbl -> Speak(This,Text,Flags,StreamNumber)
  11031. #define ISpeechVoice_SpeakStream(This,Stream,Flags,StreamNumber) \
  11032. (This)->lpVtbl -> SpeakStream(This,Stream,Flags,StreamNumber)
  11033. #define ISpeechVoice_Pause(This) \
  11034. (This)->lpVtbl -> Pause(This)
  11035. #define ISpeechVoice_Resume(This) \
  11036. (This)->lpVtbl -> Resume(This)
  11037. #define ISpeechVoice_Skip(This,Type,NumItems,NumSkipped) \
  11038. (This)->lpVtbl -> Skip(This,Type,NumItems,NumSkipped)
  11039. #define ISpeechVoice_GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11040. (This)->lpVtbl -> GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11041. #define ISpeechVoice_GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11042. (This)->lpVtbl -> GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11043. #define ISpeechVoice_WaitUntilDone(This,msTimeout,Done) \
  11044. (This)->lpVtbl -> WaitUntilDone(This,msTimeout,Done)
  11045. #define ISpeechVoice_SpeakCompleteEvent(This,Handle) \
  11046. (This)->lpVtbl -> SpeakCompleteEvent(This,Handle)
  11047. #define ISpeechVoice_IsUISupported(This,TypeOfUI,ExtraData,Supported) \
  11048. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Supported)
  11049. #define ISpeechVoice_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) \
  11050. (This)->lpVtbl -> DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  11051. #endif /* COBJMACROS */
  11052. #endif /* C style interface */
  11053. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Status_Proxy(
  11054. ISpeechVoice * This,
  11055. /* [retval][out] */ ISpeechVoiceStatus **Status);
  11056. void __RPC_STUB ISpeechVoice_get_Status_Stub(
  11057. IRpcStubBuffer *This,
  11058. IRpcChannelBuffer *_pRpcChannelBuffer,
  11059. PRPC_MESSAGE _pRpcMessage,
  11060. DWORD *_pdwStubPhase);
  11061. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Voice_Proxy(
  11062. ISpeechVoice * This,
  11063. /* [retval][out] */ ISpeechObjectToken **Voice);
  11064. void __RPC_STUB ISpeechVoice_get_Voice_Stub(
  11065. IRpcStubBuffer *This,
  11066. IRpcChannelBuffer *_pRpcChannelBuffer,
  11067. PRPC_MESSAGE _pRpcMessage,
  11068. DWORD *_pdwStubPhase);
  11069. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_Voice_Proxy(
  11070. ISpeechVoice * This,
  11071. /* [in] */ ISpeechObjectToken *Voice);
  11072. void __RPC_STUB ISpeechVoice_putref_Voice_Stub(
  11073. IRpcStubBuffer *This,
  11074. IRpcChannelBuffer *_pRpcChannelBuffer,
  11075. PRPC_MESSAGE _pRpcMessage,
  11076. DWORD *_pdwStubPhase);
  11077. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AudioOutput_Proxy(
  11078. ISpeechVoice * This,
  11079. /* [retval][out] */ ISpeechObjectToken **AudioOutput);
  11080. void __RPC_STUB ISpeechVoice_get_AudioOutput_Stub(
  11081. IRpcStubBuffer *This,
  11082. IRpcChannelBuffer *_pRpcChannelBuffer,
  11083. PRPC_MESSAGE _pRpcMessage,
  11084. DWORD *_pdwStubPhase);
  11085. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_AudioOutput_Proxy(
  11086. ISpeechVoice * This,
  11087. /* [in] */ ISpeechObjectToken *AudioOutput);
  11088. void __RPC_STUB ISpeechVoice_putref_AudioOutput_Stub(
  11089. IRpcStubBuffer *This,
  11090. IRpcChannelBuffer *_pRpcChannelBuffer,
  11091. PRPC_MESSAGE _pRpcMessage,
  11092. DWORD *_pdwStubPhase);
  11093. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AudioOutputStream_Proxy(
  11094. ISpeechVoice * This,
  11095. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream);
  11096. void __RPC_STUB ISpeechVoice_get_AudioOutputStream_Stub(
  11097. IRpcStubBuffer *This,
  11098. IRpcChannelBuffer *_pRpcChannelBuffer,
  11099. PRPC_MESSAGE _pRpcMessage,
  11100. DWORD *_pdwStubPhase);
  11101. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_AudioOutputStream_Proxy(
  11102. ISpeechVoice * This,
  11103. /* [in] */ ISpeechBaseStream *AudioOutputStream);
  11104. void __RPC_STUB ISpeechVoice_putref_AudioOutputStream_Stub(
  11105. IRpcStubBuffer *This,
  11106. IRpcChannelBuffer *_pRpcChannelBuffer,
  11107. PRPC_MESSAGE _pRpcMessage,
  11108. DWORD *_pdwStubPhase);
  11109. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Rate_Proxy(
  11110. ISpeechVoice * This,
  11111. /* [retval][out] */ long *Rate);
  11112. void __RPC_STUB ISpeechVoice_get_Rate_Stub(
  11113. IRpcStubBuffer *This,
  11114. IRpcChannelBuffer *_pRpcChannelBuffer,
  11115. PRPC_MESSAGE _pRpcMessage,
  11116. DWORD *_pdwStubPhase);
  11117. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Rate_Proxy(
  11118. ISpeechVoice * This,
  11119. /* [in] */ long Rate);
  11120. void __RPC_STUB ISpeechVoice_put_Rate_Stub(
  11121. IRpcStubBuffer *This,
  11122. IRpcChannelBuffer *_pRpcChannelBuffer,
  11123. PRPC_MESSAGE _pRpcMessage,
  11124. DWORD *_pdwStubPhase);
  11125. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Volume_Proxy(
  11126. ISpeechVoice * This,
  11127. /* [retval][out] */ long *Volume);
  11128. void __RPC_STUB ISpeechVoice_get_Volume_Stub(
  11129. IRpcStubBuffer *This,
  11130. IRpcChannelBuffer *_pRpcChannelBuffer,
  11131. PRPC_MESSAGE _pRpcMessage,
  11132. DWORD *_pdwStubPhase);
  11133. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Volume_Proxy(
  11134. ISpeechVoice * This,
  11135. /* [in] */ long Volume);
  11136. void __RPC_STUB ISpeechVoice_put_Volume_Stub(
  11137. IRpcStubBuffer *This,
  11138. IRpcChannelBuffer *_pRpcChannelBuffer,
  11139. PRPC_MESSAGE _pRpcMessage,
  11140. DWORD *_pdwStubPhase);
  11141. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet_Proxy(
  11142. ISpeechVoice * This,
  11143. /* [in] */ VARIANT_BOOL Allow);
  11144. void __RPC_STUB ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet_Stub(
  11145. IRpcStubBuffer *This,
  11146. IRpcChannelBuffer *_pRpcChannelBuffer,
  11147. PRPC_MESSAGE _pRpcMessage,
  11148. DWORD *_pdwStubPhase);
  11149. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet_Proxy(
  11150. ISpeechVoice * This,
  11151. /* [retval][out] */ VARIANT_BOOL *Allow);
  11152. void __RPC_STUB ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet_Stub(
  11153. IRpcStubBuffer *This,
  11154. IRpcChannelBuffer *_pRpcChannelBuffer,
  11155. PRPC_MESSAGE _pRpcMessage,
  11156. DWORD *_pdwStubPhase);
  11157. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_EventInterests_Proxy(
  11158. ISpeechVoice * This,
  11159. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags);
  11160. void __RPC_STUB ISpeechVoice_get_EventInterests_Stub(
  11161. IRpcStubBuffer *This,
  11162. IRpcChannelBuffer *_pRpcChannelBuffer,
  11163. PRPC_MESSAGE _pRpcMessage,
  11164. DWORD *_pdwStubPhase);
  11165. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_EventInterests_Proxy(
  11166. ISpeechVoice * This,
  11167. /* [in] */ SpeechVoiceEvents EventInterestFlags);
  11168. void __RPC_STUB ISpeechVoice_put_EventInterests_Stub(
  11169. IRpcStubBuffer *This,
  11170. IRpcChannelBuffer *_pRpcChannelBuffer,
  11171. PRPC_MESSAGE _pRpcMessage,
  11172. DWORD *_pdwStubPhase);
  11173. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Priority_Proxy(
  11174. ISpeechVoice * This,
  11175. /* [in] */ SpeechVoicePriority Priority);
  11176. void __RPC_STUB ISpeechVoice_put_Priority_Stub(
  11177. IRpcStubBuffer *This,
  11178. IRpcChannelBuffer *_pRpcChannelBuffer,
  11179. PRPC_MESSAGE _pRpcMessage,
  11180. DWORD *_pdwStubPhase);
  11181. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Priority_Proxy(
  11182. ISpeechVoice * This,
  11183. /* [retval][out] */ SpeechVoicePriority *Priority);
  11184. void __RPC_STUB ISpeechVoice_get_Priority_Stub(
  11185. IRpcStubBuffer *This,
  11186. IRpcChannelBuffer *_pRpcChannelBuffer,
  11187. PRPC_MESSAGE _pRpcMessage,
  11188. DWORD *_pdwStubPhase);
  11189. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_AlertBoundary_Proxy(
  11190. ISpeechVoice * This,
  11191. /* [in] */ SpeechVoiceEvents Boundary);
  11192. void __RPC_STUB ISpeechVoice_put_AlertBoundary_Stub(
  11193. IRpcStubBuffer *This,
  11194. IRpcChannelBuffer *_pRpcChannelBuffer,
  11195. PRPC_MESSAGE _pRpcMessage,
  11196. DWORD *_pdwStubPhase);
  11197. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AlertBoundary_Proxy(
  11198. ISpeechVoice * This,
  11199. /* [retval][out] */ SpeechVoiceEvents *Boundary);
  11200. void __RPC_STUB ISpeechVoice_get_AlertBoundary_Stub(
  11201. IRpcStubBuffer *This,
  11202. IRpcChannelBuffer *_pRpcChannelBuffer,
  11203. PRPC_MESSAGE _pRpcMessage,
  11204. DWORD *_pdwStubPhase);
  11205. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_SynchronousSpeakTimeout_Proxy(
  11206. ISpeechVoice * This,
  11207. /* [in] */ long msTimeout);
  11208. void __RPC_STUB ISpeechVoice_put_SynchronousSpeakTimeout_Stub(
  11209. IRpcStubBuffer *This,
  11210. IRpcChannelBuffer *_pRpcChannelBuffer,
  11211. PRPC_MESSAGE _pRpcMessage,
  11212. DWORD *_pdwStubPhase);
  11213. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_SynchronousSpeakTimeout_Proxy(
  11214. ISpeechVoice * This,
  11215. /* [retval][out] */ long *msTimeout);
  11216. void __RPC_STUB ISpeechVoice_get_SynchronousSpeakTimeout_Stub(
  11217. IRpcStubBuffer *This,
  11218. IRpcChannelBuffer *_pRpcChannelBuffer,
  11219. PRPC_MESSAGE _pRpcMessage,
  11220. DWORD *_pdwStubPhase);
  11221. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Speak_Proxy(
  11222. ISpeechVoice * This,
  11223. /* [in] */ BSTR Text,
  11224. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  11225. /* [retval][out] */ long *StreamNumber);
  11226. void __RPC_STUB ISpeechVoice_Speak_Stub(
  11227. IRpcStubBuffer *This,
  11228. IRpcChannelBuffer *_pRpcChannelBuffer,
  11229. PRPC_MESSAGE _pRpcMessage,
  11230. DWORD *_pdwStubPhase);
  11231. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_SpeakStream_Proxy(
  11232. ISpeechVoice * This,
  11233. /* [in] */ ISpeechBaseStream *Stream,
  11234. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  11235. /* [retval][out] */ long *StreamNumber);
  11236. void __RPC_STUB ISpeechVoice_SpeakStream_Stub(
  11237. IRpcStubBuffer *This,
  11238. IRpcChannelBuffer *_pRpcChannelBuffer,
  11239. PRPC_MESSAGE _pRpcMessage,
  11240. DWORD *_pdwStubPhase);
  11241. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Pause_Proxy(
  11242. ISpeechVoice * This);
  11243. void __RPC_STUB ISpeechVoice_Pause_Stub(
  11244. IRpcStubBuffer *This,
  11245. IRpcChannelBuffer *_pRpcChannelBuffer,
  11246. PRPC_MESSAGE _pRpcMessage,
  11247. DWORD *_pdwStubPhase);
  11248. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Resume_Proxy(
  11249. ISpeechVoice * This);
  11250. void __RPC_STUB ISpeechVoice_Resume_Stub(
  11251. IRpcStubBuffer *This,
  11252. IRpcChannelBuffer *_pRpcChannelBuffer,
  11253. PRPC_MESSAGE _pRpcMessage,
  11254. DWORD *_pdwStubPhase);
  11255. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Skip_Proxy(
  11256. ISpeechVoice * This,
  11257. /* [in] */ const BSTR Type,
  11258. /* [in] */ long NumItems,
  11259. /* [retval][out] */ long *NumSkipped);
  11260. void __RPC_STUB ISpeechVoice_Skip_Stub(
  11261. IRpcStubBuffer *This,
  11262. IRpcChannelBuffer *_pRpcChannelBuffer,
  11263. PRPC_MESSAGE _pRpcMessage,
  11264. DWORD *_pdwStubPhase);
  11265. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_GetVoices_Proxy(
  11266. ISpeechVoice * This,
  11267. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11268. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11269. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11270. void __RPC_STUB ISpeechVoice_GetVoices_Stub(
  11271. IRpcStubBuffer *This,
  11272. IRpcChannelBuffer *_pRpcChannelBuffer,
  11273. PRPC_MESSAGE _pRpcMessage,
  11274. DWORD *_pdwStubPhase);
  11275. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_GetAudioOutputs_Proxy(
  11276. ISpeechVoice * This,
  11277. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11278. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11279. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11280. void __RPC_STUB ISpeechVoice_GetAudioOutputs_Stub(
  11281. IRpcStubBuffer *This,
  11282. IRpcChannelBuffer *_pRpcChannelBuffer,
  11283. PRPC_MESSAGE _pRpcMessage,
  11284. DWORD *_pdwStubPhase);
  11285. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_WaitUntilDone_Proxy(
  11286. ISpeechVoice * This,
  11287. /* [in] */ long msTimeout,
  11288. /* [retval][out] */ VARIANT_BOOL *Done);
  11289. void __RPC_STUB ISpeechVoice_WaitUntilDone_Stub(
  11290. IRpcStubBuffer *This,
  11291. IRpcChannelBuffer *_pRpcChannelBuffer,
  11292. PRPC_MESSAGE _pRpcMessage,
  11293. DWORD *_pdwStubPhase);
  11294. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_SpeakCompleteEvent_Proxy(
  11295. ISpeechVoice * This,
  11296. /* [retval][out] */ long *Handle);
  11297. void __RPC_STUB ISpeechVoice_SpeakCompleteEvent_Stub(
  11298. IRpcStubBuffer *This,
  11299. IRpcChannelBuffer *_pRpcChannelBuffer,
  11300. PRPC_MESSAGE _pRpcMessage,
  11301. DWORD *_pdwStubPhase);
  11302. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_IsUISupported_Proxy(
  11303. ISpeechVoice * This,
  11304. /* [in] */ const BSTR TypeOfUI,
  11305. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11306. /* [retval][out] */ VARIANT_BOOL *Supported);
  11307. void __RPC_STUB ISpeechVoice_IsUISupported_Stub(
  11308. IRpcStubBuffer *This,
  11309. IRpcChannelBuffer *_pRpcChannelBuffer,
  11310. PRPC_MESSAGE _pRpcMessage,
  11311. DWORD *_pdwStubPhase);
  11312. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_DisplayUI_Proxy(
  11313. ISpeechVoice * This,
  11314. /* [in] */ long hWndParent,
  11315. /* [in] */ BSTR Title,
  11316. /* [in] */ const BSTR TypeOfUI,
  11317. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  11318. void __RPC_STUB ISpeechVoice_DisplayUI_Stub(
  11319. IRpcStubBuffer *This,
  11320. IRpcChannelBuffer *_pRpcChannelBuffer,
  11321. PRPC_MESSAGE _pRpcMessage,
  11322. DWORD *_pdwStubPhase);
  11323. #endif /* __ISpeechVoice_INTERFACE_DEFINED__ */
  11324. #ifndef __ISpeechVoiceStatus_INTERFACE_DEFINED__
  11325. #define __ISpeechVoiceStatus_INTERFACE_DEFINED__
  11326. /* interface ISpeechVoiceStatus */
  11327. /* [unique][helpstring][dual][uuid][object] */
  11328. EXTERN_C const IID IID_ISpeechVoiceStatus;
  11329. #if defined(__cplusplus) && !defined(CINTERFACE)
  11330. MIDL_INTERFACE("8BE47B07-57F6-11d2-9EEE-00C04F797396")
  11331. ISpeechVoiceStatus : public IDispatch
  11332. {
  11333. public:
  11334. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  11335. /* [retval][out] */ long *StreamNumber) = 0;
  11336. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastStreamNumberQueued(
  11337. /* [retval][out] */ long *StreamNumber) = 0;
  11338. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastHResult(
  11339. /* [retval][out] */ long *HResult) = 0;
  11340. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RunningState(
  11341. /* [retval][out] */ SpeechRunState *State) = 0;
  11342. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputWordPosition(
  11343. /* [retval][out] */ long *Position) = 0;
  11344. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputWordLength(
  11345. /* [retval][out] */ long *Length) = 0;
  11346. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputSentencePosition(
  11347. /* [retval][out] */ long *Position) = 0;
  11348. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputSentenceLength(
  11349. /* [retval][out] */ long *Length) = 0;
  11350. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastBookmark(
  11351. /* [retval][out] */ BSTR *Bookmark) = 0;
  11352. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastBookmarkId(
  11353. /* [retval][out] */ long *BookmarkId) = 0;
  11354. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhonemeId(
  11355. /* [retval][out] */ short *PhoneId) = 0;
  11356. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_VisemeId(
  11357. /* [retval][out] */ short *VisemeId) = 0;
  11358. };
  11359. #else /* C style interface */
  11360. typedef struct ISpeechVoiceStatusVtbl
  11361. {
  11362. BEGIN_INTERFACE
  11363. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11364. ISpeechVoiceStatus * This,
  11365. /* [in] */ REFIID riid,
  11366. /* [iid_is][out] */ void **ppvObject);
  11367. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11368. ISpeechVoiceStatus * This);
  11369. ULONG ( STDMETHODCALLTYPE *Release )(
  11370. ISpeechVoiceStatus * This);
  11371. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11372. ISpeechVoiceStatus * This,
  11373. /* [out] */ UINT *pctinfo);
  11374. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11375. ISpeechVoiceStatus * This,
  11376. /* [in] */ UINT iTInfo,
  11377. /* [in] */ LCID lcid,
  11378. /* [out] */ ITypeInfo **ppTInfo);
  11379. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11380. ISpeechVoiceStatus * This,
  11381. /* [in] */ REFIID riid,
  11382. /* [size_is][in] */ LPOLESTR *rgszNames,
  11383. /* [in] */ UINT cNames,
  11384. /* [in] */ LCID lcid,
  11385. /* [size_is][out] */ DISPID *rgDispId);
  11386. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11387. ISpeechVoiceStatus * This,
  11388. /* [in] */ DISPID dispIdMember,
  11389. /* [in] */ REFIID riid,
  11390. /* [in] */ LCID lcid,
  11391. /* [in] */ WORD wFlags,
  11392. /* [out][in] */ DISPPARAMS *pDispParams,
  11393. /* [out] */ VARIANT *pVarResult,
  11394. /* [out] */ EXCEPINFO *pExcepInfo,
  11395. /* [out] */ UINT *puArgErr);
  11396. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamNumber )(
  11397. ISpeechVoiceStatus * This,
  11398. /* [retval][out] */ long *StreamNumber);
  11399. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastStreamNumberQueued )(
  11400. ISpeechVoiceStatus * This,
  11401. /* [retval][out] */ long *StreamNumber);
  11402. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastHResult )(
  11403. ISpeechVoiceStatus * This,
  11404. /* [retval][out] */ long *HResult);
  11405. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunningState )(
  11406. ISpeechVoiceStatus * This,
  11407. /* [retval][out] */ SpeechRunState *State);
  11408. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputWordPosition )(
  11409. ISpeechVoiceStatus * This,
  11410. /* [retval][out] */ long *Position);
  11411. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputWordLength )(
  11412. ISpeechVoiceStatus * This,
  11413. /* [retval][out] */ long *Length);
  11414. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputSentencePosition )(
  11415. ISpeechVoiceStatus * This,
  11416. /* [retval][out] */ long *Position);
  11417. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputSentenceLength )(
  11418. ISpeechVoiceStatus * This,
  11419. /* [retval][out] */ long *Length);
  11420. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastBookmark )(
  11421. ISpeechVoiceStatus * This,
  11422. /* [retval][out] */ BSTR *Bookmark);
  11423. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastBookmarkId )(
  11424. ISpeechVoiceStatus * This,
  11425. /* [retval][out] */ long *BookmarkId);
  11426. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhonemeId )(
  11427. ISpeechVoiceStatus * This,
  11428. /* [retval][out] */ short *PhoneId);
  11429. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VisemeId )(
  11430. ISpeechVoiceStatus * This,
  11431. /* [retval][out] */ short *VisemeId);
  11432. END_INTERFACE
  11433. } ISpeechVoiceStatusVtbl;
  11434. interface ISpeechVoiceStatus
  11435. {
  11436. CONST_VTBL struct ISpeechVoiceStatusVtbl *lpVtbl;
  11437. };
  11438. #ifdef COBJMACROS
  11439. #define ISpeechVoiceStatus_QueryInterface(This,riid,ppvObject) \
  11440. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11441. #define ISpeechVoiceStatus_AddRef(This) \
  11442. (This)->lpVtbl -> AddRef(This)
  11443. #define ISpeechVoiceStatus_Release(This) \
  11444. (This)->lpVtbl -> Release(This)
  11445. #define ISpeechVoiceStatus_GetTypeInfoCount(This,pctinfo) \
  11446. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11447. #define ISpeechVoiceStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11448. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11449. #define ISpeechVoiceStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11450. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11451. #define ISpeechVoiceStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11452. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11453. #define ISpeechVoiceStatus_get_CurrentStreamNumber(This,StreamNumber) \
  11454. (This)->lpVtbl -> get_CurrentStreamNumber(This,StreamNumber)
  11455. #define ISpeechVoiceStatus_get_LastStreamNumberQueued(This,StreamNumber) \
  11456. (This)->lpVtbl -> get_LastStreamNumberQueued(This,StreamNumber)
  11457. #define ISpeechVoiceStatus_get_LastHResult(This,HResult) \
  11458. (This)->lpVtbl -> get_LastHResult(This,HResult)
  11459. #define ISpeechVoiceStatus_get_RunningState(This,State) \
  11460. (This)->lpVtbl -> get_RunningState(This,State)
  11461. #define ISpeechVoiceStatus_get_InputWordPosition(This,Position) \
  11462. (This)->lpVtbl -> get_InputWordPosition(This,Position)
  11463. #define ISpeechVoiceStatus_get_InputWordLength(This,Length) \
  11464. (This)->lpVtbl -> get_InputWordLength(This,Length)
  11465. #define ISpeechVoiceStatus_get_InputSentencePosition(This,Position) \
  11466. (This)->lpVtbl -> get_InputSentencePosition(This,Position)
  11467. #define ISpeechVoiceStatus_get_InputSentenceLength(This,Length) \
  11468. (This)->lpVtbl -> get_InputSentenceLength(This,Length)
  11469. #define ISpeechVoiceStatus_get_LastBookmark(This,Bookmark) \
  11470. (This)->lpVtbl -> get_LastBookmark(This,Bookmark)
  11471. #define ISpeechVoiceStatus_get_LastBookmarkId(This,BookmarkId) \
  11472. (This)->lpVtbl -> get_LastBookmarkId(This,BookmarkId)
  11473. #define ISpeechVoiceStatus_get_PhonemeId(This,PhoneId) \
  11474. (This)->lpVtbl -> get_PhonemeId(This,PhoneId)
  11475. #define ISpeechVoiceStatus_get_VisemeId(This,VisemeId) \
  11476. (This)->lpVtbl -> get_VisemeId(This,VisemeId)
  11477. #endif /* COBJMACROS */
  11478. #endif /* C style interface */
  11479. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_CurrentStreamNumber_Proxy(
  11480. ISpeechVoiceStatus * This,
  11481. /* [retval][out] */ long *StreamNumber);
  11482. void __RPC_STUB ISpeechVoiceStatus_get_CurrentStreamNumber_Stub(
  11483. IRpcStubBuffer *This,
  11484. IRpcChannelBuffer *_pRpcChannelBuffer,
  11485. PRPC_MESSAGE _pRpcMessage,
  11486. DWORD *_pdwStubPhase);
  11487. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastStreamNumberQueued_Proxy(
  11488. ISpeechVoiceStatus * This,
  11489. /* [retval][out] */ long *StreamNumber);
  11490. void __RPC_STUB ISpeechVoiceStatus_get_LastStreamNumberQueued_Stub(
  11491. IRpcStubBuffer *This,
  11492. IRpcChannelBuffer *_pRpcChannelBuffer,
  11493. PRPC_MESSAGE _pRpcMessage,
  11494. DWORD *_pdwStubPhase);
  11495. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastHResult_Proxy(
  11496. ISpeechVoiceStatus * This,
  11497. /* [retval][out] */ long *HResult);
  11498. void __RPC_STUB ISpeechVoiceStatus_get_LastHResult_Stub(
  11499. IRpcStubBuffer *This,
  11500. IRpcChannelBuffer *_pRpcChannelBuffer,
  11501. PRPC_MESSAGE _pRpcMessage,
  11502. DWORD *_pdwStubPhase);
  11503. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_RunningState_Proxy(
  11504. ISpeechVoiceStatus * This,
  11505. /* [retval][out] */ SpeechRunState *State);
  11506. void __RPC_STUB ISpeechVoiceStatus_get_RunningState_Stub(
  11507. IRpcStubBuffer *This,
  11508. IRpcChannelBuffer *_pRpcChannelBuffer,
  11509. PRPC_MESSAGE _pRpcMessage,
  11510. DWORD *_pdwStubPhase);
  11511. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputWordPosition_Proxy(
  11512. ISpeechVoiceStatus * This,
  11513. /* [retval][out] */ long *Position);
  11514. void __RPC_STUB ISpeechVoiceStatus_get_InputWordPosition_Stub(
  11515. IRpcStubBuffer *This,
  11516. IRpcChannelBuffer *_pRpcChannelBuffer,
  11517. PRPC_MESSAGE _pRpcMessage,
  11518. DWORD *_pdwStubPhase);
  11519. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputWordLength_Proxy(
  11520. ISpeechVoiceStatus * This,
  11521. /* [retval][out] */ long *Length);
  11522. void __RPC_STUB ISpeechVoiceStatus_get_InputWordLength_Stub(
  11523. IRpcStubBuffer *This,
  11524. IRpcChannelBuffer *_pRpcChannelBuffer,
  11525. PRPC_MESSAGE _pRpcMessage,
  11526. DWORD *_pdwStubPhase);
  11527. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputSentencePosition_Proxy(
  11528. ISpeechVoiceStatus * This,
  11529. /* [retval][out] */ long *Position);
  11530. void __RPC_STUB ISpeechVoiceStatus_get_InputSentencePosition_Stub(
  11531. IRpcStubBuffer *This,
  11532. IRpcChannelBuffer *_pRpcChannelBuffer,
  11533. PRPC_MESSAGE _pRpcMessage,
  11534. DWORD *_pdwStubPhase);
  11535. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputSentenceLength_Proxy(
  11536. ISpeechVoiceStatus * This,
  11537. /* [retval][out] */ long *Length);
  11538. void __RPC_STUB ISpeechVoiceStatus_get_InputSentenceLength_Stub(
  11539. IRpcStubBuffer *This,
  11540. IRpcChannelBuffer *_pRpcChannelBuffer,
  11541. PRPC_MESSAGE _pRpcMessage,
  11542. DWORD *_pdwStubPhase);
  11543. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastBookmark_Proxy(
  11544. ISpeechVoiceStatus * This,
  11545. /* [retval][out] */ BSTR *Bookmark);
  11546. void __RPC_STUB ISpeechVoiceStatus_get_LastBookmark_Stub(
  11547. IRpcStubBuffer *This,
  11548. IRpcChannelBuffer *_pRpcChannelBuffer,
  11549. PRPC_MESSAGE _pRpcMessage,
  11550. DWORD *_pdwStubPhase);
  11551. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastBookmarkId_Proxy(
  11552. ISpeechVoiceStatus * This,
  11553. /* [retval][out] */ long *BookmarkId);
  11554. void __RPC_STUB ISpeechVoiceStatus_get_LastBookmarkId_Stub(
  11555. IRpcStubBuffer *This,
  11556. IRpcChannelBuffer *_pRpcChannelBuffer,
  11557. PRPC_MESSAGE _pRpcMessage,
  11558. DWORD *_pdwStubPhase);
  11559. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_PhonemeId_Proxy(
  11560. ISpeechVoiceStatus * This,
  11561. /* [retval][out] */ short *PhoneId);
  11562. void __RPC_STUB ISpeechVoiceStatus_get_PhonemeId_Stub(
  11563. IRpcStubBuffer *This,
  11564. IRpcChannelBuffer *_pRpcChannelBuffer,
  11565. PRPC_MESSAGE _pRpcMessage,
  11566. DWORD *_pdwStubPhase);
  11567. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_VisemeId_Proxy(
  11568. ISpeechVoiceStatus * This,
  11569. /* [retval][out] */ short *VisemeId);
  11570. void __RPC_STUB ISpeechVoiceStatus_get_VisemeId_Stub(
  11571. IRpcStubBuffer *This,
  11572. IRpcChannelBuffer *_pRpcChannelBuffer,
  11573. PRPC_MESSAGE _pRpcMessage,
  11574. DWORD *_pdwStubPhase);
  11575. #endif /* __ISpeechVoiceStatus_INTERFACE_DEFINED__ */
  11576. #ifndef ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  11577. #define ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  11578. /* dispinterface _ISpeechVoiceEvents */
  11579. /* [uuid] */
  11580. EXTERN_C const IID DIID__ISpeechVoiceEvents;
  11581. #if defined(__cplusplus) && !defined(CINTERFACE)
  11582. MIDL_INTERFACE("A372ACD1-3BEF-4bbd-8FFB-CB3E2B416AF8")
  11583. _ISpeechVoiceEvents : public IDispatch
  11584. {
  11585. };
  11586. #else /* C style interface */
  11587. typedef struct _ISpeechVoiceEventsVtbl
  11588. {
  11589. BEGIN_INTERFACE
  11590. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11591. _ISpeechVoiceEvents * This,
  11592. /* [in] */ REFIID riid,
  11593. /* [iid_is][out] */ void **ppvObject);
  11594. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11595. _ISpeechVoiceEvents * This);
  11596. ULONG ( STDMETHODCALLTYPE *Release )(
  11597. _ISpeechVoiceEvents * This);
  11598. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11599. _ISpeechVoiceEvents * This,
  11600. /* [out] */ UINT *pctinfo);
  11601. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11602. _ISpeechVoiceEvents * This,
  11603. /* [in] */ UINT iTInfo,
  11604. /* [in] */ LCID lcid,
  11605. /* [out] */ ITypeInfo **ppTInfo);
  11606. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11607. _ISpeechVoiceEvents * This,
  11608. /* [in] */ REFIID riid,
  11609. /* [size_is][in] */ LPOLESTR *rgszNames,
  11610. /* [in] */ UINT cNames,
  11611. /* [in] */ LCID lcid,
  11612. /* [size_is][out] */ DISPID *rgDispId);
  11613. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11614. _ISpeechVoiceEvents * This,
  11615. /* [in] */ DISPID dispIdMember,
  11616. /* [in] */ REFIID riid,
  11617. /* [in] */ LCID lcid,
  11618. /* [in] */ WORD wFlags,
  11619. /* [out][in] */ DISPPARAMS *pDispParams,
  11620. /* [out] */ VARIANT *pVarResult,
  11621. /* [out] */ EXCEPINFO *pExcepInfo,
  11622. /* [out] */ UINT *puArgErr);
  11623. END_INTERFACE
  11624. } _ISpeechVoiceEventsVtbl;
  11625. interface _ISpeechVoiceEvents
  11626. {
  11627. CONST_VTBL struct _ISpeechVoiceEventsVtbl *lpVtbl;
  11628. };
  11629. #ifdef COBJMACROS
  11630. #define _ISpeechVoiceEvents_QueryInterface(This,riid,ppvObject) \
  11631. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11632. #define _ISpeechVoiceEvents_AddRef(This) \
  11633. (This)->lpVtbl -> AddRef(This)
  11634. #define _ISpeechVoiceEvents_Release(This) \
  11635. (This)->lpVtbl -> Release(This)
  11636. #define _ISpeechVoiceEvents_GetTypeInfoCount(This,pctinfo) \
  11637. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11638. #define _ISpeechVoiceEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11639. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11640. #define _ISpeechVoiceEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11641. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11642. #define _ISpeechVoiceEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11643. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11644. #endif /* COBJMACROS */
  11645. #endif /* C style interface */
  11646. #endif /* ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__ */
  11647. #ifndef __ISpeechRecognizer_INTERFACE_DEFINED__
  11648. #define __ISpeechRecognizer_INTERFACE_DEFINED__
  11649. /* interface ISpeechRecognizer */
  11650. /* [unique][helpstring][dual][uuid][object] */
  11651. EXTERN_C const IID IID_ISpeechRecognizer;
  11652. #if defined(__cplusplus) && !defined(CINTERFACE)
  11653. MIDL_INTERFACE("2D5F1C0C-BD75-4b08-9478-3B11FEA2586C")
  11654. ISpeechRecognizer : public IDispatch
  11655. {
  11656. public:
  11657. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Recognizer(
  11658. /* [in] */ ISpeechObjectToken *Recognizer) = 0;
  11659. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Recognizer(
  11660. /* [retval][out] */ ISpeechObjectToken **Recognizer) = 0;
  11661. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowAudioInputFormatChangesOnNextSet(
  11662. /* [in] */ VARIANT_BOOL Allow) = 0;
  11663. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowAudioInputFormatChangesOnNextSet(
  11664. /* [retval][out] */ VARIANT_BOOL *Allow) = 0;
  11665. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioInput(
  11666. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput = 0) = 0;
  11667. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInput(
  11668. /* [retval][out] */ ISpeechObjectToken **AudioInput) = 0;
  11669. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioInputStream(
  11670. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream = 0) = 0;
  11671. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInputStream(
  11672. /* [retval][out] */ ISpeechBaseStream **AudioInputStream) = 0;
  11673. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_IsShared(
  11674. /* [retval][out] */ VARIANT_BOOL *Shared) = 0;
  11675. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  11676. /* [in] */ SpeechRecognizerState State) = 0;
  11677. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  11678. /* [retval][out] */ SpeechRecognizerState *State) = 0;
  11679. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  11680. /* [retval][out] */ ISpeechRecognizerStatus **Status) = 0;
  11681. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Profile(
  11682. /* [defaultvalue][in] */ ISpeechObjectToken *Profile = 0) = 0;
  11683. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Profile(
  11684. /* [retval][out] */ ISpeechObjectToken **Profile) = 0;
  11685. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EmulateRecognition(
  11686. /* [in] */ VARIANT TextElements,
  11687. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes = 0,
  11688. /* [defaultvalue][in] */ long LanguageId = 0) = 0;
  11689. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateRecoContext(
  11690. /* [retval][out] */ ISpeechRecoContext **NewContext) = 0;
  11691. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetFormat(
  11692. /* [in] */ SpeechFormatType Type,
  11693. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  11694. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetPropertyNumber(
  11695. /* [in] */ const BSTR Name,
  11696. /* [in] */ long Value,
  11697. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11698. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetPropertyNumber(
  11699. /* [in] */ const BSTR Name,
  11700. /* [out][in] */ long *Value,
  11701. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11702. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetPropertyString(
  11703. /* [in] */ const BSTR Name,
  11704. /* [in] */ const BSTR Value,
  11705. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11706. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetPropertyString(
  11707. /* [in] */ const BSTR Name,
  11708. /* [out][in] */ BSTR *Value,
  11709. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11710. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  11711. /* [in] */ const BSTR TypeOfUI,
  11712. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11713. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11714. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  11715. /* [in] */ long hWndParent,
  11716. /* [in] */ BSTR Title,
  11717. /* [in] */ const BSTR TypeOfUI,
  11718. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0) = 0;
  11719. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetRecognizers(
  11720. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11721. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11722. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11723. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAudioInputs(
  11724. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11725. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11726. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11727. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetProfiles(
  11728. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11729. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11730. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11731. };
  11732. #else /* C style interface */
  11733. typedef struct ISpeechRecognizerVtbl
  11734. {
  11735. BEGIN_INTERFACE
  11736. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11737. ISpeechRecognizer * This,
  11738. /* [in] */ REFIID riid,
  11739. /* [iid_is][out] */ void **ppvObject);
  11740. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11741. ISpeechRecognizer * This);
  11742. ULONG ( STDMETHODCALLTYPE *Release )(
  11743. ISpeechRecognizer * This);
  11744. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11745. ISpeechRecognizer * This,
  11746. /* [out] */ UINT *pctinfo);
  11747. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11748. ISpeechRecognizer * This,
  11749. /* [in] */ UINT iTInfo,
  11750. /* [in] */ LCID lcid,
  11751. /* [out] */ ITypeInfo **ppTInfo);
  11752. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11753. ISpeechRecognizer * This,
  11754. /* [in] */ REFIID riid,
  11755. /* [size_is][in] */ LPOLESTR *rgszNames,
  11756. /* [in] */ UINT cNames,
  11757. /* [in] */ LCID lcid,
  11758. /* [size_is][out] */ DISPID *rgDispId);
  11759. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11760. ISpeechRecognizer * This,
  11761. /* [in] */ DISPID dispIdMember,
  11762. /* [in] */ REFIID riid,
  11763. /* [in] */ LCID lcid,
  11764. /* [in] */ WORD wFlags,
  11765. /* [out][in] */ DISPPARAMS *pDispParams,
  11766. /* [out] */ VARIANT *pVarResult,
  11767. /* [out] */ EXCEPINFO *pExcepInfo,
  11768. /* [out] */ UINT *puArgErr);
  11769. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Recognizer )(
  11770. ISpeechRecognizer * This,
  11771. /* [in] */ ISpeechObjectToken *Recognizer);
  11772. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recognizer )(
  11773. ISpeechRecognizer * This,
  11774. /* [retval][out] */ ISpeechObjectToken **Recognizer);
  11775. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowAudioInputFormatChangesOnNextSet )(
  11776. ISpeechRecognizer * This,
  11777. /* [in] */ VARIANT_BOOL Allow);
  11778. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowAudioInputFormatChangesOnNextSet )(
  11779. ISpeechRecognizer * This,
  11780. /* [retval][out] */ VARIANT_BOOL *Allow);
  11781. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioInput )(
  11782. ISpeechRecognizer * This,
  11783. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput);
  11784. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInput )(
  11785. ISpeechRecognizer * This,
  11786. /* [retval][out] */ ISpeechObjectToken **AudioInput);
  11787. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioInputStream )(
  11788. ISpeechRecognizer * This,
  11789. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream);
  11790. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInputStream )(
  11791. ISpeechRecognizer * This,
  11792. /* [retval][out] */ ISpeechBaseStream **AudioInputStream);
  11793. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsShared )(
  11794. ISpeechRecognizer * This,
  11795. /* [retval][out] */ VARIANT_BOOL *Shared);
  11796. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  11797. ISpeechRecognizer * This,
  11798. /* [in] */ SpeechRecognizerState State);
  11799. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  11800. ISpeechRecognizer * This,
  11801. /* [retval][out] */ SpeechRecognizerState *State);
  11802. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  11803. ISpeechRecognizer * This,
  11804. /* [retval][out] */ ISpeechRecognizerStatus **Status);
  11805. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Profile )(
  11806. ISpeechRecognizer * This,
  11807. /* [defaultvalue][in] */ ISpeechObjectToken *Profile);
  11808. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Profile )(
  11809. ISpeechRecognizer * This,
  11810. /* [retval][out] */ ISpeechObjectToken **Profile);
  11811. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EmulateRecognition )(
  11812. ISpeechRecognizer * This,
  11813. /* [in] */ VARIANT TextElements,
  11814. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes,
  11815. /* [defaultvalue][in] */ long LanguageId);
  11816. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateRecoContext )(
  11817. ISpeechRecognizer * This,
  11818. /* [retval][out] */ ISpeechRecoContext **NewContext);
  11819. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  11820. ISpeechRecognizer * This,
  11821. /* [in] */ SpeechFormatType Type,
  11822. /* [retval][out] */ ISpeechAudioFormat **Format);
  11823. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPropertyNumber )(
  11824. ISpeechRecognizer * This,
  11825. /* [in] */ const BSTR Name,
  11826. /* [in] */ long Value,
  11827. /* [retval][out] */ VARIANT_BOOL *Supported);
  11828. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyNumber )(
  11829. ISpeechRecognizer * This,
  11830. /* [in] */ const BSTR Name,
  11831. /* [out][in] */ long *Value,
  11832. /* [retval][out] */ VARIANT_BOOL *Supported);
  11833. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  11834. ISpeechRecognizer * This,
  11835. /* [in] */ const BSTR Name,
  11836. /* [in] */ const BSTR Value,
  11837. /* [retval][out] */ VARIANT_BOOL *Supported);
  11838. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  11839. ISpeechRecognizer * This,
  11840. /* [in] */ const BSTR Name,
  11841. /* [out][in] */ BSTR *Value,
  11842. /* [retval][out] */ VARIANT_BOOL *Supported);
  11843. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  11844. ISpeechRecognizer * This,
  11845. /* [in] */ const BSTR TypeOfUI,
  11846. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11847. /* [retval][out] */ VARIANT_BOOL *Supported);
  11848. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  11849. ISpeechRecognizer * This,
  11850. /* [in] */ long hWndParent,
  11851. /* [in] */ BSTR Title,
  11852. /* [in] */ const BSTR TypeOfUI,
  11853. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  11854. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecognizers )(
  11855. ISpeechRecognizer * This,
  11856. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11857. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11858. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11859. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAudioInputs )(
  11860. ISpeechRecognizer * This,
  11861. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11862. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11863. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11864. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetProfiles )(
  11865. ISpeechRecognizer * This,
  11866. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11867. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11868. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11869. END_INTERFACE
  11870. } ISpeechRecognizerVtbl;
  11871. interface ISpeechRecognizer
  11872. {
  11873. CONST_VTBL struct ISpeechRecognizerVtbl *lpVtbl;
  11874. };
  11875. #ifdef COBJMACROS
  11876. #define ISpeechRecognizer_QueryInterface(This,riid,ppvObject) \
  11877. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11878. #define ISpeechRecognizer_AddRef(This) \
  11879. (This)->lpVtbl -> AddRef(This)
  11880. #define ISpeechRecognizer_Release(This) \
  11881. (This)->lpVtbl -> Release(This)
  11882. #define ISpeechRecognizer_GetTypeInfoCount(This,pctinfo) \
  11883. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11884. #define ISpeechRecognizer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11885. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11886. #define ISpeechRecognizer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11887. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11888. #define ISpeechRecognizer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11889. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11890. #define ISpeechRecognizer_putref_Recognizer(This,Recognizer) \
  11891. (This)->lpVtbl -> putref_Recognizer(This,Recognizer)
  11892. #define ISpeechRecognizer_get_Recognizer(This,Recognizer) \
  11893. (This)->lpVtbl -> get_Recognizer(This,Recognizer)
  11894. #define ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet(This,Allow) \
  11895. (This)->lpVtbl -> put_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  11896. #define ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet(This,Allow) \
  11897. (This)->lpVtbl -> get_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  11898. #define ISpeechRecognizer_putref_AudioInput(This,AudioInput) \
  11899. (This)->lpVtbl -> putref_AudioInput(This,AudioInput)
  11900. #define ISpeechRecognizer_get_AudioInput(This,AudioInput) \
  11901. (This)->lpVtbl -> get_AudioInput(This,AudioInput)
  11902. #define ISpeechRecognizer_putref_AudioInputStream(This,AudioInputStream) \
  11903. (This)->lpVtbl -> putref_AudioInputStream(This,AudioInputStream)
  11904. #define ISpeechRecognizer_get_AudioInputStream(This,AudioInputStream) \
  11905. (This)->lpVtbl -> get_AudioInputStream(This,AudioInputStream)
  11906. #define ISpeechRecognizer_get_IsShared(This,Shared) \
  11907. (This)->lpVtbl -> get_IsShared(This,Shared)
  11908. #define ISpeechRecognizer_put_State(This,State) \
  11909. (This)->lpVtbl -> put_State(This,State)
  11910. #define ISpeechRecognizer_get_State(This,State) \
  11911. (This)->lpVtbl -> get_State(This,State)
  11912. #define ISpeechRecognizer_get_Status(This,Status) \
  11913. (This)->lpVtbl -> get_Status(This,Status)
  11914. #define ISpeechRecognizer_putref_Profile(This,Profile) \
  11915. (This)->lpVtbl -> putref_Profile(This,Profile)
  11916. #define ISpeechRecognizer_get_Profile(This,Profile) \
  11917. (This)->lpVtbl -> get_Profile(This,Profile)
  11918. #define ISpeechRecognizer_EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId) \
  11919. (This)->lpVtbl -> EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId)
  11920. #define ISpeechRecognizer_CreateRecoContext(This,NewContext) \
  11921. (This)->lpVtbl -> CreateRecoContext(This,NewContext)
  11922. #define ISpeechRecognizer_GetFormat(This,Type,Format) \
  11923. (This)->lpVtbl -> GetFormat(This,Type,Format)
  11924. #define ISpeechRecognizer_SetPropertyNumber(This,Name,Value,Supported) \
  11925. (This)->lpVtbl -> SetPropertyNumber(This,Name,Value,Supported)
  11926. #define ISpeechRecognizer_GetPropertyNumber(This,Name,Value,Supported) \
  11927. (This)->lpVtbl -> GetPropertyNumber(This,Name,Value,Supported)
  11928. #define ISpeechRecognizer_SetPropertyString(This,Name,Value,Supported) \
  11929. (This)->lpVtbl -> SetPropertyString(This,Name,Value,Supported)
  11930. #define ISpeechRecognizer_GetPropertyString(This,Name,Value,Supported) \
  11931. (This)->lpVtbl -> GetPropertyString(This,Name,Value,Supported)
  11932. #define ISpeechRecognizer_IsUISupported(This,TypeOfUI,ExtraData,Supported) \
  11933. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Supported)
  11934. #define ISpeechRecognizer_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) \
  11935. (This)->lpVtbl -> DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  11936. #define ISpeechRecognizer_GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11937. (This)->lpVtbl -> GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11938. #define ISpeechRecognizer_GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11939. (This)->lpVtbl -> GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11940. #define ISpeechRecognizer_GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11941. (This)->lpVtbl -> GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11942. #endif /* COBJMACROS */
  11943. #endif /* C style interface */
  11944. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_Recognizer_Proxy(
  11945. ISpeechRecognizer * This,
  11946. /* [in] */ ISpeechObjectToken *Recognizer);
  11947. void __RPC_STUB ISpeechRecognizer_putref_Recognizer_Stub(
  11948. IRpcStubBuffer *This,
  11949. IRpcChannelBuffer *_pRpcChannelBuffer,
  11950. PRPC_MESSAGE _pRpcMessage,
  11951. DWORD *_pdwStubPhase);
  11952. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Recognizer_Proxy(
  11953. ISpeechRecognizer * This,
  11954. /* [retval][out] */ ISpeechObjectToken **Recognizer);
  11955. void __RPC_STUB ISpeechRecognizer_get_Recognizer_Stub(
  11956. IRpcStubBuffer *This,
  11957. IRpcChannelBuffer *_pRpcChannelBuffer,
  11958. PRPC_MESSAGE _pRpcMessage,
  11959. DWORD *_pdwStubPhase);
  11960. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet_Proxy(
  11961. ISpeechRecognizer * This,
  11962. /* [in] */ VARIANT_BOOL Allow);
  11963. void __RPC_STUB ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet_Stub(
  11964. IRpcStubBuffer *This,
  11965. IRpcChannelBuffer *_pRpcChannelBuffer,
  11966. PRPC_MESSAGE _pRpcMessage,
  11967. DWORD *_pdwStubPhase);
  11968. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet_Proxy(
  11969. ISpeechRecognizer * This,
  11970. /* [retval][out] */ VARIANT_BOOL *Allow);
  11971. void __RPC_STUB ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet_Stub(
  11972. IRpcStubBuffer *This,
  11973. IRpcChannelBuffer *_pRpcChannelBuffer,
  11974. PRPC_MESSAGE _pRpcMessage,
  11975. DWORD *_pdwStubPhase);
  11976. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_AudioInput_Proxy(
  11977. ISpeechRecognizer * This,
  11978. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput);
  11979. void __RPC_STUB ISpeechRecognizer_putref_AudioInput_Stub(
  11980. IRpcStubBuffer *This,
  11981. IRpcChannelBuffer *_pRpcChannelBuffer,
  11982. PRPC_MESSAGE _pRpcMessage,
  11983. DWORD *_pdwStubPhase);
  11984. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AudioInput_Proxy(
  11985. ISpeechRecognizer * This,
  11986. /* [retval][out] */ ISpeechObjectToken **AudioInput);
  11987. void __RPC_STUB ISpeechRecognizer_get_AudioInput_Stub(
  11988. IRpcStubBuffer *This,
  11989. IRpcChannelBuffer *_pRpcChannelBuffer,
  11990. PRPC_MESSAGE _pRpcMessage,
  11991. DWORD *_pdwStubPhase);
  11992. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_AudioInputStream_Proxy(
  11993. ISpeechRecognizer * This,
  11994. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream);
  11995. void __RPC_STUB ISpeechRecognizer_putref_AudioInputStream_Stub(
  11996. IRpcStubBuffer *This,
  11997. IRpcChannelBuffer *_pRpcChannelBuffer,
  11998. PRPC_MESSAGE _pRpcMessage,
  11999. DWORD *_pdwStubPhase);
  12000. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AudioInputStream_Proxy(
  12001. ISpeechRecognizer * This,
  12002. /* [retval][out] */ ISpeechBaseStream **AudioInputStream);
  12003. void __RPC_STUB ISpeechRecognizer_get_AudioInputStream_Stub(
  12004. IRpcStubBuffer *This,
  12005. IRpcChannelBuffer *_pRpcChannelBuffer,
  12006. PRPC_MESSAGE _pRpcMessage,
  12007. DWORD *_pdwStubPhase);
  12008. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_IsShared_Proxy(
  12009. ISpeechRecognizer * This,
  12010. /* [retval][out] */ VARIANT_BOOL *Shared);
  12011. void __RPC_STUB ISpeechRecognizer_get_IsShared_Stub(
  12012. IRpcStubBuffer *This,
  12013. IRpcChannelBuffer *_pRpcChannelBuffer,
  12014. PRPC_MESSAGE _pRpcMessage,
  12015. DWORD *_pdwStubPhase);
  12016. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_put_State_Proxy(
  12017. ISpeechRecognizer * This,
  12018. /* [in] */ SpeechRecognizerState State);
  12019. void __RPC_STUB ISpeechRecognizer_put_State_Stub(
  12020. IRpcStubBuffer *This,
  12021. IRpcChannelBuffer *_pRpcChannelBuffer,
  12022. PRPC_MESSAGE _pRpcMessage,
  12023. DWORD *_pdwStubPhase);
  12024. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_State_Proxy(
  12025. ISpeechRecognizer * This,
  12026. /* [retval][out] */ SpeechRecognizerState *State);
  12027. void __RPC_STUB ISpeechRecognizer_get_State_Stub(
  12028. IRpcStubBuffer *This,
  12029. IRpcChannelBuffer *_pRpcChannelBuffer,
  12030. PRPC_MESSAGE _pRpcMessage,
  12031. DWORD *_pdwStubPhase);
  12032. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Status_Proxy(
  12033. ISpeechRecognizer * This,
  12034. /* [retval][out] */ ISpeechRecognizerStatus **Status);
  12035. void __RPC_STUB ISpeechRecognizer_get_Status_Stub(
  12036. IRpcStubBuffer *This,
  12037. IRpcChannelBuffer *_pRpcChannelBuffer,
  12038. PRPC_MESSAGE _pRpcMessage,
  12039. DWORD *_pdwStubPhase);
  12040. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_Profile_Proxy(
  12041. ISpeechRecognizer * This,
  12042. /* [defaultvalue][in] */ ISpeechObjectToken *Profile);
  12043. void __RPC_STUB ISpeechRecognizer_putref_Profile_Stub(
  12044. IRpcStubBuffer *This,
  12045. IRpcChannelBuffer *_pRpcChannelBuffer,
  12046. PRPC_MESSAGE _pRpcMessage,
  12047. DWORD *_pdwStubPhase);
  12048. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Profile_Proxy(
  12049. ISpeechRecognizer * This,
  12050. /* [retval][out] */ ISpeechObjectToken **Profile);
  12051. void __RPC_STUB ISpeechRecognizer_get_Profile_Stub(
  12052. IRpcStubBuffer *This,
  12053. IRpcChannelBuffer *_pRpcChannelBuffer,
  12054. PRPC_MESSAGE _pRpcMessage,
  12055. DWORD *_pdwStubPhase);
  12056. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_EmulateRecognition_Proxy(
  12057. ISpeechRecognizer * This,
  12058. /* [in] */ VARIANT TextElements,
  12059. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes,
  12060. /* [defaultvalue][in] */ long LanguageId);
  12061. void __RPC_STUB ISpeechRecognizer_EmulateRecognition_Stub(
  12062. IRpcStubBuffer *This,
  12063. IRpcChannelBuffer *_pRpcChannelBuffer,
  12064. PRPC_MESSAGE _pRpcMessage,
  12065. DWORD *_pdwStubPhase);
  12066. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_CreateRecoContext_Proxy(
  12067. ISpeechRecognizer * This,
  12068. /* [retval][out] */ ISpeechRecoContext **NewContext);
  12069. void __RPC_STUB ISpeechRecognizer_CreateRecoContext_Stub(
  12070. IRpcStubBuffer *This,
  12071. IRpcChannelBuffer *_pRpcChannelBuffer,
  12072. PRPC_MESSAGE _pRpcMessage,
  12073. DWORD *_pdwStubPhase);
  12074. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetFormat_Proxy(
  12075. ISpeechRecognizer * This,
  12076. /* [in] */ SpeechFormatType Type,
  12077. /* [retval][out] */ ISpeechAudioFormat **Format);
  12078. void __RPC_STUB ISpeechRecognizer_GetFormat_Stub(
  12079. IRpcStubBuffer *This,
  12080. IRpcChannelBuffer *_pRpcChannelBuffer,
  12081. PRPC_MESSAGE _pRpcMessage,
  12082. DWORD *_pdwStubPhase);
  12083. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_SetPropertyNumber_Proxy(
  12084. ISpeechRecognizer * This,
  12085. /* [in] */ const BSTR Name,
  12086. /* [in] */ long Value,
  12087. /* [retval][out] */ VARIANT_BOOL *Supported);
  12088. void __RPC_STUB ISpeechRecognizer_SetPropertyNumber_Stub(
  12089. IRpcStubBuffer *This,
  12090. IRpcChannelBuffer *_pRpcChannelBuffer,
  12091. PRPC_MESSAGE _pRpcMessage,
  12092. DWORD *_pdwStubPhase);
  12093. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetPropertyNumber_Proxy(
  12094. ISpeechRecognizer * This,
  12095. /* [in] */ const BSTR Name,
  12096. /* [out][in] */ long *Value,
  12097. /* [retval][out] */ VARIANT_BOOL *Supported);
  12098. void __RPC_STUB ISpeechRecognizer_GetPropertyNumber_Stub(
  12099. IRpcStubBuffer *This,
  12100. IRpcChannelBuffer *_pRpcChannelBuffer,
  12101. PRPC_MESSAGE _pRpcMessage,
  12102. DWORD *_pdwStubPhase);
  12103. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_SetPropertyString_Proxy(
  12104. ISpeechRecognizer * This,
  12105. /* [in] */ const BSTR Name,
  12106. /* [in] */ const BSTR Value,
  12107. /* [retval][out] */ VARIANT_BOOL *Supported);
  12108. void __RPC_STUB ISpeechRecognizer_SetPropertyString_Stub(
  12109. IRpcStubBuffer *This,
  12110. IRpcChannelBuffer *_pRpcChannelBuffer,
  12111. PRPC_MESSAGE _pRpcMessage,
  12112. DWORD *_pdwStubPhase);
  12113. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetPropertyString_Proxy(
  12114. ISpeechRecognizer * This,
  12115. /* [in] */ const BSTR Name,
  12116. /* [out][in] */ BSTR *Value,
  12117. /* [retval][out] */ VARIANT_BOOL *Supported);
  12118. void __RPC_STUB ISpeechRecognizer_GetPropertyString_Stub(
  12119. IRpcStubBuffer *This,
  12120. IRpcChannelBuffer *_pRpcChannelBuffer,
  12121. PRPC_MESSAGE _pRpcMessage,
  12122. DWORD *_pdwStubPhase);
  12123. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_IsUISupported_Proxy(
  12124. ISpeechRecognizer * This,
  12125. /* [in] */ const BSTR TypeOfUI,
  12126. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  12127. /* [retval][out] */ VARIANT_BOOL *Supported);
  12128. void __RPC_STUB ISpeechRecognizer_IsUISupported_Stub(
  12129. IRpcStubBuffer *This,
  12130. IRpcChannelBuffer *_pRpcChannelBuffer,
  12131. PRPC_MESSAGE _pRpcMessage,
  12132. DWORD *_pdwStubPhase);
  12133. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_DisplayUI_Proxy(
  12134. ISpeechRecognizer * This,
  12135. /* [in] */ long hWndParent,
  12136. /* [in] */ BSTR Title,
  12137. /* [in] */ const BSTR TypeOfUI,
  12138. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  12139. void __RPC_STUB ISpeechRecognizer_DisplayUI_Stub(
  12140. IRpcStubBuffer *This,
  12141. IRpcChannelBuffer *_pRpcChannelBuffer,
  12142. PRPC_MESSAGE _pRpcMessage,
  12143. DWORD *_pdwStubPhase);
  12144. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetRecognizers_Proxy(
  12145. ISpeechRecognizer * This,
  12146. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12147. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12148. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12149. void __RPC_STUB ISpeechRecognizer_GetRecognizers_Stub(
  12150. IRpcStubBuffer *This,
  12151. IRpcChannelBuffer *_pRpcChannelBuffer,
  12152. PRPC_MESSAGE _pRpcMessage,
  12153. DWORD *_pdwStubPhase);
  12154. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetAudioInputs_Proxy(
  12155. ISpeechRecognizer * This,
  12156. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12157. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12158. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12159. void __RPC_STUB ISpeechRecognizer_GetAudioInputs_Stub(
  12160. IRpcStubBuffer *This,
  12161. IRpcChannelBuffer *_pRpcChannelBuffer,
  12162. PRPC_MESSAGE _pRpcMessage,
  12163. DWORD *_pdwStubPhase);
  12164. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetProfiles_Proxy(
  12165. ISpeechRecognizer * This,
  12166. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12167. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12168. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12169. void __RPC_STUB ISpeechRecognizer_GetProfiles_Stub(
  12170. IRpcStubBuffer *This,
  12171. IRpcChannelBuffer *_pRpcChannelBuffer,
  12172. PRPC_MESSAGE _pRpcMessage,
  12173. DWORD *_pdwStubPhase);
  12174. #endif /* __ISpeechRecognizer_INTERFACE_DEFINED__ */
  12175. #ifndef __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  12176. #define __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  12177. /* interface ISpeechRecognizerStatus */
  12178. /* [unique][helpstring][dual][uuid][object] */
  12179. EXTERN_C const IID IID_ISpeechRecognizerStatus;
  12180. #if defined(__cplusplus) && !defined(CINTERFACE)
  12181. MIDL_INTERFACE("BFF9E781-53EC-484e-BB8A-0E1B5551E35C")
  12182. ISpeechRecognizerStatus : public IDispatch
  12183. {
  12184. public:
  12185. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStatus(
  12186. /* [retval][out] */ ISpeechAudioStatus **AudioStatus) = 0;
  12187. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamPosition(
  12188. /* [retval][out] */ VARIANT *pCurrentStreamPos) = 0;
  12189. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  12190. /* [retval][out] */ long *StreamNumber) = 0;
  12191. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfActiveRules(
  12192. /* [retval][out] */ long *NumberOfActiveRules) = 0;
  12193. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ClsidEngine(
  12194. /* [retval][out] */ BSTR *ClsidEngine) = 0;
  12195. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedLanguages(
  12196. /* [retval][out] */ VARIANT *SupportedLanguages) = 0;
  12197. };
  12198. #else /* C style interface */
  12199. typedef struct ISpeechRecognizerStatusVtbl
  12200. {
  12201. BEGIN_INTERFACE
  12202. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12203. ISpeechRecognizerStatus * This,
  12204. /* [in] */ REFIID riid,
  12205. /* [iid_is][out] */ void **ppvObject);
  12206. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12207. ISpeechRecognizerStatus * This);
  12208. ULONG ( STDMETHODCALLTYPE *Release )(
  12209. ISpeechRecognizerStatus * This);
  12210. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12211. ISpeechRecognizerStatus * This,
  12212. /* [out] */ UINT *pctinfo);
  12213. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12214. ISpeechRecognizerStatus * This,
  12215. /* [in] */ UINT iTInfo,
  12216. /* [in] */ LCID lcid,
  12217. /* [out] */ ITypeInfo **ppTInfo);
  12218. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12219. ISpeechRecognizerStatus * This,
  12220. /* [in] */ REFIID riid,
  12221. /* [size_is][in] */ LPOLESTR *rgszNames,
  12222. /* [in] */ UINT cNames,
  12223. /* [in] */ LCID lcid,
  12224. /* [size_is][out] */ DISPID *rgDispId);
  12225. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12226. ISpeechRecognizerStatus * This,
  12227. /* [in] */ DISPID dispIdMember,
  12228. /* [in] */ REFIID riid,
  12229. /* [in] */ LCID lcid,
  12230. /* [in] */ WORD wFlags,
  12231. /* [out][in] */ DISPPARAMS *pDispParams,
  12232. /* [out] */ VARIANT *pVarResult,
  12233. /* [out] */ EXCEPINFO *pExcepInfo,
  12234. /* [out] */ UINT *puArgErr);
  12235. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStatus )(
  12236. ISpeechRecognizerStatus * This,
  12237. /* [retval][out] */ ISpeechAudioStatus **AudioStatus);
  12238. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamPosition )(
  12239. ISpeechRecognizerStatus * This,
  12240. /* [retval][out] */ VARIANT *pCurrentStreamPos);
  12241. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamNumber )(
  12242. ISpeechRecognizerStatus * This,
  12243. /* [retval][out] */ long *StreamNumber);
  12244. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfActiveRules )(
  12245. ISpeechRecognizerStatus * This,
  12246. /* [retval][out] */ long *NumberOfActiveRules);
  12247. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClsidEngine )(
  12248. ISpeechRecognizerStatus * This,
  12249. /* [retval][out] */ BSTR *ClsidEngine);
  12250. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedLanguages )(
  12251. ISpeechRecognizerStatus * This,
  12252. /* [retval][out] */ VARIANT *SupportedLanguages);
  12253. END_INTERFACE
  12254. } ISpeechRecognizerStatusVtbl;
  12255. interface ISpeechRecognizerStatus
  12256. {
  12257. CONST_VTBL struct ISpeechRecognizerStatusVtbl *lpVtbl;
  12258. };
  12259. #ifdef COBJMACROS
  12260. #define ISpeechRecognizerStatus_QueryInterface(This,riid,ppvObject) \
  12261. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12262. #define ISpeechRecognizerStatus_AddRef(This) \
  12263. (This)->lpVtbl -> AddRef(This)
  12264. #define ISpeechRecognizerStatus_Release(This) \
  12265. (This)->lpVtbl -> Release(This)
  12266. #define ISpeechRecognizerStatus_GetTypeInfoCount(This,pctinfo) \
  12267. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12268. #define ISpeechRecognizerStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12269. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12270. #define ISpeechRecognizerStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12271. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12272. #define ISpeechRecognizerStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12273. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12274. #define ISpeechRecognizerStatus_get_AudioStatus(This,AudioStatus) \
  12275. (This)->lpVtbl -> get_AudioStatus(This,AudioStatus)
  12276. #define ISpeechRecognizerStatus_get_CurrentStreamPosition(This,pCurrentStreamPos) \
  12277. (This)->lpVtbl -> get_CurrentStreamPosition(This,pCurrentStreamPos)
  12278. #define ISpeechRecognizerStatus_get_CurrentStreamNumber(This,StreamNumber) \
  12279. (This)->lpVtbl -> get_CurrentStreamNumber(This,StreamNumber)
  12280. #define ISpeechRecognizerStatus_get_NumberOfActiveRules(This,NumberOfActiveRules) \
  12281. (This)->lpVtbl -> get_NumberOfActiveRules(This,NumberOfActiveRules)
  12282. #define ISpeechRecognizerStatus_get_ClsidEngine(This,ClsidEngine) \
  12283. (This)->lpVtbl -> get_ClsidEngine(This,ClsidEngine)
  12284. #define ISpeechRecognizerStatus_get_SupportedLanguages(This,SupportedLanguages) \
  12285. (This)->lpVtbl -> get_SupportedLanguages(This,SupportedLanguages)
  12286. #endif /* COBJMACROS */
  12287. #endif /* C style interface */
  12288. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_AudioStatus_Proxy(
  12289. ISpeechRecognizerStatus * This,
  12290. /* [retval][out] */ ISpeechAudioStatus **AudioStatus);
  12291. void __RPC_STUB ISpeechRecognizerStatus_get_AudioStatus_Stub(
  12292. IRpcStubBuffer *This,
  12293. IRpcChannelBuffer *_pRpcChannelBuffer,
  12294. PRPC_MESSAGE _pRpcMessage,
  12295. DWORD *_pdwStubPhase);
  12296. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_CurrentStreamPosition_Proxy(
  12297. ISpeechRecognizerStatus * This,
  12298. /* [retval][out] */ VARIANT *pCurrentStreamPos);
  12299. void __RPC_STUB ISpeechRecognizerStatus_get_CurrentStreamPosition_Stub(
  12300. IRpcStubBuffer *This,
  12301. IRpcChannelBuffer *_pRpcChannelBuffer,
  12302. PRPC_MESSAGE _pRpcMessage,
  12303. DWORD *_pdwStubPhase);
  12304. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_CurrentStreamNumber_Proxy(
  12305. ISpeechRecognizerStatus * This,
  12306. /* [retval][out] */ long *StreamNumber);
  12307. void __RPC_STUB ISpeechRecognizerStatus_get_CurrentStreamNumber_Stub(
  12308. IRpcStubBuffer *This,
  12309. IRpcChannelBuffer *_pRpcChannelBuffer,
  12310. PRPC_MESSAGE _pRpcMessage,
  12311. DWORD *_pdwStubPhase);
  12312. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_NumberOfActiveRules_Proxy(
  12313. ISpeechRecognizerStatus * This,
  12314. /* [retval][out] */ long *NumberOfActiveRules);
  12315. void __RPC_STUB ISpeechRecognizerStatus_get_NumberOfActiveRules_Stub(
  12316. IRpcStubBuffer *This,
  12317. IRpcChannelBuffer *_pRpcChannelBuffer,
  12318. PRPC_MESSAGE _pRpcMessage,
  12319. DWORD *_pdwStubPhase);
  12320. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_ClsidEngine_Proxy(
  12321. ISpeechRecognizerStatus * This,
  12322. /* [retval][out] */ BSTR *ClsidEngine);
  12323. void __RPC_STUB ISpeechRecognizerStatus_get_ClsidEngine_Stub(
  12324. IRpcStubBuffer *This,
  12325. IRpcChannelBuffer *_pRpcChannelBuffer,
  12326. PRPC_MESSAGE _pRpcMessage,
  12327. DWORD *_pdwStubPhase);
  12328. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_SupportedLanguages_Proxy(
  12329. ISpeechRecognizerStatus * This,
  12330. /* [retval][out] */ VARIANT *SupportedLanguages);
  12331. void __RPC_STUB ISpeechRecognizerStatus_get_SupportedLanguages_Stub(
  12332. IRpcStubBuffer *This,
  12333. IRpcChannelBuffer *_pRpcChannelBuffer,
  12334. PRPC_MESSAGE _pRpcMessage,
  12335. DWORD *_pdwStubPhase);
  12336. #endif /* __ISpeechRecognizerStatus_INTERFACE_DEFINED__ */
  12337. #ifndef __ISpeechRecoContext_INTERFACE_DEFINED__
  12338. #define __ISpeechRecoContext_INTERFACE_DEFINED__
  12339. /* interface ISpeechRecoContext */
  12340. /* [unique][helpstring][dual][uuid][object] */
  12341. EXTERN_C const IID IID_ISpeechRecoContext;
  12342. #if defined(__cplusplus) && !defined(CINTERFACE)
  12343. MIDL_INTERFACE("580AA49D-7E1E-4809-B8E2-57DA806104B8")
  12344. ISpeechRecoContext : public IDispatch
  12345. {
  12346. public:
  12347. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Recognizer(
  12348. /* [retval][out] */ ISpeechRecognizer **Recognizer) = 0;
  12349. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInputInterferenceStatus(
  12350. /* [retval][out] */ SpeechInterference *Interference) = 0;
  12351. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedUIType(
  12352. /* [retval][out] */ BSTR *UIType) = 0;
  12353. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Voice(
  12354. /* [in] */ ISpeechVoice *Voice) = 0;
  12355. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Voice(
  12356. /* [retval][out] */ ISpeechVoice **Voice) = 0;
  12357. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowVoiceFormatMatchingOnNextSet(
  12358. /* [in] */ VARIANT_BOOL Allow) = 0;
  12359. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowVoiceFormatMatchingOnNextSet(
  12360. /* [retval][out] */ VARIANT_BOOL *pAllow) = 0;
  12361. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_VoicePurgeEvent(
  12362. /* [in] */ SpeechRecoEvents EventInterest) = 0;
  12363. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_VoicePurgeEvent(
  12364. /* [retval][out] */ SpeechRecoEvents *EventInterest) = 0;
  12365. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventInterests(
  12366. /* [in] */ SpeechRecoEvents EventInterest) = 0;
  12367. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventInterests(
  12368. /* [retval][out] */ SpeechRecoEvents *EventInterest) = 0;
  12369. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_CmdMaxAlternates(
  12370. /* [in] */ long MaxAlternates) = 0;
  12371. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CmdMaxAlternates(
  12372. /* [retval][out] */ long *MaxAlternates) = 0;
  12373. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  12374. /* [in] */ SpeechRecoContextState State) = 0;
  12375. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  12376. /* [retval][out] */ SpeechRecoContextState *State) = 0;
  12377. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_RetainedAudio(
  12378. /* [in] */ SpeechRetainedAudioOptions Option) = 0;
  12379. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedAudio(
  12380. /* [retval][out] */ SpeechRetainedAudioOptions *Option) = 0;
  12381. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_RetainedAudioFormat(
  12382. /* [in] */ ISpeechAudioFormat *Format) = 0;
  12383. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedAudioFormat(
  12384. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  12385. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  12386. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  12387. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateGrammar(
  12388. /* [defaultvalue][in] */ VARIANT GrammarId,
  12389. /* [retval][out] */ ISpeechRecoGrammar **Grammar) = 0;
  12390. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateResultFromMemory(
  12391. /* [in] */ VARIANT *ResultBlock,
  12392. /* [retval][out] */ ISpeechRecoResult **Result) = 0;
  12393. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Bookmark(
  12394. /* [in] */ SpeechBookmarkOptions Options,
  12395. /* [in] */ VARIANT StreamPos,
  12396. /* [in] */ VARIANT BookmarkId) = 0;
  12397. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetAdaptationData(
  12398. /* [in] */ BSTR AdaptationString) = 0;
  12399. };
  12400. #else /* C style interface */
  12401. typedef struct ISpeechRecoContextVtbl
  12402. {
  12403. BEGIN_INTERFACE
  12404. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12405. ISpeechRecoContext * This,
  12406. /* [in] */ REFIID riid,
  12407. /* [iid_is][out] */ void **ppvObject);
  12408. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12409. ISpeechRecoContext * This);
  12410. ULONG ( STDMETHODCALLTYPE *Release )(
  12411. ISpeechRecoContext * This);
  12412. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12413. ISpeechRecoContext * This,
  12414. /* [out] */ UINT *pctinfo);
  12415. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12416. ISpeechRecoContext * This,
  12417. /* [in] */ UINT iTInfo,
  12418. /* [in] */ LCID lcid,
  12419. /* [out] */ ITypeInfo **ppTInfo);
  12420. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12421. ISpeechRecoContext * This,
  12422. /* [in] */ REFIID riid,
  12423. /* [size_is][in] */ LPOLESTR *rgszNames,
  12424. /* [in] */ UINT cNames,
  12425. /* [in] */ LCID lcid,
  12426. /* [size_is][out] */ DISPID *rgDispId);
  12427. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12428. ISpeechRecoContext * This,
  12429. /* [in] */ DISPID dispIdMember,
  12430. /* [in] */ REFIID riid,
  12431. /* [in] */ LCID lcid,
  12432. /* [in] */ WORD wFlags,
  12433. /* [out][in] */ DISPPARAMS *pDispParams,
  12434. /* [out] */ VARIANT *pVarResult,
  12435. /* [out] */ EXCEPINFO *pExcepInfo,
  12436. /* [out] */ UINT *puArgErr);
  12437. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recognizer )(
  12438. ISpeechRecoContext * This,
  12439. /* [retval][out] */ ISpeechRecognizer **Recognizer);
  12440. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInputInterferenceStatus )(
  12441. ISpeechRecoContext * This,
  12442. /* [retval][out] */ SpeechInterference *Interference);
  12443. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedUIType )(
  12444. ISpeechRecoContext * This,
  12445. /* [retval][out] */ BSTR *UIType);
  12446. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Voice )(
  12447. ISpeechRecoContext * This,
  12448. /* [in] */ ISpeechVoice *Voice);
  12449. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Voice )(
  12450. ISpeechRecoContext * This,
  12451. /* [retval][out] */ ISpeechVoice **Voice);
  12452. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowVoiceFormatMatchingOnNextSet )(
  12453. ISpeechRecoContext * This,
  12454. /* [in] */ VARIANT_BOOL Allow);
  12455. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowVoiceFormatMatchingOnNextSet )(
  12456. ISpeechRecoContext * This,
  12457. /* [retval][out] */ VARIANT_BOOL *pAllow);
  12458. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VoicePurgeEvent )(
  12459. ISpeechRecoContext * This,
  12460. /* [in] */ SpeechRecoEvents EventInterest);
  12461. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VoicePurgeEvent )(
  12462. ISpeechRecoContext * This,
  12463. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12464. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventInterests )(
  12465. ISpeechRecoContext * This,
  12466. /* [in] */ SpeechRecoEvents EventInterest);
  12467. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventInterests )(
  12468. ISpeechRecoContext * This,
  12469. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12470. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CmdMaxAlternates )(
  12471. ISpeechRecoContext * This,
  12472. /* [in] */ long MaxAlternates);
  12473. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CmdMaxAlternates )(
  12474. ISpeechRecoContext * This,
  12475. /* [retval][out] */ long *MaxAlternates);
  12476. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  12477. ISpeechRecoContext * This,
  12478. /* [in] */ SpeechRecoContextState State);
  12479. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  12480. ISpeechRecoContext * This,
  12481. /* [retval][out] */ SpeechRecoContextState *State);
  12482. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetainedAudio )(
  12483. ISpeechRecoContext * This,
  12484. /* [in] */ SpeechRetainedAudioOptions Option);
  12485. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedAudio )(
  12486. ISpeechRecoContext * This,
  12487. /* [retval][out] */ SpeechRetainedAudioOptions *Option);
  12488. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_RetainedAudioFormat )(
  12489. ISpeechRecoContext * This,
  12490. /* [in] */ ISpeechAudioFormat *Format);
  12491. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedAudioFormat )(
  12492. ISpeechRecoContext * This,
  12493. /* [retval][out] */ ISpeechAudioFormat **Format);
  12494. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Pause )(
  12495. ISpeechRecoContext * This);
  12496. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Resume )(
  12497. ISpeechRecoContext * This);
  12498. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateGrammar )(
  12499. ISpeechRecoContext * This,
  12500. /* [defaultvalue][in] */ VARIANT GrammarId,
  12501. /* [retval][out] */ ISpeechRecoGrammar **Grammar);
  12502. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateResultFromMemory )(
  12503. ISpeechRecoContext * This,
  12504. /* [in] */ VARIANT *ResultBlock,
  12505. /* [retval][out] */ ISpeechRecoResult **Result);
  12506. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Bookmark )(
  12507. ISpeechRecoContext * This,
  12508. /* [in] */ SpeechBookmarkOptions Options,
  12509. /* [in] */ VARIANT StreamPos,
  12510. /* [in] */ VARIANT BookmarkId);
  12511. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
  12512. ISpeechRecoContext * This,
  12513. /* [in] */ BSTR AdaptationString);
  12514. END_INTERFACE
  12515. } ISpeechRecoContextVtbl;
  12516. interface ISpeechRecoContext
  12517. {
  12518. CONST_VTBL struct ISpeechRecoContextVtbl *lpVtbl;
  12519. };
  12520. #ifdef COBJMACROS
  12521. #define ISpeechRecoContext_QueryInterface(This,riid,ppvObject) \
  12522. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12523. #define ISpeechRecoContext_AddRef(This) \
  12524. (This)->lpVtbl -> AddRef(This)
  12525. #define ISpeechRecoContext_Release(This) \
  12526. (This)->lpVtbl -> Release(This)
  12527. #define ISpeechRecoContext_GetTypeInfoCount(This,pctinfo) \
  12528. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12529. #define ISpeechRecoContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12530. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12531. #define ISpeechRecoContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12532. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12533. #define ISpeechRecoContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12534. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12535. #define ISpeechRecoContext_get_Recognizer(This,Recognizer) \
  12536. (This)->lpVtbl -> get_Recognizer(This,Recognizer)
  12537. #define ISpeechRecoContext_get_AudioInputInterferenceStatus(This,Interference) \
  12538. (This)->lpVtbl -> get_AudioInputInterferenceStatus(This,Interference)
  12539. #define ISpeechRecoContext_get_RequestedUIType(This,UIType) \
  12540. (This)->lpVtbl -> get_RequestedUIType(This,UIType)
  12541. #define ISpeechRecoContext_putref_Voice(This,Voice) \
  12542. (This)->lpVtbl -> putref_Voice(This,Voice)
  12543. #define ISpeechRecoContext_get_Voice(This,Voice) \
  12544. (This)->lpVtbl -> get_Voice(This,Voice)
  12545. #define ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet(This,Allow) \
  12546. (This)->lpVtbl -> put_AllowVoiceFormatMatchingOnNextSet(This,Allow)
  12547. #define ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet(This,pAllow) \
  12548. (This)->lpVtbl -> get_AllowVoiceFormatMatchingOnNextSet(This,pAllow)
  12549. #define ISpeechRecoContext_put_VoicePurgeEvent(This,EventInterest) \
  12550. (This)->lpVtbl -> put_VoicePurgeEvent(This,EventInterest)
  12551. #define ISpeechRecoContext_get_VoicePurgeEvent(This,EventInterest) \
  12552. (This)->lpVtbl -> get_VoicePurgeEvent(This,EventInterest)
  12553. #define ISpeechRecoContext_put_EventInterests(This,EventInterest) \
  12554. (This)->lpVtbl -> put_EventInterests(This,EventInterest)
  12555. #define ISpeechRecoContext_get_EventInterests(This,EventInterest) \
  12556. (This)->lpVtbl -> get_EventInterests(This,EventInterest)
  12557. #define ISpeechRecoContext_put_CmdMaxAlternates(This,MaxAlternates) \
  12558. (This)->lpVtbl -> put_CmdMaxAlternates(This,MaxAlternates)
  12559. #define ISpeechRecoContext_get_CmdMaxAlternates(This,MaxAlternates) \
  12560. (This)->lpVtbl -> get_CmdMaxAlternates(This,MaxAlternates)
  12561. #define ISpeechRecoContext_put_State(This,State) \
  12562. (This)->lpVtbl -> put_State(This,State)
  12563. #define ISpeechRecoContext_get_State(This,State) \
  12564. (This)->lpVtbl -> get_State(This,State)
  12565. #define ISpeechRecoContext_put_RetainedAudio(This,Option) \
  12566. (This)->lpVtbl -> put_RetainedAudio(This,Option)
  12567. #define ISpeechRecoContext_get_RetainedAudio(This,Option) \
  12568. (This)->lpVtbl -> get_RetainedAudio(This,Option)
  12569. #define ISpeechRecoContext_putref_RetainedAudioFormat(This,Format) \
  12570. (This)->lpVtbl -> putref_RetainedAudioFormat(This,Format)
  12571. #define ISpeechRecoContext_get_RetainedAudioFormat(This,Format) \
  12572. (This)->lpVtbl -> get_RetainedAudioFormat(This,Format)
  12573. #define ISpeechRecoContext_Pause(This) \
  12574. (This)->lpVtbl -> Pause(This)
  12575. #define ISpeechRecoContext_Resume(This) \
  12576. (This)->lpVtbl -> Resume(This)
  12577. #define ISpeechRecoContext_CreateGrammar(This,GrammarId,Grammar) \
  12578. (This)->lpVtbl -> CreateGrammar(This,GrammarId,Grammar)
  12579. #define ISpeechRecoContext_CreateResultFromMemory(This,ResultBlock,Result) \
  12580. (This)->lpVtbl -> CreateResultFromMemory(This,ResultBlock,Result)
  12581. #define ISpeechRecoContext_Bookmark(This,Options,StreamPos,BookmarkId) \
  12582. (This)->lpVtbl -> Bookmark(This,Options,StreamPos,BookmarkId)
  12583. #define ISpeechRecoContext_SetAdaptationData(This,AdaptationString) \
  12584. (This)->lpVtbl -> SetAdaptationData(This,AdaptationString)
  12585. #endif /* COBJMACROS */
  12586. #endif /* C style interface */
  12587. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_Recognizer_Proxy(
  12588. ISpeechRecoContext * This,
  12589. /* [retval][out] */ ISpeechRecognizer **Recognizer);
  12590. void __RPC_STUB ISpeechRecoContext_get_Recognizer_Stub(
  12591. IRpcStubBuffer *This,
  12592. IRpcChannelBuffer *_pRpcChannelBuffer,
  12593. PRPC_MESSAGE _pRpcMessage,
  12594. DWORD *_pdwStubPhase);
  12595. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_AudioInputInterferenceStatus_Proxy(
  12596. ISpeechRecoContext * This,
  12597. /* [retval][out] */ SpeechInterference *Interference);
  12598. void __RPC_STUB ISpeechRecoContext_get_AudioInputInterferenceStatus_Stub(
  12599. IRpcStubBuffer *This,
  12600. IRpcChannelBuffer *_pRpcChannelBuffer,
  12601. PRPC_MESSAGE _pRpcMessage,
  12602. DWORD *_pdwStubPhase);
  12603. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RequestedUIType_Proxy(
  12604. ISpeechRecoContext * This,
  12605. /* [retval][out] */ BSTR *UIType);
  12606. void __RPC_STUB ISpeechRecoContext_get_RequestedUIType_Stub(
  12607. IRpcStubBuffer *This,
  12608. IRpcChannelBuffer *_pRpcChannelBuffer,
  12609. PRPC_MESSAGE _pRpcMessage,
  12610. DWORD *_pdwStubPhase);
  12611. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_putref_Voice_Proxy(
  12612. ISpeechRecoContext * This,
  12613. /* [in] */ ISpeechVoice *Voice);
  12614. void __RPC_STUB ISpeechRecoContext_putref_Voice_Stub(
  12615. IRpcStubBuffer *This,
  12616. IRpcChannelBuffer *_pRpcChannelBuffer,
  12617. PRPC_MESSAGE _pRpcMessage,
  12618. DWORD *_pdwStubPhase);
  12619. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_Voice_Proxy(
  12620. ISpeechRecoContext * This,
  12621. /* [retval][out] */ ISpeechVoice **Voice);
  12622. void __RPC_STUB ISpeechRecoContext_get_Voice_Stub(
  12623. IRpcStubBuffer *This,
  12624. IRpcChannelBuffer *_pRpcChannelBuffer,
  12625. PRPC_MESSAGE _pRpcMessage,
  12626. DWORD *_pdwStubPhase);
  12627. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet_Proxy(
  12628. ISpeechRecoContext * This,
  12629. /* [in] */ VARIANT_BOOL Allow);
  12630. void __RPC_STUB ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet_Stub(
  12631. IRpcStubBuffer *This,
  12632. IRpcChannelBuffer *_pRpcChannelBuffer,
  12633. PRPC_MESSAGE _pRpcMessage,
  12634. DWORD *_pdwStubPhase);
  12635. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet_Proxy(
  12636. ISpeechRecoContext * This,
  12637. /* [retval][out] */ VARIANT_BOOL *pAllow);
  12638. void __RPC_STUB ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet_Stub(
  12639. IRpcStubBuffer *This,
  12640. IRpcChannelBuffer *_pRpcChannelBuffer,
  12641. PRPC_MESSAGE _pRpcMessage,
  12642. DWORD *_pdwStubPhase);
  12643. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_VoicePurgeEvent_Proxy(
  12644. ISpeechRecoContext * This,
  12645. /* [in] */ SpeechRecoEvents EventInterest);
  12646. void __RPC_STUB ISpeechRecoContext_put_VoicePurgeEvent_Stub(
  12647. IRpcStubBuffer *This,
  12648. IRpcChannelBuffer *_pRpcChannelBuffer,
  12649. PRPC_MESSAGE _pRpcMessage,
  12650. DWORD *_pdwStubPhase);
  12651. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_VoicePurgeEvent_Proxy(
  12652. ISpeechRecoContext * This,
  12653. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12654. void __RPC_STUB ISpeechRecoContext_get_VoicePurgeEvent_Stub(
  12655. IRpcStubBuffer *This,
  12656. IRpcChannelBuffer *_pRpcChannelBuffer,
  12657. PRPC_MESSAGE _pRpcMessage,
  12658. DWORD *_pdwStubPhase);
  12659. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_EventInterests_Proxy(
  12660. ISpeechRecoContext * This,
  12661. /* [in] */ SpeechRecoEvents EventInterest);
  12662. void __RPC_STUB ISpeechRecoContext_put_EventInterests_Stub(
  12663. IRpcStubBuffer *This,
  12664. IRpcChannelBuffer *_pRpcChannelBuffer,
  12665. PRPC_MESSAGE _pRpcMessage,
  12666. DWORD *_pdwStubPhase);
  12667. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_EventInterests_Proxy(
  12668. ISpeechRecoContext * This,
  12669. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12670. void __RPC_STUB ISpeechRecoContext_get_EventInterests_Stub(
  12671. IRpcStubBuffer *This,
  12672. IRpcChannelBuffer *_pRpcChannelBuffer,
  12673. PRPC_MESSAGE _pRpcMessage,
  12674. DWORD *_pdwStubPhase);
  12675. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_CmdMaxAlternates_Proxy(
  12676. ISpeechRecoContext * This,
  12677. /* [in] */ long MaxAlternates);
  12678. void __RPC_STUB ISpeechRecoContext_put_CmdMaxAlternates_Stub(
  12679. IRpcStubBuffer *This,
  12680. IRpcChannelBuffer *_pRpcChannelBuffer,
  12681. PRPC_MESSAGE _pRpcMessage,
  12682. DWORD *_pdwStubPhase);
  12683. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_CmdMaxAlternates_Proxy(
  12684. ISpeechRecoContext * This,
  12685. /* [retval][out] */ long *MaxAlternates);
  12686. void __RPC_STUB ISpeechRecoContext_get_CmdMaxAlternates_Stub(
  12687. IRpcStubBuffer *This,
  12688. IRpcChannelBuffer *_pRpcChannelBuffer,
  12689. PRPC_MESSAGE _pRpcMessage,
  12690. DWORD *_pdwStubPhase);
  12691. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_State_Proxy(
  12692. ISpeechRecoContext * This,
  12693. /* [in] */ SpeechRecoContextState State);
  12694. void __RPC_STUB ISpeechRecoContext_put_State_Stub(
  12695. IRpcStubBuffer *This,
  12696. IRpcChannelBuffer *_pRpcChannelBuffer,
  12697. PRPC_MESSAGE _pRpcMessage,
  12698. DWORD *_pdwStubPhase);
  12699. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_State_Proxy(
  12700. ISpeechRecoContext * This,
  12701. /* [retval][out] */ SpeechRecoContextState *State);
  12702. void __RPC_STUB ISpeechRecoContext_get_State_Stub(
  12703. IRpcStubBuffer *This,
  12704. IRpcChannelBuffer *_pRpcChannelBuffer,
  12705. PRPC_MESSAGE _pRpcMessage,
  12706. DWORD *_pdwStubPhase);
  12707. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_RetainedAudio_Proxy(
  12708. ISpeechRecoContext * This,
  12709. /* [in] */ SpeechRetainedAudioOptions Option);
  12710. void __RPC_STUB ISpeechRecoContext_put_RetainedAudio_Stub(
  12711. IRpcStubBuffer *This,
  12712. IRpcChannelBuffer *_pRpcChannelBuffer,
  12713. PRPC_MESSAGE _pRpcMessage,
  12714. DWORD *_pdwStubPhase);
  12715. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RetainedAudio_Proxy(
  12716. ISpeechRecoContext * This,
  12717. /* [retval][out] */ SpeechRetainedAudioOptions *Option);
  12718. void __RPC_STUB ISpeechRecoContext_get_RetainedAudio_Stub(
  12719. IRpcStubBuffer *This,
  12720. IRpcChannelBuffer *_pRpcChannelBuffer,
  12721. PRPC_MESSAGE _pRpcMessage,
  12722. DWORD *_pdwStubPhase);
  12723. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_putref_RetainedAudioFormat_Proxy(
  12724. ISpeechRecoContext * This,
  12725. /* [in] */ ISpeechAudioFormat *Format);
  12726. void __RPC_STUB ISpeechRecoContext_putref_RetainedAudioFormat_Stub(
  12727. IRpcStubBuffer *This,
  12728. IRpcChannelBuffer *_pRpcChannelBuffer,
  12729. PRPC_MESSAGE _pRpcMessage,
  12730. DWORD *_pdwStubPhase);
  12731. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RetainedAudioFormat_Proxy(
  12732. ISpeechRecoContext * This,
  12733. /* [retval][out] */ ISpeechAudioFormat **Format);
  12734. void __RPC_STUB ISpeechRecoContext_get_RetainedAudioFormat_Stub(
  12735. IRpcStubBuffer *This,
  12736. IRpcChannelBuffer *_pRpcChannelBuffer,
  12737. PRPC_MESSAGE _pRpcMessage,
  12738. DWORD *_pdwStubPhase);
  12739. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Pause_Proxy(
  12740. ISpeechRecoContext * This);
  12741. void __RPC_STUB ISpeechRecoContext_Pause_Stub(
  12742. IRpcStubBuffer *This,
  12743. IRpcChannelBuffer *_pRpcChannelBuffer,
  12744. PRPC_MESSAGE _pRpcMessage,
  12745. DWORD *_pdwStubPhase);
  12746. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Resume_Proxy(
  12747. ISpeechRecoContext * This);
  12748. void __RPC_STUB ISpeechRecoContext_Resume_Stub(
  12749. IRpcStubBuffer *This,
  12750. IRpcChannelBuffer *_pRpcChannelBuffer,
  12751. PRPC_MESSAGE _pRpcMessage,
  12752. DWORD *_pdwStubPhase);
  12753. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_CreateGrammar_Proxy(
  12754. ISpeechRecoContext * This,
  12755. /* [defaultvalue][in] */ VARIANT GrammarId,
  12756. /* [retval][out] */ ISpeechRecoGrammar **Grammar);
  12757. void __RPC_STUB ISpeechRecoContext_CreateGrammar_Stub(
  12758. IRpcStubBuffer *This,
  12759. IRpcChannelBuffer *_pRpcChannelBuffer,
  12760. PRPC_MESSAGE _pRpcMessage,
  12761. DWORD *_pdwStubPhase);
  12762. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_CreateResultFromMemory_Proxy(
  12763. ISpeechRecoContext * This,
  12764. /* [in] */ VARIANT *ResultBlock,
  12765. /* [retval][out] */ ISpeechRecoResult **Result);
  12766. void __RPC_STUB ISpeechRecoContext_CreateResultFromMemory_Stub(
  12767. IRpcStubBuffer *This,
  12768. IRpcChannelBuffer *_pRpcChannelBuffer,
  12769. PRPC_MESSAGE _pRpcMessage,
  12770. DWORD *_pdwStubPhase);
  12771. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Bookmark_Proxy(
  12772. ISpeechRecoContext * This,
  12773. /* [in] */ SpeechBookmarkOptions Options,
  12774. /* [in] */ VARIANT StreamPos,
  12775. /* [in] */ VARIANT BookmarkId);
  12776. void __RPC_STUB ISpeechRecoContext_Bookmark_Stub(
  12777. IRpcStubBuffer *This,
  12778. IRpcChannelBuffer *_pRpcChannelBuffer,
  12779. PRPC_MESSAGE _pRpcMessage,
  12780. DWORD *_pdwStubPhase);
  12781. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_SetAdaptationData_Proxy(
  12782. ISpeechRecoContext * This,
  12783. /* [in] */ BSTR AdaptationString);
  12784. void __RPC_STUB ISpeechRecoContext_SetAdaptationData_Stub(
  12785. IRpcStubBuffer *This,
  12786. IRpcChannelBuffer *_pRpcChannelBuffer,
  12787. PRPC_MESSAGE _pRpcMessage,
  12788. DWORD *_pdwStubPhase);
  12789. #endif /* __ISpeechRecoContext_INTERFACE_DEFINED__ */
  12790. #ifndef __ISpeechRecoGrammar_INTERFACE_DEFINED__
  12791. #define __ISpeechRecoGrammar_INTERFACE_DEFINED__
  12792. /* interface ISpeechRecoGrammar */
  12793. /* [unique][helpstring][dual][uuid][object] */
  12794. EXTERN_C const IID IID_ISpeechRecoGrammar;
  12795. #if defined(__cplusplus) && !defined(CINTERFACE)
  12796. MIDL_INTERFACE("B6D6F79F-2158-4e50-B5BC-9A9CCD852A09")
  12797. ISpeechRecoGrammar : public IDispatch
  12798. {
  12799. public:
  12800. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  12801. /* [retval][out] */ VARIANT *Id) = 0;
  12802. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoContext(
  12803. /* [retval][out] */ ISpeechRecoContext **RecoContext) = 0;
  12804. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  12805. /* [in] */ SpeechGrammarState State) = 0;
  12806. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  12807. /* [retval][out] */ SpeechGrammarState *State) = 0;
  12808. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rules(
  12809. /* [retval][out] */ ISpeechGrammarRules **Rules) = 0;
  12810. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Reset(
  12811. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage = 0) = 0;
  12812. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromFile(
  12813. /* [in] */ const BSTR FileName,
  12814. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12815. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromObject(
  12816. /* [in] */ const BSTR ClassId,
  12817. /* [in] */ const BSTR GrammarName,
  12818. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12819. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromResource(
  12820. /* [in] */ long hModule,
  12821. /* [in] */ VARIANT ResourceName,
  12822. /* [in] */ VARIANT ResourceType,
  12823. /* [in] */ SpeechLanguageId LanguageId,
  12824. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12825. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromMemory(
  12826. /* [in] */ VARIANT GrammarData,
  12827. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12828. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromProprietaryGrammar(
  12829. /* [in] */ const BSTR ProprietaryGuid,
  12830. /* [in] */ const BSTR ProprietaryString,
  12831. /* [in] */ VARIANT ProprietaryData,
  12832. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12833. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdSetRuleState(
  12834. /* [in] */ const BSTR Name,
  12835. /* [in] */ SpeechRuleState State) = 0;
  12836. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdSetRuleIdState(
  12837. /* [in] */ long RuleId,
  12838. /* [in] */ SpeechRuleState State) = 0;
  12839. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationLoad(
  12840. /* [defaultvalue][in] */ const BSTR TopicName = L"",
  12841. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12842. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationUnload( void) = 0;
  12843. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationSetState(
  12844. /* [in] */ SpeechRuleState State) = 0;
  12845. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  12846. /* [in] */ const BSTR Text,
  12847. /* [in] */ long TextLength,
  12848. /* [in] */ ISpeechTextSelectionInformation *Info) = 0;
  12849. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetTextSelection(
  12850. /* [in] */ ISpeechTextSelectionInformation *Info) = 0;
  12851. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsPronounceable(
  12852. /* [in] */ const BSTR Word,
  12853. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable) = 0;
  12854. };
  12855. #else /* C style interface */
  12856. typedef struct ISpeechRecoGrammarVtbl
  12857. {
  12858. BEGIN_INTERFACE
  12859. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12860. ISpeechRecoGrammar * This,
  12861. /* [in] */ REFIID riid,
  12862. /* [iid_is][out] */ void **ppvObject);
  12863. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12864. ISpeechRecoGrammar * This);
  12865. ULONG ( STDMETHODCALLTYPE *Release )(
  12866. ISpeechRecoGrammar * This);
  12867. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12868. ISpeechRecoGrammar * This,
  12869. /* [out] */ UINT *pctinfo);
  12870. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12871. ISpeechRecoGrammar * This,
  12872. /* [in] */ UINT iTInfo,
  12873. /* [in] */ LCID lcid,
  12874. /* [out] */ ITypeInfo **ppTInfo);
  12875. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12876. ISpeechRecoGrammar * This,
  12877. /* [in] */ REFIID riid,
  12878. /* [size_is][in] */ LPOLESTR *rgszNames,
  12879. /* [in] */ UINT cNames,
  12880. /* [in] */ LCID lcid,
  12881. /* [size_is][out] */ DISPID *rgDispId);
  12882. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12883. ISpeechRecoGrammar * This,
  12884. /* [in] */ DISPID dispIdMember,
  12885. /* [in] */ REFIID riid,
  12886. /* [in] */ LCID lcid,
  12887. /* [in] */ WORD wFlags,
  12888. /* [out][in] */ DISPPARAMS *pDispParams,
  12889. /* [out] */ VARIANT *pVarResult,
  12890. /* [out] */ EXCEPINFO *pExcepInfo,
  12891. /* [out] */ UINT *puArgErr);
  12892. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  12893. ISpeechRecoGrammar * This,
  12894. /* [retval][out] */ VARIANT *Id);
  12895. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoContext )(
  12896. ISpeechRecoGrammar * This,
  12897. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  12898. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  12899. ISpeechRecoGrammar * This,
  12900. /* [in] */ SpeechGrammarState State);
  12901. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  12902. ISpeechRecoGrammar * This,
  12903. /* [retval][out] */ SpeechGrammarState *State);
  12904. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rules )(
  12905. ISpeechRecoGrammar * This,
  12906. /* [retval][out] */ ISpeechGrammarRules **Rules);
  12907. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Reset )(
  12908. ISpeechRecoGrammar * This,
  12909. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage);
  12910. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromFile )(
  12911. ISpeechRecoGrammar * This,
  12912. /* [in] */ const BSTR FileName,
  12913. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12914. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromObject )(
  12915. ISpeechRecoGrammar * This,
  12916. /* [in] */ const BSTR ClassId,
  12917. /* [in] */ const BSTR GrammarName,
  12918. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12919. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromResource )(
  12920. ISpeechRecoGrammar * This,
  12921. /* [in] */ long hModule,
  12922. /* [in] */ VARIANT ResourceName,
  12923. /* [in] */ VARIANT ResourceType,
  12924. /* [in] */ SpeechLanguageId LanguageId,
  12925. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12926. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromMemory )(
  12927. ISpeechRecoGrammar * This,
  12928. /* [in] */ VARIANT GrammarData,
  12929. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12930. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromProprietaryGrammar )(
  12931. ISpeechRecoGrammar * This,
  12932. /* [in] */ const BSTR ProprietaryGuid,
  12933. /* [in] */ const BSTR ProprietaryString,
  12934. /* [in] */ VARIANT ProprietaryData,
  12935. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12936. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdSetRuleState )(
  12937. ISpeechRecoGrammar * This,
  12938. /* [in] */ const BSTR Name,
  12939. /* [in] */ SpeechRuleState State);
  12940. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdSetRuleIdState )(
  12941. ISpeechRecoGrammar * This,
  12942. /* [in] */ long RuleId,
  12943. /* [in] */ SpeechRuleState State);
  12944. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationLoad )(
  12945. ISpeechRecoGrammar * This,
  12946. /* [defaultvalue][in] */ const BSTR TopicName,
  12947. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12948. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationUnload )(
  12949. ISpeechRecoGrammar * This);
  12950. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationSetState )(
  12951. ISpeechRecoGrammar * This,
  12952. /* [in] */ SpeechRuleState State);
  12953. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
  12954. ISpeechRecoGrammar * This,
  12955. /* [in] */ const BSTR Text,
  12956. /* [in] */ long TextLength,
  12957. /* [in] */ ISpeechTextSelectionInformation *Info);
  12958. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
  12959. ISpeechRecoGrammar * This,
  12960. /* [in] */ ISpeechTextSelectionInformation *Info);
  12961. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
  12962. ISpeechRecoGrammar * This,
  12963. /* [in] */ const BSTR Word,
  12964. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable);
  12965. END_INTERFACE
  12966. } ISpeechRecoGrammarVtbl;
  12967. interface ISpeechRecoGrammar
  12968. {
  12969. CONST_VTBL struct ISpeechRecoGrammarVtbl *lpVtbl;
  12970. };
  12971. #ifdef COBJMACROS
  12972. #define ISpeechRecoGrammar_QueryInterface(This,riid,ppvObject) \
  12973. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12974. #define ISpeechRecoGrammar_AddRef(This) \
  12975. (This)->lpVtbl -> AddRef(This)
  12976. #define ISpeechRecoGrammar_Release(This) \
  12977. (This)->lpVtbl -> Release(This)
  12978. #define ISpeechRecoGrammar_GetTypeInfoCount(This,pctinfo) \
  12979. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12980. #define ISpeechRecoGrammar_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12981. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12982. #define ISpeechRecoGrammar_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12983. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12984. #define ISpeechRecoGrammar_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12985. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12986. #define ISpeechRecoGrammar_get_Id(This,Id) \
  12987. (This)->lpVtbl -> get_Id(This,Id)
  12988. #define ISpeechRecoGrammar_get_RecoContext(This,RecoContext) \
  12989. (This)->lpVtbl -> get_RecoContext(This,RecoContext)
  12990. #define ISpeechRecoGrammar_put_State(This,State) \
  12991. (This)->lpVtbl -> put_State(This,State)
  12992. #define ISpeechRecoGrammar_get_State(This,State) \
  12993. (This)->lpVtbl -> get_State(This,State)
  12994. #define ISpeechRecoGrammar_get_Rules(This,Rules) \
  12995. (This)->lpVtbl -> get_Rules(This,Rules)
  12996. #define ISpeechRecoGrammar_Reset(This,NewLanguage) \
  12997. (This)->lpVtbl -> Reset(This,NewLanguage)
  12998. #define ISpeechRecoGrammar_CmdLoadFromFile(This,FileName,LoadOption) \
  12999. (This)->lpVtbl -> CmdLoadFromFile(This,FileName,LoadOption)
  13000. #define ISpeechRecoGrammar_CmdLoadFromObject(This,ClassId,GrammarName,LoadOption) \
  13001. (This)->lpVtbl -> CmdLoadFromObject(This,ClassId,GrammarName,LoadOption)
  13002. #define ISpeechRecoGrammar_CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption) \
  13003. (This)->lpVtbl -> CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption)
  13004. #define ISpeechRecoGrammar_CmdLoadFromMemory(This,GrammarData,LoadOption) \
  13005. (This)->lpVtbl -> CmdLoadFromMemory(This,GrammarData,LoadOption)
  13006. #define ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption) \
  13007. (This)->lpVtbl -> CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption)
  13008. #define ISpeechRecoGrammar_CmdSetRuleState(This,Name,State) \
  13009. (This)->lpVtbl -> CmdSetRuleState(This,Name,State)
  13010. #define ISpeechRecoGrammar_CmdSetRuleIdState(This,RuleId,State) \
  13011. (This)->lpVtbl -> CmdSetRuleIdState(This,RuleId,State)
  13012. #define ISpeechRecoGrammar_DictationLoad(This,TopicName,LoadOption) \
  13013. (This)->lpVtbl -> DictationLoad(This,TopicName,LoadOption)
  13014. #define ISpeechRecoGrammar_DictationUnload(This) \
  13015. (This)->lpVtbl -> DictationUnload(This)
  13016. #define ISpeechRecoGrammar_DictationSetState(This,State) \
  13017. (This)->lpVtbl -> DictationSetState(This,State)
  13018. #define ISpeechRecoGrammar_SetWordSequenceData(This,Text,TextLength,Info) \
  13019. (This)->lpVtbl -> SetWordSequenceData(This,Text,TextLength,Info)
  13020. #define ISpeechRecoGrammar_SetTextSelection(This,Info) \
  13021. (This)->lpVtbl -> SetTextSelection(This,Info)
  13022. #define ISpeechRecoGrammar_IsPronounceable(This,Word,WordPronounceable) \
  13023. (This)->lpVtbl -> IsPronounceable(This,Word,WordPronounceable)
  13024. #endif /* COBJMACROS */
  13025. #endif /* C style interface */
  13026. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_Id_Proxy(
  13027. ISpeechRecoGrammar * This,
  13028. /* [retval][out] */ VARIANT *Id);
  13029. void __RPC_STUB ISpeechRecoGrammar_get_Id_Stub(
  13030. IRpcStubBuffer *This,
  13031. IRpcChannelBuffer *_pRpcChannelBuffer,
  13032. PRPC_MESSAGE _pRpcMessage,
  13033. DWORD *_pdwStubPhase);
  13034. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_RecoContext_Proxy(
  13035. ISpeechRecoGrammar * This,
  13036. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  13037. void __RPC_STUB ISpeechRecoGrammar_get_RecoContext_Stub(
  13038. IRpcStubBuffer *This,
  13039. IRpcChannelBuffer *_pRpcChannelBuffer,
  13040. PRPC_MESSAGE _pRpcMessage,
  13041. DWORD *_pdwStubPhase);
  13042. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_put_State_Proxy(
  13043. ISpeechRecoGrammar * This,
  13044. /* [in] */ SpeechGrammarState State);
  13045. void __RPC_STUB ISpeechRecoGrammar_put_State_Stub(
  13046. IRpcStubBuffer *This,
  13047. IRpcChannelBuffer *_pRpcChannelBuffer,
  13048. PRPC_MESSAGE _pRpcMessage,
  13049. DWORD *_pdwStubPhase);
  13050. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_State_Proxy(
  13051. ISpeechRecoGrammar * This,
  13052. /* [retval][out] */ SpeechGrammarState *State);
  13053. void __RPC_STUB ISpeechRecoGrammar_get_State_Stub(
  13054. IRpcStubBuffer *This,
  13055. IRpcChannelBuffer *_pRpcChannelBuffer,
  13056. PRPC_MESSAGE _pRpcMessage,
  13057. DWORD *_pdwStubPhase);
  13058. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_Rules_Proxy(
  13059. ISpeechRecoGrammar * This,
  13060. /* [retval][out] */ ISpeechGrammarRules **Rules);
  13061. void __RPC_STUB ISpeechRecoGrammar_get_Rules_Stub(
  13062. IRpcStubBuffer *This,
  13063. IRpcChannelBuffer *_pRpcChannelBuffer,
  13064. PRPC_MESSAGE _pRpcMessage,
  13065. DWORD *_pdwStubPhase);
  13066. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_Reset_Proxy(
  13067. ISpeechRecoGrammar * This,
  13068. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage);
  13069. void __RPC_STUB ISpeechRecoGrammar_Reset_Stub(
  13070. IRpcStubBuffer *This,
  13071. IRpcChannelBuffer *_pRpcChannelBuffer,
  13072. PRPC_MESSAGE _pRpcMessage,
  13073. DWORD *_pdwStubPhase);
  13074. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromFile_Proxy(
  13075. ISpeechRecoGrammar * This,
  13076. /* [in] */ const BSTR FileName,
  13077. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13078. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromFile_Stub(
  13079. IRpcStubBuffer *This,
  13080. IRpcChannelBuffer *_pRpcChannelBuffer,
  13081. PRPC_MESSAGE _pRpcMessage,
  13082. DWORD *_pdwStubPhase);
  13083. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromObject_Proxy(
  13084. ISpeechRecoGrammar * This,
  13085. /* [in] */ const BSTR ClassId,
  13086. /* [in] */ const BSTR GrammarName,
  13087. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13088. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromObject_Stub(
  13089. IRpcStubBuffer *This,
  13090. IRpcChannelBuffer *_pRpcChannelBuffer,
  13091. PRPC_MESSAGE _pRpcMessage,
  13092. DWORD *_pdwStubPhase);
  13093. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromResource_Proxy(
  13094. ISpeechRecoGrammar * This,
  13095. /* [in] */ long hModule,
  13096. /* [in] */ VARIANT ResourceName,
  13097. /* [in] */ VARIANT ResourceType,
  13098. /* [in] */ SpeechLanguageId LanguageId,
  13099. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13100. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromResource_Stub(
  13101. IRpcStubBuffer *This,
  13102. IRpcChannelBuffer *_pRpcChannelBuffer,
  13103. PRPC_MESSAGE _pRpcMessage,
  13104. DWORD *_pdwStubPhase);
  13105. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromMemory_Proxy(
  13106. ISpeechRecoGrammar * This,
  13107. /* [in] */ VARIANT GrammarData,
  13108. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13109. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromMemory_Stub(
  13110. IRpcStubBuffer *This,
  13111. IRpcChannelBuffer *_pRpcChannelBuffer,
  13112. PRPC_MESSAGE _pRpcMessage,
  13113. DWORD *_pdwStubPhase);
  13114. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar_Proxy(
  13115. ISpeechRecoGrammar * This,
  13116. /* [in] */ const BSTR ProprietaryGuid,
  13117. /* [in] */ const BSTR ProprietaryString,
  13118. /* [in] */ VARIANT ProprietaryData,
  13119. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13120. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar_Stub(
  13121. IRpcStubBuffer *This,
  13122. IRpcChannelBuffer *_pRpcChannelBuffer,
  13123. PRPC_MESSAGE _pRpcMessage,
  13124. DWORD *_pdwStubPhase);
  13125. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdSetRuleState_Proxy(
  13126. ISpeechRecoGrammar * This,
  13127. /* [in] */ const BSTR Name,
  13128. /* [in] */ SpeechRuleState State);
  13129. void __RPC_STUB ISpeechRecoGrammar_CmdSetRuleState_Stub(
  13130. IRpcStubBuffer *This,
  13131. IRpcChannelBuffer *_pRpcChannelBuffer,
  13132. PRPC_MESSAGE _pRpcMessage,
  13133. DWORD *_pdwStubPhase);
  13134. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdSetRuleIdState_Proxy(
  13135. ISpeechRecoGrammar * This,
  13136. /* [in] */ long RuleId,
  13137. /* [in] */ SpeechRuleState State);
  13138. void __RPC_STUB ISpeechRecoGrammar_CmdSetRuleIdState_Stub(
  13139. IRpcStubBuffer *This,
  13140. IRpcChannelBuffer *_pRpcChannelBuffer,
  13141. PRPC_MESSAGE _pRpcMessage,
  13142. DWORD *_pdwStubPhase);
  13143. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationLoad_Proxy(
  13144. ISpeechRecoGrammar * This,
  13145. /* [defaultvalue][in] */ const BSTR TopicName,
  13146. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13147. void __RPC_STUB ISpeechRecoGrammar_DictationLoad_Stub(
  13148. IRpcStubBuffer *This,
  13149. IRpcChannelBuffer *_pRpcChannelBuffer,
  13150. PRPC_MESSAGE _pRpcMessage,
  13151. DWORD *_pdwStubPhase);
  13152. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationUnload_Proxy(
  13153. ISpeechRecoGrammar * This);
  13154. void __RPC_STUB ISpeechRecoGrammar_DictationUnload_Stub(
  13155. IRpcStubBuffer *This,
  13156. IRpcChannelBuffer *_pRpcChannelBuffer,
  13157. PRPC_MESSAGE _pRpcMessage,
  13158. DWORD *_pdwStubPhase);
  13159. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationSetState_Proxy(
  13160. ISpeechRecoGrammar * This,
  13161. /* [in] */ SpeechRuleState State);
  13162. void __RPC_STUB ISpeechRecoGrammar_DictationSetState_Stub(
  13163. IRpcStubBuffer *This,
  13164. IRpcChannelBuffer *_pRpcChannelBuffer,
  13165. PRPC_MESSAGE _pRpcMessage,
  13166. DWORD *_pdwStubPhase);
  13167. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_SetWordSequenceData_Proxy(
  13168. ISpeechRecoGrammar * This,
  13169. /* [in] */ const BSTR Text,
  13170. /* [in] */ long TextLength,
  13171. /* [in] */ ISpeechTextSelectionInformation *Info);
  13172. void __RPC_STUB ISpeechRecoGrammar_SetWordSequenceData_Stub(
  13173. IRpcStubBuffer *This,
  13174. IRpcChannelBuffer *_pRpcChannelBuffer,
  13175. PRPC_MESSAGE _pRpcMessage,
  13176. DWORD *_pdwStubPhase);
  13177. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_SetTextSelection_Proxy(
  13178. ISpeechRecoGrammar * This,
  13179. /* [in] */ ISpeechTextSelectionInformation *Info);
  13180. void __RPC_STUB ISpeechRecoGrammar_SetTextSelection_Stub(
  13181. IRpcStubBuffer *This,
  13182. IRpcChannelBuffer *_pRpcChannelBuffer,
  13183. PRPC_MESSAGE _pRpcMessage,
  13184. DWORD *_pdwStubPhase);
  13185. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_IsPronounceable_Proxy(
  13186. ISpeechRecoGrammar * This,
  13187. /* [in] */ const BSTR Word,
  13188. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable);
  13189. void __RPC_STUB ISpeechRecoGrammar_IsPronounceable_Stub(
  13190. IRpcStubBuffer *This,
  13191. IRpcChannelBuffer *_pRpcChannelBuffer,
  13192. PRPC_MESSAGE _pRpcMessage,
  13193. DWORD *_pdwStubPhase);
  13194. #endif /* __ISpeechRecoGrammar_INTERFACE_DEFINED__ */
  13195. #ifndef ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  13196. #define ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  13197. /* dispinterface _ISpeechRecoContextEvents */
  13198. /* [uuid] */
  13199. EXTERN_C const IID DIID__ISpeechRecoContextEvents;
  13200. #if defined(__cplusplus) && !defined(CINTERFACE)
  13201. MIDL_INTERFACE("7B8FCB42-0E9D-4f00-A048-7B04D6179D3D")
  13202. _ISpeechRecoContextEvents : public IDispatch
  13203. {
  13204. };
  13205. #else /* C style interface */
  13206. typedef struct _ISpeechRecoContextEventsVtbl
  13207. {
  13208. BEGIN_INTERFACE
  13209. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13210. _ISpeechRecoContextEvents * This,
  13211. /* [in] */ REFIID riid,
  13212. /* [iid_is][out] */ void **ppvObject);
  13213. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13214. _ISpeechRecoContextEvents * This);
  13215. ULONG ( STDMETHODCALLTYPE *Release )(
  13216. _ISpeechRecoContextEvents * This);
  13217. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13218. _ISpeechRecoContextEvents * This,
  13219. /* [out] */ UINT *pctinfo);
  13220. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13221. _ISpeechRecoContextEvents * This,
  13222. /* [in] */ UINT iTInfo,
  13223. /* [in] */ LCID lcid,
  13224. /* [out] */ ITypeInfo **ppTInfo);
  13225. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13226. _ISpeechRecoContextEvents * This,
  13227. /* [in] */ REFIID riid,
  13228. /* [size_is][in] */ LPOLESTR *rgszNames,
  13229. /* [in] */ UINT cNames,
  13230. /* [in] */ LCID lcid,
  13231. /* [size_is][out] */ DISPID *rgDispId);
  13232. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13233. _ISpeechRecoContextEvents * This,
  13234. /* [in] */ DISPID dispIdMember,
  13235. /* [in] */ REFIID riid,
  13236. /* [in] */ LCID lcid,
  13237. /* [in] */ WORD wFlags,
  13238. /* [out][in] */ DISPPARAMS *pDispParams,
  13239. /* [out] */ VARIANT *pVarResult,
  13240. /* [out] */ EXCEPINFO *pExcepInfo,
  13241. /* [out] */ UINT *puArgErr);
  13242. END_INTERFACE
  13243. } _ISpeechRecoContextEventsVtbl;
  13244. interface _ISpeechRecoContextEvents
  13245. {
  13246. CONST_VTBL struct _ISpeechRecoContextEventsVtbl *lpVtbl;
  13247. };
  13248. #ifdef COBJMACROS
  13249. #define _ISpeechRecoContextEvents_QueryInterface(This,riid,ppvObject) \
  13250. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13251. #define _ISpeechRecoContextEvents_AddRef(This) \
  13252. (This)->lpVtbl -> AddRef(This)
  13253. #define _ISpeechRecoContextEvents_Release(This) \
  13254. (This)->lpVtbl -> Release(This)
  13255. #define _ISpeechRecoContextEvents_GetTypeInfoCount(This,pctinfo) \
  13256. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13257. #define _ISpeechRecoContextEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13258. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13259. #define _ISpeechRecoContextEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13260. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13261. #define _ISpeechRecoContextEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13262. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13263. #endif /* COBJMACROS */
  13264. #endif /* C style interface */
  13265. #endif /* ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__ */
  13266. #ifndef __ISpeechGrammarRule_INTERFACE_DEFINED__
  13267. #define __ISpeechGrammarRule_INTERFACE_DEFINED__
  13268. /* interface ISpeechGrammarRule */
  13269. /* [unique][helpstring][dual][uuid][object] */
  13270. EXTERN_C const IID IID_ISpeechGrammarRule;
  13271. #if defined(__cplusplus) && !defined(CINTERFACE)
  13272. MIDL_INTERFACE("AFE719CF-5DD1-44f2-999C-7A399F1CFCCC")
  13273. ISpeechGrammarRule : public IDispatch
  13274. {
  13275. public:
  13276. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes(
  13277. /* [retval][out] */ SpeechRuleAttributes *Attributes) = 0;
  13278. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InitialState(
  13279. /* [retval][out] */ ISpeechGrammarRuleState **State) = 0;
  13280. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  13281. /* [retval][out] */ BSTR *Name) = 0;
  13282. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  13283. /* [retval][out] */ long *Id) = 0;
  13284. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0;
  13285. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddResource(
  13286. /* [in] */ const BSTR ResourceName,
  13287. /* [in] */ const BSTR ResourceValue) = 0;
  13288. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddState(
  13289. /* [retval][out] */ ISpeechGrammarRuleState **State) = 0;
  13290. };
  13291. #else /* C style interface */
  13292. typedef struct ISpeechGrammarRuleVtbl
  13293. {
  13294. BEGIN_INTERFACE
  13295. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13296. ISpeechGrammarRule * This,
  13297. /* [in] */ REFIID riid,
  13298. /* [iid_is][out] */ void **ppvObject);
  13299. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13300. ISpeechGrammarRule * This);
  13301. ULONG ( STDMETHODCALLTYPE *Release )(
  13302. ISpeechGrammarRule * This);
  13303. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13304. ISpeechGrammarRule * This,
  13305. /* [out] */ UINT *pctinfo);
  13306. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13307. ISpeechGrammarRule * This,
  13308. /* [in] */ UINT iTInfo,
  13309. /* [in] */ LCID lcid,
  13310. /* [out] */ ITypeInfo **ppTInfo);
  13311. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13312. ISpeechGrammarRule * This,
  13313. /* [in] */ REFIID riid,
  13314. /* [size_is][in] */ LPOLESTR *rgszNames,
  13315. /* [in] */ UINT cNames,
  13316. /* [in] */ LCID lcid,
  13317. /* [size_is][out] */ DISPID *rgDispId);
  13318. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13319. ISpeechGrammarRule * This,
  13320. /* [in] */ DISPID dispIdMember,
  13321. /* [in] */ REFIID riid,
  13322. /* [in] */ LCID lcid,
  13323. /* [in] */ WORD wFlags,
  13324. /* [out][in] */ DISPPARAMS *pDispParams,
  13325. /* [out] */ VARIANT *pVarResult,
  13326. /* [out] */ EXCEPINFO *pExcepInfo,
  13327. /* [out] */ UINT *puArgErr);
  13328. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )(
  13329. ISpeechGrammarRule * This,
  13330. /* [retval][out] */ SpeechRuleAttributes *Attributes);
  13331. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InitialState )(
  13332. ISpeechGrammarRule * This,
  13333. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13334. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  13335. ISpeechGrammarRule * This,
  13336. /* [retval][out] */ BSTR *Name);
  13337. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  13338. ISpeechGrammarRule * This,
  13339. /* [retval][out] */ long *Id);
  13340. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clear )(
  13341. ISpeechGrammarRule * This);
  13342. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddResource )(
  13343. ISpeechGrammarRule * This,
  13344. /* [in] */ const BSTR ResourceName,
  13345. /* [in] */ const BSTR ResourceValue);
  13346. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddState )(
  13347. ISpeechGrammarRule * This,
  13348. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13349. END_INTERFACE
  13350. } ISpeechGrammarRuleVtbl;
  13351. interface ISpeechGrammarRule
  13352. {
  13353. CONST_VTBL struct ISpeechGrammarRuleVtbl *lpVtbl;
  13354. };
  13355. #ifdef COBJMACROS
  13356. #define ISpeechGrammarRule_QueryInterface(This,riid,ppvObject) \
  13357. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13358. #define ISpeechGrammarRule_AddRef(This) \
  13359. (This)->lpVtbl -> AddRef(This)
  13360. #define ISpeechGrammarRule_Release(This) \
  13361. (This)->lpVtbl -> Release(This)
  13362. #define ISpeechGrammarRule_GetTypeInfoCount(This,pctinfo) \
  13363. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13364. #define ISpeechGrammarRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13365. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13366. #define ISpeechGrammarRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13367. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13368. #define ISpeechGrammarRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13369. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13370. #define ISpeechGrammarRule_get_Attributes(This,Attributes) \
  13371. (This)->lpVtbl -> get_Attributes(This,Attributes)
  13372. #define ISpeechGrammarRule_get_InitialState(This,State) \
  13373. (This)->lpVtbl -> get_InitialState(This,State)
  13374. #define ISpeechGrammarRule_get_Name(This,Name) \
  13375. (This)->lpVtbl -> get_Name(This,Name)
  13376. #define ISpeechGrammarRule_get_Id(This,Id) \
  13377. (This)->lpVtbl -> get_Id(This,Id)
  13378. #define ISpeechGrammarRule_Clear(This) \
  13379. (This)->lpVtbl -> Clear(This)
  13380. #define ISpeechGrammarRule_AddResource(This,ResourceName,ResourceValue) \
  13381. (This)->lpVtbl -> AddResource(This,ResourceName,ResourceValue)
  13382. #define ISpeechGrammarRule_AddState(This,State) \
  13383. (This)->lpVtbl -> AddState(This,State)
  13384. #endif /* COBJMACROS */
  13385. #endif /* C style interface */
  13386. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Attributes_Proxy(
  13387. ISpeechGrammarRule * This,
  13388. /* [retval][out] */ SpeechRuleAttributes *Attributes);
  13389. void __RPC_STUB ISpeechGrammarRule_get_Attributes_Stub(
  13390. IRpcStubBuffer *This,
  13391. IRpcChannelBuffer *_pRpcChannelBuffer,
  13392. PRPC_MESSAGE _pRpcMessage,
  13393. DWORD *_pdwStubPhase);
  13394. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_InitialState_Proxy(
  13395. ISpeechGrammarRule * This,
  13396. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13397. void __RPC_STUB ISpeechGrammarRule_get_InitialState_Stub(
  13398. IRpcStubBuffer *This,
  13399. IRpcChannelBuffer *_pRpcChannelBuffer,
  13400. PRPC_MESSAGE _pRpcMessage,
  13401. DWORD *_pdwStubPhase);
  13402. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Name_Proxy(
  13403. ISpeechGrammarRule * This,
  13404. /* [retval][out] */ BSTR *Name);
  13405. void __RPC_STUB ISpeechGrammarRule_get_Name_Stub(
  13406. IRpcStubBuffer *This,
  13407. IRpcChannelBuffer *_pRpcChannelBuffer,
  13408. PRPC_MESSAGE _pRpcMessage,
  13409. DWORD *_pdwStubPhase);
  13410. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Id_Proxy(
  13411. ISpeechGrammarRule * This,
  13412. /* [retval][out] */ long *Id);
  13413. void __RPC_STUB ISpeechGrammarRule_get_Id_Stub(
  13414. IRpcStubBuffer *This,
  13415. IRpcChannelBuffer *_pRpcChannelBuffer,
  13416. PRPC_MESSAGE _pRpcMessage,
  13417. DWORD *_pdwStubPhase);
  13418. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_Clear_Proxy(
  13419. ISpeechGrammarRule * This);
  13420. void __RPC_STUB ISpeechGrammarRule_Clear_Stub(
  13421. IRpcStubBuffer *This,
  13422. IRpcChannelBuffer *_pRpcChannelBuffer,
  13423. PRPC_MESSAGE _pRpcMessage,
  13424. DWORD *_pdwStubPhase);
  13425. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_AddResource_Proxy(
  13426. ISpeechGrammarRule * This,
  13427. /* [in] */ const BSTR ResourceName,
  13428. /* [in] */ const BSTR ResourceValue);
  13429. void __RPC_STUB ISpeechGrammarRule_AddResource_Stub(
  13430. IRpcStubBuffer *This,
  13431. IRpcChannelBuffer *_pRpcChannelBuffer,
  13432. PRPC_MESSAGE _pRpcMessage,
  13433. DWORD *_pdwStubPhase);
  13434. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_AddState_Proxy(
  13435. ISpeechGrammarRule * This,
  13436. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13437. void __RPC_STUB ISpeechGrammarRule_AddState_Stub(
  13438. IRpcStubBuffer *This,
  13439. IRpcChannelBuffer *_pRpcChannelBuffer,
  13440. PRPC_MESSAGE _pRpcMessage,
  13441. DWORD *_pdwStubPhase);
  13442. #endif /* __ISpeechGrammarRule_INTERFACE_DEFINED__ */
  13443. #ifndef __ISpeechGrammarRules_INTERFACE_DEFINED__
  13444. #define __ISpeechGrammarRules_INTERFACE_DEFINED__
  13445. /* interface ISpeechGrammarRules */
  13446. /* [unique][helpstring][dual][uuid][object] */
  13447. EXTERN_C const IID IID_ISpeechGrammarRules;
  13448. #if defined(__cplusplus) && !defined(CINTERFACE)
  13449. MIDL_INTERFACE("6FFA3B44-FC2D-40d1-8AFC-32911C7F1AD1")
  13450. ISpeechGrammarRules : public IDispatch
  13451. {
  13452. public:
  13453. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  13454. /* [retval][out] */ long *Count) = 0;
  13455. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE FindRule(
  13456. /* [in] */ VARIANT RuleNameOrId,
  13457. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13458. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  13459. /* [in] */ long Index,
  13460. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13461. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  13462. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  13463. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Dynamic(
  13464. /* [retval][out] */ VARIANT_BOOL *Dynamic) = 0;
  13465. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Add(
  13466. /* [in] */ BSTR RuleName,
  13467. /* [in] */ SpeechRuleAttributes Attributes,
  13468. /* [defaultvalue][in] */ long RuleId,
  13469. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13470. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  13471. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CommitAndSave(
  13472. /* [out] */ BSTR *ErrorText,
  13473. /* [retval][out] */ VARIANT *SaveStream) = 0;
  13474. };
  13475. #else /* C style interface */
  13476. typedef struct ISpeechGrammarRulesVtbl
  13477. {
  13478. BEGIN_INTERFACE
  13479. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13480. ISpeechGrammarRules * This,
  13481. /* [in] */ REFIID riid,
  13482. /* [iid_is][out] */ void **ppvObject);
  13483. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13484. ISpeechGrammarRules * This);
  13485. ULONG ( STDMETHODCALLTYPE *Release )(
  13486. ISpeechGrammarRules * This);
  13487. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13488. ISpeechGrammarRules * This,
  13489. /* [out] */ UINT *pctinfo);
  13490. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13491. ISpeechGrammarRules * This,
  13492. /* [in] */ UINT iTInfo,
  13493. /* [in] */ LCID lcid,
  13494. /* [out] */ ITypeInfo **ppTInfo);
  13495. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13496. ISpeechGrammarRules * This,
  13497. /* [in] */ REFIID riid,
  13498. /* [size_is][in] */ LPOLESTR *rgszNames,
  13499. /* [in] */ UINT cNames,
  13500. /* [in] */ LCID lcid,
  13501. /* [size_is][out] */ DISPID *rgDispId);
  13502. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13503. ISpeechGrammarRules * This,
  13504. /* [in] */ DISPID dispIdMember,
  13505. /* [in] */ REFIID riid,
  13506. /* [in] */ LCID lcid,
  13507. /* [in] */ WORD wFlags,
  13508. /* [out][in] */ DISPPARAMS *pDispParams,
  13509. /* [out] */ VARIANT *pVarResult,
  13510. /* [out] */ EXCEPINFO *pExcepInfo,
  13511. /* [out] */ UINT *puArgErr);
  13512. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  13513. ISpeechGrammarRules * This,
  13514. /* [retval][out] */ long *Count);
  13515. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *FindRule )(
  13516. ISpeechGrammarRules * This,
  13517. /* [in] */ VARIANT RuleNameOrId,
  13518. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13519. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  13520. ISpeechGrammarRules * This,
  13521. /* [in] */ long Index,
  13522. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13523. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  13524. ISpeechGrammarRules * This,
  13525. /* [retval][out] */ IUnknown **EnumVARIANT);
  13526. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dynamic )(
  13527. ISpeechGrammarRules * This,
  13528. /* [retval][out] */ VARIANT_BOOL *Dynamic);
  13529. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Add )(
  13530. ISpeechGrammarRules * This,
  13531. /* [in] */ BSTR RuleName,
  13532. /* [in] */ SpeechRuleAttributes Attributes,
  13533. /* [defaultvalue][in] */ long RuleId,
  13534. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13535. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Commit )(
  13536. ISpeechGrammarRules * This);
  13537. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CommitAndSave )(
  13538. ISpeechGrammarRules * This,
  13539. /* [out] */ BSTR *ErrorText,
  13540. /* [retval][out] */ VARIANT *SaveStream);
  13541. END_INTERFACE
  13542. } ISpeechGrammarRulesVtbl;
  13543. interface ISpeechGrammarRules
  13544. {
  13545. CONST_VTBL struct ISpeechGrammarRulesVtbl *lpVtbl;
  13546. };
  13547. #ifdef COBJMACROS
  13548. #define ISpeechGrammarRules_QueryInterface(This,riid,ppvObject) \
  13549. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13550. #define ISpeechGrammarRules_AddRef(This) \
  13551. (This)->lpVtbl -> AddRef(This)
  13552. #define ISpeechGrammarRules_Release(This) \
  13553. (This)->lpVtbl -> Release(This)
  13554. #define ISpeechGrammarRules_GetTypeInfoCount(This,pctinfo) \
  13555. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13556. #define ISpeechGrammarRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13557. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13558. #define ISpeechGrammarRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13559. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13560. #define ISpeechGrammarRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13561. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13562. #define ISpeechGrammarRules_get_Count(This,Count) \
  13563. (This)->lpVtbl -> get_Count(This,Count)
  13564. #define ISpeechGrammarRules_FindRule(This,RuleNameOrId,Rule) \
  13565. (This)->lpVtbl -> FindRule(This,RuleNameOrId,Rule)
  13566. #define ISpeechGrammarRules_Item(This,Index,Rule) \
  13567. (This)->lpVtbl -> Item(This,Index,Rule)
  13568. #define ISpeechGrammarRules_get__NewEnum(This,EnumVARIANT) \
  13569. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  13570. #define ISpeechGrammarRules_get_Dynamic(This,Dynamic) \
  13571. (This)->lpVtbl -> get_Dynamic(This,Dynamic)
  13572. #define ISpeechGrammarRules_Add(This,RuleName,Attributes,RuleId,Rule) \
  13573. (This)->lpVtbl -> Add(This,RuleName,Attributes,RuleId,Rule)
  13574. #define ISpeechGrammarRules_Commit(This) \
  13575. (This)->lpVtbl -> Commit(This)
  13576. #define ISpeechGrammarRules_CommitAndSave(This,ErrorText,SaveStream) \
  13577. (This)->lpVtbl -> CommitAndSave(This,ErrorText,SaveStream)
  13578. #endif /* COBJMACROS */
  13579. #endif /* C style interface */
  13580. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get_Count_Proxy(
  13581. ISpeechGrammarRules * This,
  13582. /* [retval][out] */ long *Count);
  13583. void __RPC_STUB ISpeechGrammarRules_get_Count_Stub(
  13584. IRpcStubBuffer *This,
  13585. IRpcChannelBuffer *_pRpcChannelBuffer,
  13586. PRPC_MESSAGE _pRpcMessage,
  13587. DWORD *_pdwStubPhase);
  13588. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_FindRule_Proxy(
  13589. ISpeechGrammarRules * This,
  13590. /* [in] */ VARIANT RuleNameOrId,
  13591. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13592. void __RPC_STUB ISpeechGrammarRules_FindRule_Stub(
  13593. IRpcStubBuffer *This,
  13594. IRpcChannelBuffer *_pRpcChannelBuffer,
  13595. PRPC_MESSAGE _pRpcMessage,
  13596. DWORD *_pdwStubPhase);
  13597. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Item_Proxy(
  13598. ISpeechGrammarRules * This,
  13599. /* [in] */ long Index,
  13600. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13601. void __RPC_STUB ISpeechGrammarRules_Item_Stub(
  13602. IRpcStubBuffer *This,
  13603. IRpcChannelBuffer *_pRpcChannelBuffer,
  13604. PRPC_MESSAGE _pRpcMessage,
  13605. DWORD *_pdwStubPhase);
  13606. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get__NewEnum_Proxy(
  13607. ISpeechGrammarRules * This,
  13608. /* [retval][out] */ IUnknown **EnumVARIANT);
  13609. void __RPC_STUB ISpeechGrammarRules_get__NewEnum_Stub(
  13610. IRpcStubBuffer *This,
  13611. IRpcChannelBuffer *_pRpcChannelBuffer,
  13612. PRPC_MESSAGE _pRpcMessage,
  13613. DWORD *_pdwStubPhase);
  13614. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get_Dynamic_Proxy(
  13615. ISpeechGrammarRules * This,
  13616. /* [retval][out] */ VARIANT_BOOL *Dynamic);
  13617. void __RPC_STUB ISpeechGrammarRules_get_Dynamic_Stub(
  13618. IRpcStubBuffer *This,
  13619. IRpcChannelBuffer *_pRpcChannelBuffer,
  13620. PRPC_MESSAGE _pRpcMessage,
  13621. DWORD *_pdwStubPhase);
  13622. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Add_Proxy(
  13623. ISpeechGrammarRules * This,
  13624. /* [in] */ BSTR RuleName,
  13625. /* [in] */ SpeechRuleAttributes Attributes,
  13626. /* [defaultvalue][in] */ long RuleId,
  13627. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13628. void __RPC_STUB ISpeechGrammarRules_Add_Stub(
  13629. IRpcStubBuffer *This,
  13630. IRpcChannelBuffer *_pRpcChannelBuffer,
  13631. PRPC_MESSAGE _pRpcMessage,
  13632. DWORD *_pdwStubPhase);
  13633. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Commit_Proxy(
  13634. ISpeechGrammarRules * This);
  13635. void __RPC_STUB ISpeechGrammarRules_Commit_Stub(
  13636. IRpcStubBuffer *This,
  13637. IRpcChannelBuffer *_pRpcChannelBuffer,
  13638. PRPC_MESSAGE _pRpcMessage,
  13639. DWORD *_pdwStubPhase);
  13640. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_CommitAndSave_Proxy(
  13641. ISpeechGrammarRules * This,
  13642. /* [out] */ BSTR *ErrorText,
  13643. /* [retval][out] */ VARIANT *SaveStream);
  13644. void __RPC_STUB ISpeechGrammarRules_CommitAndSave_Stub(
  13645. IRpcStubBuffer *This,
  13646. IRpcChannelBuffer *_pRpcChannelBuffer,
  13647. PRPC_MESSAGE _pRpcMessage,
  13648. DWORD *_pdwStubPhase);
  13649. #endif /* __ISpeechGrammarRules_INTERFACE_DEFINED__ */
  13650. #ifndef __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  13651. #define __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  13652. /* interface ISpeechGrammarRuleState */
  13653. /* [unique][helpstring][dual][uuid][object] */
  13654. EXTERN_C const IID IID_ISpeechGrammarRuleState;
  13655. #if defined(__cplusplus) && !defined(CINTERFACE)
  13656. MIDL_INTERFACE("D4286F2C-EE67-45ae-B928-28D695362EDA")
  13657. ISpeechGrammarRuleState : public IDispatch
  13658. {
  13659. public:
  13660. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  13661. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13662. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Transitions(
  13663. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions) = 0;
  13664. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddWordTransition(
  13665. /* [in] */ ISpeechGrammarRuleState *DestState,
  13666. /* [in] */ const BSTR Words,
  13667. /* [defaultvalue][in] */ const BSTR Separators = L" ",
  13668. /* [defaultvalue][in] */ SpeechGrammarWordType Type = SGLexical,
  13669. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13670. /* [defaultvalue][in] */ long PropertyId = 0,
  13671. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13672. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13673. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddRuleTransition(
  13674. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13675. /* [in] */ ISpeechGrammarRule *Rule,
  13676. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13677. /* [defaultvalue][in] */ long PropertyId = 0,
  13678. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13679. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13680. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddSpecialTransition(
  13681. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13682. /* [in] */ SpeechSpecialTransitionType Type,
  13683. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13684. /* [defaultvalue][in] */ long PropertyId = 0,
  13685. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13686. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13687. };
  13688. #else /* C style interface */
  13689. typedef struct ISpeechGrammarRuleStateVtbl
  13690. {
  13691. BEGIN_INTERFACE
  13692. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13693. ISpeechGrammarRuleState * This,
  13694. /* [in] */ REFIID riid,
  13695. /* [iid_is][out] */ void **ppvObject);
  13696. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13697. ISpeechGrammarRuleState * This);
  13698. ULONG ( STDMETHODCALLTYPE *Release )(
  13699. ISpeechGrammarRuleState * This);
  13700. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13701. ISpeechGrammarRuleState * This,
  13702. /* [out] */ UINT *pctinfo);
  13703. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13704. ISpeechGrammarRuleState * This,
  13705. /* [in] */ UINT iTInfo,
  13706. /* [in] */ LCID lcid,
  13707. /* [out] */ ITypeInfo **ppTInfo);
  13708. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13709. ISpeechGrammarRuleState * This,
  13710. /* [in] */ REFIID riid,
  13711. /* [size_is][in] */ LPOLESTR *rgszNames,
  13712. /* [in] */ UINT cNames,
  13713. /* [in] */ LCID lcid,
  13714. /* [size_is][out] */ DISPID *rgDispId);
  13715. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13716. ISpeechGrammarRuleState * This,
  13717. /* [in] */ DISPID dispIdMember,
  13718. /* [in] */ REFIID riid,
  13719. /* [in] */ LCID lcid,
  13720. /* [in] */ WORD wFlags,
  13721. /* [out][in] */ DISPPARAMS *pDispParams,
  13722. /* [out] */ VARIANT *pVarResult,
  13723. /* [out] */ EXCEPINFO *pExcepInfo,
  13724. /* [out] */ UINT *puArgErr);
  13725. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  13726. ISpeechGrammarRuleState * This,
  13727. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13728. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Transitions )(
  13729. ISpeechGrammarRuleState * This,
  13730. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions);
  13731. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  13732. ISpeechGrammarRuleState * This,
  13733. /* [in] */ ISpeechGrammarRuleState *DestState,
  13734. /* [in] */ const BSTR Words,
  13735. /* [defaultvalue][in] */ const BSTR Separators,
  13736. /* [defaultvalue][in] */ SpeechGrammarWordType Type,
  13737. /* [defaultvalue][in] */ const BSTR PropertyName,
  13738. /* [defaultvalue][in] */ long PropertyId,
  13739. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13740. /* [defaultvalue][in] */ float Weight);
  13741. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  13742. ISpeechGrammarRuleState * This,
  13743. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13744. /* [in] */ ISpeechGrammarRule *Rule,
  13745. /* [defaultvalue][in] */ const BSTR PropertyName,
  13746. /* [defaultvalue][in] */ long PropertyId,
  13747. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13748. /* [defaultvalue][in] */ float Weight);
  13749. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddSpecialTransition )(
  13750. ISpeechGrammarRuleState * This,
  13751. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13752. /* [in] */ SpeechSpecialTransitionType Type,
  13753. /* [defaultvalue][in] */ const BSTR PropertyName,
  13754. /* [defaultvalue][in] */ long PropertyId,
  13755. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13756. /* [defaultvalue][in] */ float Weight);
  13757. END_INTERFACE
  13758. } ISpeechGrammarRuleStateVtbl;
  13759. interface ISpeechGrammarRuleState
  13760. {
  13761. CONST_VTBL struct ISpeechGrammarRuleStateVtbl *lpVtbl;
  13762. };
  13763. #ifdef COBJMACROS
  13764. #define ISpeechGrammarRuleState_QueryInterface(This,riid,ppvObject) \
  13765. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13766. #define ISpeechGrammarRuleState_AddRef(This) \
  13767. (This)->lpVtbl -> AddRef(This)
  13768. #define ISpeechGrammarRuleState_Release(This) \
  13769. (This)->lpVtbl -> Release(This)
  13770. #define ISpeechGrammarRuleState_GetTypeInfoCount(This,pctinfo) \
  13771. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13772. #define ISpeechGrammarRuleState_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13773. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13774. #define ISpeechGrammarRuleState_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13775. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13776. #define ISpeechGrammarRuleState_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13777. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13778. #define ISpeechGrammarRuleState_get_Rule(This,Rule) \
  13779. (This)->lpVtbl -> get_Rule(This,Rule)
  13780. #define ISpeechGrammarRuleState_get_Transitions(This,Transitions) \
  13781. (This)->lpVtbl -> get_Transitions(This,Transitions)
  13782. #define ISpeechGrammarRuleState_AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight) \
  13783. (This)->lpVtbl -> AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight)
  13784. #define ISpeechGrammarRuleState_AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight) \
  13785. (This)->lpVtbl -> AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight)
  13786. #define ISpeechGrammarRuleState_AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight) \
  13787. (This)->lpVtbl -> AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight)
  13788. #endif /* COBJMACROS */
  13789. #endif /* C style interface */
  13790. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_get_Rule_Proxy(
  13791. ISpeechGrammarRuleState * This,
  13792. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13793. void __RPC_STUB ISpeechGrammarRuleState_get_Rule_Stub(
  13794. IRpcStubBuffer *This,
  13795. IRpcChannelBuffer *_pRpcChannelBuffer,
  13796. PRPC_MESSAGE _pRpcMessage,
  13797. DWORD *_pdwStubPhase);
  13798. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_get_Transitions_Proxy(
  13799. ISpeechGrammarRuleState * This,
  13800. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions);
  13801. void __RPC_STUB ISpeechGrammarRuleState_get_Transitions_Stub(
  13802. IRpcStubBuffer *This,
  13803. IRpcChannelBuffer *_pRpcChannelBuffer,
  13804. PRPC_MESSAGE _pRpcMessage,
  13805. DWORD *_pdwStubPhase);
  13806. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddWordTransition_Proxy(
  13807. ISpeechGrammarRuleState * This,
  13808. /* [in] */ ISpeechGrammarRuleState *DestState,
  13809. /* [in] */ const BSTR Words,
  13810. /* [defaultvalue][in] */ const BSTR Separators,
  13811. /* [defaultvalue][in] */ SpeechGrammarWordType Type,
  13812. /* [defaultvalue][in] */ const BSTR PropertyName,
  13813. /* [defaultvalue][in] */ long PropertyId,
  13814. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13815. /* [defaultvalue][in] */ float Weight);
  13816. void __RPC_STUB ISpeechGrammarRuleState_AddWordTransition_Stub(
  13817. IRpcStubBuffer *This,
  13818. IRpcChannelBuffer *_pRpcChannelBuffer,
  13819. PRPC_MESSAGE _pRpcMessage,
  13820. DWORD *_pdwStubPhase);
  13821. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddRuleTransition_Proxy(
  13822. ISpeechGrammarRuleState * This,
  13823. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13824. /* [in] */ ISpeechGrammarRule *Rule,
  13825. /* [defaultvalue][in] */ const BSTR PropertyName,
  13826. /* [defaultvalue][in] */ long PropertyId,
  13827. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13828. /* [defaultvalue][in] */ float Weight);
  13829. void __RPC_STUB ISpeechGrammarRuleState_AddRuleTransition_Stub(
  13830. IRpcStubBuffer *This,
  13831. IRpcChannelBuffer *_pRpcChannelBuffer,
  13832. PRPC_MESSAGE _pRpcMessage,
  13833. DWORD *_pdwStubPhase);
  13834. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddSpecialTransition_Proxy(
  13835. ISpeechGrammarRuleState * This,
  13836. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13837. /* [in] */ SpeechSpecialTransitionType Type,
  13838. /* [defaultvalue][in] */ const BSTR PropertyName,
  13839. /* [defaultvalue][in] */ long PropertyId,
  13840. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13841. /* [defaultvalue][in] */ float Weight);
  13842. void __RPC_STUB ISpeechGrammarRuleState_AddSpecialTransition_Stub(
  13843. IRpcStubBuffer *This,
  13844. IRpcChannelBuffer *_pRpcChannelBuffer,
  13845. PRPC_MESSAGE _pRpcMessage,
  13846. DWORD *_pdwStubPhase);
  13847. #endif /* __ISpeechGrammarRuleState_INTERFACE_DEFINED__ */
  13848. #ifndef __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  13849. #define __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  13850. /* interface ISpeechGrammarRuleStateTransition */
  13851. /* [unique][helpstring][dual][uuid][object] */
  13852. EXTERN_C const IID IID_ISpeechGrammarRuleStateTransition;
  13853. #if defined(__cplusplus) && !defined(CINTERFACE)
  13854. MIDL_INTERFACE("CAFD1DB1-41D1-4a06-9863-E2E81DA17A9A")
  13855. ISpeechGrammarRuleStateTransition : public IDispatch
  13856. {
  13857. public:
  13858. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Type(
  13859. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type) = 0;
  13860. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Text(
  13861. /* [retval][out] */ BSTR *Text) = 0;
  13862. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  13863. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13864. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Weight(
  13865. /* [retval][out] */ VARIANT *Weight) = 0;
  13866. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyName(
  13867. /* [retval][out] */ BSTR *PropertyName) = 0;
  13868. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyId(
  13869. /* [retval][out] */ long *PropertyId) = 0;
  13870. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyValue(
  13871. /* [retval][out] */ VARIANT *PropertyValue) = 0;
  13872. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NextState(
  13873. /* [retval][out] */ ISpeechGrammarRuleState **NextState) = 0;
  13874. };
  13875. #else /* C style interface */
  13876. typedef struct ISpeechGrammarRuleStateTransitionVtbl
  13877. {
  13878. BEGIN_INTERFACE
  13879. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13880. ISpeechGrammarRuleStateTransition * This,
  13881. /* [in] */ REFIID riid,
  13882. /* [iid_is][out] */ void **ppvObject);
  13883. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13884. ISpeechGrammarRuleStateTransition * This);
  13885. ULONG ( STDMETHODCALLTYPE *Release )(
  13886. ISpeechGrammarRuleStateTransition * This);
  13887. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13888. ISpeechGrammarRuleStateTransition * This,
  13889. /* [out] */ UINT *pctinfo);
  13890. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13891. ISpeechGrammarRuleStateTransition * This,
  13892. /* [in] */ UINT iTInfo,
  13893. /* [in] */ LCID lcid,
  13894. /* [out] */ ITypeInfo **ppTInfo);
  13895. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13896. ISpeechGrammarRuleStateTransition * This,
  13897. /* [in] */ REFIID riid,
  13898. /* [size_is][in] */ LPOLESTR *rgszNames,
  13899. /* [in] */ UINT cNames,
  13900. /* [in] */ LCID lcid,
  13901. /* [size_is][out] */ DISPID *rgDispId);
  13902. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13903. ISpeechGrammarRuleStateTransition * This,
  13904. /* [in] */ DISPID dispIdMember,
  13905. /* [in] */ REFIID riid,
  13906. /* [in] */ LCID lcid,
  13907. /* [in] */ WORD wFlags,
  13908. /* [out][in] */ DISPPARAMS *pDispParams,
  13909. /* [out] */ VARIANT *pVarResult,
  13910. /* [out] */ EXCEPINFO *pExcepInfo,
  13911. /* [out] */ UINT *puArgErr);
  13912. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  13913. ISpeechGrammarRuleStateTransition * This,
  13914. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type);
  13915. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )(
  13916. ISpeechGrammarRuleStateTransition * This,
  13917. /* [retval][out] */ BSTR *Text);
  13918. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  13919. ISpeechGrammarRuleStateTransition * This,
  13920. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13921. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Weight )(
  13922. ISpeechGrammarRuleStateTransition * This,
  13923. /* [retval][out] */ VARIANT *Weight);
  13924. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyName )(
  13925. ISpeechGrammarRuleStateTransition * This,
  13926. /* [retval][out] */ BSTR *PropertyName);
  13927. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )(
  13928. ISpeechGrammarRuleStateTransition * This,
  13929. /* [retval][out] */ long *PropertyId);
  13930. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyValue )(
  13931. ISpeechGrammarRuleStateTransition * This,
  13932. /* [retval][out] */ VARIANT *PropertyValue);
  13933. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextState )(
  13934. ISpeechGrammarRuleStateTransition * This,
  13935. /* [retval][out] */ ISpeechGrammarRuleState **NextState);
  13936. END_INTERFACE
  13937. } ISpeechGrammarRuleStateTransitionVtbl;
  13938. interface ISpeechGrammarRuleStateTransition
  13939. {
  13940. CONST_VTBL struct ISpeechGrammarRuleStateTransitionVtbl *lpVtbl;
  13941. };
  13942. #ifdef COBJMACROS
  13943. #define ISpeechGrammarRuleStateTransition_QueryInterface(This,riid,ppvObject) \
  13944. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13945. #define ISpeechGrammarRuleStateTransition_AddRef(This) \
  13946. (This)->lpVtbl -> AddRef(This)
  13947. #define ISpeechGrammarRuleStateTransition_Release(This) \
  13948. (This)->lpVtbl -> Release(This)
  13949. #define ISpeechGrammarRuleStateTransition_GetTypeInfoCount(This,pctinfo) \
  13950. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13951. #define ISpeechGrammarRuleStateTransition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13952. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13953. #define ISpeechGrammarRuleStateTransition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13954. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13955. #define ISpeechGrammarRuleStateTransition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13956. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13957. #define ISpeechGrammarRuleStateTransition_get_Type(This,Type) \
  13958. (This)->lpVtbl -> get_Type(This,Type)
  13959. #define ISpeechGrammarRuleStateTransition_get_Text(This,Text) \
  13960. (This)->lpVtbl -> get_Text(This,Text)
  13961. #define ISpeechGrammarRuleStateTransition_get_Rule(This,Rule) \
  13962. (This)->lpVtbl -> get_Rule(This,Rule)
  13963. #define ISpeechGrammarRuleStateTransition_get_Weight(This,Weight) \
  13964. (This)->lpVtbl -> get_Weight(This,Weight)
  13965. #define ISpeechGrammarRuleStateTransition_get_PropertyName(This,PropertyName) \
  13966. (This)->lpVtbl -> get_PropertyName(This,PropertyName)
  13967. #define ISpeechGrammarRuleStateTransition_get_PropertyId(This,PropertyId) \
  13968. (This)->lpVtbl -> get_PropertyId(This,PropertyId)
  13969. #define ISpeechGrammarRuleStateTransition_get_PropertyValue(This,PropertyValue) \
  13970. (This)->lpVtbl -> get_PropertyValue(This,PropertyValue)
  13971. #define ISpeechGrammarRuleStateTransition_get_NextState(This,NextState) \
  13972. (This)->lpVtbl -> get_NextState(This,NextState)
  13973. #endif /* COBJMACROS */
  13974. #endif /* C style interface */
  13975. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Type_Proxy(
  13976. ISpeechGrammarRuleStateTransition * This,
  13977. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type);
  13978. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Type_Stub(
  13979. IRpcStubBuffer *This,
  13980. IRpcChannelBuffer *_pRpcChannelBuffer,
  13981. PRPC_MESSAGE _pRpcMessage,
  13982. DWORD *_pdwStubPhase);
  13983. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Text_Proxy(
  13984. ISpeechGrammarRuleStateTransition * This,
  13985. /* [retval][out] */ BSTR *Text);
  13986. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Text_Stub(
  13987. IRpcStubBuffer *This,
  13988. IRpcChannelBuffer *_pRpcChannelBuffer,
  13989. PRPC_MESSAGE _pRpcMessage,
  13990. DWORD *_pdwStubPhase);
  13991. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Rule_Proxy(
  13992. ISpeechGrammarRuleStateTransition * This,
  13993. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13994. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Rule_Stub(
  13995. IRpcStubBuffer *This,
  13996. IRpcChannelBuffer *_pRpcChannelBuffer,
  13997. PRPC_MESSAGE _pRpcMessage,
  13998. DWORD *_pdwStubPhase);
  13999. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Weight_Proxy(
  14000. ISpeechGrammarRuleStateTransition * This,
  14001. /* [retval][out] */ VARIANT *Weight);
  14002. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Weight_Stub(
  14003. IRpcStubBuffer *This,
  14004. IRpcChannelBuffer *_pRpcChannelBuffer,
  14005. PRPC_MESSAGE _pRpcMessage,
  14006. DWORD *_pdwStubPhase);
  14007. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyName_Proxy(
  14008. ISpeechGrammarRuleStateTransition * This,
  14009. /* [retval][out] */ BSTR *PropertyName);
  14010. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyName_Stub(
  14011. IRpcStubBuffer *This,
  14012. IRpcChannelBuffer *_pRpcChannelBuffer,
  14013. PRPC_MESSAGE _pRpcMessage,
  14014. DWORD *_pdwStubPhase);
  14015. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyId_Proxy(
  14016. ISpeechGrammarRuleStateTransition * This,
  14017. /* [retval][out] */ long *PropertyId);
  14018. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyId_Stub(
  14019. IRpcStubBuffer *This,
  14020. IRpcChannelBuffer *_pRpcChannelBuffer,
  14021. PRPC_MESSAGE _pRpcMessage,
  14022. DWORD *_pdwStubPhase);
  14023. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyValue_Proxy(
  14024. ISpeechGrammarRuleStateTransition * This,
  14025. /* [retval][out] */ VARIANT *PropertyValue);
  14026. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyValue_Stub(
  14027. IRpcStubBuffer *This,
  14028. IRpcChannelBuffer *_pRpcChannelBuffer,
  14029. PRPC_MESSAGE _pRpcMessage,
  14030. DWORD *_pdwStubPhase);
  14031. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_NextState_Proxy(
  14032. ISpeechGrammarRuleStateTransition * This,
  14033. /* [retval][out] */ ISpeechGrammarRuleState **NextState);
  14034. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_NextState_Stub(
  14035. IRpcStubBuffer *This,
  14036. IRpcChannelBuffer *_pRpcChannelBuffer,
  14037. PRPC_MESSAGE _pRpcMessage,
  14038. DWORD *_pdwStubPhase);
  14039. #endif /* __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__ */
  14040. #ifndef __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  14041. #define __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  14042. /* interface ISpeechGrammarRuleStateTransitions */
  14043. /* [unique][helpstring][dual][uuid][object] */
  14044. EXTERN_C const IID IID_ISpeechGrammarRuleStateTransitions;
  14045. #if defined(__cplusplus) && !defined(CINTERFACE)
  14046. MIDL_INTERFACE("EABCE657-75BC-44a2-AA7F-C56476742963")
  14047. ISpeechGrammarRuleStateTransitions : public IDispatch
  14048. {
  14049. public:
  14050. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  14051. /* [retval][out] */ long *Count) = 0;
  14052. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  14053. /* [in] */ long Index,
  14054. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition) = 0;
  14055. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  14056. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  14057. };
  14058. #else /* C style interface */
  14059. typedef struct ISpeechGrammarRuleStateTransitionsVtbl
  14060. {
  14061. BEGIN_INTERFACE
  14062. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14063. ISpeechGrammarRuleStateTransitions * This,
  14064. /* [in] */ REFIID riid,
  14065. /* [iid_is][out] */ void **ppvObject);
  14066. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14067. ISpeechGrammarRuleStateTransitions * This);
  14068. ULONG ( STDMETHODCALLTYPE *Release )(
  14069. ISpeechGrammarRuleStateTransitions * This);
  14070. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14071. ISpeechGrammarRuleStateTransitions * This,
  14072. /* [out] */ UINT *pctinfo);
  14073. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14074. ISpeechGrammarRuleStateTransitions * This,
  14075. /* [in] */ UINT iTInfo,
  14076. /* [in] */ LCID lcid,
  14077. /* [out] */ ITypeInfo **ppTInfo);
  14078. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14079. ISpeechGrammarRuleStateTransitions * This,
  14080. /* [in] */ REFIID riid,
  14081. /* [size_is][in] */ LPOLESTR *rgszNames,
  14082. /* [in] */ UINT cNames,
  14083. /* [in] */ LCID lcid,
  14084. /* [size_is][out] */ DISPID *rgDispId);
  14085. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14086. ISpeechGrammarRuleStateTransitions * This,
  14087. /* [in] */ DISPID dispIdMember,
  14088. /* [in] */ REFIID riid,
  14089. /* [in] */ LCID lcid,
  14090. /* [in] */ WORD wFlags,
  14091. /* [out][in] */ DISPPARAMS *pDispParams,
  14092. /* [out] */ VARIANT *pVarResult,
  14093. /* [out] */ EXCEPINFO *pExcepInfo,
  14094. /* [out] */ UINT *puArgErr);
  14095. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  14096. ISpeechGrammarRuleStateTransitions * This,
  14097. /* [retval][out] */ long *Count);
  14098. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  14099. ISpeechGrammarRuleStateTransitions * This,
  14100. /* [in] */ long Index,
  14101. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition);
  14102. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  14103. ISpeechGrammarRuleStateTransitions * This,
  14104. /* [retval][out] */ IUnknown **EnumVARIANT);
  14105. END_INTERFACE
  14106. } ISpeechGrammarRuleStateTransitionsVtbl;
  14107. interface ISpeechGrammarRuleStateTransitions
  14108. {
  14109. CONST_VTBL struct ISpeechGrammarRuleStateTransitionsVtbl *lpVtbl;
  14110. };
  14111. #ifdef COBJMACROS
  14112. #define ISpeechGrammarRuleStateTransitions_QueryInterface(This,riid,ppvObject) \
  14113. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14114. #define ISpeechGrammarRuleStateTransitions_AddRef(This) \
  14115. (This)->lpVtbl -> AddRef(This)
  14116. #define ISpeechGrammarRuleStateTransitions_Release(This) \
  14117. (This)->lpVtbl -> Release(This)
  14118. #define ISpeechGrammarRuleStateTransitions_GetTypeInfoCount(This,pctinfo) \
  14119. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14120. #define ISpeechGrammarRuleStateTransitions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14121. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14122. #define ISpeechGrammarRuleStateTransitions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14123. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14124. #define ISpeechGrammarRuleStateTransitions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14125. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14126. #define ISpeechGrammarRuleStateTransitions_get_Count(This,Count) \
  14127. (This)->lpVtbl -> get_Count(This,Count)
  14128. #define ISpeechGrammarRuleStateTransitions_Item(This,Index,Transition) \
  14129. (This)->lpVtbl -> Item(This,Index,Transition)
  14130. #define ISpeechGrammarRuleStateTransitions_get__NewEnum(This,EnumVARIANT) \
  14131. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  14132. #endif /* COBJMACROS */
  14133. #endif /* C style interface */
  14134. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_get_Count_Proxy(
  14135. ISpeechGrammarRuleStateTransitions * This,
  14136. /* [retval][out] */ long *Count);
  14137. void __RPC_STUB ISpeechGrammarRuleStateTransitions_get_Count_Stub(
  14138. IRpcStubBuffer *This,
  14139. IRpcChannelBuffer *_pRpcChannelBuffer,
  14140. PRPC_MESSAGE _pRpcMessage,
  14141. DWORD *_pdwStubPhase);
  14142. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_Item_Proxy(
  14143. ISpeechGrammarRuleStateTransitions * This,
  14144. /* [in] */ long Index,
  14145. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition);
  14146. void __RPC_STUB ISpeechGrammarRuleStateTransitions_Item_Stub(
  14147. IRpcStubBuffer *This,
  14148. IRpcChannelBuffer *_pRpcChannelBuffer,
  14149. PRPC_MESSAGE _pRpcMessage,
  14150. DWORD *_pdwStubPhase);
  14151. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_get__NewEnum_Proxy(
  14152. ISpeechGrammarRuleStateTransitions * This,
  14153. /* [retval][out] */ IUnknown **EnumVARIANT);
  14154. void __RPC_STUB ISpeechGrammarRuleStateTransitions_get__NewEnum_Stub(
  14155. IRpcStubBuffer *This,
  14156. IRpcChannelBuffer *_pRpcChannelBuffer,
  14157. PRPC_MESSAGE _pRpcMessage,
  14158. DWORD *_pdwStubPhase);
  14159. #endif /* __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__ */
  14160. #ifndef __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  14161. #define __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  14162. /* interface ISpeechTextSelectionInformation */
  14163. /* [unique][helpstring][dual][uuid][object] */
  14164. EXTERN_C const IID IID_ISpeechTextSelectionInformation;
  14165. #if defined(__cplusplus) && !defined(CINTERFACE)
  14166. MIDL_INTERFACE("3B9C7E7A-6EEE-4DED-9092-11657279ADBE")
  14167. ISpeechTextSelectionInformation : public IDispatch
  14168. {
  14169. public:
  14170. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveOffset(
  14171. /* [in] */ long ActiveOffset) = 0;
  14172. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveOffset(
  14173. /* [retval][out] */ long *ActiveOffset) = 0;
  14174. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveLength(
  14175. /* [in] */ long ActiveLength) = 0;
  14176. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveLength(
  14177. /* [retval][out] */ long *ActiveLength) = 0;
  14178. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SelectionOffset(
  14179. /* [in] */ long SelectionOffset) = 0;
  14180. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SelectionOffset(
  14181. /* [retval][out] */ long *SelectionOffset) = 0;
  14182. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SelectionLength(
  14183. /* [in] */ long SelectionLength) = 0;
  14184. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SelectionLength(
  14185. /* [retval][out] */ long *SelectionLength) = 0;
  14186. };
  14187. #else /* C style interface */
  14188. typedef struct ISpeechTextSelectionInformationVtbl
  14189. {
  14190. BEGIN_INTERFACE
  14191. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14192. ISpeechTextSelectionInformation * This,
  14193. /* [in] */ REFIID riid,
  14194. /* [iid_is][out] */ void **ppvObject);
  14195. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14196. ISpeechTextSelectionInformation * This);
  14197. ULONG ( STDMETHODCALLTYPE *Release )(
  14198. ISpeechTextSelectionInformation * This);
  14199. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14200. ISpeechTextSelectionInformation * This,
  14201. /* [out] */ UINT *pctinfo);
  14202. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14203. ISpeechTextSelectionInformation * This,
  14204. /* [in] */ UINT iTInfo,
  14205. /* [in] */ LCID lcid,
  14206. /* [out] */ ITypeInfo **ppTInfo);
  14207. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14208. ISpeechTextSelectionInformation * This,
  14209. /* [in] */ REFIID riid,
  14210. /* [size_is][in] */ LPOLESTR *rgszNames,
  14211. /* [in] */ UINT cNames,
  14212. /* [in] */ LCID lcid,
  14213. /* [size_is][out] */ DISPID *rgDispId);
  14214. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14215. ISpeechTextSelectionInformation * This,
  14216. /* [in] */ DISPID dispIdMember,
  14217. /* [in] */ REFIID riid,
  14218. /* [in] */ LCID lcid,
  14219. /* [in] */ WORD wFlags,
  14220. /* [out][in] */ DISPPARAMS *pDispParams,
  14221. /* [out] */ VARIANT *pVarResult,
  14222. /* [out] */ EXCEPINFO *pExcepInfo,
  14223. /* [out] */ UINT *puArgErr);
  14224. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveOffset )(
  14225. ISpeechTextSelectionInformation * This,
  14226. /* [in] */ long ActiveOffset);
  14227. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveOffset )(
  14228. ISpeechTextSelectionInformation * This,
  14229. /* [retval][out] */ long *ActiveOffset);
  14230. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveLength )(
  14231. ISpeechTextSelectionInformation * This,
  14232. /* [in] */ long ActiveLength);
  14233. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveLength )(
  14234. ISpeechTextSelectionInformation * This,
  14235. /* [retval][out] */ long *ActiveLength);
  14236. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SelectionOffset )(
  14237. ISpeechTextSelectionInformation * This,
  14238. /* [in] */ long SelectionOffset);
  14239. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SelectionOffset )(
  14240. ISpeechTextSelectionInformation * This,
  14241. /* [retval][out] */ long *SelectionOffset);
  14242. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SelectionLength )(
  14243. ISpeechTextSelectionInformation * This,
  14244. /* [in] */ long SelectionLength);
  14245. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SelectionLength )(
  14246. ISpeechTextSelectionInformation * This,
  14247. /* [retval][out] */ long *SelectionLength);
  14248. END_INTERFACE
  14249. } ISpeechTextSelectionInformationVtbl;
  14250. interface ISpeechTextSelectionInformation
  14251. {
  14252. CONST_VTBL struct ISpeechTextSelectionInformationVtbl *lpVtbl;
  14253. };
  14254. #ifdef COBJMACROS
  14255. #define ISpeechTextSelectionInformation_QueryInterface(This,riid,ppvObject) \
  14256. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14257. #define ISpeechTextSelectionInformation_AddRef(This) \
  14258. (This)->lpVtbl -> AddRef(This)
  14259. #define ISpeechTextSelectionInformation_Release(This) \
  14260. (This)->lpVtbl -> Release(This)
  14261. #define ISpeechTextSelectionInformation_GetTypeInfoCount(This,pctinfo) \
  14262. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14263. #define ISpeechTextSelectionInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14264. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14265. #define ISpeechTextSelectionInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14266. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14267. #define ISpeechTextSelectionInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14268. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14269. #define ISpeechTextSelectionInformation_put_ActiveOffset(This,ActiveOffset) \
  14270. (This)->lpVtbl -> put_ActiveOffset(This,ActiveOffset)
  14271. #define ISpeechTextSelectionInformation_get_ActiveOffset(This,ActiveOffset) \
  14272. (This)->lpVtbl -> get_ActiveOffset(This,ActiveOffset)
  14273. #define ISpeechTextSelectionInformation_put_ActiveLength(This,ActiveLength) \
  14274. (This)->lpVtbl -> put_ActiveLength(This,ActiveLength)
  14275. #define ISpeechTextSelectionInformation_get_ActiveLength(This,ActiveLength) \
  14276. (This)->lpVtbl -> get_ActiveLength(This,ActiveLength)
  14277. #define ISpeechTextSelectionInformation_put_SelectionOffset(This,SelectionOffset) \
  14278. (This)->lpVtbl -> put_SelectionOffset(This,SelectionOffset)
  14279. #define ISpeechTextSelectionInformation_get_SelectionOffset(This,SelectionOffset) \
  14280. (This)->lpVtbl -> get_SelectionOffset(This,SelectionOffset)
  14281. #define ISpeechTextSelectionInformation_put_SelectionLength(This,SelectionLength) \
  14282. (This)->lpVtbl -> put_SelectionLength(This,SelectionLength)
  14283. #define ISpeechTextSelectionInformation_get_SelectionLength(This,SelectionLength) \
  14284. (This)->lpVtbl -> get_SelectionLength(This,SelectionLength)
  14285. #endif /* COBJMACROS */
  14286. #endif /* C style interface */
  14287. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_ActiveOffset_Proxy(
  14288. ISpeechTextSelectionInformation * This,
  14289. /* [in] */ long ActiveOffset);
  14290. void __RPC_STUB ISpeechTextSelectionInformation_put_ActiveOffset_Stub(
  14291. IRpcStubBuffer *This,
  14292. IRpcChannelBuffer *_pRpcChannelBuffer,
  14293. PRPC_MESSAGE _pRpcMessage,
  14294. DWORD *_pdwStubPhase);
  14295. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_ActiveOffset_Proxy(
  14296. ISpeechTextSelectionInformation * This,
  14297. /* [retval][out] */ long *ActiveOffset);
  14298. void __RPC_STUB ISpeechTextSelectionInformation_get_ActiveOffset_Stub(
  14299. IRpcStubBuffer *This,
  14300. IRpcChannelBuffer *_pRpcChannelBuffer,
  14301. PRPC_MESSAGE _pRpcMessage,
  14302. DWORD *_pdwStubPhase);
  14303. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_ActiveLength_Proxy(
  14304. ISpeechTextSelectionInformation * This,
  14305. /* [in] */ long ActiveLength);
  14306. void __RPC_STUB ISpeechTextSelectionInformation_put_ActiveLength_Stub(
  14307. IRpcStubBuffer *This,
  14308. IRpcChannelBuffer *_pRpcChannelBuffer,
  14309. PRPC_MESSAGE _pRpcMessage,
  14310. DWORD *_pdwStubPhase);
  14311. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_ActiveLength_Proxy(
  14312. ISpeechTextSelectionInformation * This,
  14313. /* [retval][out] */ long *ActiveLength);
  14314. void __RPC_STUB ISpeechTextSelectionInformation_get_ActiveLength_Stub(
  14315. IRpcStubBuffer *This,
  14316. IRpcChannelBuffer *_pRpcChannelBuffer,
  14317. PRPC_MESSAGE _pRpcMessage,
  14318. DWORD *_pdwStubPhase);
  14319. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_SelectionOffset_Proxy(
  14320. ISpeechTextSelectionInformation * This,
  14321. /* [in] */ long SelectionOffset);
  14322. void __RPC_STUB ISpeechTextSelectionInformation_put_SelectionOffset_Stub(
  14323. IRpcStubBuffer *This,
  14324. IRpcChannelBuffer *_pRpcChannelBuffer,
  14325. PRPC_MESSAGE _pRpcMessage,
  14326. DWORD *_pdwStubPhase);
  14327. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_SelectionOffset_Proxy(
  14328. ISpeechTextSelectionInformation * This,
  14329. /* [retval][out] */ long *SelectionOffset);
  14330. void __RPC_STUB ISpeechTextSelectionInformation_get_SelectionOffset_Stub(
  14331. IRpcStubBuffer *This,
  14332. IRpcChannelBuffer *_pRpcChannelBuffer,
  14333. PRPC_MESSAGE _pRpcMessage,
  14334. DWORD *_pdwStubPhase);
  14335. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_SelectionLength_Proxy(
  14336. ISpeechTextSelectionInformation * This,
  14337. /* [in] */ long SelectionLength);
  14338. void __RPC_STUB ISpeechTextSelectionInformation_put_SelectionLength_Stub(
  14339. IRpcStubBuffer *This,
  14340. IRpcChannelBuffer *_pRpcChannelBuffer,
  14341. PRPC_MESSAGE _pRpcMessage,
  14342. DWORD *_pdwStubPhase);
  14343. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_SelectionLength_Proxy(
  14344. ISpeechTextSelectionInformation * This,
  14345. /* [retval][out] */ long *SelectionLength);
  14346. void __RPC_STUB ISpeechTextSelectionInformation_get_SelectionLength_Stub(
  14347. IRpcStubBuffer *This,
  14348. IRpcChannelBuffer *_pRpcChannelBuffer,
  14349. PRPC_MESSAGE _pRpcMessage,
  14350. DWORD *_pdwStubPhase);
  14351. #endif /* __ISpeechTextSelectionInformation_INTERFACE_DEFINED__ */
  14352. #ifndef __ISpeechRecoResult_INTERFACE_DEFINED__
  14353. #define __ISpeechRecoResult_INTERFACE_DEFINED__
  14354. /* interface ISpeechRecoResult */
  14355. /* [unique][helpstring][dual][uuid][object] */
  14356. EXTERN_C const IID IID_ISpeechRecoResult;
  14357. #if defined(__cplusplus) && !defined(CINTERFACE)
  14358. MIDL_INTERFACE("ED2879CF-CED9-4ee6-A534-DE0191D5468D")
  14359. ISpeechRecoResult : public IDispatch
  14360. {
  14361. public:
  14362. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoContext(
  14363. /* [retval][out] */ ISpeechRecoContext **RecoContext) = 0;
  14364. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Times(
  14365. /* [retval][out] */ ISpeechRecoResultTimes **Times) = 0;
  14366. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioFormat(
  14367. /* [in] */ ISpeechAudioFormat *Format) = 0;
  14368. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioFormat(
  14369. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  14370. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  14371. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  14372. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Alternates(
  14373. /* [in] */ long RequestCount,
  14374. /* [defaultvalue][in] */ long StartElement,
  14375. /* [defaultvalue][in] */ long Elements,
  14376. /* [retval][out] */ ISpeechPhraseAlternates **Alternates) = 0;
  14377. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Audio(
  14378. /* [defaultvalue][in] */ long StartElement,
  14379. /* [defaultvalue][in] */ long Elements,
  14380. /* [retval][out] */ ISpeechMemoryStream **Stream) = 0;
  14381. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakAudio(
  14382. /* [defaultvalue][in] */ long StartElement,
  14383. /* [defaultvalue][in] */ long Elements,
  14384. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14385. /* [retval][out] */ long *StreamNumber) = 0;
  14386. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SaveToMemory(
  14387. /* [retval][out] */ VARIANT *ResultBlock) = 0;
  14388. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DiscardResultInfo(
  14389. /* [in] */ SpeechDiscardType ValueTypes) = 0;
  14390. };
  14391. #else /* C style interface */
  14392. typedef struct ISpeechRecoResultVtbl
  14393. {
  14394. BEGIN_INTERFACE
  14395. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14396. ISpeechRecoResult * This,
  14397. /* [in] */ REFIID riid,
  14398. /* [iid_is][out] */ void **ppvObject);
  14399. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14400. ISpeechRecoResult * This);
  14401. ULONG ( STDMETHODCALLTYPE *Release )(
  14402. ISpeechRecoResult * This);
  14403. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14404. ISpeechRecoResult * This,
  14405. /* [out] */ UINT *pctinfo);
  14406. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14407. ISpeechRecoResult * This,
  14408. /* [in] */ UINT iTInfo,
  14409. /* [in] */ LCID lcid,
  14410. /* [out] */ ITypeInfo **ppTInfo);
  14411. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14412. ISpeechRecoResult * This,
  14413. /* [in] */ REFIID riid,
  14414. /* [size_is][in] */ LPOLESTR *rgszNames,
  14415. /* [in] */ UINT cNames,
  14416. /* [in] */ LCID lcid,
  14417. /* [size_is][out] */ DISPID *rgDispId);
  14418. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14419. ISpeechRecoResult * This,
  14420. /* [in] */ DISPID dispIdMember,
  14421. /* [in] */ REFIID riid,
  14422. /* [in] */ LCID lcid,
  14423. /* [in] */ WORD wFlags,
  14424. /* [out][in] */ DISPPARAMS *pDispParams,
  14425. /* [out] */ VARIANT *pVarResult,
  14426. /* [out] */ EXCEPINFO *pExcepInfo,
  14427. /* [out] */ UINT *puArgErr);
  14428. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoContext )(
  14429. ISpeechRecoResult * This,
  14430. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  14431. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Times )(
  14432. ISpeechRecoResult * This,
  14433. /* [retval][out] */ ISpeechRecoResultTimes **Times);
  14434. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioFormat )(
  14435. ISpeechRecoResult * This,
  14436. /* [in] */ ISpeechAudioFormat *Format);
  14437. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioFormat )(
  14438. ISpeechRecoResult * This,
  14439. /* [retval][out] */ ISpeechAudioFormat **Format);
  14440. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhraseInfo )(
  14441. ISpeechRecoResult * This,
  14442. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14443. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Alternates )(
  14444. ISpeechRecoResult * This,
  14445. /* [in] */ long RequestCount,
  14446. /* [defaultvalue][in] */ long StartElement,
  14447. /* [defaultvalue][in] */ long Elements,
  14448. /* [retval][out] */ ISpeechPhraseAlternates **Alternates);
  14449. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Audio )(
  14450. ISpeechRecoResult * This,
  14451. /* [defaultvalue][in] */ long StartElement,
  14452. /* [defaultvalue][in] */ long Elements,
  14453. /* [retval][out] */ ISpeechMemoryStream **Stream);
  14454. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakAudio )(
  14455. ISpeechRecoResult * This,
  14456. /* [defaultvalue][in] */ long StartElement,
  14457. /* [defaultvalue][in] */ long Elements,
  14458. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14459. /* [retval][out] */ long *StreamNumber);
  14460. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SaveToMemory )(
  14461. ISpeechRecoResult * This,
  14462. /* [retval][out] */ VARIANT *ResultBlock);
  14463. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DiscardResultInfo )(
  14464. ISpeechRecoResult * This,
  14465. /* [in] */ SpeechDiscardType ValueTypes);
  14466. END_INTERFACE
  14467. } ISpeechRecoResultVtbl;
  14468. interface ISpeechRecoResult
  14469. {
  14470. CONST_VTBL struct ISpeechRecoResultVtbl *lpVtbl;
  14471. };
  14472. #ifdef COBJMACROS
  14473. #define ISpeechRecoResult_QueryInterface(This,riid,ppvObject) \
  14474. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14475. #define ISpeechRecoResult_AddRef(This) \
  14476. (This)->lpVtbl -> AddRef(This)
  14477. #define ISpeechRecoResult_Release(This) \
  14478. (This)->lpVtbl -> Release(This)
  14479. #define ISpeechRecoResult_GetTypeInfoCount(This,pctinfo) \
  14480. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14481. #define ISpeechRecoResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14482. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14483. #define ISpeechRecoResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14484. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14485. #define ISpeechRecoResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14486. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14487. #define ISpeechRecoResult_get_RecoContext(This,RecoContext) \
  14488. (This)->lpVtbl -> get_RecoContext(This,RecoContext)
  14489. #define ISpeechRecoResult_get_Times(This,Times) \
  14490. (This)->lpVtbl -> get_Times(This,Times)
  14491. #define ISpeechRecoResult_putref_AudioFormat(This,Format) \
  14492. (This)->lpVtbl -> putref_AudioFormat(This,Format)
  14493. #define ISpeechRecoResult_get_AudioFormat(This,Format) \
  14494. (This)->lpVtbl -> get_AudioFormat(This,Format)
  14495. #define ISpeechRecoResult_get_PhraseInfo(This,PhraseInfo) \
  14496. (This)->lpVtbl -> get_PhraseInfo(This,PhraseInfo)
  14497. #define ISpeechRecoResult_Alternates(This,RequestCount,StartElement,Elements,Alternates) \
  14498. (This)->lpVtbl -> Alternates(This,RequestCount,StartElement,Elements,Alternates)
  14499. #define ISpeechRecoResult_Audio(This,StartElement,Elements,Stream) \
  14500. (This)->lpVtbl -> Audio(This,StartElement,Elements,Stream)
  14501. #define ISpeechRecoResult_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) \
  14502. (This)->lpVtbl -> SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  14503. #define ISpeechRecoResult_SaveToMemory(This,ResultBlock) \
  14504. (This)->lpVtbl -> SaveToMemory(This,ResultBlock)
  14505. #define ISpeechRecoResult_DiscardResultInfo(This,ValueTypes) \
  14506. (This)->lpVtbl -> DiscardResultInfo(This,ValueTypes)
  14507. #endif /* COBJMACROS */
  14508. #endif /* C style interface */
  14509. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_RecoContext_Proxy(
  14510. ISpeechRecoResult * This,
  14511. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  14512. void __RPC_STUB ISpeechRecoResult_get_RecoContext_Stub(
  14513. IRpcStubBuffer *This,
  14514. IRpcChannelBuffer *_pRpcChannelBuffer,
  14515. PRPC_MESSAGE _pRpcMessage,
  14516. DWORD *_pdwStubPhase);
  14517. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_Times_Proxy(
  14518. ISpeechRecoResult * This,
  14519. /* [retval][out] */ ISpeechRecoResultTimes **Times);
  14520. void __RPC_STUB ISpeechRecoResult_get_Times_Stub(
  14521. IRpcStubBuffer *This,
  14522. IRpcChannelBuffer *_pRpcChannelBuffer,
  14523. PRPC_MESSAGE _pRpcMessage,
  14524. DWORD *_pdwStubPhase);
  14525. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_putref_AudioFormat_Proxy(
  14526. ISpeechRecoResult * This,
  14527. /* [in] */ ISpeechAudioFormat *Format);
  14528. void __RPC_STUB ISpeechRecoResult_putref_AudioFormat_Stub(
  14529. IRpcStubBuffer *This,
  14530. IRpcChannelBuffer *_pRpcChannelBuffer,
  14531. PRPC_MESSAGE _pRpcMessage,
  14532. DWORD *_pdwStubPhase);
  14533. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_AudioFormat_Proxy(
  14534. ISpeechRecoResult * This,
  14535. /* [retval][out] */ ISpeechAudioFormat **Format);
  14536. void __RPC_STUB ISpeechRecoResult_get_AudioFormat_Stub(
  14537. IRpcStubBuffer *This,
  14538. IRpcChannelBuffer *_pRpcChannelBuffer,
  14539. PRPC_MESSAGE _pRpcMessage,
  14540. DWORD *_pdwStubPhase);
  14541. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_PhraseInfo_Proxy(
  14542. ISpeechRecoResult * This,
  14543. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14544. void __RPC_STUB ISpeechRecoResult_get_PhraseInfo_Stub(
  14545. IRpcStubBuffer *This,
  14546. IRpcChannelBuffer *_pRpcChannelBuffer,
  14547. PRPC_MESSAGE _pRpcMessage,
  14548. DWORD *_pdwStubPhase);
  14549. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_Alternates_Proxy(
  14550. ISpeechRecoResult * This,
  14551. /* [in] */ long RequestCount,
  14552. /* [defaultvalue][in] */ long StartElement,
  14553. /* [defaultvalue][in] */ long Elements,
  14554. /* [retval][out] */ ISpeechPhraseAlternates **Alternates);
  14555. void __RPC_STUB ISpeechRecoResult_Alternates_Stub(
  14556. IRpcStubBuffer *This,
  14557. IRpcChannelBuffer *_pRpcChannelBuffer,
  14558. PRPC_MESSAGE _pRpcMessage,
  14559. DWORD *_pdwStubPhase);
  14560. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_Audio_Proxy(
  14561. ISpeechRecoResult * This,
  14562. /* [defaultvalue][in] */ long StartElement,
  14563. /* [defaultvalue][in] */ long Elements,
  14564. /* [retval][out] */ ISpeechMemoryStream **Stream);
  14565. void __RPC_STUB ISpeechRecoResult_Audio_Stub(
  14566. IRpcStubBuffer *This,
  14567. IRpcChannelBuffer *_pRpcChannelBuffer,
  14568. PRPC_MESSAGE _pRpcMessage,
  14569. DWORD *_pdwStubPhase);
  14570. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_SpeakAudio_Proxy(
  14571. ISpeechRecoResult * This,
  14572. /* [defaultvalue][in] */ long StartElement,
  14573. /* [defaultvalue][in] */ long Elements,
  14574. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14575. /* [retval][out] */ long *StreamNumber);
  14576. void __RPC_STUB ISpeechRecoResult_SpeakAudio_Stub(
  14577. IRpcStubBuffer *This,
  14578. IRpcChannelBuffer *_pRpcChannelBuffer,
  14579. PRPC_MESSAGE _pRpcMessage,
  14580. DWORD *_pdwStubPhase);
  14581. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_SaveToMemory_Proxy(
  14582. ISpeechRecoResult * This,
  14583. /* [retval][out] */ VARIANT *ResultBlock);
  14584. void __RPC_STUB ISpeechRecoResult_SaveToMemory_Stub(
  14585. IRpcStubBuffer *This,
  14586. IRpcChannelBuffer *_pRpcChannelBuffer,
  14587. PRPC_MESSAGE _pRpcMessage,
  14588. DWORD *_pdwStubPhase);
  14589. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_DiscardResultInfo_Proxy(
  14590. ISpeechRecoResult * This,
  14591. /* [in] */ SpeechDiscardType ValueTypes);
  14592. void __RPC_STUB ISpeechRecoResult_DiscardResultInfo_Stub(
  14593. IRpcStubBuffer *This,
  14594. IRpcChannelBuffer *_pRpcChannelBuffer,
  14595. PRPC_MESSAGE _pRpcMessage,
  14596. DWORD *_pdwStubPhase);
  14597. #endif /* __ISpeechRecoResult_INTERFACE_DEFINED__ */
  14598. #ifndef __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  14599. #define __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  14600. /* interface ISpeechRecoResultTimes */
  14601. /* [unique][helpstring][dual][uuid][object] */
  14602. EXTERN_C const IID IID_ISpeechRecoResultTimes;
  14603. #if defined(__cplusplus) && !defined(CINTERFACE)
  14604. MIDL_INTERFACE("62B3B8FB-F6E7-41be-BDCB-056B1C29EFC0")
  14605. ISpeechRecoResultTimes : public IDispatch
  14606. {
  14607. public:
  14608. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StreamTime(
  14609. /* [retval][out] */ VARIANT *Time) = 0;
  14610. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Length(
  14611. /* [retval][out] */ VARIANT *Length) = 0;
  14612. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_TickCount(
  14613. /* [retval][out] */ long *TickCount) = 0;
  14614. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetFromStart(
  14615. /* [retval][out] */ VARIANT *OffsetFromStart) = 0;
  14616. };
  14617. #else /* C style interface */
  14618. typedef struct ISpeechRecoResultTimesVtbl
  14619. {
  14620. BEGIN_INTERFACE
  14621. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14622. ISpeechRecoResultTimes * This,
  14623. /* [in] */ REFIID riid,
  14624. /* [iid_is][out] */ void **ppvObject);
  14625. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14626. ISpeechRecoResultTimes * This);
  14627. ULONG ( STDMETHODCALLTYPE *Release )(
  14628. ISpeechRecoResultTimes * This);
  14629. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14630. ISpeechRecoResultTimes * This,
  14631. /* [out] */ UINT *pctinfo);
  14632. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14633. ISpeechRecoResultTimes * This,
  14634. /* [in] */ UINT iTInfo,
  14635. /* [in] */ LCID lcid,
  14636. /* [out] */ ITypeInfo **ppTInfo);
  14637. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14638. ISpeechRecoResultTimes * This,
  14639. /* [in] */ REFIID riid,
  14640. /* [size_is][in] */ LPOLESTR *rgszNames,
  14641. /* [in] */ UINT cNames,
  14642. /* [in] */ LCID lcid,
  14643. /* [size_is][out] */ DISPID *rgDispId);
  14644. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14645. ISpeechRecoResultTimes * This,
  14646. /* [in] */ DISPID dispIdMember,
  14647. /* [in] */ REFIID riid,
  14648. /* [in] */ LCID lcid,
  14649. /* [in] */ WORD wFlags,
  14650. /* [out][in] */ DISPPARAMS *pDispParams,
  14651. /* [out] */ VARIANT *pVarResult,
  14652. /* [out] */ EXCEPINFO *pExcepInfo,
  14653. /* [out] */ UINT *puArgErr);
  14654. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamTime )(
  14655. ISpeechRecoResultTimes * This,
  14656. /* [retval][out] */ VARIANT *Time);
  14657. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )(
  14658. ISpeechRecoResultTimes * This,
  14659. /* [retval][out] */ VARIANT *Length);
  14660. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TickCount )(
  14661. ISpeechRecoResultTimes * This,
  14662. /* [retval][out] */ long *TickCount);
  14663. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetFromStart )(
  14664. ISpeechRecoResultTimes * This,
  14665. /* [retval][out] */ VARIANT *OffsetFromStart);
  14666. END_INTERFACE
  14667. } ISpeechRecoResultTimesVtbl;
  14668. interface ISpeechRecoResultTimes
  14669. {
  14670. CONST_VTBL struct ISpeechRecoResultTimesVtbl *lpVtbl;
  14671. };
  14672. #ifdef COBJMACROS
  14673. #define ISpeechRecoResultTimes_QueryInterface(This,riid,ppvObject) \
  14674. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14675. #define ISpeechRecoResultTimes_AddRef(This) \
  14676. (This)->lpVtbl -> AddRef(This)
  14677. #define ISpeechRecoResultTimes_Release(This) \
  14678. (This)->lpVtbl -> Release(This)
  14679. #define ISpeechRecoResultTimes_GetTypeInfoCount(This,pctinfo) \
  14680. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14681. #define ISpeechRecoResultTimes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14682. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14683. #define ISpeechRecoResultTimes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14684. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14685. #define ISpeechRecoResultTimes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14686. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14687. #define ISpeechRecoResultTimes_get_StreamTime(This,Time) \
  14688. (This)->lpVtbl -> get_StreamTime(This,Time)
  14689. #define ISpeechRecoResultTimes_get_Length(This,Length) \
  14690. (This)->lpVtbl -> get_Length(This,Length)
  14691. #define ISpeechRecoResultTimes_get_TickCount(This,TickCount) \
  14692. (This)->lpVtbl -> get_TickCount(This,TickCount)
  14693. #define ISpeechRecoResultTimes_get_OffsetFromStart(This,OffsetFromStart) \
  14694. (This)->lpVtbl -> get_OffsetFromStart(This,OffsetFromStart)
  14695. #endif /* COBJMACROS */
  14696. #endif /* C style interface */
  14697. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_StreamTime_Proxy(
  14698. ISpeechRecoResultTimes * This,
  14699. /* [retval][out] */ VARIANT *Time);
  14700. void __RPC_STUB ISpeechRecoResultTimes_get_StreamTime_Stub(
  14701. IRpcStubBuffer *This,
  14702. IRpcChannelBuffer *_pRpcChannelBuffer,
  14703. PRPC_MESSAGE _pRpcMessage,
  14704. DWORD *_pdwStubPhase);
  14705. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_Length_Proxy(
  14706. ISpeechRecoResultTimes * This,
  14707. /* [retval][out] */ VARIANT *Length);
  14708. void __RPC_STUB ISpeechRecoResultTimes_get_Length_Stub(
  14709. IRpcStubBuffer *This,
  14710. IRpcChannelBuffer *_pRpcChannelBuffer,
  14711. PRPC_MESSAGE _pRpcMessage,
  14712. DWORD *_pdwStubPhase);
  14713. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_TickCount_Proxy(
  14714. ISpeechRecoResultTimes * This,
  14715. /* [retval][out] */ long *TickCount);
  14716. void __RPC_STUB ISpeechRecoResultTimes_get_TickCount_Stub(
  14717. IRpcStubBuffer *This,
  14718. IRpcChannelBuffer *_pRpcChannelBuffer,
  14719. PRPC_MESSAGE _pRpcMessage,
  14720. DWORD *_pdwStubPhase);
  14721. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_OffsetFromStart_Proxy(
  14722. ISpeechRecoResultTimes * This,
  14723. /* [retval][out] */ VARIANT *OffsetFromStart);
  14724. void __RPC_STUB ISpeechRecoResultTimes_get_OffsetFromStart_Stub(
  14725. IRpcStubBuffer *This,
  14726. IRpcChannelBuffer *_pRpcChannelBuffer,
  14727. PRPC_MESSAGE _pRpcMessage,
  14728. DWORD *_pdwStubPhase);
  14729. #endif /* __ISpeechRecoResultTimes_INTERFACE_DEFINED__ */
  14730. #ifndef __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  14731. #define __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  14732. /* interface ISpeechPhraseAlternate */
  14733. /* [unique][helpstring][dual][uuid][object] */
  14734. EXTERN_C const IID IID_ISpeechPhraseAlternate;
  14735. #if defined(__cplusplus) && !defined(CINTERFACE)
  14736. MIDL_INTERFACE("27864A2A-2B9F-4cb8-92D3-0D2722FD1E73")
  14737. ISpeechPhraseAlternate : public IDispatch
  14738. {
  14739. public:
  14740. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoResult(
  14741. /* [retval][out] */ ISpeechRecoResult **RecoResult) = 0;
  14742. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StartElementInResult(
  14743. /* [retval][out] */ long *StartElement) = 0;
  14744. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElementsInResult(
  14745. /* [retval][out] */ long *NumberOfElements) = 0;
  14746. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  14747. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  14748. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  14749. };
  14750. #else /* C style interface */
  14751. typedef struct ISpeechPhraseAlternateVtbl
  14752. {
  14753. BEGIN_INTERFACE
  14754. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14755. ISpeechPhraseAlternate * This,
  14756. /* [in] */ REFIID riid,
  14757. /* [iid_is][out] */ void **ppvObject);
  14758. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14759. ISpeechPhraseAlternate * This);
  14760. ULONG ( STDMETHODCALLTYPE *Release )(
  14761. ISpeechPhraseAlternate * This);
  14762. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14763. ISpeechPhraseAlternate * This,
  14764. /* [out] */ UINT *pctinfo);
  14765. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14766. ISpeechPhraseAlternate * This,
  14767. /* [in] */ UINT iTInfo,
  14768. /* [in] */ LCID lcid,
  14769. /* [out] */ ITypeInfo **ppTInfo);
  14770. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14771. ISpeechPhraseAlternate * This,
  14772. /* [in] */ REFIID riid,
  14773. /* [size_is][in] */ LPOLESTR *rgszNames,
  14774. /* [in] */ UINT cNames,
  14775. /* [in] */ LCID lcid,
  14776. /* [size_is][out] */ DISPID *rgDispId);
  14777. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14778. ISpeechPhraseAlternate * This,
  14779. /* [in] */ DISPID dispIdMember,
  14780. /* [in] */ REFIID riid,
  14781. /* [in] */ LCID lcid,
  14782. /* [in] */ WORD wFlags,
  14783. /* [out][in] */ DISPPARAMS *pDispParams,
  14784. /* [out] */ VARIANT *pVarResult,
  14785. /* [out] */ EXCEPINFO *pExcepInfo,
  14786. /* [out] */ UINT *puArgErr);
  14787. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoResult )(
  14788. ISpeechPhraseAlternate * This,
  14789. /* [retval][out] */ ISpeechRecoResult **RecoResult);
  14790. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartElementInResult )(
  14791. ISpeechPhraseAlternate * This,
  14792. /* [retval][out] */ long *StartElement);
  14793. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElementsInResult )(
  14794. ISpeechPhraseAlternate * This,
  14795. /* [retval][out] */ long *NumberOfElements);
  14796. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhraseInfo )(
  14797. ISpeechPhraseAlternate * This,
  14798. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14799. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Commit )(
  14800. ISpeechPhraseAlternate * This);
  14801. END_INTERFACE
  14802. } ISpeechPhraseAlternateVtbl;
  14803. interface ISpeechPhraseAlternate
  14804. {
  14805. CONST_VTBL struct ISpeechPhraseAlternateVtbl *lpVtbl;
  14806. };
  14807. #ifdef COBJMACROS
  14808. #define ISpeechPhraseAlternate_QueryInterface(This,riid,ppvObject) \
  14809. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14810. #define ISpeechPhraseAlternate_AddRef(This) \
  14811. (This)->lpVtbl -> AddRef(This)
  14812. #define ISpeechPhraseAlternate_Release(This) \
  14813. (This)->lpVtbl -> Release(This)
  14814. #define ISpeechPhraseAlternate_GetTypeInfoCount(This,pctinfo) \
  14815. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14816. #define ISpeechPhraseAlternate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14817. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14818. #define ISpeechPhraseAlternate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14819. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14820. #define ISpeechPhraseAlternate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14821. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14822. #define ISpeechPhraseAlternate_get_RecoResult(This,RecoResult) \
  14823. (This)->lpVtbl -> get_RecoResult(This,RecoResult)
  14824. #define ISpeechPhraseAlternate_get_StartElementInResult(This,StartElement) \
  14825. (This)->lpVtbl -> get_StartElementInResult(This,StartElement)
  14826. #define ISpeechPhraseAlternate_get_NumberOfElementsInResult(This,NumberOfElements) \
  14827. (This)->lpVtbl -> get_NumberOfElementsInResult(This,NumberOfElements)
  14828. #define ISpeechPhraseAlternate_get_PhraseInfo(This,PhraseInfo) \
  14829. (This)->lpVtbl -> get_PhraseInfo(This,PhraseInfo)
  14830. #define ISpeechPhraseAlternate_Commit(This) \
  14831. (This)->lpVtbl -> Commit(This)
  14832. #endif /* COBJMACROS */
  14833. #endif /* C style interface */
  14834. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_RecoResult_Proxy(
  14835. ISpeechPhraseAlternate * This,
  14836. /* [retval][out] */ ISpeechRecoResult **RecoResult);
  14837. void __RPC_STUB ISpeechPhraseAlternate_get_RecoResult_Stub(
  14838. IRpcStubBuffer *This,
  14839. IRpcChannelBuffer *_pRpcChannelBuffer,
  14840. PRPC_MESSAGE _pRpcMessage,
  14841. DWORD *_pdwStubPhase);
  14842. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_StartElementInResult_Proxy(
  14843. ISpeechPhraseAlternate * This,
  14844. /* [retval][out] */ long *StartElement);
  14845. void __RPC_STUB ISpeechPhraseAlternate_get_StartElementInResult_Stub(
  14846. IRpcStubBuffer *This,
  14847. IRpcChannelBuffer *_pRpcChannelBuffer,
  14848. PRPC_MESSAGE _pRpcMessage,
  14849. DWORD *_pdwStubPhase);
  14850. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_NumberOfElementsInResult_Proxy(
  14851. ISpeechPhraseAlternate * This,
  14852. /* [retval][out] */ long *NumberOfElements);
  14853. void __RPC_STUB ISpeechPhraseAlternate_get_NumberOfElementsInResult_Stub(
  14854. IRpcStubBuffer *This,
  14855. IRpcChannelBuffer *_pRpcChannelBuffer,
  14856. PRPC_MESSAGE _pRpcMessage,
  14857. DWORD *_pdwStubPhase);
  14858. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_PhraseInfo_Proxy(
  14859. ISpeechPhraseAlternate * This,
  14860. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14861. void __RPC_STUB ISpeechPhraseAlternate_get_PhraseInfo_Stub(
  14862. IRpcStubBuffer *This,
  14863. IRpcChannelBuffer *_pRpcChannelBuffer,
  14864. PRPC_MESSAGE _pRpcMessage,
  14865. DWORD *_pdwStubPhase);
  14866. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_Commit_Proxy(
  14867. ISpeechPhraseAlternate * This);
  14868. void __RPC_STUB ISpeechPhraseAlternate_Commit_Stub(
  14869. IRpcStubBuffer *This,
  14870. IRpcChannelBuffer *_pRpcChannelBuffer,
  14871. PRPC_MESSAGE _pRpcMessage,
  14872. DWORD *_pdwStubPhase);
  14873. #endif /* __ISpeechPhraseAlternate_INTERFACE_DEFINED__ */
  14874. #ifndef __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  14875. #define __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  14876. /* interface ISpeechPhraseAlternates */
  14877. /* [unique][helpstring][dual][uuid][object] */
  14878. EXTERN_C const IID IID_ISpeechPhraseAlternates;
  14879. #if defined(__cplusplus) && !defined(CINTERFACE)
  14880. MIDL_INTERFACE("B238B6D5-F276-4c3d-A6C1-2974801C3CC2")
  14881. ISpeechPhraseAlternates : public IDispatch
  14882. {
  14883. public:
  14884. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  14885. /* [retval][out] */ long *Count) = 0;
  14886. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  14887. /* [in] */ long Index,
  14888. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate) = 0;
  14889. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  14890. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  14891. };
  14892. #else /* C style interface */
  14893. typedef struct ISpeechPhraseAlternatesVtbl
  14894. {
  14895. BEGIN_INTERFACE
  14896. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14897. ISpeechPhraseAlternates * This,
  14898. /* [in] */ REFIID riid,
  14899. /* [iid_is][out] */ void **ppvObject);
  14900. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14901. ISpeechPhraseAlternates * This);
  14902. ULONG ( STDMETHODCALLTYPE *Release )(
  14903. ISpeechPhraseAlternates * This);
  14904. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14905. ISpeechPhraseAlternates * This,
  14906. /* [out] */ UINT *pctinfo);
  14907. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14908. ISpeechPhraseAlternates * This,
  14909. /* [in] */ UINT iTInfo,
  14910. /* [in] */ LCID lcid,
  14911. /* [out] */ ITypeInfo **ppTInfo);
  14912. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14913. ISpeechPhraseAlternates * This,
  14914. /* [in] */ REFIID riid,
  14915. /* [size_is][in] */ LPOLESTR *rgszNames,
  14916. /* [in] */ UINT cNames,
  14917. /* [in] */ LCID lcid,
  14918. /* [size_is][out] */ DISPID *rgDispId);
  14919. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14920. ISpeechPhraseAlternates * This,
  14921. /* [in] */ DISPID dispIdMember,
  14922. /* [in] */ REFIID riid,
  14923. /* [in] */ LCID lcid,
  14924. /* [in] */ WORD wFlags,
  14925. /* [out][in] */ DISPPARAMS *pDispParams,
  14926. /* [out] */ VARIANT *pVarResult,
  14927. /* [out] */ EXCEPINFO *pExcepInfo,
  14928. /* [out] */ UINT *puArgErr);
  14929. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  14930. ISpeechPhraseAlternates * This,
  14931. /* [retval][out] */ long *Count);
  14932. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  14933. ISpeechPhraseAlternates * This,
  14934. /* [in] */ long Index,
  14935. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate);
  14936. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  14937. ISpeechPhraseAlternates * This,
  14938. /* [retval][out] */ IUnknown **EnumVARIANT);
  14939. END_INTERFACE
  14940. } ISpeechPhraseAlternatesVtbl;
  14941. interface ISpeechPhraseAlternates
  14942. {
  14943. CONST_VTBL struct ISpeechPhraseAlternatesVtbl *lpVtbl;
  14944. };
  14945. #ifdef COBJMACROS
  14946. #define ISpeechPhraseAlternates_QueryInterface(This,riid,ppvObject) \
  14947. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14948. #define ISpeechPhraseAlternates_AddRef(This) \
  14949. (This)->lpVtbl -> AddRef(This)
  14950. #define ISpeechPhraseAlternates_Release(This) \
  14951. (This)->lpVtbl -> Release(This)
  14952. #define ISpeechPhraseAlternates_GetTypeInfoCount(This,pctinfo) \
  14953. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14954. #define ISpeechPhraseAlternates_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14955. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14956. #define ISpeechPhraseAlternates_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14957. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14958. #define ISpeechPhraseAlternates_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14959. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14960. #define ISpeechPhraseAlternates_get_Count(This,Count) \
  14961. (This)->lpVtbl -> get_Count(This,Count)
  14962. #define ISpeechPhraseAlternates_Item(This,Index,PhraseAlternate) \
  14963. (This)->lpVtbl -> Item(This,Index,PhraseAlternate)
  14964. #define ISpeechPhraseAlternates_get__NewEnum(This,EnumVARIANT) \
  14965. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  14966. #endif /* COBJMACROS */
  14967. #endif /* C style interface */
  14968. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_get_Count_Proxy(
  14969. ISpeechPhraseAlternates * This,
  14970. /* [retval][out] */ long *Count);
  14971. void __RPC_STUB ISpeechPhraseAlternates_get_Count_Stub(
  14972. IRpcStubBuffer *This,
  14973. IRpcChannelBuffer *_pRpcChannelBuffer,
  14974. PRPC_MESSAGE _pRpcMessage,
  14975. DWORD *_pdwStubPhase);
  14976. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_Item_Proxy(
  14977. ISpeechPhraseAlternates * This,
  14978. /* [in] */ long Index,
  14979. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate);
  14980. void __RPC_STUB ISpeechPhraseAlternates_Item_Stub(
  14981. IRpcStubBuffer *This,
  14982. IRpcChannelBuffer *_pRpcChannelBuffer,
  14983. PRPC_MESSAGE _pRpcMessage,
  14984. DWORD *_pdwStubPhase);
  14985. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_get__NewEnum_Proxy(
  14986. ISpeechPhraseAlternates * This,
  14987. /* [retval][out] */ IUnknown **EnumVARIANT);
  14988. void __RPC_STUB ISpeechPhraseAlternates_get__NewEnum_Stub(
  14989. IRpcStubBuffer *This,
  14990. IRpcChannelBuffer *_pRpcChannelBuffer,
  14991. PRPC_MESSAGE _pRpcMessage,
  14992. DWORD *_pdwStubPhase);
  14993. #endif /* __ISpeechPhraseAlternates_INTERFACE_DEFINED__ */
  14994. #ifndef __ISpeechPhraseInfo_INTERFACE_DEFINED__
  14995. #define __ISpeechPhraseInfo_INTERFACE_DEFINED__
  14996. /* interface ISpeechPhraseInfo */
  14997. /* [unique][helpstring][dual][uuid][object] */
  14998. EXTERN_C const IID IID_ISpeechPhraseInfo;
  14999. #if defined(__cplusplus) && !defined(CINTERFACE)
  15000. MIDL_INTERFACE("961559CF-4E67-4662-8BF0-D93F1FCD61B3")
  15001. ISpeechPhraseInfo : public IDispatch
  15002. {
  15003. public:
  15004. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageId(
  15005. /* [retval][out] */ long *LanguageId) = 0;
  15006. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_GrammarId(
  15007. /* [retval][out] */ VARIANT *GrammarId) = 0;
  15008. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime(
  15009. /* [retval][out] */ VARIANT *StartTime) = 0;
  15010. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStreamPosition(
  15011. /* [retval][out] */ VARIANT *AudioStreamPosition) = 0;
  15012. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  15013. /* [retval][out] */ long *pAudioSizeBytes) = 0;
  15014. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  15015. /* [retval][out] */ long *RetainedSizeBytes) = 0;
  15016. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  15017. /* [retval][out] */ long *AudioSizeTime) = 0;
  15018. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  15019. /* [retval][out] */ ISpeechPhraseRule **Rule) = 0;
  15020. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Properties(
  15021. /* [retval][out] */ ISpeechPhraseProperties **Properties) = 0;
  15022. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Elements(
  15023. /* [retval][out] */ ISpeechPhraseElements **Elements) = 0;
  15024. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Replacements(
  15025. /* [retval][out] */ ISpeechPhraseReplacements **Replacements) = 0;
  15026. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineId(
  15027. /* [retval][out] */ BSTR *EngineIdGuid) = 0;
  15028. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EnginePrivateData(
  15029. /* [retval][out] */ VARIANT *PrivateData) = 0;
  15030. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SaveToMemory(
  15031. /* [retval][out] */ VARIANT *PhraseBlock) = 0;
  15032. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetText(
  15033. /* [defaultvalue][in] */ long StartElement,
  15034. /* [defaultvalue][in] */ long Elements,
  15035. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15036. /* [retval][out] */ BSTR *Text) = 0;
  15037. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayAttributes(
  15038. /* [defaultvalue][in] */ long StartElement,
  15039. /* [defaultvalue][in] */ long Elements,
  15040. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15041. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15042. };
  15043. #else /* C style interface */
  15044. typedef struct ISpeechPhraseInfoVtbl
  15045. {
  15046. BEGIN_INTERFACE
  15047. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15048. ISpeechPhraseInfo * This,
  15049. /* [in] */ REFIID riid,
  15050. /* [iid_is][out] */ void **ppvObject);
  15051. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15052. ISpeechPhraseInfo * This);
  15053. ULONG ( STDMETHODCALLTYPE *Release )(
  15054. ISpeechPhraseInfo * This);
  15055. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15056. ISpeechPhraseInfo * This,
  15057. /* [out] */ UINT *pctinfo);
  15058. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15059. ISpeechPhraseInfo * This,
  15060. /* [in] */ UINT iTInfo,
  15061. /* [in] */ LCID lcid,
  15062. /* [out] */ ITypeInfo **ppTInfo);
  15063. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15064. ISpeechPhraseInfo * This,
  15065. /* [in] */ REFIID riid,
  15066. /* [size_is][in] */ LPOLESTR *rgszNames,
  15067. /* [in] */ UINT cNames,
  15068. /* [in] */ LCID lcid,
  15069. /* [size_is][out] */ DISPID *rgDispId);
  15070. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15071. ISpeechPhraseInfo * This,
  15072. /* [in] */ DISPID dispIdMember,
  15073. /* [in] */ REFIID riid,
  15074. /* [in] */ LCID lcid,
  15075. /* [in] */ WORD wFlags,
  15076. /* [out][in] */ DISPPARAMS *pDispParams,
  15077. /* [out] */ VARIANT *pVarResult,
  15078. /* [out] */ EXCEPINFO *pExcepInfo,
  15079. /* [out] */ UINT *puArgErr);
  15080. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageId )(
  15081. ISpeechPhraseInfo * This,
  15082. /* [retval][out] */ long *LanguageId);
  15083. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GrammarId )(
  15084. ISpeechPhraseInfo * This,
  15085. /* [retval][out] */ VARIANT *GrammarId);
  15086. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )(
  15087. ISpeechPhraseInfo * This,
  15088. /* [retval][out] */ VARIANT *StartTime);
  15089. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStreamPosition )(
  15090. ISpeechPhraseInfo * This,
  15091. /* [retval][out] */ VARIANT *AudioStreamPosition);
  15092. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeBytes )(
  15093. ISpeechPhraseInfo * This,
  15094. /* [retval][out] */ long *pAudioSizeBytes);
  15095. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedSizeBytes )(
  15096. ISpeechPhraseInfo * This,
  15097. /* [retval][out] */ long *RetainedSizeBytes);
  15098. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeTime )(
  15099. ISpeechPhraseInfo * This,
  15100. /* [retval][out] */ long *AudioSizeTime);
  15101. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  15102. ISpeechPhraseInfo * This,
  15103. /* [retval][out] */ ISpeechPhraseRule **Rule);
  15104. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )(
  15105. ISpeechPhraseInfo * This,
  15106. /* [retval][out] */ ISpeechPhraseProperties **Properties);
  15107. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Elements )(
  15108. ISpeechPhraseInfo * This,
  15109. /* [retval][out] */ ISpeechPhraseElements **Elements);
  15110. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Replacements )(
  15111. ISpeechPhraseInfo * This,
  15112. /* [retval][out] */ ISpeechPhraseReplacements **Replacements);
  15113. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineId )(
  15114. ISpeechPhraseInfo * This,
  15115. /* [retval][out] */ BSTR *EngineIdGuid);
  15116. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnginePrivateData )(
  15117. ISpeechPhraseInfo * This,
  15118. /* [retval][out] */ VARIANT *PrivateData);
  15119. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SaveToMemory )(
  15120. ISpeechPhraseInfo * This,
  15121. /* [retval][out] */ VARIANT *PhraseBlock);
  15122. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetText )(
  15123. ISpeechPhraseInfo * This,
  15124. /* [defaultvalue][in] */ long StartElement,
  15125. /* [defaultvalue][in] */ long Elements,
  15126. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15127. /* [retval][out] */ BSTR *Text);
  15128. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDisplayAttributes )(
  15129. ISpeechPhraseInfo * This,
  15130. /* [defaultvalue][in] */ long StartElement,
  15131. /* [defaultvalue][in] */ long Elements,
  15132. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15133. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15134. END_INTERFACE
  15135. } ISpeechPhraseInfoVtbl;
  15136. interface ISpeechPhraseInfo
  15137. {
  15138. CONST_VTBL struct ISpeechPhraseInfoVtbl *lpVtbl;
  15139. };
  15140. #ifdef COBJMACROS
  15141. #define ISpeechPhraseInfo_QueryInterface(This,riid,ppvObject) \
  15142. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15143. #define ISpeechPhraseInfo_AddRef(This) \
  15144. (This)->lpVtbl -> AddRef(This)
  15145. #define ISpeechPhraseInfo_Release(This) \
  15146. (This)->lpVtbl -> Release(This)
  15147. #define ISpeechPhraseInfo_GetTypeInfoCount(This,pctinfo) \
  15148. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15149. #define ISpeechPhraseInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15150. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15151. #define ISpeechPhraseInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15152. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15153. #define ISpeechPhraseInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15154. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15155. #define ISpeechPhraseInfo_get_LanguageId(This,LanguageId) \
  15156. (This)->lpVtbl -> get_LanguageId(This,LanguageId)
  15157. #define ISpeechPhraseInfo_get_GrammarId(This,GrammarId) \
  15158. (This)->lpVtbl -> get_GrammarId(This,GrammarId)
  15159. #define ISpeechPhraseInfo_get_StartTime(This,StartTime) \
  15160. (This)->lpVtbl -> get_StartTime(This,StartTime)
  15161. #define ISpeechPhraseInfo_get_AudioStreamPosition(This,AudioStreamPosition) \
  15162. (This)->lpVtbl -> get_AudioStreamPosition(This,AudioStreamPosition)
  15163. #define ISpeechPhraseInfo_get_AudioSizeBytes(This,pAudioSizeBytes) \
  15164. (This)->lpVtbl -> get_AudioSizeBytes(This,pAudioSizeBytes)
  15165. #define ISpeechPhraseInfo_get_RetainedSizeBytes(This,RetainedSizeBytes) \
  15166. (This)->lpVtbl -> get_RetainedSizeBytes(This,RetainedSizeBytes)
  15167. #define ISpeechPhraseInfo_get_AudioSizeTime(This,AudioSizeTime) \
  15168. (This)->lpVtbl -> get_AudioSizeTime(This,AudioSizeTime)
  15169. #define ISpeechPhraseInfo_get_Rule(This,Rule) \
  15170. (This)->lpVtbl -> get_Rule(This,Rule)
  15171. #define ISpeechPhraseInfo_get_Properties(This,Properties) \
  15172. (This)->lpVtbl -> get_Properties(This,Properties)
  15173. #define ISpeechPhraseInfo_get_Elements(This,Elements) \
  15174. (This)->lpVtbl -> get_Elements(This,Elements)
  15175. #define ISpeechPhraseInfo_get_Replacements(This,Replacements) \
  15176. (This)->lpVtbl -> get_Replacements(This,Replacements)
  15177. #define ISpeechPhraseInfo_get_EngineId(This,EngineIdGuid) \
  15178. (This)->lpVtbl -> get_EngineId(This,EngineIdGuid)
  15179. #define ISpeechPhraseInfo_get_EnginePrivateData(This,PrivateData) \
  15180. (This)->lpVtbl -> get_EnginePrivateData(This,PrivateData)
  15181. #define ISpeechPhraseInfo_SaveToMemory(This,PhraseBlock) \
  15182. (This)->lpVtbl -> SaveToMemory(This,PhraseBlock)
  15183. #define ISpeechPhraseInfo_GetText(This,StartElement,Elements,UseReplacements,Text) \
  15184. (This)->lpVtbl -> GetText(This,StartElement,Elements,UseReplacements,Text)
  15185. #define ISpeechPhraseInfo_GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes) \
  15186. (This)->lpVtbl -> GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes)
  15187. #endif /* COBJMACROS */
  15188. #endif /* C style interface */
  15189. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_LanguageId_Proxy(
  15190. ISpeechPhraseInfo * This,
  15191. /* [retval][out] */ long *LanguageId);
  15192. void __RPC_STUB ISpeechPhraseInfo_get_LanguageId_Stub(
  15193. IRpcStubBuffer *This,
  15194. IRpcChannelBuffer *_pRpcChannelBuffer,
  15195. PRPC_MESSAGE _pRpcMessage,
  15196. DWORD *_pdwStubPhase);
  15197. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_GrammarId_Proxy(
  15198. ISpeechPhraseInfo * This,
  15199. /* [retval][out] */ VARIANT *GrammarId);
  15200. void __RPC_STUB ISpeechPhraseInfo_get_GrammarId_Stub(
  15201. IRpcStubBuffer *This,
  15202. IRpcChannelBuffer *_pRpcChannelBuffer,
  15203. PRPC_MESSAGE _pRpcMessage,
  15204. DWORD *_pdwStubPhase);
  15205. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_StartTime_Proxy(
  15206. ISpeechPhraseInfo * This,
  15207. /* [retval][out] */ VARIANT *StartTime);
  15208. void __RPC_STUB ISpeechPhraseInfo_get_StartTime_Stub(
  15209. IRpcStubBuffer *This,
  15210. IRpcChannelBuffer *_pRpcChannelBuffer,
  15211. PRPC_MESSAGE _pRpcMessage,
  15212. DWORD *_pdwStubPhase);
  15213. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioStreamPosition_Proxy(
  15214. ISpeechPhraseInfo * This,
  15215. /* [retval][out] */ VARIANT *AudioStreamPosition);
  15216. void __RPC_STUB ISpeechPhraseInfo_get_AudioStreamPosition_Stub(
  15217. IRpcStubBuffer *This,
  15218. IRpcChannelBuffer *_pRpcChannelBuffer,
  15219. PRPC_MESSAGE _pRpcMessage,
  15220. DWORD *_pdwStubPhase);
  15221. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioSizeBytes_Proxy(
  15222. ISpeechPhraseInfo * This,
  15223. /* [retval][out] */ long *pAudioSizeBytes);
  15224. void __RPC_STUB ISpeechPhraseInfo_get_AudioSizeBytes_Stub(
  15225. IRpcStubBuffer *This,
  15226. IRpcChannelBuffer *_pRpcChannelBuffer,
  15227. PRPC_MESSAGE _pRpcMessage,
  15228. DWORD *_pdwStubPhase);
  15229. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_RetainedSizeBytes_Proxy(
  15230. ISpeechPhraseInfo * This,
  15231. /* [retval][out] */ long *RetainedSizeBytes);
  15232. void __RPC_STUB ISpeechPhraseInfo_get_RetainedSizeBytes_Stub(
  15233. IRpcStubBuffer *This,
  15234. IRpcChannelBuffer *_pRpcChannelBuffer,
  15235. PRPC_MESSAGE _pRpcMessage,
  15236. DWORD *_pdwStubPhase);
  15237. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioSizeTime_Proxy(
  15238. ISpeechPhraseInfo * This,
  15239. /* [retval][out] */ long *AudioSizeTime);
  15240. void __RPC_STUB ISpeechPhraseInfo_get_AudioSizeTime_Stub(
  15241. IRpcStubBuffer *This,
  15242. IRpcChannelBuffer *_pRpcChannelBuffer,
  15243. PRPC_MESSAGE _pRpcMessage,
  15244. DWORD *_pdwStubPhase);
  15245. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Rule_Proxy(
  15246. ISpeechPhraseInfo * This,
  15247. /* [retval][out] */ ISpeechPhraseRule **Rule);
  15248. void __RPC_STUB ISpeechPhraseInfo_get_Rule_Stub(
  15249. IRpcStubBuffer *This,
  15250. IRpcChannelBuffer *_pRpcChannelBuffer,
  15251. PRPC_MESSAGE _pRpcMessage,
  15252. DWORD *_pdwStubPhase);
  15253. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Properties_Proxy(
  15254. ISpeechPhraseInfo * This,
  15255. /* [retval][out] */ ISpeechPhraseProperties **Properties);
  15256. void __RPC_STUB ISpeechPhraseInfo_get_Properties_Stub(
  15257. IRpcStubBuffer *This,
  15258. IRpcChannelBuffer *_pRpcChannelBuffer,
  15259. PRPC_MESSAGE _pRpcMessage,
  15260. DWORD *_pdwStubPhase);
  15261. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Elements_Proxy(
  15262. ISpeechPhraseInfo * This,
  15263. /* [retval][out] */ ISpeechPhraseElements **Elements);
  15264. void __RPC_STUB ISpeechPhraseInfo_get_Elements_Stub(
  15265. IRpcStubBuffer *This,
  15266. IRpcChannelBuffer *_pRpcChannelBuffer,
  15267. PRPC_MESSAGE _pRpcMessage,
  15268. DWORD *_pdwStubPhase);
  15269. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Replacements_Proxy(
  15270. ISpeechPhraseInfo * This,
  15271. /* [retval][out] */ ISpeechPhraseReplacements **Replacements);
  15272. void __RPC_STUB ISpeechPhraseInfo_get_Replacements_Stub(
  15273. IRpcStubBuffer *This,
  15274. IRpcChannelBuffer *_pRpcChannelBuffer,
  15275. PRPC_MESSAGE _pRpcMessage,
  15276. DWORD *_pdwStubPhase);
  15277. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_EngineId_Proxy(
  15278. ISpeechPhraseInfo * This,
  15279. /* [retval][out] */ BSTR *EngineIdGuid);
  15280. void __RPC_STUB ISpeechPhraseInfo_get_EngineId_Stub(
  15281. IRpcStubBuffer *This,
  15282. IRpcChannelBuffer *_pRpcChannelBuffer,
  15283. PRPC_MESSAGE _pRpcMessage,
  15284. DWORD *_pdwStubPhase);
  15285. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_EnginePrivateData_Proxy(
  15286. ISpeechPhraseInfo * This,
  15287. /* [retval][out] */ VARIANT *PrivateData);
  15288. void __RPC_STUB ISpeechPhraseInfo_get_EnginePrivateData_Stub(
  15289. IRpcStubBuffer *This,
  15290. IRpcChannelBuffer *_pRpcChannelBuffer,
  15291. PRPC_MESSAGE _pRpcMessage,
  15292. DWORD *_pdwStubPhase);
  15293. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_SaveToMemory_Proxy(
  15294. ISpeechPhraseInfo * This,
  15295. /* [retval][out] */ VARIANT *PhraseBlock);
  15296. void __RPC_STUB ISpeechPhraseInfo_SaveToMemory_Stub(
  15297. IRpcStubBuffer *This,
  15298. IRpcChannelBuffer *_pRpcChannelBuffer,
  15299. PRPC_MESSAGE _pRpcMessage,
  15300. DWORD *_pdwStubPhase);
  15301. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_GetText_Proxy(
  15302. ISpeechPhraseInfo * This,
  15303. /* [defaultvalue][in] */ long StartElement,
  15304. /* [defaultvalue][in] */ long Elements,
  15305. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15306. /* [retval][out] */ BSTR *Text);
  15307. void __RPC_STUB ISpeechPhraseInfo_GetText_Stub(
  15308. IRpcStubBuffer *This,
  15309. IRpcChannelBuffer *_pRpcChannelBuffer,
  15310. PRPC_MESSAGE _pRpcMessage,
  15311. DWORD *_pdwStubPhase);
  15312. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_GetDisplayAttributes_Proxy(
  15313. ISpeechPhraseInfo * This,
  15314. /* [defaultvalue][in] */ long StartElement,
  15315. /* [defaultvalue][in] */ long Elements,
  15316. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15317. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15318. void __RPC_STUB ISpeechPhraseInfo_GetDisplayAttributes_Stub(
  15319. IRpcStubBuffer *This,
  15320. IRpcChannelBuffer *_pRpcChannelBuffer,
  15321. PRPC_MESSAGE _pRpcMessage,
  15322. DWORD *_pdwStubPhase);
  15323. #endif /* __ISpeechPhraseInfo_INTERFACE_DEFINED__ */
  15324. #ifndef __ISpeechPhraseElement_INTERFACE_DEFINED__
  15325. #define __ISpeechPhraseElement_INTERFACE_DEFINED__
  15326. /* interface ISpeechPhraseElement */
  15327. /* [unique][helpstring][dual][uuid][object] */
  15328. EXTERN_C const IID IID_ISpeechPhraseElement;
  15329. #if defined(__cplusplus) && !defined(CINTERFACE)
  15330. MIDL_INTERFACE("E6176F96-E373-4801-B223-3B62C068C0B4")
  15331. ISpeechPhraseElement : public IDispatch
  15332. {
  15333. public:
  15334. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioTimeOffset(
  15335. /* [retval][out] */ long *AudioTimeOffset) = 0;
  15336. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  15337. /* [retval][out] */ long *AudioSizeTime) = 0;
  15338. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStreamOffset(
  15339. /* [retval][out] */ long *AudioStreamOffset) = 0;
  15340. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  15341. /* [retval][out] */ long *AudioSizeBytes) = 0;
  15342. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedStreamOffset(
  15343. /* [retval][out] */ long *RetainedStreamOffset) = 0;
  15344. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  15345. /* [retval][out] */ long *RetainedSizeBytes) = 0;
  15346. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayText(
  15347. /* [retval][out] */ BSTR *DisplayText) = 0;
  15348. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LexicalForm(
  15349. /* [retval][out] */ BSTR *LexicalForm) = 0;
  15350. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Pronunciation(
  15351. /* [retval][out] */ VARIANT *Pronunciation) = 0;
  15352. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  15353. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15354. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RequiredConfidence(
  15355. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence) = 0;
  15356. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActualConfidence(
  15357. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence) = 0;
  15358. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  15359. /* [retval][out] */ float *EngineConfidence) = 0;
  15360. };
  15361. #else /* C style interface */
  15362. typedef struct ISpeechPhraseElementVtbl
  15363. {
  15364. BEGIN_INTERFACE
  15365. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15366. ISpeechPhraseElement * This,
  15367. /* [in] */ REFIID riid,
  15368. /* [iid_is][out] */ void **ppvObject);
  15369. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15370. ISpeechPhraseElement * This);
  15371. ULONG ( STDMETHODCALLTYPE *Release )(
  15372. ISpeechPhraseElement * This);
  15373. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15374. ISpeechPhraseElement * This,
  15375. /* [out] */ UINT *pctinfo);
  15376. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15377. ISpeechPhraseElement * This,
  15378. /* [in] */ UINT iTInfo,
  15379. /* [in] */ LCID lcid,
  15380. /* [out] */ ITypeInfo **ppTInfo);
  15381. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15382. ISpeechPhraseElement * This,
  15383. /* [in] */ REFIID riid,
  15384. /* [size_is][in] */ LPOLESTR *rgszNames,
  15385. /* [in] */ UINT cNames,
  15386. /* [in] */ LCID lcid,
  15387. /* [size_is][out] */ DISPID *rgDispId);
  15388. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15389. ISpeechPhraseElement * This,
  15390. /* [in] */ DISPID dispIdMember,
  15391. /* [in] */ REFIID riid,
  15392. /* [in] */ LCID lcid,
  15393. /* [in] */ WORD wFlags,
  15394. /* [out][in] */ DISPPARAMS *pDispParams,
  15395. /* [out] */ VARIANT *pVarResult,
  15396. /* [out] */ EXCEPINFO *pExcepInfo,
  15397. /* [out] */ UINT *puArgErr);
  15398. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioTimeOffset )(
  15399. ISpeechPhraseElement * This,
  15400. /* [retval][out] */ long *AudioTimeOffset);
  15401. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeTime )(
  15402. ISpeechPhraseElement * This,
  15403. /* [retval][out] */ long *AudioSizeTime);
  15404. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStreamOffset )(
  15405. ISpeechPhraseElement * This,
  15406. /* [retval][out] */ long *AudioStreamOffset);
  15407. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeBytes )(
  15408. ISpeechPhraseElement * This,
  15409. /* [retval][out] */ long *AudioSizeBytes);
  15410. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedStreamOffset )(
  15411. ISpeechPhraseElement * This,
  15412. /* [retval][out] */ long *RetainedStreamOffset);
  15413. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedSizeBytes )(
  15414. ISpeechPhraseElement * This,
  15415. /* [retval][out] */ long *RetainedSizeBytes);
  15416. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayText )(
  15417. ISpeechPhraseElement * This,
  15418. /* [retval][out] */ BSTR *DisplayText);
  15419. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LexicalForm )(
  15420. ISpeechPhraseElement * This,
  15421. /* [retval][out] */ BSTR *LexicalForm);
  15422. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pronunciation )(
  15423. ISpeechPhraseElement * This,
  15424. /* [retval][out] */ VARIANT *Pronunciation);
  15425. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayAttributes )(
  15426. ISpeechPhraseElement * This,
  15427. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15428. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequiredConfidence )(
  15429. ISpeechPhraseElement * This,
  15430. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence);
  15431. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActualConfidence )(
  15432. ISpeechPhraseElement * This,
  15433. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  15434. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  15435. ISpeechPhraseElement * This,
  15436. /* [retval][out] */ float *EngineConfidence);
  15437. END_INTERFACE
  15438. } ISpeechPhraseElementVtbl;
  15439. interface ISpeechPhraseElement
  15440. {
  15441. CONST_VTBL struct ISpeechPhraseElementVtbl *lpVtbl;
  15442. };
  15443. #ifdef COBJMACROS
  15444. #define ISpeechPhraseElement_QueryInterface(This,riid,ppvObject) \
  15445. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15446. #define ISpeechPhraseElement_AddRef(This) \
  15447. (This)->lpVtbl -> AddRef(This)
  15448. #define ISpeechPhraseElement_Release(This) \
  15449. (This)->lpVtbl -> Release(This)
  15450. #define ISpeechPhraseElement_GetTypeInfoCount(This,pctinfo) \
  15451. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15452. #define ISpeechPhraseElement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15453. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15454. #define ISpeechPhraseElement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15455. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15456. #define ISpeechPhraseElement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15457. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15458. #define ISpeechPhraseElement_get_AudioTimeOffset(This,AudioTimeOffset) \
  15459. (This)->lpVtbl -> get_AudioTimeOffset(This,AudioTimeOffset)
  15460. #define ISpeechPhraseElement_get_AudioSizeTime(This,AudioSizeTime) \
  15461. (This)->lpVtbl -> get_AudioSizeTime(This,AudioSizeTime)
  15462. #define ISpeechPhraseElement_get_AudioStreamOffset(This,AudioStreamOffset) \
  15463. (This)->lpVtbl -> get_AudioStreamOffset(This,AudioStreamOffset)
  15464. #define ISpeechPhraseElement_get_AudioSizeBytes(This,AudioSizeBytes) \
  15465. (This)->lpVtbl -> get_AudioSizeBytes(This,AudioSizeBytes)
  15466. #define ISpeechPhraseElement_get_RetainedStreamOffset(This,RetainedStreamOffset) \
  15467. (This)->lpVtbl -> get_RetainedStreamOffset(This,RetainedStreamOffset)
  15468. #define ISpeechPhraseElement_get_RetainedSizeBytes(This,RetainedSizeBytes) \
  15469. (This)->lpVtbl -> get_RetainedSizeBytes(This,RetainedSizeBytes)
  15470. #define ISpeechPhraseElement_get_DisplayText(This,DisplayText) \
  15471. (This)->lpVtbl -> get_DisplayText(This,DisplayText)
  15472. #define ISpeechPhraseElement_get_LexicalForm(This,LexicalForm) \
  15473. (This)->lpVtbl -> get_LexicalForm(This,LexicalForm)
  15474. #define ISpeechPhraseElement_get_Pronunciation(This,Pronunciation) \
  15475. (This)->lpVtbl -> get_Pronunciation(This,Pronunciation)
  15476. #define ISpeechPhraseElement_get_DisplayAttributes(This,DisplayAttributes) \
  15477. (This)->lpVtbl -> get_DisplayAttributes(This,DisplayAttributes)
  15478. #define ISpeechPhraseElement_get_RequiredConfidence(This,RequiredConfidence) \
  15479. (This)->lpVtbl -> get_RequiredConfidence(This,RequiredConfidence)
  15480. #define ISpeechPhraseElement_get_ActualConfidence(This,ActualConfidence) \
  15481. (This)->lpVtbl -> get_ActualConfidence(This,ActualConfidence)
  15482. #define ISpeechPhraseElement_get_EngineConfidence(This,EngineConfidence) \
  15483. (This)->lpVtbl -> get_EngineConfidence(This,EngineConfidence)
  15484. #endif /* COBJMACROS */
  15485. #endif /* C style interface */
  15486. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioTimeOffset_Proxy(
  15487. ISpeechPhraseElement * This,
  15488. /* [retval][out] */ long *AudioTimeOffset);
  15489. void __RPC_STUB ISpeechPhraseElement_get_AudioTimeOffset_Stub(
  15490. IRpcStubBuffer *This,
  15491. IRpcChannelBuffer *_pRpcChannelBuffer,
  15492. PRPC_MESSAGE _pRpcMessage,
  15493. DWORD *_pdwStubPhase);
  15494. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioSizeTime_Proxy(
  15495. ISpeechPhraseElement * This,
  15496. /* [retval][out] */ long *AudioSizeTime);
  15497. void __RPC_STUB ISpeechPhraseElement_get_AudioSizeTime_Stub(
  15498. IRpcStubBuffer *This,
  15499. IRpcChannelBuffer *_pRpcChannelBuffer,
  15500. PRPC_MESSAGE _pRpcMessage,
  15501. DWORD *_pdwStubPhase);
  15502. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioStreamOffset_Proxy(
  15503. ISpeechPhraseElement * This,
  15504. /* [retval][out] */ long *AudioStreamOffset);
  15505. void __RPC_STUB ISpeechPhraseElement_get_AudioStreamOffset_Stub(
  15506. IRpcStubBuffer *This,
  15507. IRpcChannelBuffer *_pRpcChannelBuffer,
  15508. PRPC_MESSAGE _pRpcMessage,
  15509. DWORD *_pdwStubPhase);
  15510. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioSizeBytes_Proxy(
  15511. ISpeechPhraseElement * This,
  15512. /* [retval][out] */ long *AudioSizeBytes);
  15513. void __RPC_STUB ISpeechPhraseElement_get_AudioSizeBytes_Stub(
  15514. IRpcStubBuffer *This,
  15515. IRpcChannelBuffer *_pRpcChannelBuffer,
  15516. PRPC_MESSAGE _pRpcMessage,
  15517. DWORD *_pdwStubPhase);
  15518. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RetainedStreamOffset_Proxy(
  15519. ISpeechPhraseElement * This,
  15520. /* [retval][out] */ long *RetainedStreamOffset);
  15521. void __RPC_STUB ISpeechPhraseElement_get_RetainedStreamOffset_Stub(
  15522. IRpcStubBuffer *This,
  15523. IRpcChannelBuffer *_pRpcChannelBuffer,
  15524. PRPC_MESSAGE _pRpcMessage,
  15525. DWORD *_pdwStubPhase);
  15526. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RetainedSizeBytes_Proxy(
  15527. ISpeechPhraseElement * This,
  15528. /* [retval][out] */ long *RetainedSizeBytes);
  15529. void __RPC_STUB ISpeechPhraseElement_get_RetainedSizeBytes_Stub(
  15530. IRpcStubBuffer *This,
  15531. IRpcChannelBuffer *_pRpcChannelBuffer,
  15532. PRPC_MESSAGE _pRpcMessage,
  15533. DWORD *_pdwStubPhase);
  15534. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_DisplayText_Proxy(
  15535. ISpeechPhraseElement * This,
  15536. /* [retval][out] */ BSTR *DisplayText);
  15537. void __RPC_STUB ISpeechPhraseElement_get_DisplayText_Stub(
  15538. IRpcStubBuffer *This,
  15539. IRpcChannelBuffer *_pRpcChannelBuffer,
  15540. PRPC_MESSAGE _pRpcMessage,
  15541. DWORD *_pdwStubPhase);
  15542. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_LexicalForm_Proxy(
  15543. ISpeechPhraseElement * This,
  15544. /* [retval][out] */ BSTR *LexicalForm);
  15545. void __RPC_STUB ISpeechPhraseElement_get_LexicalForm_Stub(
  15546. IRpcStubBuffer *This,
  15547. IRpcChannelBuffer *_pRpcChannelBuffer,
  15548. PRPC_MESSAGE _pRpcMessage,
  15549. DWORD *_pdwStubPhase);
  15550. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_Pronunciation_Proxy(
  15551. ISpeechPhraseElement * This,
  15552. /* [retval][out] */ VARIANT *Pronunciation);
  15553. void __RPC_STUB ISpeechPhraseElement_get_Pronunciation_Stub(
  15554. IRpcStubBuffer *This,
  15555. IRpcChannelBuffer *_pRpcChannelBuffer,
  15556. PRPC_MESSAGE _pRpcMessage,
  15557. DWORD *_pdwStubPhase);
  15558. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_DisplayAttributes_Proxy(
  15559. ISpeechPhraseElement * This,
  15560. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15561. void __RPC_STUB ISpeechPhraseElement_get_DisplayAttributes_Stub(
  15562. IRpcStubBuffer *This,
  15563. IRpcChannelBuffer *_pRpcChannelBuffer,
  15564. PRPC_MESSAGE _pRpcMessage,
  15565. DWORD *_pdwStubPhase);
  15566. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RequiredConfidence_Proxy(
  15567. ISpeechPhraseElement * This,
  15568. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence);
  15569. void __RPC_STUB ISpeechPhraseElement_get_RequiredConfidence_Stub(
  15570. IRpcStubBuffer *This,
  15571. IRpcChannelBuffer *_pRpcChannelBuffer,
  15572. PRPC_MESSAGE _pRpcMessage,
  15573. DWORD *_pdwStubPhase);
  15574. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_ActualConfidence_Proxy(
  15575. ISpeechPhraseElement * This,
  15576. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  15577. void __RPC_STUB ISpeechPhraseElement_get_ActualConfidence_Stub(
  15578. IRpcStubBuffer *This,
  15579. IRpcChannelBuffer *_pRpcChannelBuffer,
  15580. PRPC_MESSAGE _pRpcMessage,
  15581. DWORD *_pdwStubPhase);
  15582. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_EngineConfidence_Proxy(
  15583. ISpeechPhraseElement * This,
  15584. /* [retval][out] */ float *EngineConfidence);
  15585. void __RPC_STUB ISpeechPhraseElement_get_EngineConfidence_Stub(
  15586. IRpcStubBuffer *This,
  15587. IRpcChannelBuffer *_pRpcChannelBuffer,
  15588. PRPC_MESSAGE _pRpcMessage,
  15589. DWORD *_pdwStubPhase);
  15590. #endif /* __ISpeechPhraseElement_INTERFACE_DEFINED__ */
  15591. #ifndef __ISpeechPhraseElements_INTERFACE_DEFINED__
  15592. #define __ISpeechPhraseElements_INTERFACE_DEFINED__
  15593. /* interface ISpeechPhraseElements */
  15594. /* [unique][helpstring][dual][uuid][object] */
  15595. EXTERN_C const IID IID_ISpeechPhraseElements;
  15596. #if defined(__cplusplus) && !defined(CINTERFACE)
  15597. MIDL_INTERFACE("0626B328-3478-467d-A0B3-D0853B93DDA3")
  15598. ISpeechPhraseElements : public IDispatch
  15599. {
  15600. public:
  15601. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  15602. /* [retval][out] */ long *Count) = 0;
  15603. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  15604. /* [in] */ long Index,
  15605. /* [retval][out] */ ISpeechPhraseElement **Element) = 0;
  15606. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  15607. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  15608. };
  15609. #else /* C style interface */
  15610. typedef struct ISpeechPhraseElementsVtbl
  15611. {
  15612. BEGIN_INTERFACE
  15613. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15614. ISpeechPhraseElements * This,
  15615. /* [in] */ REFIID riid,
  15616. /* [iid_is][out] */ void **ppvObject);
  15617. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15618. ISpeechPhraseElements * This);
  15619. ULONG ( STDMETHODCALLTYPE *Release )(
  15620. ISpeechPhraseElements * This);
  15621. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15622. ISpeechPhraseElements * This,
  15623. /* [out] */ UINT *pctinfo);
  15624. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15625. ISpeechPhraseElements * This,
  15626. /* [in] */ UINT iTInfo,
  15627. /* [in] */ LCID lcid,
  15628. /* [out] */ ITypeInfo **ppTInfo);
  15629. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15630. ISpeechPhraseElements * This,
  15631. /* [in] */ REFIID riid,
  15632. /* [size_is][in] */ LPOLESTR *rgszNames,
  15633. /* [in] */ UINT cNames,
  15634. /* [in] */ LCID lcid,
  15635. /* [size_is][out] */ DISPID *rgDispId);
  15636. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15637. ISpeechPhraseElements * This,
  15638. /* [in] */ DISPID dispIdMember,
  15639. /* [in] */ REFIID riid,
  15640. /* [in] */ LCID lcid,
  15641. /* [in] */ WORD wFlags,
  15642. /* [out][in] */ DISPPARAMS *pDispParams,
  15643. /* [out] */ VARIANT *pVarResult,
  15644. /* [out] */ EXCEPINFO *pExcepInfo,
  15645. /* [out] */ UINT *puArgErr);
  15646. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  15647. ISpeechPhraseElements * This,
  15648. /* [retval][out] */ long *Count);
  15649. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  15650. ISpeechPhraseElements * This,
  15651. /* [in] */ long Index,
  15652. /* [retval][out] */ ISpeechPhraseElement **Element);
  15653. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  15654. ISpeechPhraseElements * This,
  15655. /* [retval][out] */ IUnknown **EnumVARIANT);
  15656. END_INTERFACE
  15657. } ISpeechPhraseElementsVtbl;
  15658. interface ISpeechPhraseElements
  15659. {
  15660. CONST_VTBL struct ISpeechPhraseElementsVtbl *lpVtbl;
  15661. };
  15662. #ifdef COBJMACROS
  15663. #define ISpeechPhraseElements_QueryInterface(This,riid,ppvObject) \
  15664. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15665. #define ISpeechPhraseElements_AddRef(This) \
  15666. (This)->lpVtbl -> AddRef(This)
  15667. #define ISpeechPhraseElements_Release(This) \
  15668. (This)->lpVtbl -> Release(This)
  15669. #define ISpeechPhraseElements_GetTypeInfoCount(This,pctinfo) \
  15670. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15671. #define ISpeechPhraseElements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15672. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15673. #define ISpeechPhraseElements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15674. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15675. #define ISpeechPhraseElements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15676. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15677. #define ISpeechPhraseElements_get_Count(This,Count) \
  15678. (This)->lpVtbl -> get_Count(This,Count)
  15679. #define ISpeechPhraseElements_Item(This,Index,Element) \
  15680. (This)->lpVtbl -> Item(This,Index,Element)
  15681. #define ISpeechPhraseElements_get__NewEnum(This,EnumVARIANT) \
  15682. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  15683. #endif /* COBJMACROS */
  15684. #endif /* C style interface */
  15685. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_get_Count_Proxy(
  15686. ISpeechPhraseElements * This,
  15687. /* [retval][out] */ long *Count);
  15688. void __RPC_STUB ISpeechPhraseElements_get_Count_Stub(
  15689. IRpcStubBuffer *This,
  15690. IRpcChannelBuffer *_pRpcChannelBuffer,
  15691. PRPC_MESSAGE _pRpcMessage,
  15692. DWORD *_pdwStubPhase);
  15693. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_Item_Proxy(
  15694. ISpeechPhraseElements * This,
  15695. /* [in] */ long Index,
  15696. /* [retval][out] */ ISpeechPhraseElement **Element);
  15697. void __RPC_STUB ISpeechPhraseElements_Item_Stub(
  15698. IRpcStubBuffer *This,
  15699. IRpcChannelBuffer *_pRpcChannelBuffer,
  15700. PRPC_MESSAGE _pRpcMessage,
  15701. DWORD *_pdwStubPhase);
  15702. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_get__NewEnum_Proxy(
  15703. ISpeechPhraseElements * This,
  15704. /* [retval][out] */ IUnknown **EnumVARIANT);
  15705. void __RPC_STUB ISpeechPhraseElements_get__NewEnum_Stub(
  15706. IRpcStubBuffer *This,
  15707. IRpcChannelBuffer *_pRpcChannelBuffer,
  15708. PRPC_MESSAGE _pRpcMessage,
  15709. DWORD *_pdwStubPhase);
  15710. #endif /* __ISpeechPhraseElements_INTERFACE_DEFINED__ */
  15711. #ifndef __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  15712. #define __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  15713. /* interface ISpeechPhraseReplacement */
  15714. /* [unique][helpstring][dual][uuid][object] */
  15715. EXTERN_C const IID IID_ISpeechPhraseReplacement;
  15716. #if defined(__cplusplus) && !defined(CINTERFACE)
  15717. MIDL_INTERFACE("2890A410-53A7-4fb5-94EC-06D4998E3D02")
  15718. ISpeechPhraseReplacement : public IDispatch
  15719. {
  15720. public:
  15721. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  15722. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15723. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Text(
  15724. /* [retval][out] */ BSTR *Text) = 0;
  15725. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  15726. /* [retval][out] */ long *FirstElement) = 0;
  15727. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  15728. /* [retval][out] */ long *NumberOfElements) = 0;
  15729. };
  15730. #else /* C style interface */
  15731. typedef struct ISpeechPhraseReplacementVtbl
  15732. {
  15733. BEGIN_INTERFACE
  15734. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15735. ISpeechPhraseReplacement * This,
  15736. /* [in] */ REFIID riid,
  15737. /* [iid_is][out] */ void **ppvObject);
  15738. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15739. ISpeechPhraseReplacement * This);
  15740. ULONG ( STDMETHODCALLTYPE *Release )(
  15741. ISpeechPhraseReplacement * This);
  15742. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15743. ISpeechPhraseReplacement * This,
  15744. /* [out] */ UINT *pctinfo);
  15745. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15746. ISpeechPhraseReplacement * This,
  15747. /* [in] */ UINT iTInfo,
  15748. /* [in] */ LCID lcid,
  15749. /* [out] */ ITypeInfo **ppTInfo);
  15750. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15751. ISpeechPhraseReplacement * This,
  15752. /* [in] */ REFIID riid,
  15753. /* [size_is][in] */ LPOLESTR *rgszNames,
  15754. /* [in] */ UINT cNames,
  15755. /* [in] */ LCID lcid,
  15756. /* [size_is][out] */ DISPID *rgDispId);
  15757. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15758. ISpeechPhraseReplacement * This,
  15759. /* [in] */ DISPID dispIdMember,
  15760. /* [in] */ REFIID riid,
  15761. /* [in] */ LCID lcid,
  15762. /* [in] */ WORD wFlags,
  15763. /* [out][in] */ DISPPARAMS *pDispParams,
  15764. /* [out] */ VARIANT *pVarResult,
  15765. /* [out] */ EXCEPINFO *pExcepInfo,
  15766. /* [out] */ UINT *puArgErr);
  15767. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayAttributes )(
  15768. ISpeechPhraseReplacement * This,
  15769. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15770. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )(
  15771. ISpeechPhraseReplacement * This,
  15772. /* [retval][out] */ BSTR *Text);
  15773. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  15774. ISpeechPhraseReplacement * This,
  15775. /* [retval][out] */ long *FirstElement);
  15776. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  15777. ISpeechPhraseReplacement * This,
  15778. /* [retval][out] */ long *NumberOfElements);
  15779. END_INTERFACE
  15780. } ISpeechPhraseReplacementVtbl;
  15781. interface ISpeechPhraseReplacement
  15782. {
  15783. CONST_VTBL struct ISpeechPhraseReplacementVtbl *lpVtbl;
  15784. };
  15785. #ifdef COBJMACROS
  15786. #define ISpeechPhraseReplacement_QueryInterface(This,riid,ppvObject) \
  15787. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15788. #define ISpeechPhraseReplacement_AddRef(This) \
  15789. (This)->lpVtbl -> AddRef(This)
  15790. #define ISpeechPhraseReplacement_Release(This) \
  15791. (This)->lpVtbl -> Release(This)
  15792. #define ISpeechPhraseReplacement_GetTypeInfoCount(This,pctinfo) \
  15793. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15794. #define ISpeechPhraseReplacement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15795. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15796. #define ISpeechPhraseReplacement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15797. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15798. #define ISpeechPhraseReplacement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15799. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15800. #define ISpeechPhraseReplacement_get_DisplayAttributes(This,DisplayAttributes) \
  15801. (This)->lpVtbl -> get_DisplayAttributes(This,DisplayAttributes)
  15802. #define ISpeechPhraseReplacement_get_Text(This,Text) \
  15803. (This)->lpVtbl -> get_Text(This,Text)
  15804. #define ISpeechPhraseReplacement_get_FirstElement(This,FirstElement) \
  15805. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  15806. #define ISpeechPhraseReplacement_get_NumberOfElements(This,NumberOfElements) \
  15807. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  15808. #endif /* COBJMACROS */
  15809. #endif /* C style interface */
  15810. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_DisplayAttributes_Proxy(
  15811. ISpeechPhraseReplacement * This,
  15812. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15813. void __RPC_STUB ISpeechPhraseReplacement_get_DisplayAttributes_Stub(
  15814. IRpcStubBuffer *This,
  15815. IRpcChannelBuffer *_pRpcChannelBuffer,
  15816. PRPC_MESSAGE _pRpcMessage,
  15817. DWORD *_pdwStubPhase);
  15818. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_Text_Proxy(
  15819. ISpeechPhraseReplacement * This,
  15820. /* [retval][out] */ BSTR *Text);
  15821. void __RPC_STUB ISpeechPhraseReplacement_get_Text_Stub(
  15822. IRpcStubBuffer *This,
  15823. IRpcChannelBuffer *_pRpcChannelBuffer,
  15824. PRPC_MESSAGE _pRpcMessage,
  15825. DWORD *_pdwStubPhase);
  15826. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_FirstElement_Proxy(
  15827. ISpeechPhraseReplacement * This,
  15828. /* [retval][out] */ long *FirstElement);
  15829. void __RPC_STUB ISpeechPhraseReplacement_get_FirstElement_Stub(
  15830. IRpcStubBuffer *This,
  15831. IRpcChannelBuffer *_pRpcChannelBuffer,
  15832. PRPC_MESSAGE _pRpcMessage,
  15833. DWORD *_pdwStubPhase);
  15834. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_NumberOfElements_Proxy(
  15835. ISpeechPhraseReplacement * This,
  15836. /* [retval][out] */ long *NumberOfElements);
  15837. void __RPC_STUB ISpeechPhraseReplacement_get_NumberOfElements_Stub(
  15838. IRpcStubBuffer *This,
  15839. IRpcChannelBuffer *_pRpcChannelBuffer,
  15840. PRPC_MESSAGE _pRpcMessage,
  15841. DWORD *_pdwStubPhase);
  15842. #endif /* __ISpeechPhraseReplacement_INTERFACE_DEFINED__ */
  15843. #ifndef __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  15844. #define __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  15845. /* interface ISpeechPhraseReplacements */
  15846. /* [unique][helpstring][dual][uuid][object] */
  15847. EXTERN_C const IID IID_ISpeechPhraseReplacements;
  15848. #if defined(__cplusplus) && !defined(CINTERFACE)
  15849. MIDL_INTERFACE("38BC662F-2257-4525-959E-2069D2596C05")
  15850. ISpeechPhraseReplacements : public IDispatch
  15851. {
  15852. public:
  15853. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  15854. /* [retval][out] */ long *Count) = 0;
  15855. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  15856. /* [in] */ long Index,
  15857. /* [retval][out] */ ISpeechPhraseReplacement **Reps) = 0;
  15858. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  15859. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  15860. };
  15861. #else /* C style interface */
  15862. typedef struct ISpeechPhraseReplacementsVtbl
  15863. {
  15864. BEGIN_INTERFACE
  15865. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15866. ISpeechPhraseReplacements * This,
  15867. /* [in] */ REFIID riid,
  15868. /* [iid_is][out] */ void **ppvObject);
  15869. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15870. ISpeechPhraseReplacements * This);
  15871. ULONG ( STDMETHODCALLTYPE *Release )(
  15872. ISpeechPhraseReplacements * This);
  15873. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15874. ISpeechPhraseReplacements * This,
  15875. /* [out] */ UINT *pctinfo);
  15876. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15877. ISpeechPhraseReplacements * This,
  15878. /* [in] */ UINT iTInfo,
  15879. /* [in] */ LCID lcid,
  15880. /* [out] */ ITypeInfo **ppTInfo);
  15881. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15882. ISpeechPhraseReplacements * This,
  15883. /* [in] */ REFIID riid,
  15884. /* [size_is][in] */ LPOLESTR *rgszNames,
  15885. /* [in] */ UINT cNames,
  15886. /* [in] */ LCID lcid,
  15887. /* [size_is][out] */ DISPID *rgDispId);
  15888. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15889. ISpeechPhraseReplacements * This,
  15890. /* [in] */ DISPID dispIdMember,
  15891. /* [in] */ REFIID riid,
  15892. /* [in] */ LCID lcid,
  15893. /* [in] */ WORD wFlags,
  15894. /* [out][in] */ DISPPARAMS *pDispParams,
  15895. /* [out] */ VARIANT *pVarResult,
  15896. /* [out] */ EXCEPINFO *pExcepInfo,
  15897. /* [out] */ UINT *puArgErr);
  15898. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  15899. ISpeechPhraseReplacements * This,
  15900. /* [retval][out] */ long *Count);
  15901. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  15902. ISpeechPhraseReplacements * This,
  15903. /* [in] */ long Index,
  15904. /* [retval][out] */ ISpeechPhraseReplacement **Reps);
  15905. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  15906. ISpeechPhraseReplacements * This,
  15907. /* [retval][out] */ IUnknown **EnumVARIANT);
  15908. END_INTERFACE
  15909. } ISpeechPhraseReplacementsVtbl;
  15910. interface ISpeechPhraseReplacements
  15911. {
  15912. CONST_VTBL struct ISpeechPhraseReplacementsVtbl *lpVtbl;
  15913. };
  15914. #ifdef COBJMACROS
  15915. #define ISpeechPhraseReplacements_QueryInterface(This,riid,ppvObject) \
  15916. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15917. #define ISpeechPhraseReplacements_AddRef(This) \
  15918. (This)->lpVtbl -> AddRef(This)
  15919. #define ISpeechPhraseReplacements_Release(This) \
  15920. (This)->lpVtbl -> Release(This)
  15921. #define ISpeechPhraseReplacements_GetTypeInfoCount(This,pctinfo) \
  15922. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15923. #define ISpeechPhraseReplacements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15924. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15925. #define ISpeechPhraseReplacements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15926. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15927. #define ISpeechPhraseReplacements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15928. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15929. #define ISpeechPhraseReplacements_get_Count(This,Count) \
  15930. (This)->lpVtbl -> get_Count(This,Count)
  15931. #define ISpeechPhraseReplacements_Item(This,Index,Reps) \
  15932. (This)->lpVtbl -> Item(This,Index,Reps)
  15933. #define ISpeechPhraseReplacements_get__NewEnum(This,EnumVARIANT) \
  15934. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  15935. #endif /* COBJMACROS */
  15936. #endif /* C style interface */
  15937. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_get_Count_Proxy(
  15938. ISpeechPhraseReplacements * This,
  15939. /* [retval][out] */ long *Count);
  15940. void __RPC_STUB ISpeechPhraseReplacements_get_Count_Stub(
  15941. IRpcStubBuffer *This,
  15942. IRpcChannelBuffer *_pRpcChannelBuffer,
  15943. PRPC_MESSAGE _pRpcMessage,
  15944. DWORD *_pdwStubPhase);
  15945. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_Item_Proxy(
  15946. ISpeechPhraseReplacements * This,
  15947. /* [in] */ long Index,
  15948. /* [retval][out] */ ISpeechPhraseReplacement **Reps);
  15949. void __RPC_STUB ISpeechPhraseReplacements_Item_Stub(
  15950. IRpcStubBuffer *This,
  15951. IRpcChannelBuffer *_pRpcChannelBuffer,
  15952. PRPC_MESSAGE _pRpcMessage,
  15953. DWORD *_pdwStubPhase);
  15954. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_get__NewEnum_Proxy(
  15955. ISpeechPhraseReplacements * This,
  15956. /* [retval][out] */ IUnknown **EnumVARIANT);
  15957. void __RPC_STUB ISpeechPhraseReplacements_get__NewEnum_Stub(
  15958. IRpcStubBuffer *This,
  15959. IRpcChannelBuffer *_pRpcChannelBuffer,
  15960. PRPC_MESSAGE _pRpcMessage,
  15961. DWORD *_pdwStubPhase);
  15962. #endif /* __ISpeechPhraseReplacements_INTERFACE_DEFINED__ */
  15963. #ifndef __ISpeechPhraseProperty_INTERFACE_DEFINED__
  15964. #define __ISpeechPhraseProperty_INTERFACE_DEFINED__
  15965. /* interface ISpeechPhraseProperty */
  15966. /* [unique][helpstring][dual][uuid][object] */
  15967. EXTERN_C const IID IID_ISpeechPhraseProperty;
  15968. #if defined(__cplusplus) && !defined(CINTERFACE)
  15969. MIDL_INTERFACE("CE563D48-961E-4732-A2E1-378A42B430BE")
  15970. ISpeechPhraseProperty : public IDispatch
  15971. {
  15972. public:
  15973. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  15974. /* [retval][out] */ BSTR *Name) = 0;
  15975. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  15976. /* [retval][out] */ long *Id) = 0;
  15977. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Value(
  15978. /* [retval][out] */ VARIANT *Value) = 0;
  15979. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  15980. /* [retval][out] */ long *FirstElement) = 0;
  15981. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  15982. /* [retval][out] */ long *NumberOfElements) = 0;
  15983. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  15984. /* [retval][out] */ float *Confidence) = 0;
  15985. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Confidence(
  15986. /* [retval][out] */ SpeechEngineConfidence *Confidence) = 0;
  15987. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Parent(
  15988. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty) = 0;
  15989. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Children(
  15990. /* [retval][out] */ ISpeechPhraseProperties **Children) = 0;
  15991. };
  15992. #else /* C style interface */
  15993. typedef struct ISpeechPhrasePropertyVtbl
  15994. {
  15995. BEGIN_INTERFACE
  15996. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15997. ISpeechPhraseProperty * This,
  15998. /* [in] */ REFIID riid,
  15999. /* [iid_is][out] */ void **ppvObject);
  16000. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16001. ISpeechPhraseProperty * This);
  16002. ULONG ( STDMETHODCALLTYPE *Release )(
  16003. ISpeechPhraseProperty * This);
  16004. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16005. ISpeechPhraseProperty * This,
  16006. /* [out] */ UINT *pctinfo);
  16007. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16008. ISpeechPhraseProperty * This,
  16009. /* [in] */ UINT iTInfo,
  16010. /* [in] */ LCID lcid,
  16011. /* [out] */ ITypeInfo **ppTInfo);
  16012. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16013. ISpeechPhraseProperty * This,
  16014. /* [in] */ REFIID riid,
  16015. /* [size_is][in] */ LPOLESTR *rgszNames,
  16016. /* [in] */ UINT cNames,
  16017. /* [in] */ LCID lcid,
  16018. /* [size_is][out] */ DISPID *rgDispId);
  16019. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16020. ISpeechPhraseProperty * This,
  16021. /* [in] */ DISPID dispIdMember,
  16022. /* [in] */ REFIID riid,
  16023. /* [in] */ LCID lcid,
  16024. /* [in] */ WORD wFlags,
  16025. /* [out][in] */ DISPPARAMS *pDispParams,
  16026. /* [out] */ VARIANT *pVarResult,
  16027. /* [out] */ EXCEPINFO *pExcepInfo,
  16028. /* [out] */ UINT *puArgErr);
  16029. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  16030. ISpeechPhraseProperty * This,
  16031. /* [retval][out] */ BSTR *Name);
  16032. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  16033. ISpeechPhraseProperty * This,
  16034. /* [retval][out] */ long *Id);
  16035. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )(
  16036. ISpeechPhraseProperty * This,
  16037. /* [retval][out] */ VARIANT *Value);
  16038. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  16039. ISpeechPhraseProperty * This,
  16040. /* [retval][out] */ long *FirstElement);
  16041. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  16042. ISpeechPhraseProperty * This,
  16043. /* [retval][out] */ long *NumberOfElements);
  16044. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  16045. ISpeechPhraseProperty * This,
  16046. /* [retval][out] */ float *Confidence);
  16047. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Confidence )(
  16048. ISpeechPhraseProperty * This,
  16049. /* [retval][out] */ SpeechEngineConfidence *Confidence);
  16050. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )(
  16051. ISpeechPhraseProperty * This,
  16052. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty);
  16053. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Children )(
  16054. ISpeechPhraseProperty * This,
  16055. /* [retval][out] */ ISpeechPhraseProperties **Children);
  16056. END_INTERFACE
  16057. } ISpeechPhrasePropertyVtbl;
  16058. interface ISpeechPhraseProperty
  16059. {
  16060. CONST_VTBL struct ISpeechPhrasePropertyVtbl *lpVtbl;
  16061. };
  16062. #ifdef COBJMACROS
  16063. #define ISpeechPhraseProperty_QueryInterface(This,riid,ppvObject) \
  16064. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16065. #define ISpeechPhraseProperty_AddRef(This) \
  16066. (This)->lpVtbl -> AddRef(This)
  16067. #define ISpeechPhraseProperty_Release(This) \
  16068. (This)->lpVtbl -> Release(This)
  16069. #define ISpeechPhraseProperty_GetTypeInfoCount(This,pctinfo) \
  16070. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16071. #define ISpeechPhraseProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16072. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16073. #define ISpeechPhraseProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16074. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16075. #define ISpeechPhraseProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16076. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16077. #define ISpeechPhraseProperty_get_Name(This,Name) \
  16078. (This)->lpVtbl -> get_Name(This,Name)
  16079. #define ISpeechPhraseProperty_get_Id(This,Id) \
  16080. (This)->lpVtbl -> get_Id(This,Id)
  16081. #define ISpeechPhraseProperty_get_Value(This,Value) \
  16082. (This)->lpVtbl -> get_Value(This,Value)
  16083. #define ISpeechPhraseProperty_get_FirstElement(This,FirstElement) \
  16084. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  16085. #define ISpeechPhraseProperty_get_NumberOfElements(This,NumberOfElements) \
  16086. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  16087. #define ISpeechPhraseProperty_get_EngineConfidence(This,Confidence) \
  16088. (This)->lpVtbl -> get_EngineConfidence(This,Confidence)
  16089. #define ISpeechPhraseProperty_get_Confidence(This,Confidence) \
  16090. (This)->lpVtbl -> get_Confidence(This,Confidence)
  16091. #define ISpeechPhraseProperty_get_Parent(This,ParentProperty) \
  16092. (This)->lpVtbl -> get_Parent(This,ParentProperty)
  16093. #define ISpeechPhraseProperty_get_Children(This,Children) \
  16094. (This)->lpVtbl -> get_Children(This,Children)
  16095. #endif /* COBJMACROS */
  16096. #endif /* C style interface */
  16097. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Name_Proxy(
  16098. ISpeechPhraseProperty * This,
  16099. /* [retval][out] */ BSTR *Name);
  16100. void __RPC_STUB ISpeechPhraseProperty_get_Name_Stub(
  16101. IRpcStubBuffer *This,
  16102. IRpcChannelBuffer *_pRpcChannelBuffer,
  16103. PRPC_MESSAGE _pRpcMessage,
  16104. DWORD *_pdwStubPhase);
  16105. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Id_Proxy(
  16106. ISpeechPhraseProperty * This,
  16107. /* [retval][out] */ long *Id);
  16108. void __RPC_STUB ISpeechPhraseProperty_get_Id_Stub(
  16109. IRpcStubBuffer *This,
  16110. IRpcChannelBuffer *_pRpcChannelBuffer,
  16111. PRPC_MESSAGE _pRpcMessage,
  16112. DWORD *_pdwStubPhase);
  16113. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Value_Proxy(
  16114. ISpeechPhraseProperty * This,
  16115. /* [retval][out] */ VARIANT *Value);
  16116. void __RPC_STUB ISpeechPhraseProperty_get_Value_Stub(
  16117. IRpcStubBuffer *This,
  16118. IRpcChannelBuffer *_pRpcChannelBuffer,
  16119. PRPC_MESSAGE _pRpcMessage,
  16120. DWORD *_pdwStubPhase);
  16121. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_FirstElement_Proxy(
  16122. ISpeechPhraseProperty * This,
  16123. /* [retval][out] */ long *FirstElement);
  16124. void __RPC_STUB ISpeechPhraseProperty_get_FirstElement_Stub(
  16125. IRpcStubBuffer *This,
  16126. IRpcChannelBuffer *_pRpcChannelBuffer,
  16127. PRPC_MESSAGE _pRpcMessage,
  16128. DWORD *_pdwStubPhase);
  16129. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_NumberOfElements_Proxy(
  16130. ISpeechPhraseProperty * This,
  16131. /* [retval][out] */ long *NumberOfElements);
  16132. void __RPC_STUB ISpeechPhraseProperty_get_NumberOfElements_Stub(
  16133. IRpcStubBuffer *This,
  16134. IRpcChannelBuffer *_pRpcChannelBuffer,
  16135. PRPC_MESSAGE _pRpcMessage,
  16136. DWORD *_pdwStubPhase);
  16137. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_EngineConfidence_Proxy(
  16138. ISpeechPhraseProperty * This,
  16139. /* [retval][out] */ float *Confidence);
  16140. void __RPC_STUB ISpeechPhraseProperty_get_EngineConfidence_Stub(
  16141. IRpcStubBuffer *This,
  16142. IRpcChannelBuffer *_pRpcChannelBuffer,
  16143. PRPC_MESSAGE _pRpcMessage,
  16144. DWORD *_pdwStubPhase);
  16145. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Confidence_Proxy(
  16146. ISpeechPhraseProperty * This,
  16147. /* [retval][out] */ SpeechEngineConfidence *Confidence);
  16148. void __RPC_STUB ISpeechPhraseProperty_get_Confidence_Stub(
  16149. IRpcStubBuffer *This,
  16150. IRpcChannelBuffer *_pRpcChannelBuffer,
  16151. PRPC_MESSAGE _pRpcMessage,
  16152. DWORD *_pdwStubPhase);
  16153. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Parent_Proxy(
  16154. ISpeechPhraseProperty * This,
  16155. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty);
  16156. void __RPC_STUB ISpeechPhraseProperty_get_Parent_Stub(
  16157. IRpcStubBuffer *This,
  16158. IRpcChannelBuffer *_pRpcChannelBuffer,
  16159. PRPC_MESSAGE _pRpcMessage,
  16160. DWORD *_pdwStubPhase);
  16161. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Children_Proxy(
  16162. ISpeechPhraseProperty * This,
  16163. /* [retval][out] */ ISpeechPhraseProperties **Children);
  16164. void __RPC_STUB ISpeechPhraseProperty_get_Children_Stub(
  16165. IRpcStubBuffer *This,
  16166. IRpcChannelBuffer *_pRpcChannelBuffer,
  16167. PRPC_MESSAGE _pRpcMessage,
  16168. DWORD *_pdwStubPhase);
  16169. #endif /* __ISpeechPhraseProperty_INTERFACE_DEFINED__ */
  16170. #ifndef __ISpeechPhraseProperties_INTERFACE_DEFINED__
  16171. #define __ISpeechPhraseProperties_INTERFACE_DEFINED__
  16172. /* interface ISpeechPhraseProperties */
  16173. /* [unique][helpstring][dual][uuid][object] */
  16174. EXTERN_C const IID IID_ISpeechPhraseProperties;
  16175. #if defined(__cplusplus) && !defined(CINTERFACE)
  16176. MIDL_INTERFACE("08166B47-102E-4b23-A599-BDB98DBFD1F4")
  16177. ISpeechPhraseProperties : public IDispatch
  16178. {
  16179. public:
  16180. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  16181. /* [retval][out] */ long *Count) = 0;
  16182. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  16183. /* [in] */ long Index,
  16184. /* [retval][out] */ ISpeechPhraseProperty **Property) = 0;
  16185. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16186. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16187. };
  16188. #else /* C style interface */
  16189. typedef struct ISpeechPhrasePropertiesVtbl
  16190. {
  16191. BEGIN_INTERFACE
  16192. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16193. ISpeechPhraseProperties * This,
  16194. /* [in] */ REFIID riid,
  16195. /* [iid_is][out] */ void **ppvObject);
  16196. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16197. ISpeechPhraseProperties * This);
  16198. ULONG ( STDMETHODCALLTYPE *Release )(
  16199. ISpeechPhraseProperties * This);
  16200. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16201. ISpeechPhraseProperties * This,
  16202. /* [out] */ UINT *pctinfo);
  16203. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16204. ISpeechPhraseProperties * This,
  16205. /* [in] */ UINT iTInfo,
  16206. /* [in] */ LCID lcid,
  16207. /* [out] */ ITypeInfo **ppTInfo);
  16208. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16209. ISpeechPhraseProperties * This,
  16210. /* [in] */ REFIID riid,
  16211. /* [size_is][in] */ LPOLESTR *rgszNames,
  16212. /* [in] */ UINT cNames,
  16213. /* [in] */ LCID lcid,
  16214. /* [size_is][out] */ DISPID *rgDispId);
  16215. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16216. ISpeechPhraseProperties * This,
  16217. /* [in] */ DISPID dispIdMember,
  16218. /* [in] */ REFIID riid,
  16219. /* [in] */ LCID lcid,
  16220. /* [in] */ WORD wFlags,
  16221. /* [out][in] */ DISPPARAMS *pDispParams,
  16222. /* [out] */ VARIANT *pVarResult,
  16223. /* [out] */ EXCEPINFO *pExcepInfo,
  16224. /* [out] */ UINT *puArgErr);
  16225. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16226. ISpeechPhraseProperties * This,
  16227. /* [retval][out] */ long *Count);
  16228. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16229. ISpeechPhraseProperties * This,
  16230. /* [in] */ long Index,
  16231. /* [retval][out] */ ISpeechPhraseProperty **Property);
  16232. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16233. ISpeechPhraseProperties * This,
  16234. /* [retval][out] */ IUnknown **EnumVARIANT);
  16235. END_INTERFACE
  16236. } ISpeechPhrasePropertiesVtbl;
  16237. interface ISpeechPhraseProperties
  16238. {
  16239. CONST_VTBL struct ISpeechPhrasePropertiesVtbl *lpVtbl;
  16240. };
  16241. #ifdef COBJMACROS
  16242. #define ISpeechPhraseProperties_QueryInterface(This,riid,ppvObject) \
  16243. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16244. #define ISpeechPhraseProperties_AddRef(This) \
  16245. (This)->lpVtbl -> AddRef(This)
  16246. #define ISpeechPhraseProperties_Release(This) \
  16247. (This)->lpVtbl -> Release(This)
  16248. #define ISpeechPhraseProperties_GetTypeInfoCount(This,pctinfo) \
  16249. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16250. #define ISpeechPhraseProperties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16251. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16252. #define ISpeechPhraseProperties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16253. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16254. #define ISpeechPhraseProperties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16255. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16256. #define ISpeechPhraseProperties_get_Count(This,Count) \
  16257. (This)->lpVtbl -> get_Count(This,Count)
  16258. #define ISpeechPhraseProperties_Item(This,Index,Property) \
  16259. (This)->lpVtbl -> Item(This,Index,Property)
  16260. #define ISpeechPhraseProperties_get__NewEnum(This,EnumVARIANT) \
  16261. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16262. #endif /* COBJMACROS */
  16263. #endif /* C style interface */
  16264. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_get_Count_Proxy(
  16265. ISpeechPhraseProperties * This,
  16266. /* [retval][out] */ long *Count);
  16267. void __RPC_STUB ISpeechPhraseProperties_get_Count_Stub(
  16268. IRpcStubBuffer *This,
  16269. IRpcChannelBuffer *_pRpcChannelBuffer,
  16270. PRPC_MESSAGE _pRpcMessage,
  16271. DWORD *_pdwStubPhase);
  16272. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_Item_Proxy(
  16273. ISpeechPhraseProperties * This,
  16274. /* [in] */ long Index,
  16275. /* [retval][out] */ ISpeechPhraseProperty **Property);
  16276. void __RPC_STUB ISpeechPhraseProperties_Item_Stub(
  16277. IRpcStubBuffer *This,
  16278. IRpcChannelBuffer *_pRpcChannelBuffer,
  16279. PRPC_MESSAGE _pRpcMessage,
  16280. DWORD *_pdwStubPhase);
  16281. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_get__NewEnum_Proxy(
  16282. ISpeechPhraseProperties * This,
  16283. /* [retval][out] */ IUnknown **EnumVARIANT);
  16284. void __RPC_STUB ISpeechPhraseProperties_get__NewEnum_Stub(
  16285. IRpcStubBuffer *This,
  16286. IRpcChannelBuffer *_pRpcChannelBuffer,
  16287. PRPC_MESSAGE _pRpcMessage,
  16288. DWORD *_pdwStubPhase);
  16289. #endif /* __ISpeechPhraseProperties_INTERFACE_DEFINED__ */
  16290. #ifndef __ISpeechPhraseRule_INTERFACE_DEFINED__
  16291. #define __ISpeechPhraseRule_INTERFACE_DEFINED__
  16292. /* interface ISpeechPhraseRule */
  16293. /* [unique][helpstring][dual][uuid][object] */
  16294. EXTERN_C const IID IID_ISpeechPhraseRule;
  16295. #if defined(__cplusplus) && !defined(CINTERFACE)
  16296. MIDL_INTERFACE("A7BFE112-A4A0-48d9-B602-C313843F6964")
  16297. ISpeechPhraseRule : public IDispatch
  16298. {
  16299. public:
  16300. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  16301. /* [retval][out] */ BSTR *Name) = 0;
  16302. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  16303. /* [retval][out] */ long *Id) = 0;
  16304. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  16305. /* [retval][out] */ long *FirstElement) = 0;
  16306. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  16307. /* [retval][out] */ long *NumberOfElements) = 0;
  16308. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Parent(
  16309. /* [retval][out] */ ISpeechPhraseRule **Parent) = 0;
  16310. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Children(
  16311. /* [retval][out] */ ISpeechPhraseRules **Children) = 0;
  16312. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Confidence(
  16313. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence) = 0;
  16314. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  16315. /* [retval][out] */ float *EngineConfidence) = 0;
  16316. };
  16317. #else /* C style interface */
  16318. typedef struct ISpeechPhraseRuleVtbl
  16319. {
  16320. BEGIN_INTERFACE
  16321. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16322. ISpeechPhraseRule * This,
  16323. /* [in] */ REFIID riid,
  16324. /* [iid_is][out] */ void **ppvObject);
  16325. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16326. ISpeechPhraseRule * This);
  16327. ULONG ( STDMETHODCALLTYPE *Release )(
  16328. ISpeechPhraseRule * This);
  16329. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16330. ISpeechPhraseRule * This,
  16331. /* [out] */ UINT *pctinfo);
  16332. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16333. ISpeechPhraseRule * This,
  16334. /* [in] */ UINT iTInfo,
  16335. /* [in] */ LCID lcid,
  16336. /* [out] */ ITypeInfo **ppTInfo);
  16337. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16338. ISpeechPhraseRule * This,
  16339. /* [in] */ REFIID riid,
  16340. /* [size_is][in] */ LPOLESTR *rgszNames,
  16341. /* [in] */ UINT cNames,
  16342. /* [in] */ LCID lcid,
  16343. /* [size_is][out] */ DISPID *rgDispId);
  16344. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16345. ISpeechPhraseRule * This,
  16346. /* [in] */ DISPID dispIdMember,
  16347. /* [in] */ REFIID riid,
  16348. /* [in] */ LCID lcid,
  16349. /* [in] */ WORD wFlags,
  16350. /* [out][in] */ DISPPARAMS *pDispParams,
  16351. /* [out] */ VARIANT *pVarResult,
  16352. /* [out] */ EXCEPINFO *pExcepInfo,
  16353. /* [out] */ UINT *puArgErr);
  16354. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  16355. ISpeechPhraseRule * This,
  16356. /* [retval][out] */ BSTR *Name);
  16357. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  16358. ISpeechPhraseRule * This,
  16359. /* [retval][out] */ long *Id);
  16360. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  16361. ISpeechPhraseRule * This,
  16362. /* [retval][out] */ long *FirstElement);
  16363. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  16364. ISpeechPhraseRule * This,
  16365. /* [retval][out] */ long *NumberOfElements);
  16366. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )(
  16367. ISpeechPhraseRule * This,
  16368. /* [retval][out] */ ISpeechPhraseRule **Parent);
  16369. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Children )(
  16370. ISpeechPhraseRule * This,
  16371. /* [retval][out] */ ISpeechPhraseRules **Children);
  16372. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Confidence )(
  16373. ISpeechPhraseRule * This,
  16374. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  16375. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  16376. ISpeechPhraseRule * This,
  16377. /* [retval][out] */ float *EngineConfidence);
  16378. END_INTERFACE
  16379. } ISpeechPhraseRuleVtbl;
  16380. interface ISpeechPhraseRule
  16381. {
  16382. CONST_VTBL struct ISpeechPhraseRuleVtbl *lpVtbl;
  16383. };
  16384. #ifdef COBJMACROS
  16385. #define ISpeechPhraseRule_QueryInterface(This,riid,ppvObject) \
  16386. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16387. #define ISpeechPhraseRule_AddRef(This) \
  16388. (This)->lpVtbl -> AddRef(This)
  16389. #define ISpeechPhraseRule_Release(This) \
  16390. (This)->lpVtbl -> Release(This)
  16391. #define ISpeechPhraseRule_GetTypeInfoCount(This,pctinfo) \
  16392. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16393. #define ISpeechPhraseRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16394. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16395. #define ISpeechPhraseRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16396. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16397. #define ISpeechPhraseRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16398. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16399. #define ISpeechPhraseRule_get_Name(This,Name) \
  16400. (This)->lpVtbl -> get_Name(This,Name)
  16401. #define ISpeechPhraseRule_get_Id(This,Id) \
  16402. (This)->lpVtbl -> get_Id(This,Id)
  16403. #define ISpeechPhraseRule_get_FirstElement(This,FirstElement) \
  16404. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  16405. #define ISpeechPhraseRule_get_NumberOfElements(This,NumberOfElements) \
  16406. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  16407. #define ISpeechPhraseRule_get_Parent(This,Parent) \
  16408. (This)->lpVtbl -> get_Parent(This,Parent)
  16409. #define ISpeechPhraseRule_get_Children(This,Children) \
  16410. (This)->lpVtbl -> get_Children(This,Children)
  16411. #define ISpeechPhraseRule_get_Confidence(This,ActualConfidence) \
  16412. (This)->lpVtbl -> get_Confidence(This,ActualConfidence)
  16413. #define ISpeechPhraseRule_get_EngineConfidence(This,EngineConfidence) \
  16414. (This)->lpVtbl -> get_EngineConfidence(This,EngineConfidence)
  16415. #endif /* COBJMACROS */
  16416. #endif /* C style interface */
  16417. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Name_Proxy(
  16418. ISpeechPhraseRule * This,
  16419. /* [retval][out] */ BSTR *Name);
  16420. void __RPC_STUB ISpeechPhraseRule_get_Name_Stub(
  16421. IRpcStubBuffer *This,
  16422. IRpcChannelBuffer *_pRpcChannelBuffer,
  16423. PRPC_MESSAGE _pRpcMessage,
  16424. DWORD *_pdwStubPhase);
  16425. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Id_Proxy(
  16426. ISpeechPhraseRule * This,
  16427. /* [retval][out] */ long *Id);
  16428. void __RPC_STUB ISpeechPhraseRule_get_Id_Stub(
  16429. IRpcStubBuffer *This,
  16430. IRpcChannelBuffer *_pRpcChannelBuffer,
  16431. PRPC_MESSAGE _pRpcMessage,
  16432. DWORD *_pdwStubPhase);
  16433. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_FirstElement_Proxy(
  16434. ISpeechPhraseRule * This,
  16435. /* [retval][out] */ long *FirstElement);
  16436. void __RPC_STUB ISpeechPhraseRule_get_FirstElement_Stub(
  16437. IRpcStubBuffer *This,
  16438. IRpcChannelBuffer *_pRpcChannelBuffer,
  16439. PRPC_MESSAGE _pRpcMessage,
  16440. DWORD *_pdwStubPhase);
  16441. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_NumberOfElements_Proxy(
  16442. ISpeechPhraseRule * This,
  16443. /* [retval][out] */ long *NumberOfElements);
  16444. void __RPC_STUB ISpeechPhraseRule_get_NumberOfElements_Stub(
  16445. IRpcStubBuffer *This,
  16446. IRpcChannelBuffer *_pRpcChannelBuffer,
  16447. PRPC_MESSAGE _pRpcMessage,
  16448. DWORD *_pdwStubPhase);
  16449. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Parent_Proxy(
  16450. ISpeechPhraseRule * This,
  16451. /* [retval][out] */ ISpeechPhraseRule **Parent);
  16452. void __RPC_STUB ISpeechPhraseRule_get_Parent_Stub(
  16453. IRpcStubBuffer *This,
  16454. IRpcChannelBuffer *_pRpcChannelBuffer,
  16455. PRPC_MESSAGE _pRpcMessage,
  16456. DWORD *_pdwStubPhase);
  16457. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Children_Proxy(
  16458. ISpeechPhraseRule * This,
  16459. /* [retval][out] */ ISpeechPhraseRules **Children);
  16460. void __RPC_STUB ISpeechPhraseRule_get_Children_Stub(
  16461. IRpcStubBuffer *This,
  16462. IRpcChannelBuffer *_pRpcChannelBuffer,
  16463. PRPC_MESSAGE _pRpcMessage,
  16464. DWORD *_pdwStubPhase);
  16465. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Confidence_Proxy(
  16466. ISpeechPhraseRule * This,
  16467. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  16468. void __RPC_STUB ISpeechPhraseRule_get_Confidence_Stub(
  16469. IRpcStubBuffer *This,
  16470. IRpcChannelBuffer *_pRpcChannelBuffer,
  16471. PRPC_MESSAGE _pRpcMessage,
  16472. DWORD *_pdwStubPhase);
  16473. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_EngineConfidence_Proxy(
  16474. ISpeechPhraseRule * This,
  16475. /* [retval][out] */ float *EngineConfidence);
  16476. void __RPC_STUB ISpeechPhraseRule_get_EngineConfidence_Stub(
  16477. IRpcStubBuffer *This,
  16478. IRpcChannelBuffer *_pRpcChannelBuffer,
  16479. PRPC_MESSAGE _pRpcMessage,
  16480. DWORD *_pdwStubPhase);
  16481. #endif /* __ISpeechPhraseRule_INTERFACE_DEFINED__ */
  16482. #ifndef __ISpeechPhraseRules_INTERFACE_DEFINED__
  16483. #define __ISpeechPhraseRules_INTERFACE_DEFINED__
  16484. /* interface ISpeechPhraseRules */
  16485. /* [unique][helpstring][dual][uuid][object] */
  16486. EXTERN_C const IID IID_ISpeechPhraseRules;
  16487. #if defined(__cplusplus) && !defined(CINTERFACE)
  16488. MIDL_INTERFACE("9047D593-01DD-4b72-81A3-E4A0CA69F407")
  16489. ISpeechPhraseRules : public IDispatch
  16490. {
  16491. public:
  16492. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  16493. /* [retval][out] */ long *Count) = 0;
  16494. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  16495. /* [in] */ long Index,
  16496. /* [retval][out] */ ISpeechPhraseRule **Rule) = 0;
  16497. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16498. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16499. };
  16500. #else /* C style interface */
  16501. typedef struct ISpeechPhraseRulesVtbl
  16502. {
  16503. BEGIN_INTERFACE
  16504. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16505. ISpeechPhraseRules * This,
  16506. /* [in] */ REFIID riid,
  16507. /* [iid_is][out] */ void **ppvObject);
  16508. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16509. ISpeechPhraseRules * This);
  16510. ULONG ( STDMETHODCALLTYPE *Release )(
  16511. ISpeechPhraseRules * This);
  16512. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16513. ISpeechPhraseRules * This,
  16514. /* [out] */ UINT *pctinfo);
  16515. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16516. ISpeechPhraseRules * This,
  16517. /* [in] */ UINT iTInfo,
  16518. /* [in] */ LCID lcid,
  16519. /* [out] */ ITypeInfo **ppTInfo);
  16520. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16521. ISpeechPhraseRules * This,
  16522. /* [in] */ REFIID riid,
  16523. /* [size_is][in] */ LPOLESTR *rgszNames,
  16524. /* [in] */ UINT cNames,
  16525. /* [in] */ LCID lcid,
  16526. /* [size_is][out] */ DISPID *rgDispId);
  16527. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16528. ISpeechPhraseRules * This,
  16529. /* [in] */ DISPID dispIdMember,
  16530. /* [in] */ REFIID riid,
  16531. /* [in] */ LCID lcid,
  16532. /* [in] */ WORD wFlags,
  16533. /* [out][in] */ DISPPARAMS *pDispParams,
  16534. /* [out] */ VARIANT *pVarResult,
  16535. /* [out] */ EXCEPINFO *pExcepInfo,
  16536. /* [out] */ UINT *puArgErr);
  16537. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16538. ISpeechPhraseRules * This,
  16539. /* [retval][out] */ long *Count);
  16540. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16541. ISpeechPhraseRules * This,
  16542. /* [in] */ long Index,
  16543. /* [retval][out] */ ISpeechPhraseRule **Rule);
  16544. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16545. ISpeechPhraseRules * This,
  16546. /* [retval][out] */ IUnknown **EnumVARIANT);
  16547. END_INTERFACE
  16548. } ISpeechPhraseRulesVtbl;
  16549. interface ISpeechPhraseRules
  16550. {
  16551. CONST_VTBL struct ISpeechPhraseRulesVtbl *lpVtbl;
  16552. };
  16553. #ifdef COBJMACROS
  16554. #define ISpeechPhraseRules_QueryInterface(This,riid,ppvObject) \
  16555. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16556. #define ISpeechPhraseRules_AddRef(This) \
  16557. (This)->lpVtbl -> AddRef(This)
  16558. #define ISpeechPhraseRules_Release(This) \
  16559. (This)->lpVtbl -> Release(This)
  16560. #define ISpeechPhraseRules_GetTypeInfoCount(This,pctinfo) \
  16561. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16562. #define ISpeechPhraseRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16563. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16564. #define ISpeechPhraseRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16565. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16566. #define ISpeechPhraseRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16567. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16568. #define ISpeechPhraseRules_get_Count(This,Count) \
  16569. (This)->lpVtbl -> get_Count(This,Count)
  16570. #define ISpeechPhraseRules_Item(This,Index,Rule) \
  16571. (This)->lpVtbl -> Item(This,Index,Rule)
  16572. #define ISpeechPhraseRules_get__NewEnum(This,EnumVARIANT) \
  16573. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16574. #endif /* COBJMACROS */
  16575. #endif /* C style interface */
  16576. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_get_Count_Proxy(
  16577. ISpeechPhraseRules * This,
  16578. /* [retval][out] */ long *Count);
  16579. void __RPC_STUB ISpeechPhraseRules_get_Count_Stub(
  16580. IRpcStubBuffer *This,
  16581. IRpcChannelBuffer *_pRpcChannelBuffer,
  16582. PRPC_MESSAGE _pRpcMessage,
  16583. DWORD *_pdwStubPhase);
  16584. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_Item_Proxy(
  16585. ISpeechPhraseRules * This,
  16586. /* [in] */ long Index,
  16587. /* [retval][out] */ ISpeechPhraseRule **Rule);
  16588. void __RPC_STUB ISpeechPhraseRules_Item_Stub(
  16589. IRpcStubBuffer *This,
  16590. IRpcChannelBuffer *_pRpcChannelBuffer,
  16591. PRPC_MESSAGE _pRpcMessage,
  16592. DWORD *_pdwStubPhase);
  16593. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_get__NewEnum_Proxy(
  16594. ISpeechPhraseRules * This,
  16595. /* [retval][out] */ IUnknown **EnumVARIANT);
  16596. void __RPC_STUB ISpeechPhraseRules_get__NewEnum_Stub(
  16597. IRpcStubBuffer *This,
  16598. IRpcChannelBuffer *_pRpcChannelBuffer,
  16599. PRPC_MESSAGE _pRpcMessage,
  16600. DWORD *_pdwStubPhase);
  16601. #endif /* __ISpeechPhraseRules_INTERFACE_DEFINED__ */
  16602. #ifndef __ISpeechLexicon_INTERFACE_DEFINED__
  16603. #define __ISpeechLexicon_INTERFACE_DEFINED__
  16604. /* interface ISpeechLexicon */
  16605. /* [unique][helpstring][dual][uuid][object] */
  16606. EXTERN_C const IID IID_ISpeechLexicon;
  16607. #if defined(__cplusplus) && !defined(CINTERFACE)
  16608. MIDL_INTERFACE("3DA7627A-C7AE-4b23-8708-638C50362C25")
  16609. ISpeechLexicon : public IDispatch
  16610. {
  16611. public:
  16612. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_GenerationId(
  16613. /* [retval][out] */ long *GenerationId) = 0;
  16614. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetWords(
  16615. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16616. /* [defaultvalue][out] */ long *GenerationID,
  16617. /* [retval][out] */ ISpeechLexiconWords **Words) = 0;
  16618. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddPronunciation(
  16619. /* [in] */ BSTR bstrWord,
  16620. /* [in] */ SpeechLanguageId LangId,
  16621. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16622. /* [defaultvalue][in] */ BSTR bstrPronunciation = L"") = 0;
  16623. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE AddPronunciationByPhoneIds(
  16624. /* [in] */ BSTR bstrWord,
  16625. /* [in] */ SpeechLanguageId LangId,
  16626. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16627. /* [defaultvalue][in] */ VARIANT *PhoneIds = 0) = 0;
  16628. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE RemovePronunciation(
  16629. /* [in] */ BSTR bstrWord,
  16630. /* [in] */ SpeechLanguageId LangId,
  16631. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16632. /* [defaultvalue][in] */ BSTR bstrPronunciation = L"") = 0;
  16633. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE RemovePronunciationByPhoneIds(
  16634. /* [in] */ BSTR bstrWord,
  16635. /* [in] */ SpeechLanguageId LangId,
  16636. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16637. /* [defaultvalue][in] */ VARIANT *PhoneIds = 0) = 0;
  16638. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetPronunciations(
  16639. /* [in] */ BSTR bstrWord,
  16640. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16641. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16642. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations) = 0;
  16643. virtual /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE GetGenerationChange(
  16644. /* [out][in] */ long *GenerationID,
  16645. /* [retval][out] */ ISpeechLexiconWords **ppWords) = 0;
  16646. };
  16647. #else /* C style interface */
  16648. typedef struct ISpeechLexiconVtbl
  16649. {
  16650. BEGIN_INTERFACE
  16651. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16652. ISpeechLexicon * This,
  16653. /* [in] */ REFIID riid,
  16654. /* [iid_is][out] */ void **ppvObject);
  16655. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16656. ISpeechLexicon * This);
  16657. ULONG ( STDMETHODCALLTYPE *Release )(
  16658. ISpeechLexicon * This);
  16659. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16660. ISpeechLexicon * This,
  16661. /* [out] */ UINT *pctinfo);
  16662. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16663. ISpeechLexicon * This,
  16664. /* [in] */ UINT iTInfo,
  16665. /* [in] */ LCID lcid,
  16666. /* [out] */ ITypeInfo **ppTInfo);
  16667. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16668. ISpeechLexicon * This,
  16669. /* [in] */ REFIID riid,
  16670. /* [size_is][in] */ LPOLESTR *rgszNames,
  16671. /* [in] */ UINT cNames,
  16672. /* [in] */ LCID lcid,
  16673. /* [size_is][out] */ DISPID *rgDispId);
  16674. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16675. ISpeechLexicon * This,
  16676. /* [in] */ DISPID dispIdMember,
  16677. /* [in] */ REFIID riid,
  16678. /* [in] */ LCID lcid,
  16679. /* [in] */ WORD wFlags,
  16680. /* [out][in] */ DISPPARAMS *pDispParams,
  16681. /* [out] */ VARIANT *pVarResult,
  16682. /* [out] */ EXCEPINFO *pExcepInfo,
  16683. /* [out] */ UINT *puArgErr);
  16684. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerationId )(
  16685. ISpeechLexicon * This,
  16686. /* [retval][out] */ long *GenerationId);
  16687. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetWords )(
  16688. ISpeechLexicon * This,
  16689. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16690. /* [defaultvalue][out] */ long *GenerationID,
  16691. /* [retval][out] */ ISpeechLexiconWords **Words);
  16692. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  16693. ISpeechLexicon * This,
  16694. /* [in] */ BSTR bstrWord,
  16695. /* [in] */ SpeechLanguageId LangId,
  16696. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16697. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16698. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPronunciationByPhoneIds )(
  16699. ISpeechLexicon * This,
  16700. /* [in] */ BSTR bstrWord,
  16701. /* [in] */ SpeechLanguageId LangId,
  16702. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16703. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16704. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  16705. ISpeechLexicon * This,
  16706. /* [in] */ BSTR bstrWord,
  16707. /* [in] */ SpeechLanguageId LangId,
  16708. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16709. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16710. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemovePronunciationByPhoneIds )(
  16711. ISpeechLexicon * This,
  16712. /* [in] */ BSTR bstrWord,
  16713. /* [in] */ SpeechLanguageId LangId,
  16714. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16715. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16716. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  16717. ISpeechLexicon * This,
  16718. /* [in] */ BSTR bstrWord,
  16719. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16720. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16721. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations);
  16722. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  16723. ISpeechLexicon * This,
  16724. /* [out][in] */ long *GenerationID,
  16725. /* [retval][out] */ ISpeechLexiconWords **ppWords);
  16726. END_INTERFACE
  16727. } ISpeechLexiconVtbl;
  16728. interface ISpeechLexicon
  16729. {
  16730. CONST_VTBL struct ISpeechLexiconVtbl *lpVtbl;
  16731. };
  16732. #ifdef COBJMACROS
  16733. #define ISpeechLexicon_QueryInterface(This,riid,ppvObject) \
  16734. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16735. #define ISpeechLexicon_AddRef(This) \
  16736. (This)->lpVtbl -> AddRef(This)
  16737. #define ISpeechLexicon_Release(This) \
  16738. (This)->lpVtbl -> Release(This)
  16739. #define ISpeechLexicon_GetTypeInfoCount(This,pctinfo) \
  16740. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16741. #define ISpeechLexicon_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16742. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16743. #define ISpeechLexicon_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16744. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16745. #define ISpeechLexicon_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16746. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16747. #define ISpeechLexicon_get_GenerationId(This,GenerationId) \
  16748. (This)->lpVtbl -> get_GenerationId(This,GenerationId)
  16749. #define ISpeechLexicon_GetWords(This,Flags,GenerationID,Words) \
  16750. (This)->lpVtbl -> GetWords(This,Flags,GenerationID,Words)
  16751. #define ISpeechLexicon_AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) \
  16752. (This)->lpVtbl -> AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  16753. #define ISpeechLexicon_AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) \
  16754. (This)->lpVtbl -> AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  16755. #define ISpeechLexicon_RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) \
  16756. (This)->lpVtbl -> RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  16757. #define ISpeechLexicon_RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) \
  16758. (This)->lpVtbl -> RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  16759. #define ISpeechLexicon_GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations) \
  16760. (This)->lpVtbl -> GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations)
  16761. #define ISpeechLexicon_GetGenerationChange(This,GenerationID,ppWords) \
  16762. (This)->lpVtbl -> GetGenerationChange(This,GenerationID,ppWords)
  16763. #endif /* COBJMACROS */
  16764. #endif /* C style interface */
  16765. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_get_GenerationId_Proxy(
  16766. ISpeechLexicon * This,
  16767. /* [retval][out] */ long *GenerationId);
  16768. void __RPC_STUB ISpeechLexicon_get_GenerationId_Stub(
  16769. IRpcStubBuffer *This,
  16770. IRpcChannelBuffer *_pRpcChannelBuffer,
  16771. PRPC_MESSAGE _pRpcMessage,
  16772. DWORD *_pdwStubPhase);
  16773. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetWords_Proxy(
  16774. ISpeechLexicon * This,
  16775. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16776. /* [defaultvalue][out] */ long *GenerationID,
  16777. /* [retval][out] */ ISpeechLexiconWords **Words);
  16778. void __RPC_STUB ISpeechLexicon_GetWords_Stub(
  16779. IRpcStubBuffer *This,
  16780. IRpcChannelBuffer *_pRpcChannelBuffer,
  16781. PRPC_MESSAGE _pRpcMessage,
  16782. DWORD *_pdwStubPhase);
  16783. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_AddPronunciation_Proxy(
  16784. ISpeechLexicon * This,
  16785. /* [in] */ BSTR bstrWord,
  16786. /* [in] */ SpeechLanguageId LangId,
  16787. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16788. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16789. void __RPC_STUB ISpeechLexicon_AddPronunciation_Stub(
  16790. IRpcStubBuffer *This,
  16791. IRpcChannelBuffer *_pRpcChannelBuffer,
  16792. PRPC_MESSAGE _pRpcMessage,
  16793. DWORD *_pdwStubPhase);
  16794. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_AddPronunciationByPhoneIds_Proxy(
  16795. ISpeechLexicon * This,
  16796. /* [in] */ BSTR bstrWord,
  16797. /* [in] */ SpeechLanguageId LangId,
  16798. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16799. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16800. void __RPC_STUB ISpeechLexicon_AddPronunciationByPhoneIds_Stub(
  16801. IRpcStubBuffer *This,
  16802. IRpcChannelBuffer *_pRpcChannelBuffer,
  16803. PRPC_MESSAGE _pRpcMessage,
  16804. DWORD *_pdwStubPhase);
  16805. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_RemovePronunciation_Proxy(
  16806. ISpeechLexicon * This,
  16807. /* [in] */ BSTR bstrWord,
  16808. /* [in] */ SpeechLanguageId LangId,
  16809. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16810. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16811. void __RPC_STUB ISpeechLexicon_RemovePronunciation_Stub(
  16812. IRpcStubBuffer *This,
  16813. IRpcChannelBuffer *_pRpcChannelBuffer,
  16814. PRPC_MESSAGE _pRpcMessage,
  16815. DWORD *_pdwStubPhase);
  16816. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_RemovePronunciationByPhoneIds_Proxy(
  16817. ISpeechLexicon * This,
  16818. /* [in] */ BSTR bstrWord,
  16819. /* [in] */ SpeechLanguageId LangId,
  16820. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16821. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16822. void __RPC_STUB ISpeechLexicon_RemovePronunciationByPhoneIds_Stub(
  16823. IRpcStubBuffer *This,
  16824. IRpcChannelBuffer *_pRpcChannelBuffer,
  16825. PRPC_MESSAGE _pRpcMessage,
  16826. DWORD *_pdwStubPhase);
  16827. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetPronunciations_Proxy(
  16828. ISpeechLexicon * This,
  16829. /* [in] */ BSTR bstrWord,
  16830. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16831. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16832. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations);
  16833. void __RPC_STUB ISpeechLexicon_GetPronunciations_Stub(
  16834. IRpcStubBuffer *This,
  16835. IRpcChannelBuffer *_pRpcChannelBuffer,
  16836. PRPC_MESSAGE _pRpcMessage,
  16837. DWORD *_pdwStubPhase);
  16838. /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetGenerationChange_Proxy(
  16839. ISpeechLexicon * This,
  16840. /* [out][in] */ long *GenerationID,
  16841. /* [retval][out] */ ISpeechLexiconWords **ppWords);
  16842. void __RPC_STUB ISpeechLexicon_GetGenerationChange_Stub(
  16843. IRpcStubBuffer *This,
  16844. IRpcChannelBuffer *_pRpcChannelBuffer,
  16845. PRPC_MESSAGE _pRpcMessage,
  16846. DWORD *_pdwStubPhase);
  16847. #endif /* __ISpeechLexicon_INTERFACE_DEFINED__ */
  16848. #ifndef __ISpeechLexiconWords_INTERFACE_DEFINED__
  16849. #define __ISpeechLexiconWords_INTERFACE_DEFINED__
  16850. /* interface ISpeechLexiconWords */
  16851. /* [unique][helpstring][dual][uuid][object] */
  16852. EXTERN_C const IID IID_ISpeechLexiconWords;
  16853. #if defined(__cplusplus) && !defined(CINTERFACE)
  16854. MIDL_INTERFACE("8D199862-415E-47d5-AC4F-FAA608B424E6")
  16855. ISpeechLexiconWords : public IDispatch
  16856. {
  16857. public:
  16858. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count(
  16859. /* [retval][out] */ long *Count) = 0;
  16860. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  16861. /* [in] */ long Index,
  16862. /* [retval][out] */ ISpeechLexiconWord **Word) = 0;
  16863. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16864. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16865. };
  16866. #else /* C style interface */
  16867. typedef struct ISpeechLexiconWordsVtbl
  16868. {
  16869. BEGIN_INTERFACE
  16870. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16871. ISpeechLexiconWords * This,
  16872. /* [in] */ REFIID riid,
  16873. /* [iid_is][out] */ void **ppvObject);
  16874. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16875. ISpeechLexiconWords * This);
  16876. ULONG ( STDMETHODCALLTYPE *Release )(
  16877. ISpeechLexiconWords * This);
  16878. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16879. ISpeechLexiconWords * This,
  16880. /* [out] */ UINT *pctinfo);
  16881. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16882. ISpeechLexiconWords * This,
  16883. /* [in] */ UINT iTInfo,
  16884. /* [in] */ LCID lcid,
  16885. /* [out] */ ITypeInfo **ppTInfo);
  16886. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16887. ISpeechLexiconWords * This,
  16888. /* [in] */ REFIID riid,
  16889. /* [size_is][in] */ LPOLESTR *rgszNames,
  16890. /* [in] */ UINT cNames,
  16891. /* [in] */ LCID lcid,
  16892. /* [size_is][out] */ DISPID *rgDispId);
  16893. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16894. ISpeechLexiconWords * This,
  16895. /* [in] */ DISPID dispIdMember,
  16896. /* [in] */ REFIID riid,
  16897. /* [in] */ LCID lcid,
  16898. /* [in] */ WORD wFlags,
  16899. /* [out][in] */ DISPPARAMS *pDispParams,
  16900. /* [out] */ VARIANT *pVarResult,
  16901. /* [out] */ EXCEPINFO *pExcepInfo,
  16902. /* [out] */ UINT *puArgErr);
  16903. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16904. ISpeechLexiconWords * This,
  16905. /* [retval][out] */ long *Count);
  16906. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16907. ISpeechLexiconWords * This,
  16908. /* [in] */ long Index,
  16909. /* [retval][out] */ ISpeechLexiconWord **Word);
  16910. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16911. ISpeechLexiconWords * This,
  16912. /* [retval][out] */ IUnknown **EnumVARIANT);
  16913. END_INTERFACE
  16914. } ISpeechLexiconWordsVtbl;
  16915. interface ISpeechLexiconWords
  16916. {
  16917. CONST_VTBL struct ISpeechLexiconWordsVtbl *lpVtbl;
  16918. };
  16919. #ifdef COBJMACROS
  16920. #define ISpeechLexiconWords_QueryInterface(This,riid,ppvObject) \
  16921. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16922. #define ISpeechLexiconWords_AddRef(This) \
  16923. (This)->lpVtbl -> AddRef(This)
  16924. #define ISpeechLexiconWords_Release(This) \
  16925. (This)->lpVtbl -> Release(This)
  16926. #define ISpeechLexiconWords_GetTypeInfoCount(This,pctinfo) \
  16927. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16928. #define ISpeechLexiconWords_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16929. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16930. #define ISpeechLexiconWords_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16931. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16932. #define ISpeechLexiconWords_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16933. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16934. #define ISpeechLexiconWords_get_Count(This,Count) \
  16935. (This)->lpVtbl -> get_Count(This,Count)
  16936. #define ISpeechLexiconWords_Item(This,Index,Word) \
  16937. (This)->lpVtbl -> Item(This,Index,Word)
  16938. #define ISpeechLexiconWords_get__NewEnum(This,EnumVARIANT) \
  16939. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16940. #endif /* COBJMACROS */
  16941. #endif /* C style interface */
  16942. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_get_Count_Proxy(
  16943. ISpeechLexiconWords * This,
  16944. /* [retval][out] */ long *Count);
  16945. void __RPC_STUB ISpeechLexiconWords_get_Count_Stub(
  16946. IRpcStubBuffer *This,
  16947. IRpcChannelBuffer *_pRpcChannelBuffer,
  16948. PRPC_MESSAGE _pRpcMessage,
  16949. DWORD *_pdwStubPhase);
  16950. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_Item_Proxy(
  16951. ISpeechLexiconWords * This,
  16952. /* [in] */ long Index,
  16953. /* [retval][out] */ ISpeechLexiconWord **Word);
  16954. void __RPC_STUB ISpeechLexiconWords_Item_Stub(
  16955. IRpcStubBuffer *This,
  16956. IRpcChannelBuffer *_pRpcChannelBuffer,
  16957. PRPC_MESSAGE _pRpcMessage,
  16958. DWORD *_pdwStubPhase);
  16959. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_get__NewEnum_Proxy(
  16960. ISpeechLexiconWords * This,
  16961. /* [retval][out] */ IUnknown **EnumVARIANT);
  16962. void __RPC_STUB ISpeechLexiconWords_get__NewEnum_Stub(
  16963. IRpcStubBuffer *This,
  16964. IRpcChannelBuffer *_pRpcChannelBuffer,
  16965. PRPC_MESSAGE _pRpcMessage,
  16966. DWORD *_pdwStubPhase);
  16967. #endif /* __ISpeechLexiconWords_INTERFACE_DEFINED__ */
  16968. #ifndef __ISpeechLexiconWord_INTERFACE_DEFINED__
  16969. #define __ISpeechLexiconWord_INTERFACE_DEFINED__
  16970. /* interface ISpeechLexiconWord */
  16971. /* [unique][helpstring][dual][uuid][object] */
  16972. EXTERN_C const IID IID_ISpeechLexiconWord;
  16973. #if defined(__cplusplus) && !defined(CINTERFACE)
  16974. MIDL_INTERFACE("4E5B933C-C9BE-48ed-8842-1EE51BB1D4FF")
  16975. ISpeechLexiconWord : public IDispatch
  16976. {
  16977. public:
  16978. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LangId(
  16979. /* [retval][out] */ SpeechLanguageId *LangId) = 0;
  16980. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Type(
  16981. /* [retval][out] */ SpeechWordType *WordType) = 0;
  16982. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Word(
  16983. /* [retval][out] */ BSTR *Word) = 0;
  16984. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Pronunciations(
  16985. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations) = 0;
  16986. };
  16987. #else /* C style interface */
  16988. typedef struct ISpeechLexiconWordVtbl
  16989. {
  16990. BEGIN_INTERFACE
  16991. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16992. ISpeechLexiconWord * This,
  16993. /* [in] */ REFIID riid,
  16994. /* [iid_is][out] */ void **ppvObject);
  16995. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16996. ISpeechLexiconWord * This);
  16997. ULONG ( STDMETHODCALLTYPE *Release )(
  16998. ISpeechLexiconWord * This);
  16999. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17000. ISpeechLexiconWord * This,
  17001. /* [out] */ UINT *pctinfo);
  17002. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17003. ISpeechLexiconWord * This,
  17004. /* [in] */ UINT iTInfo,
  17005. /* [in] */ LCID lcid,
  17006. /* [out] */ ITypeInfo **ppTInfo);
  17007. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17008. ISpeechLexiconWord * This,
  17009. /* [in] */ REFIID riid,
  17010. /* [size_is][in] */ LPOLESTR *rgszNames,
  17011. /* [in] */ UINT cNames,
  17012. /* [in] */ LCID lcid,
  17013. /* [size_is][out] */ DISPID *rgDispId);
  17014. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17015. ISpeechLexiconWord * This,
  17016. /* [in] */ DISPID dispIdMember,
  17017. /* [in] */ REFIID riid,
  17018. /* [in] */ LCID lcid,
  17019. /* [in] */ WORD wFlags,
  17020. /* [out][in] */ DISPPARAMS *pDispParams,
  17021. /* [out] */ VARIANT *pVarResult,
  17022. /* [out] */ EXCEPINFO *pExcepInfo,
  17023. /* [out] */ UINT *puArgErr);
  17024. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LangId )(
  17025. ISpeechLexiconWord * This,
  17026. /* [retval][out] */ SpeechLanguageId *LangId);
  17027. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  17028. ISpeechLexiconWord * This,
  17029. /* [retval][out] */ SpeechWordType *WordType);
  17030. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Word )(
  17031. ISpeechLexiconWord * This,
  17032. /* [retval][out] */ BSTR *Word);
  17033. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Pronunciations )(
  17034. ISpeechLexiconWord * This,
  17035. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations);
  17036. END_INTERFACE
  17037. } ISpeechLexiconWordVtbl;
  17038. interface ISpeechLexiconWord
  17039. {
  17040. CONST_VTBL struct ISpeechLexiconWordVtbl *lpVtbl;
  17041. };
  17042. #ifdef COBJMACROS
  17043. #define ISpeechLexiconWord_QueryInterface(This,riid,ppvObject) \
  17044. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17045. #define ISpeechLexiconWord_AddRef(This) \
  17046. (This)->lpVtbl -> AddRef(This)
  17047. #define ISpeechLexiconWord_Release(This) \
  17048. (This)->lpVtbl -> Release(This)
  17049. #define ISpeechLexiconWord_GetTypeInfoCount(This,pctinfo) \
  17050. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17051. #define ISpeechLexiconWord_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17052. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17053. #define ISpeechLexiconWord_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17054. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17055. #define ISpeechLexiconWord_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17056. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17057. #define ISpeechLexiconWord_get_LangId(This,LangId) \
  17058. (This)->lpVtbl -> get_LangId(This,LangId)
  17059. #define ISpeechLexiconWord_get_Type(This,WordType) \
  17060. (This)->lpVtbl -> get_Type(This,WordType)
  17061. #define ISpeechLexiconWord_get_Word(This,Word) \
  17062. (This)->lpVtbl -> get_Word(This,Word)
  17063. #define ISpeechLexiconWord_get_Pronunciations(This,Pronunciations) \
  17064. (This)->lpVtbl -> get_Pronunciations(This,Pronunciations)
  17065. #endif /* COBJMACROS */
  17066. #endif /* C style interface */
  17067. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_LangId_Proxy(
  17068. ISpeechLexiconWord * This,
  17069. /* [retval][out] */ SpeechLanguageId *LangId);
  17070. void __RPC_STUB ISpeechLexiconWord_get_LangId_Stub(
  17071. IRpcStubBuffer *This,
  17072. IRpcChannelBuffer *_pRpcChannelBuffer,
  17073. PRPC_MESSAGE _pRpcMessage,
  17074. DWORD *_pdwStubPhase);
  17075. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Type_Proxy(
  17076. ISpeechLexiconWord * This,
  17077. /* [retval][out] */ SpeechWordType *WordType);
  17078. void __RPC_STUB ISpeechLexiconWord_get_Type_Stub(
  17079. IRpcStubBuffer *This,
  17080. IRpcChannelBuffer *_pRpcChannelBuffer,
  17081. PRPC_MESSAGE _pRpcMessage,
  17082. DWORD *_pdwStubPhase);
  17083. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Word_Proxy(
  17084. ISpeechLexiconWord * This,
  17085. /* [retval][out] */ BSTR *Word);
  17086. void __RPC_STUB ISpeechLexiconWord_get_Word_Stub(
  17087. IRpcStubBuffer *This,
  17088. IRpcChannelBuffer *_pRpcChannelBuffer,
  17089. PRPC_MESSAGE _pRpcMessage,
  17090. DWORD *_pdwStubPhase);
  17091. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Pronunciations_Proxy(
  17092. ISpeechLexiconWord * This,
  17093. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations);
  17094. void __RPC_STUB ISpeechLexiconWord_get_Pronunciations_Stub(
  17095. IRpcStubBuffer *This,
  17096. IRpcChannelBuffer *_pRpcChannelBuffer,
  17097. PRPC_MESSAGE _pRpcMessage,
  17098. DWORD *_pdwStubPhase);
  17099. #endif /* __ISpeechLexiconWord_INTERFACE_DEFINED__ */
  17100. #ifndef __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  17101. #define __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  17102. /* interface ISpeechLexiconPronunciations */
  17103. /* [unique][helpstring][dual][uuid][object] */
  17104. EXTERN_C const IID IID_ISpeechLexiconPronunciations;
  17105. #if defined(__cplusplus) && !defined(CINTERFACE)
  17106. MIDL_INTERFACE("72829128-5682-4704-A0D4-3E2BB6F2EAD3")
  17107. ISpeechLexiconPronunciations : public IDispatch
  17108. {
  17109. public:
  17110. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count(
  17111. /* [retval][out] */ long *Count) = 0;
  17112. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  17113. /* [in] */ long Index,
  17114. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation) = 0;
  17115. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  17116. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  17117. };
  17118. #else /* C style interface */
  17119. typedef struct ISpeechLexiconPronunciationsVtbl
  17120. {
  17121. BEGIN_INTERFACE
  17122. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17123. ISpeechLexiconPronunciations * This,
  17124. /* [in] */ REFIID riid,
  17125. /* [iid_is][out] */ void **ppvObject);
  17126. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17127. ISpeechLexiconPronunciations * This);
  17128. ULONG ( STDMETHODCALLTYPE *Release )(
  17129. ISpeechLexiconPronunciations * This);
  17130. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17131. ISpeechLexiconPronunciations * This,
  17132. /* [out] */ UINT *pctinfo);
  17133. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17134. ISpeechLexiconPronunciations * This,
  17135. /* [in] */ UINT iTInfo,
  17136. /* [in] */ LCID lcid,
  17137. /* [out] */ ITypeInfo **ppTInfo);
  17138. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17139. ISpeechLexiconPronunciations * This,
  17140. /* [in] */ REFIID riid,
  17141. /* [size_is][in] */ LPOLESTR *rgszNames,
  17142. /* [in] */ UINT cNames,
  17143. /* [in] */ LCID lcid,
  17144. /* [size_is][out] */ DISPID *rgDispId);
  17145. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17146. ISpeechLexiconPronunciations * This,
  17147. /* [in] */ DISPID dispIdMember,
  17148. /* [in] */ REFIID riid,
  17149. /* [in] */ LCID lcid,
  17150. /* [in] */ WORD wFlags,
  17151. /* [out][in] */ DISPPARAMS *pDispParams,
  17152. /* [out] */ VARIANT *pVarResult,
  17153. /* [out] */ EXCEPINFO *pExcepInfo,
  17154. /* [out] */ UINT *puArgErr);
  17155. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  17156. ISpeechLexiconPronunciations * This,
  17157. /* [retval][out] */ long *Count);
  17158. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  17159. ISpeechLexiconPronunciations * This,
  17160. /* [in] */ long Index,
  17161. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation);
  17162. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  17163. ISpeechLexiconPronunciations * This,
  17164. /* [retval][out] */ IUnknown **EnumVARIANT);
  17165. END_INTERFACE
  17166. } ISpeechLexiconPronunciationsVtbl;
  17167. interface ISpeechLexiconPronunciations
  17168. {
  17169. CONST_VTBL struct ISpeechLexiconPronunciationsVtbl *lpVtbl;
  17170. };
  17171. #ifdef COBJMACROS
  17172. #define ISpeechLexiconPronunciations_QueryInterface(This,riid,ppvObject) \
  17173. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17174. #define ISpeechLexiconPronunciations_AddRef(This) \
  17175. (This)->lpVtbl -> AddRef(This)
  17176. #define ISpeechLexiconPronunciations_Release(This) \
  17177. (This)->lpVtbl -> Release(This)
  17178. #define ISpeechLexiconPronunciations_GetTypeInfoCount(This,pctinfo) \
  17179. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17180. #define ISpeechLexiconPronunciations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17181. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17182. #define ISpeechLexiconPronunciations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17183. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17184. #define ISpeechLexiconPronunciations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17185. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17186. #define ISpeechLexiconPronunciations_get_Count(This,Count) \
  17187. (This)->lpVtbl -> get_Count(This,Count)
  17188. #define ISpeechLexiconPronunciations_Item(This,Index,Pronunciation) \
  17189. (This)->lpVtbl -> Item(This,Index,Pronunciation)
  17190. #define ISpeechLexiconPronunciations_get__NewEnum(This,EnumVARIANT) \
  17191. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  17192. #endif /* COBJMACROS */
  17193. #endif /* C style interface */
  17194. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_get_Count_Proxy(
  17195. ISpeechLexiconPronunciations * This,
  17196. /* [retval][out] */ long *Count);
  17197. void __RPC_STUB ISpeechLexiconPronunciations_get_Count_Stub(
  17198. IRpcStubBuffer *This,
  17199. IRpcChannelBuffer *_pRpcChannelBuffer,
  17200. PRPC_MESSAGE _pRpcMessage,
  17201. DWORD *_pdwStubPhase);
  17202. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_Item_Proxy(
  17203. ISpeechLexiconPronunciations * This,
  17204. /* [in] */ long Index,
  17205. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation);
  17206. void __RPC_STUB ISpeechLexiconPronunciations_Item_Stub(
  17207. IRpcStubBuffer *This,
  17208. IRpcChannelBuffer *_pRpcChannelBuffer,
  17209. PRPC_MESSAGE _pRpcMessage,
  17210. DWORD *_pdwStubPhase);
  17211. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_get__NewEnum_Proxy(
  17212. ISpeechLexiconPronunciations * This,
  17213. /* [retval][out] */ IUnknown **EnumVARIANT);
  17214. void __RPC_STUB ISpeechLexiconPronunciations_get__NewEnum_Stub(
  17215. IRpcStubBuffer *This,
  17216. IRpcChannelBuffer *_pRpcChannelBuffer,
  17217. PRPC_MESSAGE _pRpcMessage,
  17218. DWORD *_pdwStubPhase);
  17219. #endif /* __ISpeechLexiconPronunciations_INTERFACE_DEFINED__ */
  17220. #ifndef __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  17221. #define __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  17222. /* interface ISpeechLexiconPronunciation */
  17223. /* [unique][helpstring][dual][uuid][object] */
  17224. EXTERN_C const IID IID_ISpeechLexiconPronunciation;
  17225. #if defined(__cplusplus) && !defined(CINTERFACE)
  17226. MIDL_INTERFACE("95252C5D-9E43-4f4a-9899-48EE73352F9F")
  17227. ISpeechLexiconPronunciation : public IDispatch
  17228. {
  17229. public:
  17230. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type(
  17231. /* [retval][out] */ SpeechLexiconType *LexiconType) = 0;
  17232. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LangId(
  17233. /* [retval][out] */ SpeechLanguageId *LangId) = 0;
  17234. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_PartOfSpeech(
  17235. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech) = 0;
  17236. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_PhoneIds(
  17237. /* [retval][out] */ VARIANT *PhoneIds) = 0;
  17238. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Symbolic(
  17239. /* [retval][out] */ BSTR *Symbolic) = 0;
  17240. };
  17241. #else /* C style interface */
  17242. typedef struct ISpeechLexiconPronunciationVtbl
  17243. {
  17244. BEGIN_INTERFACE
  17245. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17246. ISpeechLexiconPronunciation * This,
  17247. /* [in] */ REFIID riid,
  17248. /* [iid_is][out] */ void **ppvObject);
  17249. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17250. ISpeechLexiconPronunciation * This);
  17251. ULONG ( STDMETHODCALLTYPE *Release )(
  17252. ISpeechLexiconPronunciation * This);
  17253. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17254. ISpeechLexiconPronunciation * This,
  17255. /* [out] */ UINT *pctinfo);
  17256. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17257. ISpeechLexiconPronunciation * This,
  17258. /* [in] */ UINT iTInfo,
  17259. /* [in] */ LCID lcid,
  17260. /* [out] */ ITypeInfo **ppTInfo);
  17261. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17262. ISpeechLexiconPronunciation * This,
  17263. /* [in] */ REFIID riid,
  17264. /* [size_is][in] */ LPOLESTR *rgszNames,
  17265. /* [in] */ UINT cNames,
  17266. /* [in] */ LCID lcid,
  17267. /* [size_is][out] */ DISPID *rgDispId);
  17268. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17269. ISpeechLexiconPronunciation * This,
  17270. /* [in] */ DISPID dispIdMember,
  17271. /* [in] */ REFIID riid,
  17272. /* [in] */ LCID lcid,
  17273. /* [in] */ WORD wFlags,
  17274. /* [out][in] */ DISPPARAMS *pDispParams,
  17275. /* [out] */ VARIANT *pVarResult,
  17276. /* [out] */ EXCEPINFO *pExcepInfo,
  17277. /* [out] */ UINT *puArgErr);
  17278. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  17279. ISpeechLexiconPronunciation * This,
  17280. /* [retval][out] */ SpeechLexiconType *LexiconType);
  17281. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LangId )(
  17282. ISpeechLexiconPronunciation * This,
  17283. /* [retval][out] */ SpeechLanguageId *LangId);
  17284. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PartOfSpeech )(
  17285. ISpeechLexiconPronunciation * This,
  17286. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech);
  17287. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneIds )(
  17288. ISpeechLexiconPronunciation * This,
  17289. /* [retval][out] */ VARIANT *PhoneIds);
  17290. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Symbolic )(
  17291. ISpeechLexiconPronunciation * This,
  17292. /* [retval][out] */ BSTR *Symbolic);
  17293. END_INTERFACE
  17294. } ISpeechLexiconPronunciationVtbl;
  17295. interface ISpeechLexiconPronunciation
  17296. {
  17297. CONST_VTBL struct ISpeechLexiconPronunciationVtbl *lpVtbl;
  17298. };
  17299. #ifdef COBJMACROS
  17300. #define ISpeechLexiconPronunciation_QueryInterface(This,riid,ppvObject) \
  17301. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17302. #define ISpeechLexiconPronunciation_AddRef(This) \
  17303. (This)->lpVtbl -> AddRef(This)
  17304. #define ISpeechLexiconPronunciation_Release(This) \
  17305. (This)->lpVtbl -> Release(This)
  17306. #define ISpeechLexiconPronunciation_GetTypeInfoCount(This,pctinfo) \
  17307. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17308. #define ISpeechLexiconPronunciation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17309. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17310. #define ISpeechLexiconPronunciation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17311. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17312. #define ISpeechLexiconPronunciation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17313. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17314. #define ISpeechLexiconPronunciation_get_Type(This,LexiconType) \
  17315. (This)->lpVtbl -> get_Type(This,LexiconType)
  17316. #define ISpeechLexiconPronunciation_get_LangId(This,LangId) \
  17317. (This)->lpVtbl -> get_LangId(This,LangId)
  17318. #define ISpeechLexiconPronunciation_get_PartOfSpeech(This,PartOfSpeech) \
  17319. (This)->lpVtbl -> get_PartOfSpeech(This,PartOfSpeech)
  17320. #define ISpeechLexiconPronunciation_get_PhoneIds(This,PhoneIds) \
  17321. (This)->lpVtbl -> get_PhoneIds(This,PhoneIds)
  17322. #define ISpeechLexiconPronunciation_get_Symbolic(This,Symbolic) \
  17323. (This)->lpVtbl -> get_Symbolic(This,Symbolic)
  17324. #endif /* COBJMACROS */
  17325. #endif /* C style interface */
  17326. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_Type_Proxy(
  17327. ISpeechLexiconPronunciation * This,
  17328. /* [retval][out] */ SpeechLexiconType *LexiconType);
  17329. void __RPC_STUB ISpeechLexiconPronunciation_get_Type_Stub(
  17330. IRpcStubBuffer *This,
  17331. IRpcChannelBuffer *_pRpcChannelBuffer,
  17332. PRPC_MESSAGE _pRpcMessage,
  17333. DWORD *_pdwStubPhase);
  17334. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_LangId_Proxy(
  17335. ISpeechLexiconPronunciation * This,
  17336. /* [retval][out] */ SpeechLanguageId *LangId);
  17337. void __RPC_STUB ISpeechLexiconPronunciation_get_LangId_Stub(
  17338. IRpcStubBuffer *This,
  17339. IRpcChannelBuffer *_pRpcChannelBuffer,
  17340. PRPC_MESSAGE _pRpcMessage,
  17341. DWORD *_pdwStubPhase);
  17342. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_PartOfSpeech_Proxy(
  17343. ISpeechLexiconPronunciation * This,
  17344. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech);
  17345. void __RPC_STUB ISpeechLexiconPronunciation_get_PartOfSpeech_Stub(
  17346. IRpcStubBuffer *This,
  17347. IRpcChannelBuffer *_pRpcChannelBuffer,
  17348. PRPC_MESSAGE _pRpcMessage,
  17349. DWORD *_pdwStubPhase);
  17350. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_PhoneIds_Proxy(
  17351. ISpeechLexiconPronunciation * This,
  17352. /* [retval][out] */ VARIANT *PhoneIds);
  17353. void __RPC_STUB ISpeechLexiconPronunciation_get_PhoneIds_Stub(
  17354. IRpcStubBuffer *This,
  17355. IRpcChannelBuffer *_pRpcChannelBuffer,
  17356. PRPC_MESSAGE _pRpcMessage,
  17357. DWORD *_pdwStubPhase);
  17358. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_Symbolic_Proxy(
  17359. ISpeechLexiconPronunciation * This,
  17360. /* [retval][out] */ BSTR *Symbolic);
  17361. void __RPC_STUB ISpeechLexiconPronunciation_get_Symbolic_Stub(
  17362. IRpcStubBuffer *This,
  17363. IRpcChannelBuffer *_pRpcChannelBuffer,
  17364. PRPC_MESSAGE _pRpcMessage,
  17365. DWORD *_pdwStubPhase);
  17366. #endif /* __ISpeechLexiconPronunciation_INTERFACE_DEFINED__ */
  17367. #ifndef __SpeechStringConstants_MODULE_DEFINED__
  17368. #define __SpeechStringConstants_MODULE_DEFINED__
  17369. /* module SpeechStringConstants */
  17370. /* [uuid] */
  17371. const BSTR SpeechRegistryUserRoot = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech";
  17372. const BSTR SpeechRegistryLocalMachineRoot = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech";
  17373. const BSTR SpeechCategoryAudioOut = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AudioOutput";
  17374. const BSTR SpeechCategoryAudioIn = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AudioInput";
  17375. const BSTR SpeechCategoryVoices = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices";
  17376. const BSTR SpeechCategoryRecognizers = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Recognizers";
  17377. const BSTR SpeechCategoryAppLexicons = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AppLexicons";
  17378. const BSTR SpeechCategoryPhoneConverters = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\PhoneConverters";
  17379. const BSTR SpeechCategoryRecoProfiles = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech\RecoProfiles";
  17380. const BSTR SpeechTokenIdUserLexicon = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech\CurrentUserLexicon";
  17381. const BSTR SpeechTokenValueCLSID = L"CLSID";
  17382. const BSTR SpeechTokenKeyFiles = L"Files";
  17383. const BSTR SpeechTokenKeyUI = L"UI";
  17384. const BSTR SpeechTokenKeyAttributes = L"Attributes";
  17385. const BSTR SpeechVoiceCategoryTTSRate = L"DefaultTTSRate";
  17386. const BSTR SpeechPropertyResourceUsage = L"ResourceUsage";
  17387. const BSTR SpeechPropertyHighConfidenceThreshold = L"HighConfidenceThreshold";
  17388. const BSTR SpeechPropertyNormalConfidenceThreshold = L"NormalConfidenceThreshold";
  17389. const BSTR SpeechPropertyLowConfidenceThreshold = L"LowConfidenceThreshold";
  17390. const BSTR SpeechPropertyResponseSpeed = L"ResponseSpeed";
  17391. const BSTR SpeechPropertyComplexResponseSpeed = L"ComplexResponseSpeed";
  17392. const BSTR SpeechPropertyAdaptationOn = L"AdaptationOn";
  17393. const BSTR SpeechDictationTopicSpelling = L"Spelling";
  17394. const BSTR SpeechGrammarTagWildcard = L"...";
  17395. const BSTR SpeechGrammarTagDictation = L"*";
  17396. const BSTR SpeechGrammarTagUnlimitedDictation = L"*+";
  17397. const BSTR SpeechEngineProperties = L"EngineProperties";
  17398. const BSTR SpeechAddRemoveWord = L"AddRemoveWord";
  17399. const BSTR SpeechUserTraining = L"UserTraining";
  17400. const BSTR SpeechMicTraining = L"MicTraining";
  17401. const BSTR SpeechRecoProfileProperties = L"RecoProfileProperties";
  17402. const BSTR SpeechAudioProperties = L"AudioProperties";
  17403. const BSTR SpeechAudioVolume = L"AudioVolume";
  17404. const BSTR SpeechVoiceSkipTypeSentence = L"Sentence";
  17405. const BSTR SpeechAudioFormatGUIDWave = L"{C31ADBAE-527F-4ff5-A230-F62BB61FF70C}";
  17406. const BSTR SpeechAudioFormatGUIDText = L"{7CEEF9F9-3D13-11d2-9EE7-00C04F797396}";
  17407. #endif /* __SpeechStringConstants_MODULE_DEFINED__ */
  17408. #ifndef __SpeechConstants_MODULE_DEFINED__
  17409. #define __SpeechConstants_MODULE_DEFINED__
  17410. /* module SpeechConstants */
  17411. /* [uuid] */
  17412. const float Speech_Default_Weight = DEFAULT_WEIGHT;
  17413. const LONG Speech_Max_Word_Length = SP_MAX_WORD_LENGTH;
  17414. const LONG Speech_Max_Pron_Length = SP_MAX_PRON_LENGTH;
  17415. const LONG Speech_StreamPos_Asap = SP_STREAMPOS_ASAP;
  17416. const LONG Speech_StreamPos_RealTime = SP_STREAMPOS_REALTIME;
  17417. const LONG SpeechAllElements = SPPR_ALL_ELEMENTS;
  17418. #endif /* __SpeechConstants_MODULE_DEFINED__ */
  17419. #ifndef __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  17420. #define __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  17421. /* interface ISpeechPhraseInfoBuilder */
  17422. /* [unique][helpstring][dual][uuid][object] */
  17423. EXTERN_C const IID IID_ISpeechPhraseInfoBuilder;
  17424. #if defined(__cplusplus) && !defined(CINTERFACE)
  17425. MIDL_INTERFACE("3B151836-DF3A-4E0A-846C-D2ADC9334333")
  17426. ISpeechPhraseInfoBuilder : public IDispatch
  17427. {
  17428. public:
  17429. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE RestorePhraseFromMemory(
  17430. /* [in] */ VARIANT *PhraseInMemory,
  17431. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  17432. };
  17433. #else /* C style interface */
  17434. typedef struct ISpeechPhraseInfoBuilderVtbl
  17435. {
  17436. BEGIN_INTERFACE
  17437. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17438. ISpeechPhraseInfoBuilder * This,
  17439. /* [in] */ REFIID riid,
  17440. /* [iid_is][out] */ void **ppvObject);
  17441. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17442. ISpeechPhraseInfoBuilder * This);
  17443. ULONG ( STDMETHODCALLTYPE *Release )(
  17444. ISpeechPhraseInfoBuilder * This);
  17445. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17446. ISpeechPhraseInfoBuilder * This,
  17447. /* [out] */ UINT *pctinfo);
  17448. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17449. ISpeechPhraseInfoBuilder * This,
  17450. /* [in] */ UINT iTInfo,
  17451. /* [in] */ LCID lcid,
  17452. /* [out] */ ITypeInfo **ppTInfo);
  17453. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17454. ISpeechPhraseInfoBuilder * This,
  17455. /* [in] */ REFIID riid,
  17456. /* [size_is][in] */ LPOLESTR *rgszNames,
  17457. /* [in] */ UINT cNames,
  17458. /* [in] */ LCID lcid,
  17459. /* [size_is][out] */ DISPID *rgDispId);
  17460. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17461. ISpeechPhraseInfoBuilder * This,
  17462. /* [in] */ DISPID dispIdMember,
  17463. /* [in] */ REFIID riid,
  17464. /* [in] */ LCID lcid,
  17465. /* [in] */ WORD wFlags,
  17466. /* [out][in] */ DISPPARAMS *pDispParams,
  17467. /* [out] */ VARIANT *pVarResult,
  17468. /* [out] */ EXCEPINFO *pExcepInfo,
  17469. /* [out] */ UINT *puArgErr);
  17470. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RestorePhraseFromMemory )(
  17471. ISpeechPhraseInfoBuilder * This,
  17472. /* [in] */ VARIANT *PhraseInMemory,
  17473. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  17474. END_INTERFACE
  17475. } ISpeechPhraseInfoBuilderVtbl;
  17476. interface ISpeechPhraseInfoBuilder
  17477. {
  17478. CONST_VTBL struct ISpeechPhraseInfoBuilderVtbl *lpVtbl;
  17479. };
  17480. #ifdef COBJMACROS
  17481. #define ISpeechPhraseInfoBuilder_QueryInterface(This,riid,ppvObject) \
  17482. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17483. #define ISpeechPhraseInfoBuilder_AddRef(This) \
  17484. (This)->lpVtbl -> AddRef(This)
  17485. #define ISpeechPhraseInfoBuilder_Release(This) \
  17486. (This)->lpVtbl -> Release(This)
  17487. #define ISpeechPhraseInfoBuilder_GetTypeInfoCount(This,pctinfo) \
  17488. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17489. #define ISpeechPhraseInfoBuilder_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17490. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17491. #define ISpeechPhraseInfoBuilder_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17492. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17493. #define ISpeechPhraseInfoBuilder_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17494. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17495. #define ISpeechPhraseInfoBuilder_RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo) \
  17496. (This)->lpVtbl -> RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo)
  17497. #endif /* COBJMACROS */
  17498. #endif /* C style interface */
  17499. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfoBuilder_RestorePhraseFromMemory_Proxy(
  17500. ISpeechPhraseInfoBuilder * This,
  17501. /* [in] */ VARIANT *PhraseInMemory,
  17502. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  17503. void __RPC_STUB ISpeechPhraseInfoBuilder_RestorePhraseFromMemory_Stub(
  17504. IRpcStubBuffer *This,
  17505. IRpcChannelBuffer *_pRpcChannelBuffer,
  17506. PRPC_MESSAGE _pRpcMessage,
  17507. DWORD *_pdwStubPhase);
  17508. #endif /* __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__ */
  17509. #ifndef __ISpeechPhoneConverter_INTERFACE_DEFINED__
  17510. #define __ISpeechPhoneConverter_INTERFACE_DEFINED__
  17511. /* interface ISpeechPhoneConverter */
  17512. /* [unique][helpstring][dual][uuid][object] */
  17513. EXTERN_C const IID IID_ISpeechPhoneConverter;
  17514. #if defined(__cplusplus) && !defined(CINTERFACE)
  17515. MIDL_INTERFACE("C3E4F353-433F-43d6-89A1-6A62A7054C3D")
  17516. ISpeechPhoneConverter : public IDispatch
  17517. {
  17518. public:
  17519. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageId(
  17520. /* [retval][out] */ SpeechLanguageId *LanguageId) = 0;
  17521. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_LanguageId(
  17522. /* [in] */ SpeechLanguageId LanguageId) = 0;
  17523. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PhoneToId(
  17524. /* [in] */ const BSTR Phonemes,
  17525. /* [retval][out] */ VARIANT *IdArray) = 0;
  17526. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IdToPhone(
  17527. /* [in] */ const VARIANT IdArray,
  17528. /* [retval][out] */ BSTR *Phonemes) = 0;
  17529. };
  17530. #else /* C style interface */
  17531. typedef struct ISpeechPhoneConverterVtbl
  17532. {
  17533. BEGIN_INTERFACE
  17534. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17535. ISpeechPhoneConverter * This,
  17536. /* [in] */ REFIID riid,
  17537. /* [iid_is][out] */ void **ppvObject);
  17538. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17539. ISpeechPhoneConverter * This);
  17540. ULONG ( STDMETHODCALLTYPE *Release )(
  17541. ISpeechPhoneConverter * This);
  17542. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17543. ISpeechPhoneConverter * This,
  17544. /* [out] */ UINT *pctinfo);
  17545. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17546. ISpeechPhoneConverter * This,
  17547. /* [in] */ UINT iTInfo,
  17548. /* [in] */ LCID lcid,
  17549. /* [out] */ ITypeInfo **ppTInfo);
  17550. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17551. ISpeechPhoneConverter * This,
  17552. /* [in] */ REFIID riid,
  17553. /* [size_is][in] */ LPOLESTR *rgszNames,
  17554. /* [in] */ UINT cNames,
  17555. /* [in] */ LCID lcid,
  17556. /* [size_is][out] */ DISPID *rgDispId);
  17557. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17558. ISpeechPhoneConverter * This,
  17559. /* [in] */ DISPID dispIdMember,
  17560. /* [in] */ REFIID riid,
  17561. /* [in] */ LCID lcid,
  17562. /* [in] */ WORD wFlags,
  17563. /* [out][in] */ DISPPARAMS *pDispParams,
  17564. /* [out] */ VARIANT *pVarResult,
  17565. /* [out] */ EXCEPINFO *pExcepInfo,
  17566. /* [out] */ UINT *puArgErr);
  17567. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageId )(
  17568. ISpeechPhoneConverter * This,
  17569. /* [retval][out] */ SpeechLanguageId *LanguageId);
  17570. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LanguageId )(
  17571. ISpeechPhoneConverter * This,
  17572. /* [in] */ SpeechLanguageId LanguageId);
  17573. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PhoneToId )(
  17574. ISpeechPhoneConverter * This,
  17575. /* [in] */ const BSTR Phonemes,
  17576. /* [retval][out] */ VARIANT *IdArray);
  17577. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IdToPhone )(
  17578. ISpeechPhoneConverter * This,
  17579. /* [in] */ const VARIANT IdArray,
  17580. /* [retval][out] */ BSTR *Phonemes);
  17581. END_INTERFACE
  17582. } ISpeechPhoneConverterVtbl;
  17583. interface ISpeechPhoneConverter
  17584. {
  17585. CONST_VTBL struct ISpeechPhoneConverterVtbl *lpVtbl;
  17586. };
  17587. #ifdef COBJMACROS
  17588. #define ISpeechPhoneConverter_QueryInterface(This,riid,ppvObject) \
  17589. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17590. #define ISpeechPhoneConverter_AddRef(This) \
  17591. (This)->lpVtbl -> AddRef(This)
  17592. #define ISpeechPhoneConverter_Release(This) \
  17593. (This)->lpVtbl -> Release(This)
  17594. #define ISpeechPhoneConverter_GetTypeInfoCount(This,pctinfo) \
  17595. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17596. #define ISpeechPhoneConverter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17597. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17598. #define ISpeechPhoneConverter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17599. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17600. #define ISpeechPhoneConverter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17601. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17602. #define ISpeechPhoneConverter_get_LanguageId(This,LanguageId) \
  17603. (This)->lpVtbl -> get_LanguageId(This,LanguageId)
  17604. #define ISpeechPhoneConverter_put_LanguageId(This,LanguageId) \
  17605. (This)->lpVtbl -> put_LanguageId(This,LanguageId)
  17606. #define ISpeechPhoneConverter_PhoneToId(This,Phonemes,IdArray) \
  17607. (This)->lpVtbl -> PhoneToId(This,Phonemes,IdArray)
  17608. #define ISpeechPhoneConverter_IdToPhone(This,IdArray,Phonemes) \
  17609. (This)->lpVtbl -> IdToPhone(This,IdArray,Phonemes)
  17610. #endif /* COBJMACROS */
  17611. #endif /* C style interface */
  17612. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_get_LanguageId_Proxy(
  17613. ISpeechPhoneConverter * This,
  17614. /* [retval][out] */ SpeechLanguageId *LanguageId);
  17615. void __RPC_STUB ISpeechPhoneConverter_get_LanguageId_Stub(
  17616. IRpcStubBuffer *This,
  17617. IRpcChannelBuffer *_pRpcChannelBuffer,
  17618. PRPC_MESSAGE _pRpcMessage,
  17619. DWORD *_pdwStubPhase);
  17620. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_put_LanguageId_Proxy(
  17621. ISpeechPhoneConverter * This,
  17622. /* [in] */ SpeechLanguageId LanguageId);
  17623. void __RPC_STUB ISpeechPhoneConverter_put_LanguageId_Stub(
  17624. IRpcStubBuffer *This,
  17625. IRpcChannelBuffer *_pRpcChannelBuffer,
  17626. PRPC_MESSAGE _pRpcMessage,
  17627. DWORD *_pdwStubPhase);
  17628. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_PhoneToId_Proxy(
  17629. ISpeechPhoneConverter * This,
  17630. /* [in] */ const BSTR Phonemes,
  17631. /* [retval][out] */ VARIANT *IdArray);
  17632. void __RPC_STUB ISpeechPhoneConverter_PhoneToId_Stub(
  17633. IRpcStubBuffer *This,
  17634. IRpcChannelBuffer *_pRpcChannelBuffer,
  17635. PRPC_MESSAGE _pRpcMessage,
  17636. DWORD *_pdwStubPhase);
  17637. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_IdToPhone_Proxy(
  17638. ISpeechPhoneConverter * This,
  17639. /* [in] */ const VARIANT IdArray,
  17640. /* [retval][out] */ BSTR *Phonemes);
  17641. void __RPC_STUB ISpeechPhoneConverter_IdToPhone_Stub(
  17642. IRpcStubBuffer *This,
  17643. IRpcChannelBuffer *_pRpcChannelBuffer,
  17644. PRPC_MESSAGE _pRpcMessage,
  17645. DWORD *_pdwStubPhase);
  17646. #endif /* __ISpeechPhoneConverter_INTERFACE_DEFINED__ */
  17647. EXTERN_C const CLSID CLSID_SpNotifyTranslator;
  17648. #ifdef __cplusplus
  17649. class DECLSPEC_UUID("E2AE5372-5D40-11D2-960E-00C04F8EE628")
  17650. SpNotifyTranslator;
  17651. #endif
  17652. EXTERN_C const CLSID CLSID_SpObjectTokenCategory;
  17653. #ifdef __cplusplus
  17654. class DECLSPEC_UUID("A910187F-0C7A-45AC-92CC-59EDAFB77B53")
  17655. SpObjectTokenCategory;
  17656. #endif
  17657. EXTERN_C const CLSID CLSID_SpObjectToken;
  17658. #ifdef __cplusplus
  17659. class DECLSPEC_UUID("EF411752-3736-4CB4-9C8C-8EF4CCB58EFE")
  17660. SpObjectToken;
  17661. #endif
  17662. EXTERN_C const CLSID CLSID_SpResourceManager;
  17663. #ifdef __cplusplus
  17664. class DECLSPEC_UUID("96749373-3391-11D2-9EE3-00C04F797396")
  17665. SpResourceManager;
  17666. #endif
  17667. EXTERN_C const CLSID CLSID_SpStreamFormatConverter;
  17668. #ifdef __cplusplus
  17669. class DECLSPEC_UUID("7013943A-E2EC-11D2-A086-00C04F8EF9B5")
  17670. SpStreamFormatConverter;
  17671. #endif
  17672. EXTERN_C const CLSID CLSID_SpMMAudioEnum;
  17673. #ifdef __cplusplus
  17674. class DECLSPEC_UUID("AB1890A0-E91F-11D2-BB91-00C04F8EE6C0")
  17675. SpMMAudioEnum;
  17676. #endif
  17677. EXTERN_C const CLSID CLSID_SpMMAudioIn;
  17678. #ifdef __cplusplus
  17679. class DECLSPEC_UUID("CF3D2E50-53F2-11D2-960C-00C04F8EE628")
  17680. SpMMAudioIn;
  17681. #endif
  17682. EXTERN_C const CLSID CLSID_SpMMAudioOut;
  17683. #ifdef __cplusplus
  17684. class DECLSPEC_UUID("A8C680EB-3D32-11D2-9EE7-00C04F797396")
  17685. SpMMAudioOut;
  17686. #endif
  17687. EXTERN_C const CLSID CLSID_SpRecPlayAudio;
  17688. #ifdef __cplusplus
  17689. class DECLSPEC_UUID("FEE225FC-7AFD-45E9-95D0-5A318079D911")
  17690. SpRecPlayAudio;
  17691. #endif
  17692. EXTERN_C const CLSID CLSID_SpStream;
  17693. #ifdef __cplusplus
  17694. class DECLSPEC_UUID("715D9C59-4442-11D2-9605-00C04F8EE628")
  17695. SpStream;
  17696. #endif
  17697. EXTERN_C const CLSID CLSID_SpVoice;
  17698. #ifdef __cplusplus
  17699. class DECLSPEC_UUID("96749377-3391-11D2-9EE3-00C04F797396")
  17700. SpVoice;
  17701. #endif
  17702. EXTERN_C const CLSID CLSID_SpSharedRecoContext;
  17703. #ifdef __cplusplus
  17704. class DECLSPEC_UUID("47206204-5ECA-11D2-960F-00C04F8EE628")
  17705. SpSharedRecoContext;
  17706. #endif
  17707. EXTERN_C const CLSID CLSID_SpInprocRecognizer;
  17708. #ifdef __cplusplus
  17709. class DECLSPEC_UUID("41B89B6B-9399-11D2-9623-00C04F8EE628")
  17710. SpInprocRecognizer;
  17711. #endif
  17712. EXTERN_C const CLSID CLSID_SpSharedRecognizer;
  17713. #ifdef __cplusplus
  17714. class DECLSPEC_UUID("3BEE4890-4FE9-4A37-8C1E-5E7E12791C1F")
  17715. SpSharedRecognizer;
  17716. #endif
  17717. EXTERN_C const CLSID CLSID_SpLexicon;
  17718. #ifdef __cplusplus
  17719. class DECLSPEC_UUID("0655E396-25D0-11D3-9C26-00C04F8EF87C")
  17720. SpLexicon;
  17721. #endif
  17722. EXTERN_C const CLSID CLSID_SpUnCompressedLexicon;
  17723. #ifdef __cplusplus
  17724. class DECLSPEC_UUID("C9E37C15-DF92-4727-85D6-72E5EEB6995A")
  17725. SpUnCompressedLexicon;
  17726. #endif
  17727. EXTERN_C const CLSID CLSID_SpCompressedLexicon;
  17728. #ifdef __cplusplus
  17729. class DECLSPEC_UUID("90903716-2F42-11D3-9C26-00C04F8EF87C")
  17730. SpCompressedLexicon;
  17731. #endif
  17732. EXTERN_C const CLSID CLSID_SpPhoneConverter;
  17733. #ifdef __cplusplus
  17734. class DECLSPEC_UUID("9185F743-1143-4C28-86B5-BFF14F20E5C8")
  17735. SpPhoneConverter;
  17736. #endif
  17737. EXTERN_C const CLSID CLSID_SpNullPhoneConverter;
  17738. #ifdef __cplusplus
  17739. class DECLSPEC_UUID("455F24E9-7396-4A16-9715-7C0FDBE3EFE3")
  17740. SpNullPhoneConverter;
  17741. #endif
  17742. EXTERN_C const CLSID CLSID_SpTextSelectionInformation;
  17743. #ifdef __cplusplus
  17744. class DECLSPEC_UUID("0F92030A-CBFD-4AB8-A164-FF5985547FF6")
  17745. SpTextSelectionInformation;
  17746. #endif
  17747. EXTERN_C const CLSID CLSID_SpPhraseInfoBuilder;
  17748. #ifdef __cplusplus
  17749. class DECLSPEC_UUID("C23FC28D-C55F-4720-8B32-91F73C2BD5D1")
  17750. SpPhraseInfoBuilder;
  17751. #endif
  17752. EXTERN_C const CLSID CLSID_SpAudioFormat;
  17753. #ifdef __cplusplus
  17754. class DECLSPEC_UUID("9EF96870-E160-4792-820D-48CF0649E4EC")
  17755. SpAudioFormat;
  17756. #endif
  17757. EXTERN_C const CLSID CLSID_SpWaveFormatEx;
  17758. #ifdef __cplusplus
  17759. class DECLSPEC_UUID("C79A574C-63BE-44b9-801F-283F87F898BE")
  17760. SpWaveFormatEx;
  17761. #endif
  17762. EXTERN_C const CLSID CLSID_SpInProcRecoContext;
  17763. #ifdef __cplusplus
  17764. class DECLSPEC_UUID("73AD6842-ACE0-45E8-A4DD-8795881A2C2A")
  17765. SpInProcRecoContext;
  17766. #endif
  17767. EXTERN_C const CLSID CLSID_SpCustomStream;
  17768. #ifdef __cplusplus
  17769. class DECLSPEC_UUID("8DBEF13F-1948-4aa8-8CF0-048EEBED95D8")
  17770. SpCustomStream;
  17771. #endif
  17772. EXTERN_C const CLSID CLSID_SpFileStream;
  17773. #ifdef __cplusplus
  17774. class DECLSPEC_UUID("947812B3-2AE1-4644-BA86-9E90DED7EC91")
  17775. SpFileStream;
  17776. #endif
  17777. EXTERN_C const CLSID CLSID_SpMemoryStream;
  17778. #ifdef __cplusplus
  17779. class DECLSPEC_UUID("5FB7EF7D-DFF4-468a-B6B7-2FCBD188F994")
  17780. SpMemoryStream;
  17781. #endif
  17782. #endif /* __SpeechLib_LIBRARY_DEFINED__ */
  17783. /* Additional Prototypes for ALL interfaces */
  17784. /* end of Additional Prototypes */
  17785. #ifdef __cplusplus
  17786. }
  17787. #endif
  17788. #endif