Team Fortress 2 Source Code as on 22/4/2020
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.

25599 lines
831 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for sapi.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  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. typedef /* [hidden] */
  605. enum SPSTREAMFORMAT
  606. { SPSF_Default = -1,
  607. SPSF_NoAssignedFormat = 0,
  608. SPSF_Text = SPSF_NoAssignedFormat + 1,
  609. SPSF_NonStandardFormat = SPSF_Text + 1,
  610. SPSF_ExtendedAudioFormat = SPSF_NonStandardFormat + 1,
  611. SPSF_8kHz8BitMono = SPSF_ExtendedAudioFormat + 1,
  612. SPSF_8kHz8BitStereo = SPSF_8kHz8BitMono + 1,
  613. SPSF_8kHz16BitMono = SPSF_8kHz8BitStereo + 1,
  614. SPSF_8kHz16BitStereo = SPSF_8kHz16BitMono + 1,
  615. SPSF_11kHz8BitMono = SPSF_8kHz16BitStereo + 1,
  616. SPSF_11kHz8BitStereo = SPSF_11kHz8BitMono + 1,
  617. SPSF_11kHz16BitMono = SPSF_11kHz8BitStereo + 1,
  618. SPSF_11kHz16BitStereo = SPSF_11kHz16BitMono + 1,
  619. SPSF_12kHz8BitMono = SPSF_11kHz16BitStereo + 1,
  620. SPSF_12kHz8BitStereo = SPSF_12kHz8BitMono + 1,
  621. SPSF_12kHz16BitMono = SPSF_12kHz8BitStereo + 1,
  622. SPSF_12kHz16BitStereo = SPSF_12kHz16BitMono + 1,
  623. SPSF_16kHz8BitMono = SPSF_12kHz16BitStereo + 1,
  624. SPSF_16kHz8BitStereo = SPSF_16kHz8BitMono + 1,
  625. SPSF_16kHz16BitMono = SPSF_16kHz8BitStereo + 1,
  626. SPSF_16kHz16BitStereo = SPSF_16kHz16BitMono + 1,
  627. SPSF_22kHz8BitMono = SPSF_16kHz16BitStereo + 1,
  628. SPSF_22kHz8BitStereo = SPSF_22kHz8BitMono + 1,
  629. SPSF_22kHz16BitMono = SPSF_22kHz8BitStereo + 1,
  630. SPSF_22kHz16BitStereo = SPSF_22kHz16BitMono + 1,
  631. SPSF_24kHz8BitMono = SPSF_22kHz16BitStereo + 1,
  632. SPSF_24kHz8BitStereo = SPSF_24kHz8BitMono + 1,
  633. SPSF_24kHz16BitMono = SPSF_24kHz8BitStereo + 1,
  634. SPSF_24kHz16BitStereo = SPSF_24kHz16BitMono + 1,
  635. SPSF_32kHz8BitMono = SPSF_24kHz16BitStereo + 1,
  636. SPSF_32kHz8BitStereo = SPSF_32kHz8BitMono + 1,
  637. SPSF_32kHz16BitMono = SPSF_32kHz8BitStereo + 1,
  638. SPSF_32kHz16BitStereo = SPSF_32kHz16BitMono + 1,
  639. SPSF_44kHz8BitMono = SPSF_32kHz16BitStereo + 1,
  640. SPSF_44kHz8BitStereo = SPSF_44kHz8BitMono + 1,
  641. SPSF_44kHz16BitMono = SPSF_44kHz8BitStereo + 1,
  642. SPSF_44kHz16BitStereo = SPSF_44kHz16BitMono + 1,
  643. SPSF_48kHz8BitMono = SPSF_44kHz16BitStereo + 1,
  644. SPSF_48kHz8BitStereo = SPSF_48kHz8BitMono + 1,
  645. SPSF_48kHz16BitMono = SPSF_48kHz8BitStereo + 1,
  646. SPSF_48kHz16BitStereo = SPSF_48kHz16BitMono + 1,
  647. SPSF_TrueSpeech_8kHz1BitMono = SPSF_48kHz16BitStereo + 1,
  648. SPSF_CCITT_ALaw_8kHzMono = SPSF_TrueSpeech_8kHz1BitMono + 1,
  649. SPSF_CCITT_ALaw_8kHzStereo = SPSF_CCITT_ALaw_8kHzMono + 1,
  650. SPSF_CCITT_ALaw_11kHzMono = SPSF_CCITT_ALaw_8kHzStereo + 1,
  651. SPSF_CCITT_ALaw_11kHzStereo = SPSF_CCITT_ALaw_11kHzMono + 1,
  652. SPSF_CCITT_ALaw_22kHzMono = SPSF_CCITT_ALaw_11kHzStereo + 1,
  653. SPSF_CCITT_ALaw_22kHzStereo = SPSF_CCITT_ALaw_22kHzMono + 1,
  654. SPSF_CCITT_ALaw_44kHzMono = SPSF_CCITT_ALaw_22kHzStereo + 1,
  655. SPSF_CCITT_ALaw_44kHzStereo = SPSF_CCITT_ALaw_44kHzMono + 1,
  656. SPSF_CCITT_uLaw_8kHzMono = SPSF_CCITT_ALaw_44kHzStereo + 1,
  657. SPSF_CCITT_uLaw_8kHzStereo = SPSF_CCITT_uLaw_8kHzMono + 1,
  658. SPSF_CCITT_uLaw_11kHzMono = SPSF_CCITT_uLaw_8kHzStereo + 1,
  659. SPSF_CCITT_uLaw_11kHzStereo = SPSF_CCITT_uLaw_11kHzMono + 1,
  660. SPSF_CCITT_uLaw_22kHzMono = SPSF_CCITT_uLaw_11kHzStereo + 1,
  661. SPSF_CCITT_uLaw_22kHzStereo = SPSF_CCITT_uLaw_22kHzMono + 1,
  662. SPSF_CCITT_uLaw_44kHzMono = SPSF_CCITT_uLaw_22kHzStereo + 1,
  663. SPSF_CCITT_uLaw_44kHzStereo = SPSF_CCITT_uLaw_44kHzMono + 1,
  664. SPSF_ADPCM_8kHzMono = SPSF_CCITT_uLaw_44kHzStereo + 1,
  665. SPSF_ADPCM_8kHzStereo = SPSF_ADPCM_8kHzMono + 1,
  666. SPSF_ADPCM_11kHzMono = SPSF_ADPCM_8kHzStereo + 1,
  667. SPSF_ADPCM_11kHzStereo = SPSF_ADPCM_11kHzMono + 1,
  668. SPSF_ADPCM_22kHzMono = SPSF_ADPCM_11kHzStereo + 1,
  669. SPSF_ADPCM_22kHzStereo = SPSF_ADPCM_22kHzMono + 1,
  670. SPSF_ADPCM_44kHzMono = SPSF_ADPCM_22kHzStereo + 1,
  671. SPSF_ADPCM_44kHzStereo = SPSF_ADPCM_44kHzMono + 1,
  672. SPSF_GSM610_8kHzMono = SPSF_ADPCM_44kHzStereo + 1,
  673. SPSF_GSM610_11kHzMono = SPSF_GSM610_8kHzMono + 1,
  674. SPSF_GSM610_22kHzMono = SPSF_GSM610_11kHzMono + 1,
  675. SPSF_GSM610_44kHzMono = SPSF_GSM610_22kHzMono + 1,
  676. SPSF_NUM_FORMATS = SPSF_GSM610_44kHzMono + 1
  677. } SPSTREAMFORMAT;
  678. EXTERN_C const GUID SPDFID_Text;
  679. EXTERN_C const GUID SPDFID_WaveFormatEx;
  680. #define SPREG_USER_ROOT L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech"
  681. #define SPREG_LOCAL_MACHINE_ROOT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech"
  682. #define SPCAT_AUDIOOUT L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput"
  683. #define SPCAT_AUDIOIN L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput"
  684. #define SPCAT_VOICES L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Voices"
  685. #define SPCAT_RECOGNIZERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\Recognizers"
  686. #define SPCAT_APPLEXICONS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AppLexicons"
  687. #define SPCAT_PHONECONVERTERS L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\PhoneConverters"
  688. #define SPCAT_RECOPROFILES L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\RecoProfiles"
  689. #define SPMMSYS_AUDIO_IN_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioInput\\TokenEnums\\MMAudioIn\\"
  690. #define SPMMSYS_AUDIO_OUT_TOKEN_ID L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput\\TokenEnums\\MMAudioOut\\"
  691. #define SPCURRENT_USER_LEXICON_TOKEN_ID L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech\\CurrentUserLexicon"
  692. #define SPTOKENVALUE_CLSID L"CLSID"
  693. #define SPTOKENKEY_FILES L"Files"
  694. #define SPTOKENKEY_UI L"UI"
  695. #define SPTOKENKEY_ATTRIBUTES L"Attributes"
  696. #define SPVOICECATEGORY_TTSRATE L"DefaultTTSRate"
  697. #define SPPROP_RESOURCE_USAGE L"ResourceUsage"
  698. #define SPPROP_HIGH_CONFIDENCE_THRESHOLD L"HighConfidenceThreshold"
  699. #define SPPROP_NORMAL_CONFIDENCE_THRESHOLD L"NormalConfidenceThreshold"
  700. #define SPPROP_LOW_CONFIDENCE_THRESHOLD L"LowConfidenceThreshold"
  701. #define SPPROP_RESPONSE_SPEED L"ResponseSpeed"
  702. #define SPPROP_COMPLEX_RESPONSE_SPEED L"ComplexResponseSpeed"
  703. #define SPPROP_ADAPTATION_ON L"AdaptationOn"
  704. #define SPTOPIC_SPELLING L"Spelling"
  705. #define SPWILDCARD L"..."
  706. #define SPDICTATION L"*"
  707. #define SPINFDICTATION L"*+"
  708. #define SP_LOW_CONFIDENCE ( -1 )
  709. #define SP_NORMAL_CONFIDENCE ( 0 )
  710. #define SP_HIGH_CONFIDENCE ( +1 )
  711. #define DEFAULT_WEIGHT ( 1 )
  712. #define SP_MAX_WORD_LENGTH ( 128 )
  713. #define SP_MAX_PRON_LENGTH ( 384 )
  714. #if defined(__cplusplus)
  715. interface ISpNotifyCallback
  716. {
  717. virtual HRESULT STDMETHODCALLTYPE NotifyCallback(
  718. WPARAM wParam,
  719. LPARAM lParam) = 0;
  720. };
  721. #else
  722. typedef void *ISpNotifyCallback;
  723. #endif
  724. #if 0
  725. typedef void *SPNOTIFYCALLBACK;
  726. #else
  727. typedef void __stdcall SPNOTIFYCALLBACK(WPARAM wParam, LPARAM lParam);
  728. #endif
  729. extern RPC_IF_HANDLE __MIDL_itf_sapi_0000_v0_0_c_ifspec;
  730. extern RPC_IF_HANDLE __MIDL_itf_sapi_0000_v0_0_s_ifspec;
  731. #ifndef __ISpNotifySource_INTERFACE_DEFINED__
  732. #define __ISpNotifySource_INTERFACE_DEFINED__
  733. /* interface ISpNotifySource */
  734. /* [restricted][unique][helpstring][uuid][object] */
  735. EXTERN_C const IID IID_ISpNotifySource;
  736. #if defined(__cplusplus) && !defined(CINTERFACE)
  737. MIDL_INTERFACE("5EFF4AEF-8487-11D2-961C-00C04F8EE628")
  738. ISpNotifySource : public IUnknown
  739. {
  740. public:
  741. virtual HRESULT STDMETHODCALLTYPE SetNotifySink(
  742. /* [in] */ ISpNotifySink *pNotifySink) = 0;
  743. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyWindowMessage(
  744. /* [in] */ HWND hWnd,
  745. /* [in] */ UINT Msg,
  746. /* [in] */ WPARAM wParam,
  747. /* [in] */ LPARAM lParam) = 0;
  748. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyCallbackFunction(
  749. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  750. /* [in] */ WPARAM wParam,
  751. /* [in] */ LPARAM lParam) = 0;
  752. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyCallbackInterface(
  753. /* [in] */ ISpNotifyCallback *pSpCallback,
  754. /* [in] */ WPARAM wParam,
  755. /* [in] */ LPARAM lParam) = 0;
  756. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetNotifyWin32Event( void) = 0;
  757. virtual /* [local] */ HRESULT STDMETHODCALLTYPE WaitForNotifyEvent(
  758. /* [in] */ DWORD dwMilliseconds) = 0;
  759. virtual /* [local] */ HANDLE STDMETHODCALLTYPE GetNotifyEventHandle( void) = 0;
  760. };
  761. #else /* C style interface */
  762. typedef struct ISpNotifySourceVtbl
  763. {
  764. BEGIN_INTERFACE
  765. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  766. ISpNotifySource * This,
  767. /* [in] */ REFIID riid,
  768. /* [iid_is][out] */ void **ppvObject);
  769. ULONG ( STDMETHODCALLTYPE *AddRef )(
  770. ISpNotifySource * This);
  771. ULONG ( STDMETHODCALLTYPE *Release )(
  772. ISpNotifySource * This);
  773. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  774. ISpNotifySource * This,
  775. /* [in] */ ISpNotifySink *pNotifySink);
  776. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  777. ISpNotifySource * This,
  778. /* [in] */ HWND hWnd,
  779. /* [in] */ UINT Msg,
  780. /* [in] */ WPARAM wParam,
  781. /* [in] */ LPARAM lParam);
  782. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  783. ISpNotifySource * This,
  784. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  785. /* [in] */ WPARAM wParam,
  786. /* [in] */ LPARAM lParam);
  787. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  788. ISpNotifySource * This,
  789. /* [in] */ ISpNotifyCallback *pSpCallback,
  790. /* [in] */ WPARAM wParam,
  791. /* [in] */ LPARAM lParam);
  792. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  793. ISpNotifySource * This);
  794. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  795. ISpNotifySource * This,
  796. /* [in] */ DWORD dwMilliseconds);
  797. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  798. ISpNotifySource * This);
  799. END_INTERFACE
  800. } ISpNotifySourceVtbl;
  801. interface ISpNotifySource
  802. {
  803. CONST_VTBL struct ISpNotifySourceVtbl *lpVtbl;
  804. };
  805. #ifdef COBJMACROS
  806. #define ISpNotifySource_QueryInterface(This,riid,ppvObject) \
  807. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  808. #define ISpNotifySource_AddRef(This) \
  809. (This)->lpVtbl -> AddRef(This)
  810. #define ISpNotifySource_Release(This) \
  811. (This)->lpVtbl -> Release(This)
  812. #define ISpNotifySource_SetNotifySink(This,pNotifySink) \
  813. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  814. #define ISpNotifySource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  815. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  816. #define ISpNotifySource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  817. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  818. #define ISpNotifySource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  819. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  820. #define ISpNotifySource_SetNotifyWin32Event(This) \
  821. (This)->lpVtbl -> SetNotifyWin32Event(This)
  822. #define ISpNotifySource_WaitForNotifyEvent(This,dwMilliseconds) \
  823. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  824. #define ISpNotifySource_GetNotifyEventHandle(This) \
  825. (This)->lpVtbl -> GetNotifyEventHandle(This)
  826. #endif /* COBJMACROS */
  827. #endif /* C style interface */
  828. HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifySink_Proxy(
  829. ISpNotifySource * This,
  830. /* [in] */ ISpNotifySink *pNotifySink);
  831. void __RPC_STUB ISpNotifySource_SetNotifySink_Stub(
  832. IRpcStubBuffer *This,
  833. IRpcChannelBuffer *_pRpcChannelBuffer,
  834. PRPC_MESSAGE _pRpcMessage,
  835. DWORD *_pdwStubPhase);
  836. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyWindowMessage_Proxy(
  837. ISpNotifySource * This,
  838. /* [in] */ HWND hWnd,
  839. /* [in] */ UINT Msg,
  840. /* [in] */ WPARAM wParam,
  841. /* [in] */ LPARAM lParam);
  842. void __RPC_STUB ISpNotifySource_SetNotifyWindowMessage_Stub(
  843. IRpcStubBuffer *This,
  844. IRpcChannelBuffer *_pRpcChannelBuffer,
  845. PRPC_MESSAGE _pRpcMessage,
  846. DWORD *_pdwStubPhase);
  847. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyCallbackFunction_Proxy(
  848. ISpNotifySource * This,
  849. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  850. /* [in] */ WPARAM wParam,
  851. /* [in] */ LPARAM lParam);
  852. void __RPC_STUB ISpNotifySource_SetNotifyCallbackFunction_Stub(
  853. IRpcStubBuffer *This,
  854. IRpcChannelBuffer *_pRpcChannelBuffer,
  855. PRPC_MESSAGE _pRpcMessage,
  856. DWORD *_pdwStubPhase);
  857. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyCallbackInterface_Proxy(
  858. ISpNotifySource * This,
  859. /* [in] */ ISpNotifyCallback *pSpCallback,
  860. /* [in] */ WPARAM wParam,
  861. /* [in] */ LPARAM lParam);
  862. void __RPC_STUB ISpNotifySource_SetNotifyCallbackInterface_Stub(
  863. IRpcStubBuffer *This,
  864. IRpcChannelBuffer *_pRpcChannelBuffer,
  865. PRPC_MESSAGE _pRpcMessage,
  866. DWORD *_pdwStubPhase);
  867. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_SetNotifyWin32Event_Proxy(
  868. ISpNotifySource * This);
  869. void __RPC_STUB ISpNotifySource_SetNotifyWin32Event_Stub(
  870. IRpcStubBuffer *This,
  871. IRpcChannelBuffer *_pRpcChannelBuffer,
  872. PRPC_MESSAGE _pRpcMessage,
  873. DWORD *_pdwStubPhase);
  874. /* [local] */ HRESULT STDMETHODCALLTYPE ISpNotifySource_WaitForNotifyEvent_Proxy(
  875. ISpNotifySource * This,
  876. /* [in] */ DWORD dwMilliseconds);
  877. void __RPC_STUB ISpNotifySource_WaitForNotifyEvent_Stub(
  878. IRpcStubBuffer *This,
  879. IRpcChannelBuffer *_pRpcChannelBuffer,
  880. PRPC_MESSAGE _pRpcMessage,
  881. DWORD *_pdwStubPhase);
  882. /* [local] */ HANDLE STDMETHODCALLTYPE ISpNotifySource_GetNotifyEventHandle_Proxy(
  883. ISpNotifySource * This);
  884. void __RPC_STUB ISpNotifySource_GetNotifyEventHandle_Stub(
  885. IRpcStubBuffer *This,
  886. IRpcChannelBuffer *_pRpcChannelBuffer,
  887. PRPC_MESSAGE _pRpcMessage,
  888. DWORD *_pdwStubPhase);
  889. #endif /* __ISpNotifySource_INTERFACE_DEFINED__ */
  890. #ifndef __ISpNotifySink_INTERFACE_DEFINED__
  891. #define __ISpNotifySink_INTERFACE_DEFINED__
  892. /* interface ISpNotifySink */
  893. /* [restricted][unique][helpstring][uuid][object] */
  894. EXTERN_C const IID IID_ISpNotifySink;
  895. #if defined(__cplusplus) && !defined(CINTERFACE)
  896. MIDL_INTERFACE("259684DC-37C3-11D2-9603-00C04F8EE628")
  897. ISpNotifySink : public IUnknown
  898. {
  899. public:
  900. virtual HRESULT STDMETHODCALLTYPE Notify( void) = 0;
  901. };
  902. #else /* C style interface */
  903. typedef struct ISpNotifySinkVtbl
  904. {
  905. BEGIN_INTERFACE
  906. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  907. ISpNotifySink * This,
  908. /* [in] */ REFIID riid,
  909. /* [iid_is][out] */ void **ppvObject);
  910. ULONG ( STDMETHODCALLTYPE *AddRef )(
  911. ISpNotifySink * This);
  912. ULONG ( STDMETHODCALLTYPE *Release )(
  913. ISpNotifySink * This);
  914. HRESULT ( STDMETHODCALLTYPE *Notify )(
  915. ISpNotifySink * This);
  916. END_INTERFACE
  917. } ISpNotifySinkVtbl;
  918. interface ISpNotifySink
  919. {
  920. CONST_VTBL struct ISpNotifySinkVtbl *lpVtbl;
  921. };
  922. #ifdef COBJMACROS
  923. #define ISpNotifySink_QueryInterface(This,riid,ppvObject) \
  924. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  925. #define ISpNotifySink_AddRef(This) \
  926. (This)->lpVtbl -> AddRef(This)
  927. #define ISpNotifySink_Release(This) \
  928. (This)->lpVtbl -> Release(This)
  929. #define ISpNotifySink_Notify(This) \
  930. (This)->lpVtbl -> Notify(This)
  931. #endif /* COBJMACROS */
  932. #endif /* C style interface */
  933. HRESULT STDMETHODCALLTYPE ISpNotifySink_Notify_Proxy(
  934. ISpNotifySink * This);
  935. void __RPC_STUB ISpNotifySink_Notify_Stub(
  936. IRpcStubBuffer *This,
  937. IRpcChannelBuffer *_pRpcChannelBuffer,
  938. PRPC_MESSAGE _pRpcMessage,
  939. DWORD *_pdwStubPhase);
  940. #endif /* __ISpNotifySink_INTERFACE_DEFINED__ */
  941. #ifndef __ISpNotifyTranslator_INTERFACE_DEFINED__
  942. #define __ISpNotifyTranslator_INTERFACE_DEFINED__
  943. /* interface ISpNotifyTranslator */
  944. /* [restricted][local][unique][helpstring][uuid][object] */
  945. EXTERN_C const IID IID_ISpNotifyTranslator;
  946. #if defined(__cplusplus) && !defined(CINTERFACE)
  947. MIDL_INTERFACE("ACA16614-5D3D-11D2-960E-00C04F8EE628")
  948. ISpNotifyTranslator : public ISpNotifySink
  949. {
  950. public:
  951. virtual HRESULT STDMETHODCALLTYPE InitWindowMessage(
  952. /* [in] */ HWND hWnd,
  953. /* [in] */ UINT Msg,
  954. /* [in] */ WPARAM wParam,
  955. /* [in] */ LPARAM lParam) = 0;
  956. virtual HRESULT STDMETHODCALLTYPE InitCallback(
  957. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  958. /* [in] */ WPARAM wParam,
  959. /* [in] */ LPARAM lParam) = 0;
  960. virtual HRESULT STDMETHODCALLTYPE InitSpNotifyCallback(
  961. /* [in] */ ISpNotifyCallback *pSpCallback,
  962. /* [in] */ WPARAM wParam,
  963. /* [in] */ LPARAM lParam) = 0;
  964. virtual HRESULT STDMETHODCALLTYPE InitWin32Event(
  965. HANDLE hEvent,
  966. BOOL fCloseHandleOnRelease) = 0;
  967. virtual HRESULT STDMETHODCALLTYPE Wait(
  968. /* [in] */ DWORD dwMilliseconds) = 0;
  969. virtual HANDLE STDMETHODCALLTYPE GetEventHandle( void) = 0;
  970. };
  971. #else /* C style interface */
  972. typedef struct ISpNotifyTranslatorVtbl
  973. {
  974. BEGIN_INTERFACE
  975. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  976. ISpNotifyTranslator * This,
  977. /* [in] */ REFIID riid,
  978. /* [iid_is][out] */ void **ppvObject);
  979. ULONG ( STDMETHODCALLTYPE *AddRef )(
  980. ISpNotifyTranslator * This);
  981. ULONG ( STDMETHODCALLTYPE *Release )(
  982. ISpNotifyTranslator * This);
  983. HRESULT ( STDMETHODCALLTYPE *Notify )(
  984. ISpNotifyTranslator * This);
  985. HRESULT ( STDMETHODCALLTYPE *InitWindowMessage )(
  986. ISpNotifyTranslator * This,
  987. /* [in] */ HWND hWnd,
  988. /* [in] */ UINT Msg,
  989. /* [in] */ WPARAM wParam,
  990. /* [in] */ LPARAM lParam);
  991. HRESULT ( STDMETHODCALLTYPE *InitCallback )(
  992. ISpNotifyTranslator * This,
  993. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  994. /* [in] */ WPARAM wParam,
  995. /* [in] */ LPARAM lParam);
  996. HRESULT ( STDMETHODCALLTYPE *InitSpNotifyCallback )(
  997. ISpNotifyTranslator * This,
  998. /* [in] */ ISpNotifyCallback *pSpCallback,
  999. /* [in] */ WPARAM wParam,
  1000. /* [in] */ LPARAM lParam);
  1001. HRESULT ( STDMETHODCALLTYPE *InitWin32Event )(
  1002. ISpNotifyTranslator * This,
  1003. HANDLE hEvent,
  1004. BOOL fCloseHandleOnRelease);
  1005. HRESULT ( STDMETHODCALLTYPE *Wait )(
  1006. ISpNotifyTranslator * This,
  1007. /* [in] */ DWORD dwMilliseconds);
  1008. HANDLE ( STDMETHODCALLTYPE *GetEventHandle )(
  1009. ISpNotifyTranslator * This);
  1010. END_INTERFACE
  1011. } ISpNotifyTranslatorVtbl;
  1012. interface ISpNotifyTranslator
  1013. {
  1014. CONST_VTBL struct ISpNotifyTranslatorVtbl *lpVtbl;
  1015. };
  1016. #ifdef COBJMACROS
  1017. #define ISpNotifyTranslator_QueryInterface(This,riid,ppvObject) \
  1018. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1019. #define ISpNotifyTranslator_AddRef(This) \
  1020. (This)->lpVtbl -> AddRef(This)
  1021. #define ISpNotifyTranslator_Release(This) \
  1022. (This)->lpVtbl -> Release(This)
  1023. #define ISpNotifyTranslator_Notify(This) \
  1024. (This)->lpVtbl -> Notify(This)
  1025. #define ISpNotifyTranslator_InitWindowMessage(This,hWnd,Msg,wParam,lParam) \
  1026. (This)->lpVtbl -> InitWindowMessage(This,hWnd,Msg,wParam,lParam)
  1027. #define ISpNotifyTranslator_InitCallback(This,pfnCallback,wParam,lParam) \
  1028. (This)->lpVtbl -> InitCallback(This,pfnCallback,wParam,lParam)
  1029. #define ISpNotifyTranslator_InitSpNotifyCallback(This,pSpCallback,wParam,lParam) \
  1030. (This)->lpVtbl -> InitSpNotifyCallback(This,pSpCallback,wParam,lParam)
  1031. #define ISpNotifyTranslator_InitWin32Event(This,hEvent,fCloseHandleOnRelease) \
  1032. (This)->lpVtbl -> InitWin32Event(This,hEvent,fCloseHandleOnRelease)
  1033. #define ISpNotifyTranslator_Wait(This,dwMilliseconds) \
  1034. (This)->lpVtbl -> Wait(This,dwMilliseconds)
  1035. #define ISpNotifyTranslator_GetEventHandle(This) \
  1036. (This)->lpVtbl -> GetEventHandle(This)
  1037. #endif /* COBJMACROS */
  1038. #endif /* C style interface */
  1039. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitWindowMessage_Proxy(
  1040. ISpNotifyTranslator * This,
  1041. /* [in] */ HWND hWnd,
  1042. /* [in] */ UINT Msg,
  1043. /* [in] */ WPARAM wParam,
  1044. /* [in] */ LPARAM lParam);
  1045. void __RPC_STUB ISpNotifyTranslator_InitWindowMessage_Stub(
  1046. IRpcStubBuffer *This,
  1047. IRpcChannelBuffer *_pRpcChannelBuffer,
  1048. PRPC_MESSAGE _pRpcMessage,
  1049. DWORD *_pdwStubPhase);
  1050. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitCallback_Proxy(
  1051. ISpNotifyTranslator * This,
  1052. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  1053. /* [in] */ WPARAM wParam,
  1054. /* [in] */ LPARAM lParam);
  1055. void __RPC_STUB ISpNotifyTranslator_InitCallback_Stub(
  1056. IRpcStubBuffer *This,
  1057. IRpcChannelBuffer *_pRpcChannelBuffer,
  1058. PRPC_MESSAGE _pRpcMessage,
  1059. DWORD *_pdwStubPhase);
  1060. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitSpNotifyCallback_Proxy(
  1061. ISpNotifyTranslator * This,
  1062. /* [in] */ ISpNotifyCallback *pSpCallback,
  1063. /* [in] */ WPARAM wParam,
  1064. /* [in] */ LPARAM lParam);
  1065. void __RPC_STUB ISpNotifyTranslator_InitSpNotifyCallback_Stub(
  1066. IRpcStubBuffer *This,
  1067. IRpcChannelBuffer *_pRpcChannelBuffer,
  1068. PRPC_MESSAGE _pRpcMessage,
  1069. DWORD *_pdwStubPhase);
  1070. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_InitWin32Event_Proxy(
  1071. ISpNotifyTranslator * This,
  1072. HANDLE hEvent,
  1073. BOOL fCloseHandleOnRelease);
  1074. void __RPC_STUB ISpNotifyTranslator_InitWin32Event_Stub(
  1075. IRpcStubBuffer *This,
  1076. IRpcChannelBuffer *_pRpcChannelBuffer,
  1077. PRPC_MESSAGE _pRpcMessage,
  1078. DWORD *_pdwStubPhase);
  1079. HRESULT STDMETHODCALLTYPE ISpNotifyTranslator_Wait_Proxy(
  1080. ISpNotifyTranslator * This,
  1081. /* [in] */ DWORD dwMilliseconds);
  1082. void __RPC_STUB ISpNotifyTranslator_Wait_Stub(
  1083. IRpcStubBuffer *This,
  1084. IRpcChannelBuffer *_pRpcChannelBuffer,
  1085. PRPC_MESSAGE _pRpcMessage,
  1086. DWORD *_pdwStubPhase);
  1087. HANDLE STDMETHODCALLTYPE ISpNotifyTranslator_GetEventHandle_Proxy(
  1088. ISpNotifyTranslator * This);
  1089. void __RPC_STUB ISpNotifyTranslator_GetEventHandle_Stub(
  1090. IRpcStubBuffer *This,
  1091. IRpcChannelBuffer *_pRpcChannelBuffer,
  1092. PRPC_MESSAGE _pRpcMessage,
  1093. DWORD *_pdwStubPhase);
  1094. #endif /* __ISpNotifyTranslator_INTERFACE_DEFINED__ */
  1095. #ifndef __ISpDataKey_INTERFACE_DEFINED__
  1096. #define __ISpDataKey_INTERFACE_DEFINED__
  1097. /* interface ISpDataKey */
  1098. /* [restricted][unique][helpstring][uuid][object] */
  1099. EXTERN_C const IID IID_ISpDataKey;
  1100. #if defined(__cplusplus) && !defined(CINTERFACE)
  1101. MIDL_INTERFACE("14056581-E16C-11D2-BB90-00C04F8EE6C0")
  1102. ISpDataKey : public IUnknown
  1103. {
  1104. public:
  1105. virtual HRESULT STDMETHODCALLTYPE SetData(
  1106. const WCHAR *pszValueName,
  1107. ULONG cbData,
  1108. const BYTE *pData) = 0;
  1109. virtual HRESULT STDMETHODCALLTYPE GetData(
  1110. const WCHAR *pszValueName,
  1111. ULONG *pcbData,
  1112. BYTE *pData) = 0;
  1113. virtual HRESULT STDMETHODCALLTYPE SetStringValue(
  1114. const WCHAR *pszValueName,
  1115. const WCHAR *pszValue) = 0;
  1116. virtual HRESULT STDMETHODCALLTYPE GetStringValue(
  1117. const WCHAR *pszValueName,
  1118. WCHAR **ppszValue) = 0;
  1119. virtual HRESULT STDMETHODCALLTYPE SetDWORD(
  1120. const WCHAR *pszValueName,
  1121. DWORD dwValue) = 0;
  1122. virtual HRESULT STDMETHODCALLTYPE GetDWORD(
  1123. const WCHAR *pszValueName,
  1124. DWORD *pdwValue) = 0;
  1125. virtual HRESULT STDMETHODCALLTYPE OpenKey(
  1126. const WCHAR *pszSubKeyName,
  1127. ISpDataKey **ppSubKey) = 0;
  1128. virtual HRESULT STDMETHODCALLTYPE CreateKey(
  1129. const WCHAR *pszSubKey,
  1130. ISpDataKey **ppSubKey) = 0;
  1131. virtual HRESULT STDMETHODCALLTYPE DeleteKey(
  1132. const WCHAR *pszSubKey) = 0;
  1133. virtual HRESULT STDMETHODCALLTYPE DeleteValue(
  1134. const WCHAR *pszValueName) = 0;
  1135. virtual HRESULT STDMETHODCALLTYPE EnumKeys(
  1136. ULONG Index,
  1137. WCHAR **ppszSubKeyName) = 0;
  1138. virtual HRESULT STDMETHODCALLTYPE EnumValues(
  1139. ULONG Index,
  1140. WCHAR **ppszValueName) = 0;
  1141. };
  1142. #else /* C style interface */
  1143. typedef struct ISpDataKeyVtbl
  1144. {
  1145. BEGIN_INTERFACE
  1146. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1147. ISpDataKey * This,
  1148. /* [in] */ REFIID riid,
  1149. /* [iid_is][out] */ void **ppvObject);
  1150. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1151. ISpDataKey * This);
  1152. ULONG ( STDMETHODCALLTYPE *Release )(
  1153. ISpDataKey * This);
  1154. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1155. ISpDataKey * This,
  1156. const WCHAR *pszValueName,
  1157. ULONG cbData,
  1158. const BYTE *pData);
  1159. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1160. ISpDataKey * This,
  1161. const WCHAR *pszValueName,
  1162. ULONG *pcbData,
  1163. BYTE *pData);
  1164. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1165. ISpDataKey * This,
  1166. const WCHAR *pszValueName,
  1167. const WCHAR *pszValue);
  1168. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1169. ISpDataKey * This,
  1170. const WCHAR *pszValueName,
  1171. WCHAR **ppszValue);
  1172. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1173. ISpDataKey * This,
  1174. const WCHAR *pszValueName,
  1175. DWORD dwValue);
  1176. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1177. ISpDataKey * This,
  1178. const WCHAR *pszValueName,
  1179. DWORD *pdwValue);
  1180. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1181. ISpDataKey * This,
  1182. const WCHAR *pszSubKeyName,
  1183. ISpDataKey **ppSubKey);
  1184. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1185. ISpDataKey * This,
  1186. const WCHAR *pszSubKey,
  1187. ISpDataKey **ppSubKey);
  1188. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1189. ISpDataKey * This,
  1190. const WCHAR *pszSubKey);
  1191. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1192. ISpDataKey * This,
  1193. const WCHAR *pszValueName);
  1194. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1195. ISpDataKey * This,
  1196. ULONG Index,
  1197. WCHAR **ppszSubKeyName);
  1198. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1199. ISpDataKey * This,
  1200. ULONG Index,
  1201. WCHAR **ppszValueName);
  1202. END_INTERFACE
  1203. } ISpDataKeyVtbl;
  1204. interface ISpDataKey
  1205. {
  1206. CONST_VTBL struct ISpDataKeyVtbl *lpVtbl;
  1207. };
  1208. #ifdef COBJMACROS
  1209. #define ISpDataKey_QueryInterface(This,riid,ppvObject) \
  1210. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1211. #define ISpDataKey_AddRef(This) \
  1212. (This)->lpVtbl -> AddRef(This)
  1213. #define ISpDataKey_Release(This) \
  1214. (This)->lpVtbl -> Release(This)
  1215. #define ISpDataKey_SetData(This,pszValueName,cbData,pData) \
  1216. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1217. #define ISpDataKey_GetData(This,pszValueName,pcbData,pData) \
  1218. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1219. #define ISpDataKey_SetStringValue(This,pszValueName,pszValue) \
  1220. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1221. #define ISpDataKey_GetStringValue(This,pszValueName,ppszValue) \
  1222. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1223. #define ISpDataKey_SetDWORD(This,pszValueName,dwValue) \
  1224. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1225. #define ISpDataKey_GetDWORD(This,pszValueName,pdwValue) \
  1226. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1227. #define ISpDataKey_OpenKey(This,pszSubKeyName,ppSubKey) \
  1228. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1229. #define ISpDataKey_CreateKey(This,pszSubKey,ppSubKey) \
  1230. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1231. #define ISpDataKey_DeleteKey(This,pszSubKey) \
  1232. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1233. #define ISpDataKey_DeleteValue(This,pszValueName) \
  1234. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1235. #define ISpDataKey_EnumKeys(This,Index,ppszSubKeyName) \
  1236. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1237. #define ISpDataKey_EnumValues(This,Index,ppszValueName) \
  1238. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1239. #endif /* COBJMACROS */
  1240. #endif /* C style interface */
  1241. HRESULT STDMETHODCALLTYPE ISpDataKey_SetData_Proxy(
  1242. ISpDataKey * This,
  1243. const WCHAR *pszValueName,
  1244. ULONG cbData,
  1245. const BYTE *pData);
  1246. void __RPC_STUB ISpDataKey_SetData_Stub(
  1247. IRpcStubBuffer *This,
  1248. IRpcChannelBuffer *_pRpcChannelBuffer,
  1249. PRPC_MESSAGE _pRpcMessage,
  1250. DWORD *_pdwStubPhase);
  1251. HRESULT STDMETHODCALLTYPE ISpDataKey_GetData_Proxy(
  1252. ISpDataKey * This,
  1253. const WCHAR *pszValueName,
  1254. ULONG *pcbData,
  1255. BYTE *pData);
  1256. void __RPC_STUB ISpDataKey_GetData_Stub(
  1257. IRpcStubBuffer *This,
  1258. IRpcChannelBuffer *_pRpcChannelBuffer,
  1259. PRPC_MESSAGE _pRpcMessage,
  1260. DWORD *_pdwStubPhase);
  1261. HRESULT STDMETHODCALLTYPE ISpDataKey_SetStringValue_Proxy(
  1262. ISpDataKey * This,
  1263. const WCHAR *pszValueName,
  1264. const WCHAR *pszValue);
  1265. void __RPC_STUB ISpDataKey_SetStringValue_Stub(
  1266. IRpcStubBuffer *This,
  1267. IRpcChannelBuffer *_pRpcChannelBuffer,
  1268. PRPC_MESSAGE _pRpcMessage,
  1269. DWORD *_pdwStubPhase);
  1270. HRESULT STDMETHODCALLTYPE ISpDataKey_GetStringValue_Proxy(
  1271. ISpDataKey * This,
  1272. const WCHAR *pszValueName,
  1273. WCHAR **ppszValue);
  1274. void __RPC_STUB ISpDataKey_GetStringValue_Stub(
  1275. IRpcStubBuffer *This,
  1276. IRpcChannelBuffer *_pRpcChannelBuffer,
  1277. PRPC_MESSAGE _pRpcMessage,
  1278. DWORD *_pdwStubPhase);
  1279. HRESULT STDMETHODCALLTYPE ISpDataKey_SetDWORD_Proxy(
  1280. ISpDataKey * This,
  1281. const WCHAR *pszValueName,
  1282. DWORD dwValue);
  1283. void __RPC_STUB ISpDataKey_SetDWORD_Stub(
  1284. IRpcStubBuffer *This,
  1285. IRpcChannelBuffer *_pRpcChannelBuffer,
  1286. PRPC_MESSAGE _pRpcMessage,
  1287. DWORD *_pdwStubPhase);
  1288. HRESULT STDMETHODCALLTYPE ISpDataKey_GetDWORD_Proxy(
  1289. ISpDataKey * This,
  1290. const WCHAR *pszValueName,
  1291. DWORD *pdwValue);
  1292. void __RPC_STUB ISpDataKey_GetDWORD_Stub(
  1293. IRpcStubBuffer *This,
  1294. IRpcChannelBuffer *_pRpcChannelBuffer,
  1295. PRPC_MESSAGE _pRpcMessage,
  1296. DWORD *_pdwStubPhase);
  1297. HRESULT STDMETHODCALLTYPE ISpDataKey_OpenKey_Proxy(
  1298. ISpDataKey * This,
  1299. const WCHAR *pszSubKeyName,
  1300. ISpDataKey **ppSubKey);
  1301. void __RPC_STUB ISpDataKey_OpenKey_Stub(
  1302. IRpcStubBuffer *This,
  1303. IRpcChannelBuffer *_pRpcChannelBuffer,
  1304. PRPC_MESSAGE _pRpcMessage,
  1305. DWORD *_pdwStubPhase);
  1306. HRESULT STDMETHODCALLTYPE ISpDataKey_CreateKey_Proxy(
  1307. ISpDataKey * This,
  1308. const WCHAR *pszSubKey,
  1309. ISpDataKey **ppSubKey);
  1310. void __RPC_STUB ISpDataKey_CreateKey_Stub(
  1311. IRpcStubBuffer *This,
  1312. IRpcChannelBuffer *_pRpcChannelBuffer,
  1313. PRPC_MESSAGE _pRpcMessage,
  1314. DWORD *_pdwStubPhase);
  1315. HRESULT STDMETHODCALLTYPE ISpDataKey_DeleteKey_Proxy(
  1316. ISpDataKey * This,
  1317. const WCHAR *pszSubKey);
  1318. void __RPC_STUB ISpDataKey_DeleteKey_Stub(
  1319. IRpcStubBuffer *This,
  1320. IRpcChannelBuffer *_pRpcChannelBuffer,
  1321. PRPC_MESSAGE _pRpcMessage,
  1322. DWORD *_pdwStubPhase);
  1323. HRESULT STDMETHODCALLTYPE ISpDataKey_DeleteValue_Proxy(
  1324. ISpDataKey * This,
  1325. const WCHAR *pszValueName);
  1326. void __RPC_STUB ISpDataKey_DeleteValue_Stub(
  1327. IRpcStubBuffer *This,
  1328. IRpcChannelBuffer *_pRpcChannelBuffer,
  1329. PRPC_MESSAGE _pRpcMessage,
  1330. DWORD *_pdwStubPhase);
  1331. HRESULT STDMETHODCALLTYPE ISpDataKey_EnumKeys_Proxy(
  1332. ISpDataKey * This,
  1333. ULONG Index,
  1334. WCHAR **ppszSubKeyName);
  1335. void __RPC_STUB ISpDataKey_EnumKeys_Stub(
  1336. IRpcStubBuffer *This,
  1337. IRpcChannelBuffer *_pRpcChannelBuffer,
  1338. PRPC_MESSAGE _pRpcMessage,
  1339. DWORD *_pdwStubPhase);
  1340. HRESULT STDMETHODCALLTYPE ISpDataKey_EnumValues_Proxy(
  1341. ISpDataKey * This,
  1342. ULONG Index,
  1343. WCHAR **ppszValueName);
  1344. void __RPC_STUB ISpDataKey_EnumValues_Stub(
  1345. IRpcStubBuffer *This,
  1346. IRpcChannelBuffer *_pRpcChannelBuffer,
  1347. PRPC_MESSAGE _pRpcMessage,
  1348. DWORD *_pdwStubPhase);
  1349. #endif /* __ISpDataKey_INTERFACE_DEFINED__ */
  1350. #ifndef __ISpRegDataKey_INTERFACE_DEFINED__
  1351. #define __ISpRegDataKey_INTERFACE_DEFINED__
  1352. /* interface ISpRegDataKey */
  1353. /* [restricted][unique][helpstring][uuid][object] */
  1354. EXTERN_C const IID IID_ISpRegDataKey;
  1355. #if defined(__cplusplus) && !defined(CINTERFACE)
  1356. MIDL_INTERFACE("92A66E2B-C830-4149-83DF-6FC2BA1E7A5B")
  1357. ISpRegDataKey : public ISpDataKey
  1358. {
  1359. public:
  1360. virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetKey(
  1361. /* [in] */ HKEY hkey,
  1362. /* [in] */ BOOL fReadOnly) = 0;
  1363. };
  1364. #else /* C style interface */
  1365. typedef struct ISpRegDataKeyVtbl
  1366. {
  1367. BEGIN_INTERFACE
  1368. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1369. ISpRegDataKey * This,
  1370. /* [in] */ REFIID riid,
  1371. /* [iid_is][out] */ void **ppvObject);
  1372. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1373. ISpRegDataKey * This);
  1374. ULONG ( STDMETHODCALLTYPE *Release )(
  1375. ISpRegDataKey * This);
  1376. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1377. ISpRegDataKey * This,
  1378. const WCHAR *pszValueName,
  1379. ULONG cbData,
  1380. const BYTE *pData);
  1381. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1382. ISpRegDataKey * This,
  1383. const WCHAR *pszValueName,
  1384. ULONG *pcbData,
  1385. BYTE *pData);
  1386. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1387. ISpRegDataKey * This,
  1388. const WCHAR *pszValueName,
  1389. const WCHAR *pszValue);
  1390. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1391. ISpRegDataKey * This,
  1392. const WCHAR *pszValueName,
  1393. WCHAR **ppszValue);
  1394. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1395. ISpRegDataKey * This,
  1396. const WCHAR *pszValueName,
  1397. DWORD dwValue);
  1398. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1399. ISpRegDataKey * This,
  1400. const WCHAR *pszValueName,
  1401. DWORD *pdwValue);
  1402. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1403. ISpRegDataKey * This,
  1404. const WCHAR *pszSubKeyName,
  1405. ISpDataKey **ppSubKey);
  1406. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1407. ISpRegDataKey * This,
  1408. const WCHAR *pszSubKey,
  1409. ISpDataKey **ppSubKey);
  1410. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1411. ISpRegDataKey * This,
  1412. const WCHAR *pszSubKey);
  1413. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1414. ISpRegDataKey * This,
  1415. const WCHAR *pszValueName);
  1416. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1417. ISpRegDataKey * This,
  1418. ULONG Index,
  1419. WCHAR **ppszSubKeyName);
  1420. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1421. ISpRegDataKey * This,
  1422. ULONG Index,
  1423. WCHAR **ppszValueName);
  1424. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetKey )(
  1425. ISpRegDataKey * This,
  1426. /* [in] */ HKEY hkey,
  1427. /* [in] */ BOOL fReadOnly);
  1428. END_INTERFACE
  1429. } ISpRegDataKeyVtbl;
  1430. interface ISpRegDataKey
  1431. {
  1432. CONST_VTBL struct ISpRegDataKeyVtbl *lpVtbl;
  1433. };
  1434. #ifdef COBJMACROS
  1435. #define ISpRegDataKey_QueryInterface(This,riid,ppvObject) \
  1436. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1437. #define ISpRegDataKey_AddRef(This) \
  1438. (This)->lpVtbl -> AddRef(This)
  1439. #define ISpRegDataKey_Release(This) \
  1440. (This)->lpVtbl -> Release(This)
  1441. #define ISpRegDataKey_SetData(This,pszValueName,cbData,pData) \
  1442. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1443. #define ISpRegDataKey_GetData(This,pszValueName,pcbData,pData) \
  1444. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1445. #define ISpRegDataKey_SetStringValue(This,pszValueName,pszValue) \
  1446. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1447. #define ISpRegDataKey_GetStringValue(This,pszValueName,ppszValue) \
  1448. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1449. #define ISpRegDataKey_SetDWORD(This,pszValueName,dwValue) \
  1450. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1451. #define ISpRegDataKey_GetDWORD(This,pszValueName,pdwValue) \
  1452. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1453. #define ISpRegDataKey_OpenKey(This,pszSubKeyName,ppSubKey) \
  1454. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1455. #define ISpRegDataKey_CreateKey(This,pszSubKey,ppSubKey) \
  1456. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1457. #define ISpRegDataKey_DeleteKey(This,pszSubKey) \
  1458. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1459. #define ISpRegDataKey_DeleteValue(This,pszValueName) \
  1460. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1461. #define ISpRegDataKey_EnumKeys(This,Index,ppszSubKeyName) \
  1462. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1463. #define ISpRegDataKey_EnumValues(This,Index,ppszValueName) \
  1464. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1465. #define ISpRegDataKey_SetKey(This,hkey,fReadOnly) \
  1466. (This)->lpVtbl -> SetKey(This,hkey,fReadOnly)
  1467. #endif /* COBJMACROS */
  1468. #endif /* C style interface */
  1469. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRegDataKey_SetKey_Proxy(
  1470. ISpRegDataKey * This,
  1471. /* [in] */ HKEY hkey,
  1472. /* [in] */ BOOL fReadOnly);
  1473. void __RPC_STUB ISpRegDataKey_SetKey_Stub(
  1474. IRpcStubBuffer *This,
  1475. IRpcChannelBuffer *_pRpcChannelBuffer,
  1476. PRPC_MESSAGE _pRpcMessage,
  1477. DWORD *_pdwStubPhase);
  1478. #endif /* __ISpRegDataKey_INTERFACE_DEFINED__ */
  1479. #ifndef __ISpObjectTokenCategory_INTERFACE_DEFINED__
  1480. #define __ISpObjectTokenCategory_INTERFACE_DEFINED__
  1481. /* interface ISpObjectTokenCategory */
  1482. /* [restricted][unique][helpstring][uuid][object] */
  1483. EXTERN_C const IID IID_ISpObjectTokenCategory;
  1484. #if defined(__cplusplus) && !defined(CINTERFACE)
  1485. MIDL_INTERFACE("2D3D3845-39AF-4850-BBF9-40B49780011D")
  1486. ISpObjectTokenCategory : public ISpDataKey
  1487. {
  1488. public:
  1489. virtual HRESULT STDMETHODCALLTYPE SetId(
  1490. /* [in] */ const WCHAR *pszCategoryId,
  1491. BOOL fCreateIfNotExist) = 0;
  1492. virtual HRESULT STDMETHODCALLTYPE GetId(
  1493. /* [out] */ WCHAR **ppszCoMemCategoryId) = 0;
  1494. virtual HRESULT STDMETHODCALLTYPE GetDataKey(
  1495. SPDATAKEYLOCATION spdkl,
  1496. ISpDataKey **ppDataKey) = 0;
  1497. virtual HRESULT STDMETHODCALLTYPE EnumTokens(
  1498. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1499. /* [string][in] */ const WCHAR *pszOptAttribs,
  1500. /* [out] */ IEnumSpObjectTokens **ppEnum) = 0;
  1501. virtual HRESULT STDMETHODCALLTYPE SetDefaultTokenId(
  1502. /* [in] */ const WCHAR *pszTokenId) = 0;
  1503. virtual HRESULT STDMETHODCALLTYPE GetDefaultTokenId(
  1504. /* [out] */ WCHAR **ppszCoMemTokenId) = 0;
  1505. };
  1506. #else /* C style interface */
  1507. typedef struct ISpObjectTokenCategoryVtbl
  1508. {
  1509. BEGIN_INTERFACE
  1510. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1511. ISpObjectTokenCategory * This,
  1512. /* [in] */ REFIID riid,
  1513. /* [iid_is][out] */ void **ppvObject);
  1514. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1515. ISpObjectTokenCategory * This);
  1516. ULONG ( STDMETHODCALLTYPE *Release )(
  1517. ISpObjectTokenCategory * This);
  1518. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1519. ISpObjectTokenCategory * This,
  1520. const WCHAR *pszValueName,
  1521. ULONG cbData,
  1522. const BYTE *pData);
  1523. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1524. ISpObjectTokenCategory * This,
  1525. const WCHAR *pszValueName,
  1526. ULONG *pcbData,
  1527. BYTE *pData);
  1528. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1529. ISpObjectTokenCategory * This,
  1530. const WCHAR *pszValueName,
  1531. const WCHAR *pszValue);
  1532. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1533. ISpObjectTokenCategory * This,
  1534. const WCHAR *pszValueName,
  1535. WCHAR **ppszValue);
  1536. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1537. ISpObjectTokenCategory * This,
  1538. const WCHAR *pszValueName,
  1539. DWORD dwValue);
  1540. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1541. ISpObjectTokenCategory * This,
  1542. const WCHAR *pszValueName,
  1543. DWORD *pdwValue);
  1544. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1545. ISpObjectTokenCategory * This,
  1546. const WCHAR *pszSubKeyName,
  1547. ISpDataKey **ppSubKey);
  1548. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1549. ISpObjectTokenCategory * This,
  1550. const WCHAR *pszSubKey,
  1551. ISpDataKey **ppSubKey);
  1552. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1553. ISpObjectTokenCategory * This,
  1554. const WCHAR *pszSubKey);
  1555. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1556. ISpObjectTokenCategory * This,
  1557. const WCHAR *pszValueName);
  1558. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1559. ISpObjectTokenCategory * This,
  1560. ULONG Index,
  1561. WCHAR **ppszSubKeyName);
  1562. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1563. ISpObjectTokenCategory * This,
  1564. ULONG Index,
  1565. WCHAR **ppszValueName);
  1566. HRESULT ( STDMETHODCALLTYPE *SetId )(
  1567. ISpObjectTokenCategory * This,
  1568. /* [in] */ const WCHAR *pszCategoryId,
  1569. BOOL fCreateIfNotExist);
  1570. HRESULT ( STDMETHODCALLTYPE *GetId )(
  1571. ISpObjectTokenCategory * This,
  1572. /* [out] */ WCHAR **ppszCoMemCategoryId);
  1573. HRESULT ( STDMETHODCALLTYPE *GetDataKey )(
  1574. ISpObjectTokenCategory * This,
  1575. SPDATAKEYLOCATION spdkl,
  1576. ISpDataKey **ppDataKey);
  1577. HRESULT ( STDMETHODCALLTYPE *EnumTokens )(
  1578. ISpObjectTokenCategory * This,
  1579. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1580. /* [string][in] */ const WCHAR *pszOptAttribs,
  1581. /* [out] */ IEnumSpObjectTokens **ppEnum);
  1582. HRESULT ( STDMETHODCALLTYPE *SetDefaultTokenId )(
  1583. ISpObjectTokenCategory * This,
  1584. /* [in] */ const WCHAR *pszTokenId);
  1585. HRESULT ( STDMETHODCALLTYPE *GetDefaultTokenId )(
  1586. ISpObjectTokenCategory * This,
  1587. /* [out] */ WCHAR **ppszCoMemTokenId);
  1588. END_INTERFACE
  1589. } ISpObjectTokenCategoryVtbl;
  1590. interface ISpObjectTokenCategory
  1591. {
  1592. CONST_VTBL struct ISpObjectTokenCategoryVtbl *lpVtbl;
  1593. };
  1594. #ifdef COBJMACROS
  1595. #define ISpObjectTokenCategory_QueryInterface(This,riid,ppvObject) \
  1596. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1597. #define ISpObjectTokenCategory_AddRef(This) \
  1598. (This)->lpVtbl -> AddRef(This)
  1599. #define ISpObjectTokenCategory_Release(This) \
  1600. (This)->lpVtbl -> Release(This)
  1601. #define ISpObjectTokenCategory_SetData(This,pszValueName,cbData,pData) \
  1602. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1603. #define ISpObjectTokenCategory_GetData(This,pszValueName,pcbData,pData) \
  1604. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1605. #define ISpObjectTokenCategory_SetStringValue(This,pszValueName,pszValue) \
  1606. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1607. #define ISpObjectTokenCategory_GetStringValue(This,pszValueName,ppszValue) \
  1608. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1609. #define ISpObjectTokenCategory_SetDWORD(This,pszValueName,dwValue) \
  1610. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1611. #define ISpObjectTokenCategory_GetDWORD(This,pszValueName,pdwValue) \
  1612. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1613. #define ISpObjectTokenCategory_OpenKey(This,pszSubKeyName,ppSubKey) \
  1614. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1615. #define ISpObjectTokenCategory_CreateKey(This,pszSubKey,ppSubKey) \
  1616. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1617. #define ISpObjectTokenCategory_DeleteKey(This,pszSubKey) \
  1618. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1619. #define ISpObjectTokenCategory_DeleteValue(This,pszValueName) \
  1620. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1621. #define ISpObjectTokenCategory_EnumKeys(This,Index,ppszSubKeyName) \
  1622. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1623. #define ISpObjectTokenCategory_EnumValues(This,Index,ppszValueName) \
  1624. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1625. #define ISpObjectTokenCategory_SetId(This,pszCategoryId,fCreateIfNotExist) \
  1626. (This)->lpVtbl -> SetId(This,pszCategoryId,fCreateIfNotExist)
  1627. #define ISpObjectTokenCategory_GetId(This,ppszCoMemCategoryId) \
  1628. (This)->lpVtbl -> GetId(This,ppszCoMemCategoryId)
  1629. #define ISpObjectTokenCategory_GetDataKey(This,spdkl,ppDataKey) \
  1630. (This)->lpVtbl -> GetDataKey(This,spdkl,ppDataKey)
  1631. #define ISpObjectTokenCategory_EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum) \
  1632. (This)->lpVtbl -> EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum)
  1633. #define ISpObjectTokenCategory_SetDefaultTokenId(This,pszTokenId) \
  1634. (This)->lpVtbl -> SetDefaultTokenId(This,pszTokenId)
  1635. #define ISpObjectTokenCategory_GetDefaultTokenId(This,ppszCoMemTokenId) \
  1636. (This)->lpVtbl -> GetDefaultTokenId(This,ppszCoMemTokenId)
  1637. #endif /* COBJMACROS */
  1638. #endif /* C style interface */
  1639. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_SetId_Proxy(
  1640. ISpObjectTokenCategory * This,
  1641. /* [in] */ const WCHAR *pszCategoryId,
  1642. BOOL fCreateIfNotExist);
  1643. void __RPC_STUB ISpObjectTokenCategory_SetId_Stub(
  1644. IRpcStubBuffer *This,
  1645. IRpcChannelBuffer *_pRpcChannelBuffer,
  1646. PRPC_MESSAGE _pRpcMessage,
  1647. DWORD *_pdwStubPhase);
  1648. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetId_Proxy(
  1649. ISpObjectTokenCategory * This,
  1650. /* [out] */ WCHAR **ppszCoMemCategoryId);
  1651. void __RPC_STUB ISpObjectTokenCategory_GetId_Stub(
  1652. IRpcStubBuffer *This,
  1653. IRpcChannelBuffer *_pRpcChannelBuffer,
  1654. PRPC_MESSAGE _pRpcMessage,
  1655. DWORD *_pdwStubPhase);
  1656. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetDataKey_Proxy(
  1657. ISpObjectTokenCategory * This,
  1658. SPDATAKEYLOCATION spdkl,
  1659. ISpDataKey **ppDataKey);
  1660. void __RPC_STUB ISpObjectTokenCategory_GetDataKey_Stub(
  1661. IRpcStubBuffer *This,
  1662. IRpcChannelBuffer *_pRpcChannelBuffer,
  1663. PRPC_MESSAGE _pRpcMessage,
  1664. DWORD *_pdwStubPhase);
  1665. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_EnumTokens_Proxy(
  1666. ISpObjectTokenCategory * This,
  1667. /* [string][in] */ const WCHAR *pzsReqAttribs,
  1668. /* [string][in] */ const WCHAR *pszOptAttribs,
  1669. /* [out] */ IEnumSpObjectTokens **ppEnum);
  1670. void __RPC_STUB ISpObjectTokenCategory_EnumTokens_Stub(
  1671. IRpcStubBuffer *This,
  1672. IRpcChannelBuffer *_pRpcChannelBuffer,
  1673. PRPC_MESSAGE _pRpcMessage,
  1674. DWORD *_pdwStubPhase);
  1675. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_SetDefaultTokenId_Proxy(
  1676. ISpObjectTokenCategory * This,
  1677. /* [in] */ const WCHAR *pszTokenId);
  1678. void __RPC_STUB ISpObjectTokenCategory_SetDefaultTokenId_Stub(
  1679. IRpcStubBuffer *This,
  1680. IRpcChannelBuffer *_pRpcChannelBuffer,
  1681. PRPC_MESSAGE _pRpcMessage,
  1682. DWORD *_pdwStubPhase);
  1683. HRESULT STDMETHODCALLTYPE ISpObjectTokenCategory_GetDefaultTokenId_Proxy(
  1684. ISpObjectTokenCategory * This,
  1685. /* [out] */ WCHAR **ppszCoMemTokenId);
  1686. void __RPC_STUB ISpObjectTokenCategory_GetDefaultTokenId_Stub(
  1687. IRpcStubBuffer *This,
  1688. IRpcChannelBuffer *_pRpcChannelBuffer,
  1689. PRPC_MESSAGE _pRpcMessage,
  1690. DWORD *_pdwStubPhase);
  1691. #endif /* __ISpObjectTokenCategory_INTERFACE_DEFINED__ */
  1692. #ifndef __ISpObjectToken_INTERFACE_DEFINED__
  1693. #define __ISpObjectToken_INTERFACE_DEFINED__
  1694. /* interface ISpObjectToken */
  1695. /* [restricted][unique][helpstring][uuid][object] */
  1696. EXTERN_C const IID IID_ISpObjectToken;
  1697. #if defined(__cplusplus) && !defined(CINTERFACE)
  1698. MIDL_INTERFACE("14056589-E16C-11D2-BB90-00C04F8EE6C0")
  1699. ISpObjectToken : public ISpDataKey
  1700. {
  1701. public:
  1702. virtual HRESULT STDMETHODCALLTYPE SetId(
  1703. const WCHAR *pszCategoryId,
  1704. const WCHAR *pszTokenId,
  1705. BOOL fCreateIfNotExist) = 0;
  1706. virtual HRESULT STDMETHODCALLTYPE GetId(
  1707. WCHAR **ppszCoMemTokenId) = 0;
  1708. virtual HRESULT STDMETHODCALLTYPE GetCategory(
  1709. ISpObjectTokenCategory **ppTokenCategory) = 0;
  1710. virtual HRESULT STDMETHODCALLTYPE CreateInstance(
  1711. /* [in] */ IUnknown *pUnkOuter,
  1712. /* [in] */ DWORD dwClsContext,
  1713. /* [in] */ REFIID riid,
  1714. /* [iid_is][out] */ void **ppvObject) = 0;
  1715. virtual HRESULT STDMETHODCALLTYPE GetStorageFileName(
  1716. /* [in] */ REFCLSID clsidCaller,
  1717. /* [in] */ const WCHAR *pszValueName,
  1718. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1719. /* [in] */ ULONG nFolder,
  1720. /* [out] */ WCHAR **ppszFilePath) = 0;
  1721. virtual HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  1722. /* [in] */ REFCLSID clsidCaller,
  1723. /* [in] */ const WCHAR *pszKeyName,
  1724. /* [in] */ BOOL fDeleteFile) = 0;
  1725. virtual HRESULT STDMETHODCALLTYPE Remove(
  1726. const CLSID *pclsidCaller) = 0;
  1727. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  1728. /* [in] */ const WCHAR *pszTypeOfUI,
  1729. /* [in] */ void *pvExtraData,
  1730. /* [in] */ ULONG cbExtraData,
  1731. /* [in] */ IUnknown *punkObject,
  1732. /* [out] */ BOOL *pfSupported) = 0;
  1733. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  1734. /* [in] */ HWND hwndParent,
  1735. /* [in] */ const WCHAR *pszTitle,
  1736. /* [in] */ const WCHAR *pszTypeOfUI,
  1737. /* [in] */ void *pvExtraData,
  1738. /* [in] */ ULONG cbExtraData,
  1739. /* [in] */ IUnknown *punkObject) = 0;
  1740. virtual HRESULT STDMETHODCALLTYPE MatchesAttributes(
  1741. /* [in] */ const WCHAR *pszAttributes,
  1742. /* [out] */ BOOL *pfMatches) = 0;
  1743. };
  1744. #else /* C style interface */
  1745. typedef struct ISpObjectTokenVtbl
  1746. {
  1747. BEGIN_INTERFACE
  1748. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  1749. ISpObjectToken * This,
  1750. /* [in] */ REFIID riid,
  1751. /* [iid_is][out] */ void **ppvObject);
  1752. ULONG ( STDMETHODCALLTYPE *AddRef )(
  1753. ISpObjectToken * This);
  1754. ULONG ( STDMETHODCALLTYPE *Release )(
  1755. ISpObjectToken * This);
  1756. HRESULT ( STDMETHODCALLTYPE *SetData )(
  1757. ISpObjectToken * This,
  1758. const WCHAR *pszValueName,
  1759. ULONG cbData,
  1760. const BYTE *pData);
  1761. HRESULT ( STDMETHODCALLTYPE *GetData )(
  1762. ISpObjectToken * This,
  1763. const WCHAR *pszValueName,
  1764. ULONG *pcbData,
  1765. BYTE *pData);
  1766. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  1767. ISpObjectToken * This,
  1768. const WCHAR *pszValueName,
  1769. const WCHAR *pszValue);
  1770. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  1771. ISpObjectToken * This,
  1772. const WCHAR *pszValueName,
  1773. WCHAR **ppszValue);
  1774. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  1775. ISpObjectToken * This,
  1776. const WCHAR *pszValueName,
  1777. DWORD dwValue);
  1778. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  1779. ISpObjectToken * This,
  1780. const WCHAR *pszValueName,
  1781. DWORD *pdwValue);
  1782. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  1783. ISpObjectToken * This,
  1784. const WCHAR *pszSubKeyName,
  1785. ISpDataKey **ppSubKey);
  1786. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  1787. ISpObjectToken * This,
  1788. const WCHAR *pszSubKey,
  1789. ISpDataKey **ppSubKey);
  1790. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  1791. ISpObjectToken * This,
  1792. const WCHAR *pszSubKey);
  1793. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  1794. ISpObjectToken * This,
  1795. const WCHAR *pszValueName);
  1796. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  1797. ISpObjectToken * This,
  1798. ULONG Index,
  1799. WCHAR **ppszSubKeyName);
  1800. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  1801. ISpObjectToken * This,
  1802. ULONG Index,
  1803. WCHAR **ppszValueName);
  1804. HRESULT ( STDMETHODCALLTYPE *SetId )(
  1805. ISpObjectToken * This,
  1806. const WCHAR *pszCategoryId,
  1807. const WCHAR *pszTokenId,
  1808. BOOL fCreateIfNotExist);
  1809. HRESULT ( STDMETHODCALLTYPE *GetId )(
  1810. ISpObjectToken * This,
  1811. WCHAR **ppszCoMemTokenId);
  1812. HRESULT ( STDMETHODCALLTYPE *GetCategory )(
  1813. ISpObjectToken * This,
  1814. ISpObjectTokenCategory **ppTokenCategory);
  1815. HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  1816. ISpObjectToken * This,
  1817. /* [in] */ IUnknown *pUnkOuter,
  1818. /* [in] */ DWORD dwClsContext,
  1819. /* [in] */ REFIID riid,
  1820. /* [iid_is][out] */ void **ppvObject);
  1821. HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  1822. ISpObjectToken * This,
  1823. /* [in] */ REFCLSID clsidCaller,
  1824. /* [in] */ const WCHAR *pszValueName,
  1825. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1826. /* [in] */ ULONG nFolder,
  1827. /* [out] */ WCHAR **ppszFilePath);
  1828. HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  1829. ISpObjectToken * This,
  1830. /* [in] */ REFCLSID clsidCaller,
  1831. /* [in] */ const WCHAR *pszKeyName,
  1832. /* [in] */ BOOL fDeleteFile);
  1833. HRESULT ( STDMETHODCALLTYPE *Remove )(
  1834. ISpObjectToken * This,
  1835. const CLSID *pclsidCaller);
  1836. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  1837. ISpObjectToken * This,
  1838. /* [in] */ const WCHAR *pszTypeOfUI,
  1839. /* [in] */ void *pvExtraData,
  1840. /* [in] */ ULONG cbExtraData,
  1841. /* [in] */ IUnknown *punkObject,
  1842. /* [out] */ BOOL *pfSupported);
  1843. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  1844. ISpObjectToken * This,
  1845. /* [in] */ HWND hwndParent,
  1846. /* [in] */ const WCHAR *pszTitle,
  1847. /* [in] */ const WCHAR *pszTypeOfUI,
  1848. /* [in] */ void *pvExtraData,
  1849. /* [in] */ ULONG cbExtraData,
  1850. /* [in] */ IUnknown *punkObject);
  1851. HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  1852. ISpObjectToken * This,
  1853. /* [in] */ const WCHAR *pszAttributes,
  1854. /* [out] */ BOOL *pfMatches);
  1855. END_INTERFACE
  1856. } ISpObjectTokenVtbl;
  1857. interface ISpObjectToken
  1858. {
  1859. CONST_VTBL struct ISpObjectTokenVtbl *lpVtbl;
  1860. };
  1861. #ifdef COBJMACROS
  1862. #define ISpObjectToken_QueryInterface(This,riid,ppvObject) \
  1863. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1864. #define ISpObjectToken_AddRef(This) \
  1865. (This)->lpVtbl -> AddRef(This)
  1866. #define ISpObjectToken_Release(This) \
  1867. (This)->lpVtbl -> Release(This)
  1868. #define ISpObjectToken_SetData(This,pszValueName,cbData,pData) \
  1869. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  1870. #define ISpObjectToken_GetData(This,pszValueName,pcbData,pData) \
  1871. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  1872. #define ISpObjectToken_SetStringValue(This,pszValueName,pszValue) \
  1873. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  1874. #define ISpObjectToken_GetStringValue(This,pszValueName,ppszValue) \
  1875. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  1876. #define ISpObjectToken_SetDWORD(This,pszValueName,dwValue) \
  1877. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  1878. #define ISpObjectToken_GetDWORD(This,pszValueName,pdwValue) \
  1879. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  1880. #define ISpObjectToken_OpenKey(This,pszSubKeyName,ppSubKey) \
  1881. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  1882. #define ISpObjectToken_CreateKey(This,pszSubKey,ppSubKey) \
  1883. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  1884. #define ISpObjectToken_DeleteKey(This,pszSubKey) \
  1885. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  1886. #define ISpObjectToken_DeleteValue(This,pszValueName) \
  1887. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  1888. #define ISpObjectToken_EnumKeys(This,Index,ppszSubKeyName) \
  1889. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  1890. #define ISpObjectToken_EnumValues(This,Index,ppszValueName) \
  1891. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  1892. #define ISpObjectToken_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) \
  1893. (This)->lpVtbl -> SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  1894. #define ISpObjectToken_GetId(This,ppszCoMemTokenId) \
  1895. (This)->lpVtbl -> GetId(This,ppszCoMemTokenId)
  1896. #define ISpObjectToken_GetCategory(This,ppTokenCategory) \
  1897. (This)->lpVtbl -> GetCategory(This,ppTokenCategory)
  1898. #define ISpObjectToken_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) \
  1899. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  1900. #define ISpObjectToken_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) \
  1901. (This)->lpVtbl -> GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  1902. #define ISpObjectToken_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) \
  1903. (This)->lpVtbl -> RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  1904. #define ISpObjectToken_Remove(This,pclsidCaller) \
  1905. (This)->lpVtbl -> Remove(This,pclsidCaller)
  1906. #define ISpObjectToken_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) \
  1907. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  1908. #define ISpObjectToken_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) \
  1909. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  1910. #define ISpObjectToken_MatchesAttributes(This,pszAttributes,pfMatches) \
  1911. (This)->lpVtbl -> MatchesAttributes(This,pszAttributes,pfMatches)
  1912. #endif /* COBJMACROS */
  1913. #endif /* C style interface */
  1914. HRESULT STDMETHODCALLTYPE ISpObjectToken_SetId_Proxy(
  1915. ISpObjectToken * This,
  1916. const WCHAR *pszCategoryId,
  1917. const WCHAR *pszTokenId,
  1918. BOOL fCreateIfNotExist);
  1919. void __RPC_STUB ISpObjectToken_SetId_Stub(
  1920. IRpcStubBuffer *This,
  1921. IRpcChannelBuffer *_pRpcChannelBuffer,
  1922. PRPC_MESSAGE _pRpcMessage,
  1923. DWORD *_pdwStubPhase);
  1924. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetId_Proxy(
  1925. ISpObjectToken * This,
  1926. WCHAR **ppszCoMemTokenId);
  1927. void __RPC_STUB ISpObjectToken_GetId_Stub(
  1928. IRpcStubBuffer *This,
  1929. IRpcChannelBuffer *_pRpcChannelBuffer,
  1930. PRPC_MESSAGE _pRpcMessage,
  1931. DWORD *_pdwStubPhase);
  1932. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetCategory_Proxy(
  1933. ISpObjectToken * This,
  1934. ISpObjectTokenCategory **ppTokenCategory);
  1935. void __RPC_STUB ISpObjectToken_GetCategory_Stub(
  1936. IRpcStubBuffer *This,
  1937. IRpcChannelBuffer *_pRpcChannelBuffer,
  1938. PRPC_MESSAGE _pRpcMessage,
  1939. DWORD *_pdwStubPhase);
  1940. HRESULT STDMETHODCALLTYPE ISpObjectToken_CreateInstance_Proxy(
  1941. ISpObjectToken * This,
  1942. /* [in] */ IUnknown *pUnkOuter,
  1943. /* [in] */ DWORD dwClsContext,
  1944. /* [in] */ REFIID riid,
  1945. /* [iid_is][out] */ void **ppvObject);
  1946. void __RPC_STUB ISpObjectToken_CreateInstance_Stub(
  1947. IRpcStubBuffer *This,
  1948. IRpcChannelBuffer *_pRpcChannelBuffer,
  1949. PRPC_MESSAGE _pRpcMessage,
  1950. DWORD *_pdwStubPhase);
  1951. HRESULT STDMETHODCALLTYPE ISpObjectToken_GetStorageFileName_Proxy(
  1952. ISpObjectToken * This,
  1953. /* [in] */ REFCLSID clsidCaller,
  1954. /* [in] */ const WCHAR *pszValueName,
  1955. /* [in] */ const WCHAR *pszFileNameSpecifier,
  1956. /* [in] */ ULONG nFolder,
  1957. /* [out] */ WCHAR **ppszFilePath);
  1958. void __RPC_STUB ISpObjectToken_GetStorageFileName_Stub(
  1959. IRpcStubBuffer *This,
  1960. IRpcChannelBuffer *_pRpcChannelBuffer,
  1961. PRPC_MESSAGE _pRpcMessage,
  1962. DWORD *_pdwStubPhase);
  1963. HRESULT STDMETHODCALLTYPE ISpObjectToken_RemoveStorageFileName_Proxy(
  1964. ISpObjectToken * This,
  1965. /* [in] */ REFCLSID clsidCaller,
  1966. /* [in] */ const WCHAR *pszKeyName,
  1967. /* [in] */ BOOL fDeleteFile);
  1968. void __RPC_STUB ISpObjectToken_RemoveStorageFileName_Stub(
  1969. IRpcStubBuffer *This,
  1970. IRpcChannelBuffer *_pRpcChannelBuffer,
  1971. PRPC_MESSAGE _pRpcMessage,
  1972. DWORD *_pdwStubPhase);
  1973. HRESULT STDMETHODCALLTYPE ISpObjectToken_Remove_Proxy(
  1974. ISpObjectToken * This,
  1975. const CLSID *pclsidCaller);
  1976. void __RPC_STUB ISpObjectToken_Remove_Stub(
  1977. IRpcStubBuffer *This,
  1978. IRpcChannelBuffer *_pRpcChannelBuffer,
  1979. PRPC_MESSAGE _pRpcMessage,
  1980. DWORD *_pdwStubPhase);
  1981. /* [local] */ HRESULT STDMETHODCALLTYPE ISpObjectToken_IsUISupported_Proxy(
  1982. ISpObjectToken * This,
  1983. /* [in] */ const WCHAR *pszTypeOfUI,
  1984. /* [in] */ void *pvExtraData,
  1985. /* [in] */ ULONG cbExtraData,
  1986. /* [in] */ IUnknown *punkObject,
  1987. /* [out] */ BOOL *pfSupported);
  1988. void __RPC_STUB ISpObjectToken_IsUISupported_Stub(
  1989. IRpcStubBuffer *This,
  1990. IRpcChannelBuffer *_pRpcChannelBuffer,
  1991. PRPC_MESSAGE _pRpcMessage,
  1992. DWORD *_pdwStubPhase);
  1993. /* [local] */ HRESULT STDMETHODCALLTYPE ISpObjectToken_DisplayUI_Proxy(
  1994. ISpObjectToken * This,
  1995. /* [in] */ HWND hwndParent,
  1996. /* [in] */ const WCHAR *pszTitle,
  1997. /* [in] */ const WCHAR *pszTypeOfUI,
  1998. /* [in] */ void *pvExtraData,
  1999. /* [in] */ ULONG cbExtraData,
  2000. /* [in] */ IUnknown *punkObject);
  2001. void __RPC_STUB ISpObjectToken_DisplayUI_Stub(
  2002. IRpcStubBuffer *This,
  2003. IRpcChannelBuffer *_pRpcChannelBuffer,
  2004. PRPC_MESSAGE _pRpcMessage,
  2005. DWORD *_pdwStubPhase);
  2006. HRESULT STDMETHODCALLTYPE ISpObjectToken_MatchesAttributes_Proxy(
  2007. ISpObjectToken * This,
  2008. /* [in] */ const WCHAR *pszAttributes,
  2009. /* [out] */ BOOL *pfMatches);
  2010. void __RPC_STUB ISpObjectToken_MatchesAttributes_Stub(
  2011. IRpcStubBuffer *This,
  2012. IRpcChannelBuffer *_pRpcChannelBuffer,
  2013. PRPC_MESSAGE _pRpcMessage,
  2014. DWORD *_pdwStubPhase);
  2015. #endif /* __ISpObjectToken_INTERFACE_DEFINED__ */
  2016. #ifndef __ISpObjectTokenInit_INTERFACE_DEFINED__
  2017. #define __ISpObjectTokenInit_INTERFACE_DEFINED__
  2018. /* interface ISpObjectTokenInit */
  2019. /* [restricted][unique][helpstring][uuid][object] */
  2020. EXTERN_C const IID IID_ISpObjectTokenInit;
  2021. #if defined(__cplusplus) && !defined(CINTERFACE)
  2022. MIDL_INTERFACE("B8AAB0CF-346F-49D8-9499-C8B03F161D51")
  2023. ISpObjectTokenInit : public ISpObjectToken
  2024. {
  2025. public:
  2026. virtual HRESULT STDMETHODCALLTYPE InitFromDataKey(
  2027. /* [in] */ const WCHAR *pszCategoryId,
  2028. /* [in] */ const WCHAR *pszTokenId,
  2029. /* [in] */ ISpDataKey *pDataKey) = 0;
  2030. };
  2031. #else /* C style interface */
  2032. typedef struct ISpObjectTokenInitVtbl
  2033. {
  2034. BEGIN_INTERFACE
  2035. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2036. ISpObjectTokenInit * This,
  2037. /* [in] */ REFIID riid,
  2038. /* [iid_is][out] */ void **ppvObject);
  2039. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2040. ISpObjectTokenInit * This);
  2041. ULONG ( STDMETHODCALLTYPE *Release )(
  2042. ISpObjectTokenInit * This);
  2043. HRESULT ( STDMETHODCALLTYPE *SetData )(
  2044. ISpObjectTokenInit * This,
  2045. const WCHAR *pszValueName,
  2046. ULONG cbData,
  2047. const BYTE *pData);
  2048. HRESULT ( STDMETHODCALLTYPE *GetData )(
  2049. ISpObjectTokenInit * This,
  2050. const WCHAR *pszValueName,
  2051. ULONG *pcbData,
  2052. BYTE *pData);
  2053. HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  2054. ISpObjectTokenInit * This,
  2055. const WCHAR *pszValueName,
  2056. const WCHAR *pszValue);
  2057. HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  2058. ISpObjectTokenInit * This,
  2059. const WCHAR *pszValueName,
  2060. WCHAR **ppszValue);
  2061. HRESULT ( STDMETHODCALLTYPE *SetDWORD )(
  2062. ISpObjectTokenInit * This,
  2063. const WCHAR *pszValueName,
  2064. DWORD dwValue);
  2065. HRESULT ( STDMETHODCALLTYPE *GetDWORD )(
  2066. ISpObjectTokenInit * This,
  2067. const WCHAR *pszValueName,
  2068. DWORD *pdwValue);
  2069. HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  2070. ISpObjectTokenInit * This,
  2071. const WCHAR *pszSubKeyName,
  2072. ISpDataKey **ppSubKey);
  2073. HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  2074. ISpObjectTokenInit * This,
  2075. const WCHAR *pszSubKey,
  2076. ISpDataKey **ppSubKey);
  2077. HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  2078. ISpObjectTokenInit * This,
  2079. const WCHAR *pszSubKey);
  2080. HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  2081. ISpObjectTokenInit * This,
  2082. const WCHAR *pszValueName);
  2083. HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  2084. ISpObjectTokenInit * This,
  2085. ULONG Index,
  2086. WCHAR **ppszSubKeyName);
  2087. HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  2088. ISpObjectTokenInit * This,
  2089. ULONG Index,
  2090. WCHAR **ppszValueName);
  2091. HRESULT ( STDMETHODCALLTYPE *SetId )(
  2092. ISpObjectTokenInit * This,
  2093. const WCHAR *pszCategoryId,
  2094. const WCHAR *pszTokenId,
  2095. BOOL fCreateIfNotExist);
  2096. HRESULT ( STDMETHODCALLTYPE *GetId )(
  2097. ISpObjectTokenInit * This,
  2098. WCHAR **ppszCoMemTokenId);
  2099. HRESULT ( STDMETHODCALLTYPE *GetCategory )(
  2100. ISpObjectTokenInit * This,
  2101. ISpObjectTokenCategory **ppTokenCategory);
  2102. HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  2103. ISpObjectTokenInit * This,
  2104. /* [in] */ IUnknown *pUnkOuter,
  2105. /* [in] */ DWORD dwClsContext,
  2106. /* [in] */ REFIID riid,
  2107. /* [iid_is][out] */ void **ppvObject);
  2108. HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  2109. ISpObjectTokenInit * This,
  2110. /* [in] */ REFCLSID clsidCaller,
  2111. /* [in] */ const WCHAR *pszValueName,
  2112. /* [in] */ const WCHAR *pszFileNameSpecifier,
  2113. /* [in] */ ULONG nFolder,
  2114. /* [out] */ WCHAR **ppszFilePath);
  2115. HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  2116. ISpObjectTokenInit * This,
  2117. /* [in] */ REFCLSID clsidCaller,
  2118. /* [in] */ const WCHAR *pszKeyName,
  2119. /* [in] */ BOOL fDeleteFile);
  2120. HRESULT ( STDMETHODCALLTYPE *Remove )(
  2121. ISpObjectTokenInit * This,
  2122. const CLSID *pclsidCaller);
  2123. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  2124. ISpObjectTokenInit * This,
  2125. /* [in] */ const WCHAR *pszTypeOfUI,
  2126. /* [in] */ void *pvExtraData,
  2127. /* [in] */ ULONG cbExtraData,
  2128. /* [in] */ IUnknown *punkObject,
  2129. /* [out] */ BOOL *pfSupported);
  2130. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  2131. ISpObjectTokenInit * This,
  2132. /* [in] */ HWND hwndParent,
  2133. /* [in] */ const WCHAR *pszTitle,
  2134. /* [in] */ const WCHAR *pszTypeOfUI,
  2135. /* [in] */ void *pvExtraData,
  2136. /* [in] */ ULONG cbExtraData,
  2137. /* [in] */ IUnknown *punkObject);
  2138. HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  2139. ISpObjectTokenInit * This,
  2140. /* [in] */ const WCHAR *pszAttributes,
  2141. /* [out] */ BOOL *pfMatches);
  2142. HRESULT ( STDMETHODCALLTYPE *InitFromDataKey )(
  2143. ISpObjectTokenInit * This,
  2144. /* [in] */ const WCHAR *pszCategoryId,
  2145. /* [in] */ const WCHAR *pszTokenId,
  2146. /* [in] */ ISpDataKey *pDataKey);
  2147. END_INTERFACE
  2148. } ISpObjectTokenInitVtbl;
  2149. interface ISpObjectTokenInit
  2150. {
  2151. CONST_VTBL struct ISpObjectTokenInitVtbl *lpVtbl;
  2152. };
  2153. #ifdef COBJMACROS
  2154. #define ISpObjectTokenInit_QueryInterface(This,riid,ppvObject) \
  2155. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2156. #define ISpObjectTokenInit_AddRef(This) \
  2157. (This)->lpVtbl -> AddRef(This)
  2158. #define ISpObjectTokenInit_Release(This) \
  2159. (This)->lpVtbl -> Release(This)
  2160. #define ISpObjectTokenInit_SetData(This,pszValueName,cbData,pData) \
  2161. (This)->lpVtbl -> SetData(This,pszValueName,cbData,pData)
  2162. #define ISpObjectTokenInit_GetData(This,pszValueName,pcbData,pData) \
  2163. (This)->lpVtbl -> GetData(This,pszValueName,pcbData,pData)
  2164. #define ISpObjectTokenInit_SetStringValue(This,pszValueName,pszValue) \
  2165. (This)->lpVtbl -> SetStringValue(This,pszValueName,pszValue)
  2166. #define ISpObjectTokenInit_GetStringValue(This,pszValueName,ppszValue) \
  2167. (This)->lpVtbl -> GetStringValue(This,pszValueName,ppszValue)
  2168. #define ISpObjectTokenInit_SetDWORD(This,pszValueName,dwValue) \
  2169. (This)->lpVtbl -> SetDWORD(This,pszValueName,dwValue)
  2170. #define ISpObjectTokenInit_GetDWORD(This,pszValueName,pdwValue) \
  2171. (This)->lpVtbl -> GetDWORD(This,pszValueName,pdwValue)
  2172. #define ISpObjectTokenInit_OpenKey(This,pszSubKeyName,ppSubKey) \
  2173. (This)->lpVtbl -> OpenKey(This,pszSubKeyName,ppSubKey)
  2174. #define ISpObjectTokenInit_CreateKey(This,pszSubKey,ppSubKey) \
  2175. (This)->lpVtbl -> CreateKey(This,pszSubKey,ppSubKey)
  2176. #define ISpObjectTokenInit_DeleteKey(This,pszSubKey) \
  2177. (This)->lpVtbl -> DeleteKey(This,pszSubKey)
  2178. #define ISpObjectTokenInit_DeleteValue(This,pszValueName) \
  2179. (This)->lpVtbl -> DeleteValue(This,pszValueName)
  2180. #define ISpObjectTokenInit_EnumKeys(This,Index,ppszSubKeyName) \
  2181. (This)->lpVtbl -> EnumKeys(This,Index,ppszSubKeyName)
  2182. #define ISpObjectTokenInit_EnumValues(This,Index,ppszValueName) \
  2183. (This)->lpVtbl -> EnumValues(This,Index,ppszValueName)
  2184. #define ISpObjectTokenInit_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) \
  2185. (This)->lpVtbl -> SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  2186. #define ISpObjectTokenInit_GetId(This,ppszCoMemTokenId) \
  2187. (This)->lpVtbl -> GetId(This,ppszCoMemTokenId)
  2188. #define ISpObjectTokenInit_GetCategory(This,ppTokenCategory) \
  2189. (This)->lpVtbl -> GetCategory(This,ppTokenCategory)
  2190. #define ISpObjectTokenInit_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) \
  2191. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  2192. #define ISpObjectTokenInit_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) \
  2193. (This)->lpVtbl -> GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  2194. #define ISpObjectTokenInit_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) \
  2195. (This)->lpVtbl -> RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  2196. #define ISpObjectTokenInit_Remove(This,pclsidCaller) \
  2197. (This)->lpVtbl -> Remove(This,pclsidCaller)
  2198. #define ISpObjectTokenInit_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) \
  2199. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  2200. #define ISpObjectTokenInit_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) \
  2201. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  2202. #define ISpObjectTokenInit_MatchesAttributes(This,pszAttributes,pfMatches) \
  2203. (This)->lpVtbl -> MatchesAttributes(This,pszAttributes,pfMatches)
  2204. #define ISpObjectTokenInit_InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey) \
  2205. (This)->lpVtbl -> InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey)
  2206. #endif /* COBJMACROS */
  2207. #endif /* C style interface */
  2208. HRESULT STDMETHODCALLTYPE ISpObjectTokenInit_InitFromDataKey_Proxy(
  2209. ISpObjectTokenInit * This,
  2210. /* [in] */ const WCHAR *pszCategoryId,
  2211. /* [in] */ const WCHAR *pszTokenId,
  2212. /* [in] */ ISpDataKey *pDataKey);
  2213. void __RPC_STUB ISpObjectTokenInit_InitFromDataKey_Stub(
  2214. IRpcStubBuffer *This,
  2215. IRpcChannelBuffer *_pRpcChannelBuffer,
  2216. PRPC_MESSAGE _pRpcMessage,
  2217. DWORD *_pdwStubPhase);
  2218. #endif /* __ISpObjectTokenInit_INTERFACE_DEFINED__ */
  2219. #ifndef __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2220. #define __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2221. /* interface IEnumSpObjectTokens */
  2222. /* [restricted][unique][helpstring][uuid][object] */
  2223. EXTERN_C const IID IID_IEnumSpObjectTokens;
  2224. #if defined(__cplusplus) && !defined(CINTERFACE)
  2225. MIDL_INTERFACE("06B64F9E-7FDA-11D2-B4F2-00C04F797396")
  2226. IEnumSpObjectTokens : public IUnknown
  2227. {
  2228. public:
  2229. virtual HRESULT STDMETHODCALLTYPE Next(
  2230. /* [in] */ ULONG celt,
  2231. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2232. /* [out] */ ULONG *pceltFetched) = 0;
  2233. virtual HRESULT STDMETHODCALLTYPE Skip(
  2234. /* [in] */ ULONG celt) = 0;
  2235. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  2236. virtual HRESULT STDMETHODCALLTYPE Clone(
  2237. /* [out] */ IEnumSpObjectTokens **ppEnum) = 0;
  2238. virtual HRESULT STDMETHODCALLTYPE Item(
  2239. /* [in] */ ULONG Index,
  2240. /* [out] */ ISpObjectToken **ppToken) = 0;
  2241. virtual HRESULT STDMETHODCALLTYPE GetCount(
  2242. /* [out] */ ULONG *pCount) = 0;
  2243. };
  2244. #else /* C style interface */
  2245. typedef struct IEnumSpObjectTokensVtbl
  2246. {
  2247. BEGIN_INTERFACE
  2248. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2249. IEnumSpObjectTokens * This,
  2250. /* [in] */ REFIID riid,
  2251. /* [iid_is][out] */ void **ppvObject);
  2252. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2253. IEnumSpObjectTokens * This);
  2254. ULONG ( STDMETHODCALLTYPE *Release )(
  2255. IEnumSpObjectTokens * This);
  2256. HRESULT ( STDMETHODCALLTYPE *Next )(
  2257. IEnumSpObjectTokens * This,
  2258. /* [in] */ ULONG celt,
  2259. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2260. /* [out] */ ULONG *pceltFetched);
  2261. HRESULT ( STDMETHODCALLTYPE *Skip )(
  2262. IEnumSpObjectTokens * This,
  2263. /* [in] */ ULONG celt);
  2264. HRESULT ( STDMETHODCALLTYPE *Reset )(
  2265. IEnumSpObjectTokens * This);
  2266. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2267. IEnumSpObjectTokens * This,
  2268. /* [out] */ IEnumSpObjectTokens **ppEnum);
  2269. HRESULT ( STDMETHODCALLTYPE *Item )(
  2270. IEnumSpObjectTokens * This,
  2271. /* [in] */ ULONG Index,
  2272. /* [out] */ ISpObjectToken **ppToken);
  2273. HRESULT ( STDMETHODCALLTYPE *GetCount )(
  2274. IEnumSpObjectTokens * This,
  2275. /* [out] */ ULONG *pCount);
  2276. END_INTERFACE
  2277. } IEnumSpObjectTokensVtbl;
  2278. interface IEnumSpObjectTokens
  2279. {
  2280. CONST_VTBL struct IEnumSpObjectTokensVtbl *lpVtbl;
  2281. };
  2282. #ifdef COBJMACROS
  2283. #define IEnumSpObjectTokens_QueryInterface(This,riid,ppvObject) \
  2284. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2285. #define IEnumSpObjectTokens_AddRef(This) \
  2286. (This)->lpVtbl -> AddRef(This)
  2287. #define IEnumSpObjectTokens_Release(This) \
  2288. (This)->lpVtbl -> Release(This)
  2289. #define IEnumSpObjectTokens_Next(This,celt,pelt,pceltFetched) \
  2290. (This)->lpVtbl -> Next(This,celt,pelt,pceltFetched)
  2291. #define IEnumSpObjectTokens_Skip(This,celt) \
  2292. (This)->lpVtbl -> Skip(This,celt)
  2293. #define IEnumSpObjectTokens_Reset(This) \
  2294. (This)->lpVtbl -> Reset(This)
  2295. #define IEnumSpObjectTokens_Clone(This,ppEnum) \
  2296. (This)->lpVtbl -> Clone(This,ppEnum)
  2297. #define IEnumSpObjectTokens_Item(This,Index,ppToken) \
  2298. (This)->lpVtbl -> Item(This,Index,ppToken)
  2299. #define IEnumSpObjectTokens_GetCount(This,pCount) \
  2300. (This)->lpVtbl -> GetCount(This,pCount)
  2301. #endif /* COBJMACROS */
  2302. #endif /* C style interface */
  2303. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Next_Proxy(
  2304. IEnumSpObjectTokens * This,
  2305. /* [in] */ ULONG celt,
  2306. /* [length_is][size_is][out] */ ISpObjectToken **pelt,
  2307. /* [out] */ ULONG *pceltFetched);
  2308. void __RPC_STUB IEnumSpObjectTokens_Next_Stub(
  2309. IRpcStubBuffer *This,
  2310. IRpcChannelBuffer *_pRpcChannelBuffer,
  2311. PRPC_MESSAGE _pRpcMessage,
  2312. DWORD *_pdwStubPhase);
  2313. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Skip_Proxy(
  2314. IEnumSpObjectTokens * This,
  2315. /* [in] */ ULONG celt);
  2316. void __RPC_STUB IEnumSpObjectTokens_Skip_Stub(
  2317. IRpcStubBuffer *This,
  2318. IRpcChannelBuffer *_pRpcChannelBuffer,
  2319. PRPC_MESSAGE _pRpcMessage,
  2320. DWORD *_pdwStubPhase);
  2321. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Reset_Proxy(
  2322. IEnumSpObjectTokens * This);
  2323. void __RPC_STUB IEnumSpObjectTokens_Reset_Stub(
  2324. IRpcStubBuffer *This,
  2325. IRpcChannelBuffer *_pRpcChannelBuffer,
  2326. PRPC_MESSAGE _pRpcMessage,
  2327. DWORD *_pdwStubPhase);
  2328. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Clone_Proxy(
  2329. IEnumSpObjectTokens * This,
  2330. /* [out] */ IEnumSpObjectTokens **ppEnum);
  2331. void __RPC_STUB IEnumSpObjectTokens_Clone_Stub(
  2332. IRpcStubBuffer *This,
  2333. IRpcChannelBuffer *_pRpcChannelBuffer,
  2334. PRPC_MESSAGE _pRpcMessage,
  2335. DWORD *_pdwStubPhase);
  2336. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_Item_Proxy(
  2337. IEnumSpObjectTokens * This,
  2338. /* [in] */ ULONG Index,
  2339. /* [out] */ ISpObjectToken **ppToken);
  2340. void __RPC_STUB IEnumSpObjectTokens_Item_Stub(
  2341. IRpcStubBuffer *This,
  2342. IRpcChannelBuffer *_pRpcChannelBuffer,
  2343. PRPC_MESSAGE _pRpcMessage,
  2344. DWORD *_pdwStubPhase);
  2345. HRESULT STDMETHODCALLTYPE IEnumSpObjectTokens_GetCount_Proxy(
  2346. IEnumSpObjectTokens * This,
  2347. /* [out] */ ULONG *pCount);
  2348. void __RPC_STUB IEnumSpObjectTokens_GetCount_Stub(
  2349. IRpcStubBuffer *This,
  2350. IRpcChannelBuffer *_pRpcChannelBuffer,
  2351. PRPC_MESSAGE _pRpcMessage,
  2352. DWORD *_pdwStubPhase);
  2353. #endif /* __IEnumSpObjectTokens_INTERFACE_DEFINED__ */
  2354. #ifndef __ISpObjectWithToken_INTERFACE_DEFINED__
  2355. #define __ISpObjectWithToken_INTERFACE_DEFINED__
  2356. /* interface ISpObjectWithToken */
  2357. /* [restricted][unique][helpstring][uuid][object] */
  2358. EXTERN_C const IID IID_ISpObjectWithToken;
  2359. #if defined(__cplusplus) && !defined(CINTERFACE)
  2360. MIDL_INTERFACE("5B559F40-E952-11D2-BB91-00C04F8EE6C0")
  2361. ISpObjectWithToken : public IUnknown
  2362. {
  2363. public:
  2364. virtual HRESULT STDMETHODCALLTYPE SetObjectToken(
  2365. ISpObjectToken *pToken) = 0;
  2366. virtual HRESULT STDMETHODCALLTYPE GetObjectToken(
  2367. ISpObjectToken **ppToken) = 0;
  2368. };
  2369. #else /* C style interface */
  2370. typedef struct ISpObjectWithTokenVtbl
  2371. {
  2372. BEGIN_INTERFACE
  2373. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2374. ISpObjectWithToken * This,
  2375. /* [in] */ REFIID riid,
  2376. /* [iid_is][out] */ void **ppvObject);
  2377. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2378. ISpObjectWithToken * This);
  2379. ULONG ( STDMETHODCALLTYPE *Release )(
  2380. ISpObjectWithToken * This);
  2381. HRESULT ( STDMETHODCALLTYPE *SetObjectToken )(
  2382. ISpObjectWithToken * This,
  2383. ISpObjectToken *pToken);
  2384. HRESULT ( STDMETHODCALLTYPE *GetObjectToken )(
  2385. ISpObjectWithToken * This,
  2386. ISpObjectToken **ppToken);
  2387. END_INTERFACE
  2388. } ISpObjectWithTokenVtbl;
  2389. interface ISpObjectWithToken
  2390. {
  2391. CONST_VTBL struct ISpObjectWithTokenVtbl *lpVtbl;
  2392. };
  2393. #ifdef COBJMACROS
  2394. #define ISpObjectWithToken_QueryInterface(This,riid,ppvObject) \
  2395. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2396. #define ISpObjectWithToken_AddRef(This) \
  2397. (This)->lpVtbl -> AddRef(This)
  2398. #define ISpObjectWithToken_Release(This) \
  2399. (This)->lpVtbl -> Release(This)
  2400. #define ISpObjectWithToken_SetObjectToken(This,pToken) \
  2401. (This)->lpVtbl -> SetObjectToken(This,pToken)
  2402. #define ISpObjectWithToken_GetObjectToken(This,ppToken) \
  2403. (This)->lpVtbl -> GetObjectToken(This,ppToken)
  2404. #endif /* COBJMACROS */
  2405. #endif /* C style interface */
  2406. HRESULT STDMETHODCALLTYPE ISpObjectWithToken_SetObjectToken_Proxy(
  2407. ISpObjectWithToken * This,
  2408. ISpObjectToken *pToken);
  2409. void __RPC_STUB ISpObjectWithToken_SetObjectToken_Stub(
  2410. IRpcStubBuffer *This,
  2411. IRpcChannelBuffer *_pRpcChannelBuffer,
  2412. PRPC_MESSAGE _pRpcMessage,
  2413. DWORD *_pdwStubPhase);
  2414. HRESULT STDMETHODCALLTYPE ISpObjectWithToken_GetObjectToken_Proxy(
  2415. ISpObjectWithToken * This,
  2416. ISpObjectToken **ppToken);
  2417. void __RPC_STUB ISpObjectWithToken_GetObjectToken_Stub(
  2418. IRpcStubBuffer *This,
  2419. IRpcChannelBuffer *_pRpcChannelBuffer,
  2420. PRPC_MESSAGE _pRpcMessage,
  2421. DWORD *_pdwStubPhase);
  2422. #endif /* __ISpObjectWithToken_INTERFACE_DEFINED__ */
  2423. #ifndef __ISpResourceManager_INTERFACE_DEFINED__
  2424. #define __ISpResourceManager_INTERFACE_DEFINED__
  2425. /* interface ISpResourceManager */
  2426. /* [restricted][unique][helpstring][uuid][object] */
  2427. EXTERN_C const IID IID_ISpResourceManager;
  2428. #if defined(__cplusplus) && !defined(CINTERFACE)
  2429. MIDL_INTERFACE("93384E18-5014-43D5-ADBB-A78E055926BD")
  2430. ISpResourceManager : public IServiceProvider
  2431. {
  2432. public:
  2433. virtual HRESULT STDMETHODCALLTYPE SetObject(
  2434. /* [in] */ REFGUID guidServiceId,
  2435. /* [in] */ IUnknown *pUnkObject) = 0;
  2436. virtual HRESULT STDMETHODCALLTYPE GetObject(
  2437. /* [in] */ REFGUID guidServiceId,
  2438. /* [in] */ REFCLSID ObjectCLSID,
  2439. /* [in] */ REFIID ObjectIID,
  2440. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2441. /* [iid_is][out] */ void **ppObject) = 0;
  2442. };
  2443. #else /* C style interface */
  2444. typedef struct ISpResourceManagerVtbl
  2445. {
  2446. BEGIN_INTERFACE
  2447. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2448. ISpResourceManager * This,
  2449. /* [in] */ REFIID riid,
  2450. /* [iid_is][out] */ void **ppvObject);
  2451. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2452. ISpResourceManager * This);
  2453. ULONG ( STDMETHODCALLTYPE *Release )(
  2454. ISpResourceManager * This);
  2455. /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )(
  2456. ISpResourceManager * This,
  2457. /* [in] */ REFGUID guidService,
  2458. /* [in] */ REFIID riid,
  2459. /* [out] */ void **ppvObject);
  2460. HRESULT ( STDMETHODCALLTYPE *SetObject )(
  2461. ISpResourceManager * This,
  2462. /* [in] */ REFGUID guidServiceId,
  2463. /* [in] */ IUnknown *pUnkObject);
  2464. HRESULT ( STDMETHODCALLTYPE *GetObject )(
  2465. ISpResourceManager * This,
  2466. /* [in] */ REFGUID guidServiceId,
  2467. /* [in] */ REFCLSID ObjectCLSID,
  2468. /* [in] */ REFIID ObjectIID,
  2469. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2470. /* [iid_is][out] */ void **ppObject);
  2471. END_INTERFACE
  2472. } ISpResourceManagerVtbl;
  2473. interface ISpResourceManager
  2474. {
  2475. CONST_VTBL struct ISpResourceManagerVtbl *lpVtbl;
  2476. };
  2477. #ifdef COBJMACROS
  2478. #define ISpResourceManager_QueryInterface(This,riid,ppvObject) \
  2479. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2480. #define ISpResourceManager_AddRef(This) \
  2481. (This)->lpVtbl -> AddRef(This)
  2482. #define ISpResourceManager_Release(This) \
  2483. (This)->lpVtbl -> Release(This)
  2484. #define ISpResourceManager_QueryService(This,guidService,riid,ppvObject) \
  2485. (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject)
  2486. #define ISpResourceManager_SetObject(This,guidServiceId,pUnkObject) \
  2487. (This)->lpVtbl -> SetObject(This,guidServiceId,pUnkObject)
  2488. #define ISpResourceManager_GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject) \
  2489. (This)->lpVtbl -> GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject)
  2490. #endif /* COBJMACROS */
  2491. #endif /* C style interface */
  2492. HRESULT STDMETHODCALLTYPE ISpResourceManager_SetObject_Proxy(
  2493. ISpResourceManager * This,
  2494. /* [in] */ REFGUID guidServiceId,
  2495. /* [in] */ IUnknown *pUnkObject);
  2496. void __RPC_STUB ISpResourceManager_SetObject_Stub(
  2497. IRpcStubBuffer *This,
  2498. IRpcChannelBuffer *_pRpcChannelBuffer,
  2499. PRPC_MESSAGE _pRpcMessage,
  2500. DWORD *_pdwStubPhase);
  2501. HRESULT STDMETHODCALLTYPE ISpResourceManager_GetObject_Proxy(
  2502. ISpResourceManager * This,
  2503. /* [in] */ REFGUID guidServiceId,
  2504. /* [in] */ REFCLSID ObjectCLSID,
  2505. /* [in] */ REFIID ObjectIID,
  2506. /* [in] */ BOOL fReleaseWhenLastExternalRefReleased,
  2507. /* [iid_is][out] */ void **ppObject);
  2508. void __RPC_STUB ISpResourceManager_GetObject_Stub(
  2509. IRpcStubBuffer *This,
  2510. IRpcChannelBuffer *_pRpcChannelBuffer,
  2511. PRPC_MESSAGE _pRpcMessage,
  2512. DWORD *_pdwStubPhase);
  2513. #endif /* __ISpResourceManager_INTERFACE_DEFINED__ */
  2514. /* interface __MIDL_itf_sapi_0262 */
  2515. /* [local] */
  2516. typedef /* [hidden] */
  2517. enum SPEVENTLPARAMTYPE
  2518. { SPET_LPARAM_IS_UNDEFINED = 0,
  2519. SPET_LPARAM_IS_TOKEN = SPET_LPARAM_IS_UNDEFINED + 1,
  2520. SPET_LPARAM_IS_OBJECT = SPET_LPARAM_IS_TOKEN + 1,
  2521. SPET_LPARAM_IS_POINTER = SPET_LPARAM_IS_OBJECT + 1,
  2522. SPET_LPARAM_IS_STRING = SPET_LPARAM_IS_POINTER + 1
  2523. } SPEVENTLPARAMTYPE;
  2524. typedef /* [hidden] */
  2525. enum SPEVENTENUM
  2526. { SPEI_UNDEFINED = 0,
  2527. SPEI_START_INPUT_STREAM = 1,
  2528. SPEI_END_INPUT_STREAM = 2,
  2529. SPEI_VOICE_CHANGE = 3,
  2530. SPEI_TTS_BOOKMARK = 4,
  2531. SPEI_WORD_BOUNDARY = 5,
  2532. SPEI_PHONEME = 6,
  2533. SPEI_SENTENCE_BOUNDARY = 7,
  2534. SPEI_VISEME = 8,
  2535. SPEI_TTS_AUDIO_LEVEL = 9,
  2536. SPEI_TTS_PRIVATE = 15,
  2537. SPEI_MIN_TTS = 1,
  2538. SPEI_MAX_TTS = 15,
  2539. SPEI_END_SR_STREAM = 34,
  2540. SPEI_SOUND_START = 35,
  2541. SPEI_SOUND_END = 36,
  2542. SPEI_PHRASE_START = 37,
  2543. SPEI_RECOGNITION = 38,
  2544. SPEI_HYPOTHESIS = 39,
  2545. SPEI_SR_BOOKMARK = 40,
  2546. SPEI_PROPERTY_NUM_CHANGE = 41,
  2547. SPEI_PROPERTY_STRING_CHANGE = 42,
  2548. SPEI_FALSE_RECOGNITION = 43,
  2549. SPEI_INTERFERENCE = 44,
  2550. SPEI_REQUEST_UI = 45,
  2551. SPEI_RECO_STATE_CHANGE = 46,
  2552. SPEI_ADAPTATION = 47,
  2553. SPEI_START_SR_STREAM = 48,
  2554. SPEI_RECO_OTHER_CONTEXT = 49,
  2555. SPEI_SR_AUDIO_LEVEL = 50,
  2556. SPEI_SR_PRIVATE = 52,
  2557. SPEI_MIN_SR = 34,
  2558. SPEI_MAX_SR = 52,
  2559. SPEI_RESERVED1 = 30,
  2560. SPEI_RESERVED2 = 33,
  2561. SPEI_RESERVED3 = 63
  2562. } SPEVENTENUM;
  2563. #define SPFEI_FLAGCHECK ( (1ui64 << SPEI_RESERVED1) | (1ui64 << SPEI_RESERVED2) )
  2564. #define SPFEI_ALL_TTS_EVENTS (0x000000000000FFFEui64 | SPFEI_FLAGCHECK)
  2565. #define SPFEI_ALL_SR_EVENTS (0x001FFFFC00000000ui64 | SPFEI_FLAGCHECK)
  2566. #define SPFEI_ALL_EVENTS 0xEFFFFFFFFFFFFFFFui64
  2567. #define SPFEI(SPEI_ord) ((1ui64 << SPEI_ord) | SPFEI_FLAGCHECK)
  2568. #if 0
  2569. typedef /* [hidden][restricted] */ struct SPEVENT
  2570. {
  2571. WORD eEventId;
  2572. WORD elParamType;
  2573. ULONG ulStreamNum;
  2574. ULONGLONG ullAudioStreamOffset;
  2575. WPARAM wParam;
  2576. LPARAM lParam;
  2577. } SPEVENT;
  2578. typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT
  2579. {
  2580. WORD eEventId;
  2581. WORD elParamType;
  2582. ULONG ulStreamNum;
  2583. ULONGLONG ullAudioStreamOffset;
  2584. ULONG SerializedwParam;
  2585. LONG SerializedlParam;
  2586. } SPSERIALIZEDEVENT;
  2587. typedef /* [hidden][restricted] */ struct SPSERIALIZEDEVENT64
  2588. {
  2589. WORD eEventId;
  2590. WORD elParamType;
  2591. ULONG ulStreamNum;
  2592. ULONGLONG ullAudioStreamOffset;
  2593. ULONGLONG SerializedwParam;
  2594. LONGLONG SerializedlParam;
  2595. } SPSERIALIZEDEVENT64;
  2596. #else
  2597. typedef struct SPEVENT
  2598. {
  2599. SPEVENTENUM eEventId : 16;
  2600. SPEVENTLPARAMTYPE elParamType : 16;
  2601. ULONG ulStreamNum;
  2602. ULONGLONG ullAudioStreamOffset;
  2603. WPARAM wParam;
  2604. LPARAM lParam;
  2605. } SPEVENT;
  2606. typedef struct SPSERIALIZEDEVENT
  2607. {
  2608. SPEVENTENUM eEventId : 16;
  2609. SPEVENTLPARAMTYPE elParamType : 16;
  2610. ULONG ulStreamNum;
  2611. ULONGLONG ullAudioStreamOffset;
  2612. ULONG SerializedwParam;
  2613. LONG SerializedlParam;
  2614. } SPSERIALIZEDEVENT;
  2615. typedef struct SPSERIALIZEDEVENT64
  2616. {
  2617. SPEVENTENUM eEventId : 16;
  2618. SPEVENTLPARAMTYPE elParamType : 16;
  2619. ULONG ulStreamNum;
  2620. ULONGLONG ullAudioStreamOffset;
  2621. ULONGLONG SerializedwParam;
  2622. LONGLONG SerializedlParam;
  2623. } SPSERIALIZEDEVENT64;
  2624. #endif
  2625. typedef /* [hidden] */
  2626. enum SPINTERFERENCE
  2627. { SPINTERFERENCE_NONE = 0,
  2628. SPINTERFERENCE_NOISE = SPINTERFERENCE_NONE + 1,
  2629. SPINTERFERENCE_NOSIGNAL = SPINTERFERENCE_NOISE + 1,
  2630. SPINTERFERENCE_TOOLOUD = SPINTERFERENCE_NOSIGNAL + 1,
  2631. SPINTERFERENCE_TOOQUIET = SPINTERFERENCE_TOOLOUD + 1,
  2632. SPINTERFERENCE_TOOFAST = SPINTERFERENCE_TOOQUIET + 1,
  2633. SPINTERFERENCE_TOOSLOW = SPINTERFERENCE_TOOFAST + 1
  2634. } SPINTERFERENCE;
  2635. typedef /* [hidden] */
  2636. enum SPENDSRSTREAMFLAGS
  2637. { SPESF_NONE = 0,
  2638. SPESF_STREAM_RELEASED = 1 << 0
  2639. } SPENDSRSTREAMFLAGS;
  2640. typedef /* [hidden] */
  2641. enum SPVFEATURE
  2642. { SPVFEATURE_STRESSED = 1L << 0,
  2643. SPVFEATURE_EMPHASIS = 1L << 1
  2644. } SPVFEATURE;
  2645. typedef /* [hidden] */
  2646. enum SPVISEMES
  2647. { SP_VISEME_0 = 0,
  2648. SP_VISEME_1 = SP_VISEME_0 + 1,
  2649. SP_VISEME_2 = SP_VISEME_1 + 1,
  2650. SP_VISEME_3 = SP_VISEME_2 + 1,
  2651. SP_VISEME_4 = SP_VISEME_3 + 1,
  2652. SP_VISEME_5 = SP_VISEME_4 + 1,
  2653. SP_VISEME_6 = SP_VISEME_5 + 1,
  2654. SP_VISEME_7 = SP_VISEME_6 + 1,
  2655. SP_VISEME_8 = SP_VISEME_7 + 1,
  2656. SP_VISEME_9 = SP_VISEME_8 + 1,
  2657. SP_VISEME_10 = SP_VISEME_9 + 1,
  2658. SP_VISEME_11 = SP_VISEME_10 + 1,
  2659. SP_VISEME_12 = SP_VISEME_11 + 1,
  2660. SP_VISEME_13 = SP_VISEME_12 + 1,
  2661. SP_VISEME_14 = SP_VISEME_13 + 1,
  2662. SP_VISEME_15 = SP_VISEME_14 + 1,
  2663. SP_VISEME_16 = SP_VISEME_15 + 1,
  2664. SP_VISEME_17 = SP_VISEME_16 + 1,
  2665. SP_VISEME_18 = SP_VISEME_17 + 1,
  2666. SP_VISEME_19 = SP_VISEME_18 + 1,
  2667. SP_VISEME_20 = SP_VISEME_19 + 1,
  2668. SP_VISEME_21 = SP_VISEME_20 + 1
  2669. } SPVISEMES;
  2670. typedef /* [hidden][restricted] */ struct SPEVENTSOURCEINFO
  2671. {
  2672. ULONGLONG ullEventInterest;
  2673. ULONGLONG ullQueuedInterest;
  2674. ULONG ulCount;
  2675. } SPEVENTSOURCEINFO;
  2676. extern RPC_IF_HANDLE __MIDL_itf_sapi_0262_v0_0_c_ifspec;
  2677. extern RPC_IF_HANDLE __MIDL_itf_sapi_0262_v0_0_s_ifspec;
  2678. #ifndef __ISpEventSource_INTERFACE_DEFINED__
  2679. #define __ISpEventSource_INTERFACE_DEFINED__
  2680. /* interface ISpEventSource */
  2681. /* [restricted][local][unique][helpstring][uuid][object] */
  2682. EXTERN_C const IID IID_ISpEventSource;
  2683. #if defined(__cplusplus) && !defined(CINTERFACE)
  2684. MIDL_INTERFACE("BE7A9CCE-5F9E-11D2-960F-00C04F8EE628")
  2685. ISpEventSource : public ISpNotifySource
  2686. {
  2687. public:
  2688. virtual HRESULT STDMETHODCALLTYPE SetInterest(
  2689. /* [in] */ ULONGLONG ullEventInterest,
  2690. /* [in] */ ULONGLONG ullQueuedInterest) = 0;
  2691. virtual HRESULT STDMETHODCALLTYPE GetEvents(
  2692. /* [in] */ ULONG ulCount,
  2693. /* [size_is][out] */ SPEVENT *pEventArray,
  2694. /* [out] */ ULONG *pulFetched) = 0;
  2695. virtual HRESULT STDMETHODCALLTYPE GetInfo(
  2696. /* [out] */ SPEVENTSOURCEINFO *pInfo) = 0;
  2697. };
  2698. #else /* C style interface */
  2699. typedef struct ISpEventSourceVtbl
  2700. {
  2701. BEGIN_INTERFACE
  2702. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2703. ISpEventSource * This,
  2704. /* [in] */ REFIID riid,
  2705. /* [iid_is][out] */ void **ppvObject);
  2706. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2707. ISpEventSource * This);
  2708. ULONG ( STDMETHODCALLTYPE *Release )(
  2709. ISpEventSource * This);
  2710. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  2711. ISpEventSource * This,
  2712. /* [in] */ ISpNotifySink *pNotifySink);
  2713. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  2714. ISpEventSource * This,
  2715. /* [in] */ HWND hWnd,
  2716. /* [in] */ UINT Msg,
  2717. /* [in] */ WPARAM wParam,
  2718. /* [in] */ LPARAM lParam);
  2719. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  2720. ISpEventSource * This,
  2721. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  2722. /* [in] */ WPARAM wParam,
  2723. /* [in] */ LPARAM lParam);
  2724. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  2725. ISpEventSource * This,
  2726. /* [in] */ ISpNotifyCallback *pSpCallback,
  2727. /* [in] */ WPARAM wParam,
  2728. /* [in] */ LPARAM lParam);
  2729. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  2730. ISpEventSource * This);
  2731. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  2732. ISpEventSource * This,
  2733. /* [in] */ DWORD dwMilliseconds);
  2734. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  2735. ISpEventSource * This);
  2736. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  2737. ISpEventSource * This,
  2738. /* [in] */ ULONGLONG ullEventInterest,
  2739. /* [in] */ ULONGLONG ullQueuedInterest);
  2740. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  2741. ISpEventSource * This,
  2742. /* [in] */ ULONG ulCount,
  2743. /* [size_is][out] */ SPEVENT *pEventArray,
  2744. /* [out] */ ULONG *pulFetched);
  2745. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  2746. ISpEventSource * This,
  2747. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  2748. END_INTERFACE
  2749. } ISpEventSourceVtbl;
  2750. interface ISpEventSource
  2751. {
  2752. CONST_VTBL struct ISpEventSourceVtbl *lpVtbl;
  2753. };
  2754. #ifdef COBJMACROS
  2755. #define ISpEventSource_QueryInterface(This,riid,ppvObject) \
  2756. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2757. #define ISpEventSource_AddRef(This) \
  2758. (This)->lpVtbl -> AddRef(This)
  2759. #define ISpEventSource_Release(This) \
  2760. (This)->lpVtbl -> Release(This)
  2761. #define ISpEventSource_SetNotifySink(This,pNotifySink) \
  2762. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  2763. #define ISpEventSource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  2764. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  2765. #define ISpEventSource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  2766. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  2767. #define ISpEventSource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  2768. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  2769. #define ISpEventSource_SetNotifyWin32Event(This) \
  2770. (This)->lpVtbl -> SetNotifyWin32Event(This)
  2771. #define ISpEventSource_WaitForNotifyEvent(This,dwMilliseconds) \
  2772. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  2773. #define ISpEventSource_GetNotifyEventHandle(This) \
  2774. (This)->lpVtbl -> GetNotifyEventHandle(This)
  2775. #define ISpEventSource_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  2776. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  2777. #define ISpEventSource_GetEvents(This,ulCount,pEventArray,pulFetched) \
  2778. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  2779. #define ISpEventSource_GetInfo(This,pInfo) \
  2780. (This)->lpVtbl -> GetInfo(This,pInfo)
  2781. #endif /* COBJMACROS */
  2782. #endif /* C style interface */
  2783. HRESULT STDMETHODCALLTYPE ISpEventSource_SetInterest_Proxy(
  2784. ISpEventSource * This,
  2785. /* [in] */ ULONGLONG ullEventInterest,
  2786. /* [in] */ ULONGLONG ullQueuedInterest);
  2787. void __RPC_STUB ISpEventSource_SetInterest_Stub(
  2788. IRpcStubBuffer *This,
  2789. IRpcChannelBuffer *_pRpcChannelBuffer,
  2790. PRPC_MESSAGE _pRpcMessage,
  2791. DWORD *_pdwStubPhase);
  2792. HRESULT STDMETHODCALLTYPE ISpEventSource_GetEvents_Proxy(
  2793. ISpEventSource * This,
  2794. /* [in] */ ULONG ulCount,
  2795. /* [size_is][out] */ SPEVENT *pEventArray,
  2796. /* [out] */ ULONG *pulFetched);
  2797. void __RPC_STUB ISpEventSource_GetEvents_Stub(
  2798. IRpcStubBuffer *This,
  2799. IRpcChannelBuffer *_pRpcChannelBuffer,
  2800. PRPC_MESSAGE _pRpcMessage,
  2801. DWORD *_pdwStubPhase);
  2802. HRESULT STDMETHODCALLTYPE ISpEventSource_GetInfo_Proxy(
  2803. ISpEventSource * This,
  2804. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  2805. void __RPC_STUB ISpEventSource_GetInfo_Stub(
  2806. IRpcStubBuffer *This,
  2807. IRpcChannelBuffer *_pRpcChannelBuffer,
  2808. PRPC_MESSAGE _pRpcMessage,
  2809. DWORD *_pdwStubPhase);
  2810. #endif /* __ISpEventSource_INTERFACE_DEFINED__ */
  2811. #ifndef __ISpEventSink_INTERFACE_DEFINED__
  2812. #define __ISpEventSink_INTERFACE_DEFINED__
  2813. /* interface ISpEventSink */
  2814. /* [restricted][local][unique][helpstring][uuid][object] */
  2815. EXTERN_C const IID IID_ISpEventSink;
  2816. #if defined(__cplusplus) && !defined(CINTERFACE)
  2817. MIDL_INTERFACE("BE7A9CC9-5F9E-11D2-960F-00C04F8EE628")
  2818. ISpEventSink : public IUnknown
  2819. {
  2820. public:
  2821. virtual HRESULT STDMETHODCALLTYPE AddEvents(
  2822. /* [in] */ const SPEVENT *pEventArray,
  2823. /* [in] */ ULONG ulCount) = 0;
  2824. virtual HRESULT STDMETHODCALLTYPE GetEventInterest(
  2825. /* [out] */ ULONGLONG *pullEventInterest) = 0;
  2826. };
  2827. #else /* C style interface */
  2828. typedef struct ISpEventSinkVtbl
  2829. {
  2830. BEGIN_INTERFACE
  2831. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2832. ISpEventSink * This,
  2833. /* [in] */ REFIID riid,
  2834. /* [iid_is][out] */ void **ppvObject);
  2835. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2836. ISpEventSink * This);
  2837. ULONG ( STDMETHODCALLTYPE *Release )(
  2838. ISpEventSink * This);
  2839. HRESULT ( STDMETHODCALLTYPE *AddEvents )(
  2840. ISpEventSink * This,
  2841. /* [in] */ const SPEVENT *pEventArray,
  2842. /* [in] */ ULONG ulCount);
  2843. HRESULT ( STDMETHODCALLTYPE *GetEventInterest )(
  2844. ISpEventSink * This,
  2845. /* [out] */ ULONGLONG *pullEventInterest);
  2846. END_INTERFACE
  2847. } ISpEventSinkVtbl;
  2848. interface ISpEventSink
  2849. {
  2850. CONST_VTBL struct ISpEventSinkVtbl *lpVtbl;
  2851. };
  2852. #ifdef COBJMACROS
  2853. #define ISpEventSink_QueryInterface(This,riid,ppvObject) \
  2854. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2855. #define ISpEventSink_AddRef(This) \
  2856. (This)->lpVtbl -> AddRef(This)
  2857. #define ISpEventSink_Release(This) \
  2858. (This)->lpVtbl -> Release(This)
  2859. #define ISpEventSink_AddEvents(This,pEventArray,ulCount) \
  2860. (This)->lpVtbl -> AddEvents(This,pEventArray,ulCount)
  2861. #define ISpEventSink_GetEventInterest(This,pullEventInterest) \
  2862. (This)->lpVtbl -> GetEventInterest(This,pullEventInterest)
  2863. #endif /* COBJMACROS */
  2864. #endif /* C style interface */
  2865. HRESULT STDMETHODCALLTYPE ISpEventSink_AddEvents_Proxy(
  2866. ISpEventSink * This,
  2867. /* [in] */ const SPEVENT *pEventArray,
  2868. /* [in] */ ULONG ulCount);
  2869. void __RPC_STUB ISpEventSink_AddEvents_Stub(
  2870. IRpcStubBuffer *This,
  2871. IRpcChannelBuffer *_pRpcChannelBuffer,
  2872. PRPC_MESSAGE _pRpcMessage,
  2873. DWORD *_pdwStubPhase);
  2874. HRESULT STDMETHODCALLTYPE ISpEventSink_GetEventInterest_Proxy(
  2875. ISpEventSink * This,
  2876. /* [out] */ ULONGLONG *pullEventInterest);
  2877. void __RPC_STUB ISpEventSink_GetEventInterest_Stub(
  2878. IRpcStubBuffer *This,
  2879. IRpcChannelBuffer *_pRpcChannelBuffer,
  2880. PRPC_MESSAGE _pRpcMessage,
  2881. DWORD *_pdwStubPhase);
  2882. #endif /* __ISpEventSink_INTERFACE_DEFINED__ */
  2883. #ifndef __ISpStreamFormat_INTERFACE_DEFINED__
  2884. #define __ISpStreamFormat_INTERFACE_DEFINED__
  2885. /* interface ISpStreamFormat */
  2886. /* [restricted][unique][helpstring][uuid][object] */
  2887. EXTERN_C const IID IID_ISpStreamFormat;
  2888. #if defined(__cplusplus) && !defined(CINTERFACE)
  2889. MIDL_INTERFACE("BED530BE-2606-4F4D-A1C0-54C5CDA5566F")
  2890. ISpStreamFormat : public IStream
  2891. {
  2892. public:
  2893. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  2894. GUID *pguidFormatId,
  2895. WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  2896. };
  2897. #else /* C style interface */
  2898. typedef struct ISpStreamFormatVtbl
  2899. {
  2900. BEGIN_INTERFACE
  2901. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  2902. ISpStreamFormat * This,
  2903. /* [in] */ REFIID riid,
  2904. /* [iid_is][out] */ void **ppvObject);
  2905. ULONG ( STDMETHODCALLTYPE *AddRef )(
  2906. ISpStreamFormat * This);
  2907. ULONG ( STDMETHODCALLTYPE *Release )(
  2908. ISpStreamFormat * This);
  2909. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  2910. ISpStreamFormat * This,
  2911. /* [length_is][size_is][out] */ void *pv,
  2912. /* [in] */ ULONG cb,
  2913. /* [out] */ ULONG *pcbRead);
  2914. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  2915. ISpStreamFormat * This,
  2916. /* [size_is][in] */ const void *pv,
  2917. /* [in] */ ULONG cb,
  2918. /* [out] */ ULONG *pcbWritten);
  2919. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  2920. ISpStreamFormat * This,
  2921. /* [in] */ LARGE_INTEGER dlibMove,
  2922. /* [in] */ DWORD dwOrigin,
  2923. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  2924. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  2925. ISpStreamFormat * This,
  2926. /* [in] */ ULARGE_INTEGER libNewSize);
  2927. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  2928. ISpStreamFormat * This,
  2929. /* [unique][in] */ IStream *pstm,
  2930. /* [in] */ ULARGE_INTEGER cb,
  2931. /* [out] */ ULARGE_INTEGER *pcbRead,
  2932. /* [out] */ ULARGE_INTEGER *pcbWritten);
  2933. HRESULT ( STDMETHODCALLTYPE *Commit )(
  2934. ISpStreamFormat * This,
  2935. /* [in] */ DWORD grfCommitFlags);
  2936. HRESULT ( STDMETHODCALLTYPE *Revert )(
  2937. ISpStreamFormat * This);
  2938. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  2939. ISpStreamFormat * This,
  2940. /* [in] */ ULARGE_INTEGER libOffset,
  2941. /* [in] */ ULARGE_INTEGER cb,
  2942. /* [in] */ DWORD dwLockType);
  2943. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  2944. ISpStreamFormat * This,
  2945. /* [in] */ ULARGE_INTEGER libOffset,
  2946. /* [in] */ ULARGE_INTEGER cb,
  2947. /* [in] */ DWORD dwLockType);
  2948. HRESULT ( STDMETHODCALLTYPE *Stat )(
  2949. ISpStreamFormat * This,
  2950. /* [out] */ STATSTG *pstatstg,
  2951. /* [in] */ DWORD grfStatFlag);
  2952. HRESULT ( STDMETHODCALLTYPE *Clone )(
  2953. ISpStreamFormat * This,
  2954. /* [out] */ IStream **ppstm);
  2955. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  2956. ISpStreamFormat * This,
  2957. GUID *pguidFormatId,
  2958. WAVEFORMATEX **ppCoMemWaveFormatEx);
  2959. END_INTERFACE
  2960. } ISpStreamFormatVtbl;
  2961. interface ISpStreamFormat
  2962. {
  2963. CONST_VTBL struct ISpStreamFormatVtbl *lpVtbl;
  2964. };
  2965. #ifdef COBJMACROS
  2966. #define ISpStreamFormat_QueryInterface(This,riid,ppvObject) \
  2967. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  2968. #define ISpStreamFormat_AddRef(This) \
  2969. (This)->lpVtbl -> AddRef(This)
  2970. #define ISpStreamFormat_Release(This) \
  2971. (This)->lpVtbl -> Release(This)
  2972. #define ISpStreamFormat_Read(This,pv,cb,pcbRead) \
  2973. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  2974. #define ISpStreamFormat_Write(This,pv,cb,pcbWritten) \
  2975. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  2976. #define ISpStreamFormat_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  2977. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  2978. #define ISpStreamFormat_SetSize(This,libNewSize) \
  2979. (This)->lpVtbl -> SetSize(This,libNewSize)
  2980. #define ISpStreamFormat_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  2981. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  2982. #define ISpStreamFormat_Commit(This,grfCommitFlags) \
  2983. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  2984. #define ISpStreamFormat_Revert(This) \
  2985. (This)->lpVtbl -> Revert(This)
  2986. #define ISpStreamFormat_LockRegion(This,libOffset,cb,dwLockType) \
  2987. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  2988. #define ISpStreamFormat_UnlockRegion(This,libOffset,cb,dwLockType) \
  2989. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  2990. #define ISpStreamFormat_Stat(This,pstatstg,grfStatFlag) \
  2991. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  2992. #define ISpStreamFormat_Clone(This,ppstm) \
  2993. (This)->lpVtbl -> Clone(This,ppstm)
  2994. #define ISpStreamFormat_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  2995. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  2996. #endif /* COBJMACROS */
  2997. #endif /* C style interface */
  2998. HRESULT STDMETHODCALLTYPE ISpStreamFormat_GetFormat_Proxy(
  2999. ISpStreamFormat * This,
  3000. GUID *pguidFormatId,
  3001. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3002. void __RPC_STUB ISpStreamFormat_GetFormat_Stub(
  3003. IRpcStubBuffer *This,
  3004. IRpcChannelBuffer *_pRpcChannelBuffer,
  3005. PRPC_MESSAGE _pRpcMessage,
  3006. DWORD *_pdwStubPhase);
  3007. #endif /* __ISpStreamFormat_INTERFACE_DEFINED__ */
  3008. /* interface __MIDL_itf_sapi_0265 */
  3009. /* [local] */
  3010. typedef /* [hidden] */
  3011. enum SPFILEMODE
  3012. { SPFM_OPEN_READONLY = 0,
  3013. SPFM_OPEN_READWRITE = SPFM_OPEN_READONLY + 1,
  3014. SPFM_CREATE = SPFM_OPEN_READWRITE + 1,
  3015. SPFM_CREATE_ALWAYS = SPFM_CREATE + 1,
  3016. SPFM_NUM_MODES = SPFM_CREATE_ALWAYS + 1
  3017. } SPFILEMODE;
  3018. extern RPC_IF_HANDLE __MIDL_itf_sapi_0265_v0_0_c_ifspec;
  3019. extern RPC_IF_HANDLE __MIDL_itf_sapi_0265_v0_0_s_ifspec;
  3020. #ifndef __ISpStream_INTERFACE_DEFINED__
  3021. #define __ISpStream_INTERFACE_DEFINED__
  3022. /* interface ISpStream */
  3023. /* [restricted][unique][helpstring][uuid][object] */
  3024. EXTERN_C const IID IID_ISpStream;
  3025. #if defined(__cplusplus) && !defined(CINTERFACE)
  3026. MIDL_INTERFACE("12E3CCA9-7518-44C5-A5E7-BA5A79CB929E")
  3027. ISpStream : public ISpStreamFormat
  3028. {
  3029. public:
  3030. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  3031. IStream *pStream,
  3032. REFGUID rguidFormat,
  3033. const WAVEFORMATEX *pWaveFormatEx) = 0;
  3034. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  3035. IStream **ppStream) = 0;
  3036. virtual HRESULT STDMETHODCALLTYPE BindToFile(
  3037. const WCHAR *pszFileName,
  3038. SPFILEMODE eMode,
  3039. const GUID *pFormatId,
  3040. const WAVEFORMATEX *pWaveFormatEx,
  3041. ULONGLONG ullEventInterest) = 0;
  3042. virtual HRESULT STDMETHODCALLTYPE Close( void) = 0;
  3043. };
  3044. #else /* C style interface */
  3045. typedef struct ISpStreamVtbl
  3046. {
  3047. BEGIN_INTERFACE
  3048. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3049. ISpStream * This,
  3050. /* [in] */ REFIID riid,
  3051. /* [iid_is][out] */ void **ppvObject);
  3052. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3053. ISpStream * This);
  3054. ULONG ( STDMETHODCALLTYPE *Release )(
  3055. ISpStream * This);
  3056. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3057. ISpStream * This,
  3058. /* [length_is][size_is][out] */ void *pv,
  3059. /* [in] */ ULONG cb,
  3060. /* [out] */ ULONG *pcbRead);
  3061. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3062. ISpStream * This,
  3063. /* [size_is][in] */ const void *pv,
  3064. /* [in] */ ULONG cb,
  3065. /* [out] */ ULONG *pcbWritten);
  3066. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3067. ISpStream * This,
  3068. /* [in] */ LARGE_INTEGER dlibMove,
  3069. /* [in] */ DWORD dwOrigin,
  3070. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3071. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3072. ISpStream * This,
  3073. /* [in] */ ULARGE_INTEGER libNewSize);
  3074. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3075. ISpStream * This,
  3076. /* [unique][in] */ IStream *pstm,
  3077. /* [in] */ ULARGE_INTEGER cb,
  3078. /* [out] */ ULARGE_INTEGER *pcbRead,
  3079. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3080. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3081. ISpStream * This,
  3082. /* [in] */ DWORD grfCommitFlags);
  3083. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3084. ISpStream * This);
  3085. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3086. ISpStream * This,
  3087. /* [in] */ ULARGE_INTEGER libOffset,
  3088. /* [in] */ ULARGE_INTEGER cb,
  3089. /* [in] */ DWORD dwLockType);
  3090. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3091. ISpStream * This,
  3092. /* [in] */ ULARGE_INTEGER libOffset,
  3093. /* [in] */ ULARGE_INTEGER cb,
  3094. /* [in] */ DWORD dwLockType);
  3095. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3096. ISpStream * This,
  3097. /* [out] */ STATSTG *pstatstg,
  3098. /* [in] */ DWORD grfStatFlag);
  3099. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3100. ISpStream * This,
  3101. /* [out] */ IStream **ppstm);
  3102. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3103. ISpStream * This,
  3104. GUID *pguidFormatId,
  3105. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3106. HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
  3107. ISpStream * This,
  3108. IStream *pStream,
  3109. REFGUID rguidFormat,
  3110. const WAVEFORMATEX *pWaveFormatEx);
  3111. HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
  3112. ISpStream * This,
  3113. IStream **ppStream);
  3114. HRESULT ( STDMETHODCALLTYPE *BindToFile )(
  3115. ISpStream * This,
  3116. const WCHAR *pszFileName,
  3117. SPFILEMODE eMode,
  3118. const GUID *pFormatId,
  3119. const WAVEFORMATEX *pWaveFormatEx,
  3120. ULONGLONG ullEventInterest);
  3121. HRESULT ( STDMETHODCALLTYPE *Close )(
  3122. ISpStream * This);
  3123. END_INTERFACE
  3124. } ISpStreamVtbl;
  3125. interface ISpStream
  3126. {
  3127. CONST_VTBL struct ISpStreamVtbl *lpVtbl;
  3128. };
  3129. #ifdef COBJMACROS
  3130. #define ISpStream_QueryInterface(This,riid,ppvObject) \
  3131. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3132. #define ISpStream_AddRef(This) \
  3133. (This)->lpVtbl -> AddRef(This)
  3134. #define ISpStream_Release(This) \
  3135. (This)->lpVtbl -> Release(This)
  3136. #define ISpStream_Read(This,pv,cb,pcbRead) \
  3137. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3138. #define ISpStream_Write(This,pv,cb,pcbWritten) \
  3139. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3140. #define ISpStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3141. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3142. #define ISpStream_SetSize(This,libNewSize) \
  3143. (This)->lpVtbl -> SetSize(This,libNewSize)
  3144. #define ISpStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3145. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3146. #define ISpStream_Commit(This,grfCommitFlags) \
  3147. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3148. #define ISpStream_Revert(This) \
  3149. (This)->lpVtbl -> Revert(This)
  3150. #define ISpStream_LockRegion(This,libOffset,cb,dwLockType) \
  3151. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3152. #define ISpStream_UnlockRegion(This,libOffset,cb,dwLockType) \
  3153. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3154. #define ISpStream_Stat(This,pstatstg,grfStatFlag) \
  3155. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3156. #define ISpStream_Clone(This,ppstm) \
  3157. (This)->lpVtbl -> Clone(This,ppstm)
  3158. #define ISpStream_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3159. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3160. #define ISpStream_SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx) \
  3161. (This)->lpVtbl -> SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx)
  3162. #define ISpStream_GetBaseStream(This,ppStream) \
  3163. (This)->lpVtbl -> GetBaseStream(This,ppStream)
  3164. #define ISpStream_BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest) \
  3165. (This)->lpVtbl -> BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest)
  3166. #define ISpStream_Close(This) \
  3167. (This)->lpVtbl -> Close(This)
  3168. #endif /* COBJMACROS */
  3169. #endif /* C style interface */
  3170. HRESULT STDMETHODCALLTYPE ISpStream_SetBaseStream_Proxy(
  3171. ISpStream * This,
  3172. IStream *pStream,
  3173. REFGUID rguidFormat,
  3174. const WAVEFORMATEX *pWaveFormatEx);
  3175. void __RPC_STUB ISpStream_SetBaseStream_Stub(
  3176. IRpcStubBuffer *This,
  3177. IRpcChannelBuffer *_pRpcChannelBuffer,
  3178. PRPC_MESSAGE _pRpcMessage,
  3179. DWORD *_pdwStubPhase);
  3180. HRESULT STDMETHODCALLTYPE ISpStream_GetBaseStream_Proxy(
  3181. ISpStream * This,
  3182. IStream **ppStream);
  3183. void __RPC_STUB ISpStream_GetBaseStream_Stub(
  3184. IRpcStubBuffer *This,
  3185. IRpcChannelBuffer *_pRpcChannelBuffer,
  3186. PRPC_MESSAGE _pRpcMessage,
  3187. DWORD *_pdwStubPhase);
  3188. HRESULT STDMETHODCALLTYPE ISpStream_BindToFile_Proxy(
  3189. ISpStream * This,
  3190. const WCHAR *pszFileName,
  3191. SPFILEMODE eMode,
  3192. const GUID *pFormatId,
  3193. const WAVEFORMATEX *pWaveFormatEx,
  3194. ULONGLONG ullEventInterest);
  3195. void __RPC_STUB ISpStream_BindToFile_Stub(
  3196. IRpcStubBuffer *This,
  3197. IRpcChannelBuffer *_pRpcChannelBuffer,
  3198. PRPC_MESSAGE _pRpcMessage,
  3199. DWORD *_pdwStubPhase);
  3200. HRESULT STDMETHODCALLTYPE ISpStream_Close_Proxy(
  3201. ISpStream * This);
  3202. void __RPC_STUB ISpStream_Close_Stub(
  3203. IRpcStubBuffer *This,
  3204. IRpcChannelBuffer *_pRpcChannelBuffer,
  3205. PRPC_MESSAGE _pRpcMessage,
  3206. DWORD *_pdwStubPhase);
  3207. #endif /* __ISpStream_INTERFACE_DEFINED__ */
  3208. #ifndef __ISpStreamFormatConverter_INTERFACE_DEFINED__
  3209. #define __ISpStreamFormatConverter_INTERFACE_DEFINED__
  3210. /* interface ISpStreamFormatConverter */
  3211. /* [restricted][unique][helpstring][uuid][object] */
  3212. EXTERN_C const IID IID_ISpStreamFormatConverter;
  3213. #if defined(__cplusplus) && !defined(CINTERFACE)
  3214. MIDL_INTERFACE("678A932C-EA71-4446-9B41-78FDA6280A29")
  3215. ISpStreamFormatConverter : public ISpStreamFormat
  3216. {
  3217. public:
  3218. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  3219. /* [in] */ ISpStreamFormat *pStream,
  3220. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3221. /* [in] */ BOOL fWriteToBaseStream) = 0;
  3222. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  3223. /* [out] */ ISpStreamFormat **ppStream) = 0;
  3224. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  3225. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3226. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream) = 0;
  3227. virtual HRESULT STDMETHODCALLTYPE ResetSeekPosition( void) = 0;
  3228. virtual HRESULT STDMETHODCALLTYPE ScaleConvertedToBaseOffset(
  3229. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3230. /* [out] */ ULONGLONG *pullOffsetBaseStream) = 0;
  3231. virtual HRESULT STDMETHODCALLTYPE ScaleBaseToConvertedOffset(
  3232. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3233. /* [out] */ ULONGLONG *pullOffsetConvertedStream) = 0;
  3234. };
  3235. #else /* C style interface */
  3236. typedef struct ISpStreamFormatConverterVtbl
  3237. {
  3238. BEGIN_INTERFACE
  3239. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3240. ISpStreamFormatConverter * This,
  3241. /* [in] */ REFIID riid,
  3242. /* [iid_is][out] */ void **ppvObject);
  3243. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3244. ISpStreamFormatConverter * This);
  3245. ULONG ( STDMETHODCALLTYPE *Release )(
  3246. ISpStreamFormatConverter * This);
  3247. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3248. ISpStreamFormatConverter * This,
  3249. /* [length_is][size_is][out] */ void *pv,
  3250. /* [in] */ ULONG cb,
  3251. /* [out] */ ULONG *pcbRead);
  3252. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3253. ISpStreamFormatConverter * This,
  3254. /* [size_is][in] */ const void *pv,
  3255. /* [in] */ ULONG cb,
  3256. /* [out] */ ULONG *pcbWritten);
  3257. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3258. ISpStreamFormatConverter * This,
  3259. /* [in] */ LARGE_INTEGER dlibMove,
  3260. /* [in] */ DWORD dwOrigin,
  3261. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3262. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3263. ISpStreamFormatConverter * This,
  3264. /* [in] */ ULARGE_INTEGER libNewSize);
  3265. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3266. ISpStreamFormatConverter * This,
  3267. /* [unique][in] */ IStream *pstm,
  3268. /* [in] */ ULARGE_INTEGER cb,
  3269. /* [out] */ ULARGE_INTEGER *pcbRead,
  3270. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3271. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3272. ISpStreamFormatConverter * This,
  3273. /* [in] */ DWORD grfCommitFlags);
  3274. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3275. ISpStreamFormatConverter * This);
  3276. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3277. ISpStreamFormatConverter * This,
  3278. /* [in] */ ULARGE_INTEGER libOffset,
  3279. /* [in] */ ULARGE_INTEGER cb,
  3280. /* [in] */ DWORD dwLockType);
  3281. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3282. ISpStreamFormatConverter * This,
  3283. /* [in] */ ULARGE_INTEGER libOffset,
  3284. /* [in] */ ULARGE_INTEGER cb,
  3285. /* [in] */ DWORD dwLockType);
  3286. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3287. ISpStreamFormatConverter * This,
  3288. /* [out] */ STATSTG *pstatstg,
  3289. /* [in] */ DWORD grfStatFlag);
  3290. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3291. ISpStreamFormatConverter * This,
  3292. /* [out] */ IStream **ppstm);
  3293. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3294. ISpStreamFormatConverter * This,
  3295. GUID *pguidFormatId,
  3296. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3297. HRESULT ( STDMETHODCALLTYPE *SetBaseStream )(
  3298. ISpStreamFormatConverter * This,
  3299. /* [in] */ ISpStreamFormat *pStream,
  3300. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3301. /* [in] */ BOOL fWriteToBaseStream);
  3302. HRESULT ( STDMETHODCALLTYPE *GetBaseStream )(
  3303. ISpStreamFormatConverter * This,
  3304. /* [out] */ ISpStreamFormat **ppStream);
  3305. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3306. ISpStreamFormatConverter * This,
  3307. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3308. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
  3309. HRESULT ( STDMETHODCALLTYPE *ResetSeekPosition )(
  3310. ISpStreamFormatConverter * This);
  3311. HRESULT ( STDMETHODCALLTYPE *ScaleConvertedToBaseOffset )(
  3312. ISpStreamFormatConverter * This,
  3313. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3314. /* [out] */ ULONGLONG *pullOffsetBaseStream);
  3315. HRESULT ( STDMETHODCALLTYPE *ScaleBaseToConvertedOffset )(
  3316. ISpStreamFormatConverter * This,
  3317. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3318. /* [out] */ ULONGLONG *pullOffsetConvertedStream);
  3319. END_INTERFACE
  3320. } ISpStreamFormatConverterVtbl;
  3321. interface ISpStreamFormatConverter
  3322. {
  3323. CONST_VTBL struct ISpStreamFormatConverterVtbl *lpVtbl;
  3324. };
  3325. #ifdef COBJMACROS
  3326. #define ISpStreamFormatConverter_QueryInterface(This,riid,ppvObject) \
  3327. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3328. #define ISpStreamFormatConverter_AddRef(This) \
  3329. (This)->lpVtbl -> AddRef(This)
  3330. #define ISpStreamFormatConverter_Release(This) \
  3331. (This)->lpVtbl -> Release(This)
  3332. #define ISpStreamFormatConverter_Read(This,pv,cb,pcbRead) \
  3333. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3334. #define ISpStreamFormatConverter_Write(This,pv,cb,pcbWritten) \
  3335. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3336. #define ISpStreamFormatConverter_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3337. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3338. #define ISpStreamFormatConverter_SetSize(This,libNewSize) \
  3339. (This)->lpVtbl -> SetSize(This,libNewSize)
  3340. #define ISpStreamFormatConverter_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3341. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3342. #define ISpStreamFormatConverter_Commit(This,grfCommitFlags) \
  3343. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3344. #define ISpStreamFormatConverter_Revert(This) \
  3345. (This)->lpVtbl -> Revert(This)
  3346. #define ISpStreamFormatConverter_LockRegion(This,libOffset,cb,dwLockType) \
  3347. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3348. #define ISpStreamFormatConverter_UnlockRegion(This,libOffset,cb,dwLockType) \
  3349. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3350. #define ISpStreamFormatConverter_Stat(This,pstatstg,grfStatFlag) \
  3351. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3352. #define ISpStreamFormatConverter_Clone(This,ppstm) \
  3353. (This)->lpVtbl -> Clone(This,ppstm)
  3354. #define ISpStreamFormatConverter_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3355. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3356. #define ISpStreamFormatConverter_SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream) \
  3357. (This)->lpVtbl -> SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream)
  3358. #define ISpStreamFormatConverter_GetBaseStream(This,ppStream) \
  3359. (This)->lpVtbl -> GetBaseStream(This,ppStream)
  3360. #define ISpStreamFormatConverter_SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream) \
  3361. (This)->lpVtbl -> SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream)
  3362. #define ISpStreamFormatConverter_ResetSeekPosition(This) \
  3363. (This)->lpVtbl -> ResetSeekPosition(This)
  3364. #define ISpStreamFormatConverter_ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream) \
  3365. (This)->lpVtbl -> ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream)
  3366. #define ISpStreamFormatConverter_ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream) \
  3367. (This)->lpVtbl -> ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream)
  3368. #endif /* COBJMACROS */
  3369. #endif /* C style interface */
  3370. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetBaseStream_Proxy(
  3371. ISpStreamFormatConverter * This,
  3372. /* [in] */ ISpStreamFormat *pStream,
  3373. /* [in] */ BOOL fSetFormatToBaseStreamFormat,
  3374. /* [in] */ BOOL fWriteToBaseStream);
  3375. void __RPC_STUB ISpStreamFormatConverter_SetBaseStream_Stub(
  3376. IRpcStubBuffer *This,
  3377. IRpcChannelBuffer *_pRpcChannelBuffer,
  3378. PRPC_MESSAGE _pRpcMessage,
  3379. DWORD *_pdwStubPhase);
  3380. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_GetBaseStream_Proxy(
  3381. ISpStreamFormatConverter * This,
  3382. /* [out] */ ISpStreamFormat **ppStream);
  3383. void __RPC_STUB ISpStreamFormatConverter_GetBaseStream_Stub(
  3384. IRpcStubBuffer *This,
  3385. IRpcChannelBuffer *_pRpcChannelBuffer,
  3386. PRPC_MESSAGE _pRpcMessage,
  3387. DWORD *_pdwStubPhase);
  3388. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_SetFormat_Proxy(
  3389. ISpStreamFormatConverter * This,
  3390. /* [in] */ REFGUID rguidFormatIdOfConvertedStream,
  3391. /* [in] */ const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
  3392. void __RPC_STUB ISpStreamFormatConverter_SetFormat_Stub(
  3393. IRpcStubBuffer *This,
  3394. IRpcChannelBuffer *_pRpcChannelBuffer,
  3395. PRPC_MESSAGE _pRpcMessage,
  3396. DWORD *_pdwStubPhase);
  3397. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ResetSeekPosition_Proxy(
  3398. ISpStreamFormatConverter * This);
  3399. void __RPC_STUB ISpStreamFormatConverter_ResetSeekPosition_Stub(
  3400. IRpcStubBuffer *This,
  3401. IRpcChannelBuffer *_pRpcChannelBuffer,
  3402. PRPC_MESSAGE _pRpcMessage,
  3403. DWORD *_pdwStubPhase);
  3404. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Proxy(
  3405. ISpStreamFormatConverter * This,
  3406. /* [in] */ ULONGLONG ullOffsetConvertedStream,
  3407. /* [out] */ ULONGLONG *pullOffsetBaseStream);
  3408. void __RPC_STUB ISpStreamFormatConverter_ScaleConvertedToBaseOffset_Stub(
  3409. IRpcStubBuffer *This,
  3410. IRpcChannelBuffer *_pRpcChannelBuffer,
  3411. PRPC_MESSAGE _pRpcMessage,
  3412. DWORD *_pdwStubPhase);
  3413. HRESULT STDMETHODCALLTYPE ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Proxy(
  3414. ISpStreamFormatConverter * This,
  3415. /* [in] */ ULONGLONG ullOffsetBaseStream,
  3416. /* [out] */ ULONGLONG *pullOffsetConvertedStream);
  3417. void __RPC_STUB ISpStreamFormatConverter_ScaleBaseToConvertedOffset_Stub(
  3418. IRpcStubBuffer *This,
  3419. IRpcChannelBuffer *_pRpcChannelBuffer,
  3420. PRPC_MESSAGE _pRpcMessage,
  3421. DWORD *_pdwStubPhase);
  3422. #endif /* __ISpStreamFormatConverter_INTERFACE_DEFINED__ */
  3423. /* interface __MIDL_itf_sapi_0267 */
  3424. /* [local] */
  3425. typedef /* [hidden] */
  3426. enum _SPAUDIOSTATE
  3427. { SPAS_CLOSED = 0,
  3428. SPAS_STOP = SPAS_CLOSED + 1,
  3429. SPAS_PAUSE = SPAS_STOP + 1,
  3430. SPAS_RUN = SPAS_PAUSE + 1
  3431. } SPAUDIOSTATE;
  3432. typedef /* [hidden][restricted] */ struct SPAUDIOSTATUS
  3433. {
  3434. long cbFreeBuffSpace;
  3435. ULONG cbNonBlockingIO;
  3436. SPAUDIOSTATE State;
  3437. ULONGLONG CurSeekPos;
  3438. ULONGLONG CurDevicePos;
  3439. DWORD dwReserved1;
  3440. DWORD dwReserved2;
  3441. } SPAUDIOSTATUS;
  3442. typedef /* [hidden][restricted] */ struct SPAUDIOBUFFERINFO
  3443. {
  3444. ULONG ulMsMinNotification;
  3445. ULONG ulMsBufferSize;
  3446. ULONG ulMsEventBias;
  3447. } SPAUDIOBUFFERINFO;
  3448. extern RPC_IF_HANDLE __MIDL_itf_sapi_0267_v0_0_c_ifspec;
  3449. extern RPC_IF_HANDLE __MIDL_itf_sapi_0267_v0_0_s_ifspec;
  3450. #ifndef __ISpAudio_INTERFACE_DEFINED__
  3451. #define __ISpAudio_INTERFACE_DEFINED__
  3452. /* interface ISpAudio */
  3453. /* [restricted][local][unique][helpstring][uuid][object] */
  3454. EXTERN_C const IID IID_ISpAudio;
  3455. #if defined(__cplusplus) && !defined(CINTERFACE)
  3456. MIDL_INTERFACE("C05C768F-FAE8-4EC2-8E07-338321C12452")
  3457. ISpAudio : public ISpStreamFormat
  3458. {
  3459. public:
  3460. virtual HRESULT STDMETHODCALLTYPE SetState(
  3461. /* [in] */ SPAUDIOSTATE NewState,
  3462. /* [in] */ ULONGLONG ullReserved) = 0;
  3463. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  3464. /* [in] */ REFGUID rguidFmtId,
  3465. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  3466. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  3467. /* [out] */ SPAUDIOSTATUS *pStatus) = 0;
  3468. virtual HRESULT STDMETHODCALLTYPE SetBufferInfo(
  3469. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  3470. virtual HRESULT STDMETHODCALLTYPE GetBufferInfo(
  3471. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  3472. virtual HRESULT STDMETHODCALLTYPE GetDefaultFormat(
  3473. /* [out] */ GUID *pFormatId,
  3474. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  3475. virtual HANDLE STDMETHODCALLTYPE EventHandle( void) = 0;
  3476. virtual HRESULT STDMETHODCALLTYPE GetVolumeLevel(
  3477. /* [out] */ ULONG *pLevel) = 0;
  3478. virtual HRESULT STDMETHODCALLTYPE SetVolumeLevel(
  3479. /* [in] */ ULONG Level) = 0;
  3480. virtual HRESULT STDMETHODCALLTYPE GetBufferNotifySize(
  3481. /* [out] */ ULONG *pcbSize) = 0;
  3482. virtual HRESULT STDMETHODCALLTYPE SetBufferNotifySize(
  3483. /* [in] */ ULONG cbSize) = 0;
  3484. };
  3485. #else /* C style interface */
  3486. typedef struct ISpAudioVtbl
  3487. {
  3488. BEGIN_INTERFACE
  3489. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3490. ISpAudio * This,
  3491. /* [in] */ REFIID riid,
  3492. /* [iid_is][out] */ void **ppvObject);
  3493. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3494. ISpAudio * This);
  3495. ULONG ( STDMETHODCALLTYPE *Release )(
  3496. ISpAudio * This);
  3497. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3498. ISpAudio * This,
  3499. /* [length_is][size_is][out] */ void *pv,
  3500. /* [in] */ ULONG cb,
  3501. /* [out] */ ULONG *pcbRead);
  3502. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3503. ISpAudio * This,
  3504. /* [size_is][in] */ const void *pv,
  3505. /* [in] */ ULONG cb,
  3506. /* [out] */ ULONG *pcbWritten);
  3507. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3508. ISpAudio * This,
  3509. /* [in] */ LARGE_INTEGER dlibMove,
  3510. /* [in] */ DWORD dwOrigin,
  3511. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3512. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3513. ISpAudio * This,
  3514. /* [in] */ ULARGE_INTEGER libNewSize);
  3515. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3516. ISpAudio * This,
  3517. /* [unique][in] */ IStream *pstm,
  3518. /* [in] */ ULARGE_INTEGER cb,
  3519. /* [out] */ ULARGE_INTEGER *pcbRead,
  3520. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3521. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3522. ISpAudio * This,
  3523. /* [in] */ DWORD grfCommitFlags);
  3524. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3525. ISpAudio * This);
  3526. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3527. ISpAudio * This,
  3528. /* [in] */ ULARGE_INTEGER libOffset,
  3529. /* [in] */ ULARGE_INTEGER cb,
  3530. /* [in] */ DWORD dwLockType);
  3531. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3532. ISpAudio * This,
  3533. /* [in] */ ULARGE_INTEGER libOffset,
  3534. /* [in] */ ULARGE_INTEGER cb,
  3535. /* [in] */ DWORD dwLockType);
  3536. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3537. ISpAudio * This,
  3538. /* [out] */ STATSTG *pstatstg,
  3539. /* [in] */ DWORD grfStatFlag);
  3540. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3541. ISpAudio * This,
  3542. /* [out] */ IStream **ppstm);
  3543. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3544. ISpAudio * This,
  3545. GUID *pguidFormatId,
  3546. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3547. HRESULT ( STDMETHODCALLTYPE *SetState )(
  3548. ISpAudio * This,
  3549. /* [in] */ SPAUDIOSTATE NewState,
  3550. /* [in] */ ULONGLONG ullReserved);
  3551. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3552. ISpAudio * This,
  3553. /* [in] */ REFGUID rguidFmtId,
  3554. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3555. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  3556. ISpAudio * This,
  3557. /* [out] */ SPAUDIOSTATUS *pStatus);
  3558. HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
  3559. ISpAudio * This,
  3560. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3561. HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
  3562. ISpAudio * This,
  3563. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3564. HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
  3565. ISpAudio * This,
  3566. /* [out] */ GUID *pFormatId,
  3567. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3568. HANDLE ( STDMETHODCALLTYPE *EventHandle )(
  3569. ISpAudio * This);
  3570. HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
  3571. ISpAudio * This,
  3572. /* [out] */ ULONG *pLevel);
  3573. HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
  3574. ISpAudio * This,
  3575. /* [in] */ ULONG Level);
  3576. HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
  3577. ISpAudio * This,
  3578. /* [out] */ ULONG *pcbSize);
  3579. HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
  3580. ISpAudio * This,
  3581. /* [in] */ ULONG cbSize);
  3582. END_INTERFACE
  3583. } ISpAudioVtbl;
  3584. interface ISpAudio
  3585. {
  3586. CONST_VTBL struct ISpAudioVtbl *lpVtbl;
  3587. };
  3588. #ifdef COBJMACROS
  3589. #define ISpAudio_QueryInterface(This,riid,ppvObject) \
  3590. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3591. #define ISpAudio_AddRef(This) \
  3592. (This)->lpVtbl -> AddRef(This)
  3593. #define ISpAudio_Release(This) \
  3594. (This)->lpVtbl -> Release(This)
  3595. #define ISpAudio_Read(This,pv,cb,pcbRead) \
  3596. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3597. #define ISpAudio_Write(This,pv,cb,pcbWritten) \
  3598. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3599. #define ISpAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3600. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3601. #define ISpAudio_SetSize(This,libNewSize) \
  3602. (This)->lpVtbl -> SetSize(This,libNewSize)
  3603. #define ISpAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3604. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3605. #define ISpAudio_Commit(This,grfCommitFlags) \
  3606. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3607. #define ISpAudio_Revert(This) \
  3608. (This)->lpVtbl -> Revert(This)
  3609. #define ISpAudio_LockRegion(This,libOffset,cb,dwLockType) \
  3610. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3611. #define ISpAudio_UnlockRegion(This,libOffset,cb,dwLockType) \
  3612. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3613. #define ISpAudio_Stat(This,pstatstg,grfStatFlag) \
  3614. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3615. #define ISpAudio_Clone(This,ppstm) \
  3616. (This)->lpVtbl -> Clone(This,ppstm)
  3617. #define ISpAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3618. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3619. #define ISpAudio_SetState(This,NewState,ullReserved) \
  3620. (This)->lpVtbl -> SetState(This,NewState,ullReserved)
  3621. #define ISpAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) \
  3622. (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
  3623. #define ISpAudio_GetStatus(This,pStatus) \
  3624. (This)->lpVtbl -> GetStatus(This,pStatus)
  3625. #define ISpAudio_SetBufferInfo(This,pBuffInfo) \
  3626. (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
  3627. #define ISpAudio_GetBufferInfo(This,pBuffInfo) \
  3628. (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
  3629. #define ISpAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) \
  3630. (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  3631. #define ISpAudio_EventHandle(This) \
  3632. (This)->lpVtbl -> EventHandle(This)
  3633. #define ISpAudio_GetVolumeLevel(This,pLevel) \
  3634. (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
  3635. #define ISpAudio_SetVolumeLevel(This,Level) \
  3636. (This)->lpVtbl -> SetVolumeLevel(This,Level)
  3637. #define ISpAudio_GetBufferNotifySize(This,pcbSize) \
  3638. (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
  3639. #define ISpAudio_SetBufferNotifySize(This,cbSize) \
  3640. (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
  3641. #endif /* COBJMACROS */
  3642. #endif /* C style interface */
  3643. HRESULT STDMETHODCALLTYPE ISpAudio_SetState_Proxy(
  3644. ISpAudio * This,
  3645. /* [in] */ SPAUDIOSTATE NewState,
  3646. /* [in] */ ULONGLONG ullReserved);
  3647. void __RPC_STUB ISpAudio_SetState_Stub(
  3648. IRpcStubBuffer *This,
  3649. IRpcChannelBuffer *_pRpcChannelBuffer,
  3650. PRPC_MESSAGE _pRpcMessage,
  3651. DWORD *_pdwStubPhase);
  3652. HRESULT STDMETHODCALLTYPE ISpAudio_SetFormat_Proxy(
  3653. ISpAudio * This,
  3654. /* [in] */ REFGUID rguidFmtId,
  3655. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3656. void __RPC_STUB ISpAudio_SetFormat_Stub(
  3657. IRpcStubBuffer *This,
  3658. IRpcChannelBuffer *_pRpcChannelBuffer,
  3659. PRPC_MESSAGE _pRpcMessage,
  3660. DWORD *_pdwStubPhase);
  3661. HRESULT STDMETHODCALLTYPE ISpAudio_GetStatus_Proxy(
  3662. ISpAudio * This,
  3663. /* [out] */ SPAUDIOSTATUS *pStatus);
  3664. void __RPC_STUB ISpAudio_GetStatus_Stub(
  3665. IRpcStubBuffer *This,
  3666. IRpcChannelBuffer *_pRpcChannelBuffer,
  3667. PRPC_MESSAGE _pRpcMessage,
  3668. DWORD *_pdwStubPhase);
  3669. HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferInfo_Proxy(
  3670. ISpAudio * This,
  3671. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3672. void __RPC_STUB ISpAudio_SetBufferInfo_Stub(
  3673. IRpcStubBuffer *This,
  3674. IRpcChannelBuffer *_pRpcChannelBuffer,
  3675. PRPC_MESSAGE _pRpcMessage,
  3676. DWORD *_pdwStubPhase);
  3677. HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferInfo_Proxy(
  3678. ISpAudio * This,
  3679. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3680. void __RPC_STUB ISpAudio_GetBufferInfo_Stub(
  3681. IRpcStubBuffer *This,
  3682. IRpcChannelBuffer *_pRpcChannelBuffer,
  3683. PRPC_MESSAGE _pRpcMessage,
  3684. DWORD *_pdwStubPhase);
  3685. HRESULT STDMETHODCALLTYPE ISpAudio_GetDefaultFormat_Proxy(
  3686. ISpAudio * This,
  3687. /* [out] */ GUID *pFormatId,
  3688. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3689. void __RPC_STUB ISpAudio_GetDefaultFormat_Stub(
  3690. IRpcStubBuffer *This,
  3691. IRpcChannelBuffer *_pRpcChannelBuffer,
  3692. PRPC_MESSAGE _pRpcMessage,
  3693. DWORD *_pdwStubPhase);
  3694. HANDLE STDMETHODCALLTYPE ISpAudio_EventHandle_Proxy(
  3695. ISpAudio * This);
  3696. void __RPC_STUB ISpAudio_EventHandle_Stub(
  3697. IRpcStubBuffer *This,
  3698. IRpcChannelBuffer *_pRpcChannelBuffer,
  3699. PRPC_MESSAGE _pRpcMessage,
  3700. DWORD *_pdwStubPhase);
  3701. HRESULT STDMETHODCALLTYPE ISpAudio_GetVolumeLevel_Proxy(
  3702. ISpAudio * This,
  3703. /* [out] */ ULONG *pLevel);
  3704. void __RPC_STUB ISpAudio_GetVolumeLevel_Stub(
  3705. IRpcStubBuffer *This,
  3706. IRpcChannelBuffer *_pRpcChannelBuffer,
  3707. PRPC_MESSAGE _pRpcMessage,
  3708. DWORD *_pdwStubPhase);
  3709. HRESULT STDMETHODCALLTYPE ISpAudio_SetVolumeLevel_Proxy(
  3710. ISpAudio * This,
  3711. /* [in] */ ULONG Level);
  3712. void __RPC_STUB ISpAudio_SetVolumeLevel_Stub(
  3713. IRpcStubBuffer *This,
  3714. IRpcChannelBuffer *_pRpcChannelBuffer,
  3715. PRPC_MESSAGE _pRpcMessage,
  3716. DWORD *_pdwStubPhase);
  3717. HRESULT STDMETHODCALLTYPE ISpAudio_GetBufferNotifySize_Proxy(
  3718. ISpAudio * This,
  3719. /* [out] */ ULONG *pcbSize);
  3720. void __RPC_STUB ISpAudio_GetBufferNotifySize_Stub(
  3721. IRpcStubBuffer *This,
  3722. IRpcChannelBuffer *_pRpcChannelBuffer,
  3723. PRPC_MESSAGE _pRpcMessage,
  3724. DWORD *_pdwStubPhase);
  3725. HRESULT STDMETHODCALLTYPE ISpAudio_SetBufferNotifySize_Proxy(
  3726. ISpAudio * This,
  3727. /* [in] */ ULONG cbSize);
  3728. void __RPC_STUB ISpAudio_SetBufferNotifySize_Stub(
  3729. IRpcStubBuffer *This,
  3730. IRpcChannelBuffer *_pRpcChannelBuffer,
  3731. PRPC_MESSAGE _pRpcMessage,
  3732. DWORD *_pdwStubPhase);
  3733. #endif /* __ISpAudio_INTERFACE_DEFINED__ */
  3734. #ifndef __ISpMMSysAudio_INTERFACE_DEFINED__
  3735. #define __ISpMMSysAudio_INTERFACE_DEFINED__
  3736. /* interface ISpMMSysAudio */
  3737. /* [restricted][local][unique][helpstring][uuid][object] */
  3738. EXTERN_C const IID IID_ISpMMSysAudio;
  3739. #if defined(__cplusplus) && !defined(CINTERFACE)
  3740. MIDL_INTERFACE("15806F6E-1D70-4B48-98E6-3B1A007509AB")
  3741. ISpMMSysAudio : public ISpAudio
  3742. {
  3743. public:
  3744. virtual HRESULT STDMETHODCALLTYPE GetDeviceId(
  3745. /* [out] */ UINT *puDeviceId) = 0;
  3746. virtual HRESULT STDMETHODCALLTYPE SetDeviceId(
  3747. /* [in] */ UINT uDeviceId) = 0;
  3748. virtual HRESULT STDMETHODCALLTYPE GetMMHandle(
  3749. void **pHandle) = 0;
  3750. virtual HRESULT STDMETHODCALLTYPE GetLineId(
  3751. /* [out] */ UINT *puLineId) = 0;
  3752. virtual HRESULT STDMETHODCALLTYPE SetLineId(
  3753. /* [in] */ UINT uLineId) = 0;
  3754. };
  3755. #else /* C style interface */
  3756. typedef struct ISpMMSysAudioVtbl
  3757. {
  3758. BEGIN_INTERFACE
  3759. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3760. ISpMMSysAudio * This,
  3761. /* [in] */ REFIID riid,
  3762. /* [iid_is][out] */ void **ppvObject);
  3763. ULONG ( STDMETHODCALLTYPE *AddRef )(
  3764. ISpMMSysAudio * This);
  3765. ULONG ( STDMETHODCALLTYPE *Release )(
  3766. ISpMMSysAudio * This);
  3767. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  3768. ISpMMSysAudio * This,
  3769. /* [length_is][size_is][out] */ void *pv,
  3770. /* [in] */ ULONG cb,
  3771. /* [out] */ ULONG *pcbRead);
  3772. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  3773. ISpMMSysAudio * This,
  3774. /* [size_is][in] */ const void *pv,
  3775. /* [in] */ ULONG cb,
  3776. /* [out] */ ULONG *pcbWritten);
  3777. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  3778. ISpMMSysAudio * This,
  3779. /* [in] */ LARGE_INTEGER dlibMove,
  3780. /* [in] */ DWORD dwOrigin,
  3781. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  3782. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  3783. ISpMMSysAudio * This,
  3784. /* [in] */ ULARGE_INTEGER libNewSize);
  3785. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  3786. ISpMMSysAudio * This,
  3787. /* [unique][in] */ IStream *pstm,
  3788. /* [in] */ ULARGE_INTEGER cb,
  3789. /* [out] */ ULARGE_INTEGER *pcbRead,
  3790. /* [out] */ ULARGE_INTEGER *pcbWritten);
  3791. HRESULT ( STDMETHODCALLTYPE *Commit )(
  3792. ISpMMSysAudio * This,
  3793. /* [in] */ DWORD grfCommitFlags);
  3794. HRESULT ( STDMETHODCALLTYPE *Revert )(
  3795. ISpMMSysAudio * This);
  3796. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  3797. ISpMMSysAudio * This,
  3798. /* [in] */ ULARGE_INTEGER libOffset,
  3799. /* [in] */ ULARGE_INTEGER cb,
  3800. /* [in] */ DWORD dwLockType);
  3801. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  3802. ISpMMSysAudio * This,
  3803. /* [in] */ ULARGE_INTEGER libOffset,
  3804. /* [in] */ ULARGE_INTEGER cb,
  3805. /* [in] */ DWORD dwLockType);
  3806. HRESULT ( STDMETHODCALLTYPE *Stat )(
  3807. ISpMMSysAudio * This,
  3808. /* [out] */ STATSTG *pstatstg,
  3809. /* [in] */ DWORD grfStatFlag);
  3810. HRESULT ( STDMETHODCALLTYPE *Clone )(
  3811. ISpMMSysAudio * This,
  3812. /* [out] */ IStream **ppstm);
  3813. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  3814. ISpMMSysAudio * This,
  3815. GUID *pguidFormatId,
  3816. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3817. HRESULT ( STDMETHODCALLTYPE *SetState )(
  3818. ISpMMSysAudio * This,
  3819. /* [in] */ SPAUDIOSTATE NewState,
  3820. /* [in] */ ULONGLONG ullReserved);
  3821. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  3822. ISpMMSysAudio * This,
  3823. /* [in] */ REFGUID rguidFmtId,
  3824. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  3825. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  3826. ISpMMSysAudio * This,
  3827. /* [out] */ SPAUDIOSTATUS *pStatus);
  3828. HRESULT ( STDMETHODCALLTYPE *SetBufferInfo )(
  3829. ISpMMSysAudio * This,
  3830. /* [in] */ const SPAUDIOBUFFERINFO *pBuffInfo);
  3831. HRESULT ( STDMETHODCALLTYPE *GetBufferInfo )(
  3832. ISpMMSysAudio * This,
  3833. /* [out] */ SPAUDIOBUFFERINFO *pBuffInfo);
  3834. HRESULT ( STDMETHODCALLTYPE *GetDefaultFormat )(
  3835. ISpMMSysAudio * This,
  3836. /* [out] */ GUID *pFormatId,
  3837. /* [out] */ WAVEFORMATEX **ppCoMemWaveFormatEx);
  3838. HANDLE ( STDMETHODCALLTYPE *EventHandle )(
  3839. ISpMMSysAudio * This);
  3840. HRESULT ( STDMETHODCALLTYPE *GetVolumeLevel )(
  3841. ISpMMSysAudio * This,
  3842. /* [out] */ ULONG *pLevel);
  3843. HRESULT ( STDMETHODCALLTYPE *SetVolumeLevel )(
  3844. ISpMMSysAudio * This,
  3845. /* [in] */ ULONG Level);
  3846. HRESULT ( STDMETHODCALLTYPE *GetBufferNotifySize )(
  3847. ISpMMSysAudio * This,
  3848. /* [out] */ ULONG *pcbSize);
  3849. HRESULT ( STDMETHODCALLTYPE *SetBufferNotifySize )(
  3850. ISpMMSysAudio * This,
  3851. /* [in] */ ULONG cbSize);
  3852. HRESULT ( STDMETHODCALLTYPE *GetDeviceId )(
  3853. ISpMMSysAudio * This,
  3854. /* [out] */ UINT *puDeviceId);
  3855. HRESULT ( STDMETHODCALLTYPE *SetDeviceId )(
  3856. ISpMMSysAudio * This,
  3857. /* [in] */ UINT uDeviceId);
  3858. HRESULT ( STDMETHODCALLTYPE *GetMMHandle )(
  3859. ISpMMSysAudio * This,
  3860. void **pHandle);
  3861. HRESULT ( STDMETHODCALLTYPE *GetLineId )(
  3862. ISpMMSysAudio * This,
  3863. /* [out] */ UINT *puLineId);
  3864. HRESULT ( STDMETHODCALLTYPE *SetLineId )(
  3865. ISpMMSysAudio * This,
  3866. /* [in] */ UINT uLineId);
  3867. END_INTERFACE
  3868. } ISpMMSysAudioVtbl;
  3869. interface ISpMMSysAudio
  3870. {
  3871. CONST_VTBL struct ISpMMSysAudioVtbl *lpVtbl;
  3872. };
  3873. #ifdef COBJMACROS
  3874. #define ISpMMSysAudio_QueryInterface(This,riid,ppvObject) \
  3875. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  3876. #define ISpMMSysAudio_AddRef(This) \
  3877. (This)->lpVtbl -> AddRef(This)
  3878. #define ISpMMSysAudio_Release(This) \
  3879. (This)->lpVtbl -> Release(This)
  3880. #define ISpMMSysAudio_Read(This,pv,cb,pcbRead) \
  3881. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  3882. #define ISpMMSysAudio_Write(This,pv,cb,pcbWritten) \
  3883. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  3884. #define ISpMMSysAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  3885. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3886. #define ISpMMSysAudio_SetSize(This,libNewSize) \
  3887. (This)->lpVtbl -> SetSize(This,libNewSize)
  3888. #define ISpMMSysAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  3889. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3890. #define ISpMMSysAudio_Commit(This,grfCommitFlags) \
  3891. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  3892. #define ISpMMSysAudio_Revert(This) \
  3893. (This)->lpVtbl -> Revert(This)
  3894. #define ISpMMSysAudio_LockRegion(This,libOffset,cb,dwLockType) \
  3895. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  3896. #define ISpMMSysAudio_UnlockRegion(This,libOffset,cb,dwLockType) \
  3897. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  3898. #define ISpMMSysAudio_Stat(This,pstatstg,grfStatFlag) \
  3899. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  3900. #define ISpMMSysAudio_Clone(This,ppstm) \
  3901. (This)->lpVtbl -> Clone(This,ppstm)
  3902. #define ISpMMSysAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) \
  3903. (This)->lpVtbl -> GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3904. #define ISpMMSysAudio_SetState(This,NewState,ullReserved) \
  3905. (This)->lpVtbl -> SetState(This,NewState,ullReserved)
  3906. #define ISpMMSysAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) \
  3907. (This)->lpVtbl -> SetFormat(This,rguidFmtId,pWaveFormatEx)
  3908. #define ISpMMSysAudio_GetStatus(This,pStatus) \
  3909. (This)->lpVtbl -> GetStatus(This,pStatus)
  3910. #define ISpMMSysAudio_SetBufferInfo(This,pBuffInfo) \
  3911. (This)->lpVtbl -> SetBufferInfo(This,pBuffInfo)
  3912. #define ISpMMSysAudio_GetBufferInfo(This,pBuffInfo) \
  3913. (This)->lpVtbl -> GetBufferInfo(This,pBuffInfo)
  3914. #define ISpMMSysAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) \
  3915. (This)->lpVtbl -> GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  3916. #define ISpMMSysAudio_EventHandle(This) \
  3917. (This)->lpVtbl -> EventHandle(This)
  3918. #define ISpMMSysAudio_GetVolumeLevel(This,pLevel) \
  3919. (This)->lpVtbl -> GetVolumeLevel(This,pLevel)
  3920. #define ISpMMSysAudio_SetVolumeLevel(This,Level) \
  3921. (This)->lpVtbl -> SetVolumeLevel(This,Level)
  3922. #define ISpMMSysAudio_GetBufferNotifySize(This,pcbSize) \
  3923. (This)->lpVtbl -> GetBufferNotifySize(This,pcbSize)
  3924. #define ISpMMSysAudio_SetBufferNotifySize(This,cbSize) \
  3925. (This)->lpVtbl -> SetBufferNotifySize(This,cbSize)
  3926. #define ISpMMSysAudio_GetDeviceId(This,puDeviceId) \
  3927. (This)->lpVtbl -> GetDeviceId(This,puDeviceId)
  3928. #define ISpMMSysAudio_SetDeviceId(This,uDeviceId) \
  3929. (This)->lpVtbl -> SetDeviceId(This,uDeviceId)
  3930. #define ISpMMSysAudio_GetMMHandle(This,pHandle) \
  3931. (This)->lpVtbl -> GetMMHandle(This,pHandle)
  3932. #define ISpMMSysAudio_GetLineId(This,puLineId) \
  3933. (This)->lpVtbl -> GetLineId(This,puLineId)
  3934. #define ISpMMSysAudio_SetLineId(This,uLineId) \
  3935. (This)->lpVtbl -> SetLineId(This,uLineId)
  3936. #endif /* COBJMACROS */
  3937. #endif /* C style interface */
  3938. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetDeviceId_Proxy(
  3939. ISpMMSysAudio * This,
  3940. /* [out] */ UINT *puDeviceId);
  3941. void __RPC_STUB ISpMMSysAudio_GetDeviceId_Stub(
  3942. IRpcStubBuffer *This,
  3943. IRpcChannelBuffer *_pRpcChannelBuffer,
  3944. PRPC_MESSAGE _pRpcMessage,
  3945. DWORD *_pdwStubPhase);
  3946. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetDeviceId_Proxy(
  3947. ISpMMSysAudio * This,
  3948. /* [in] */ UINT uDeviceId);
  3949. void __RPC_STUB ISpMMSysAudio_SetDeviceId_Stub(
  3950. IRpcStubBuffer *This,
  3951. IRpcChannelBuffer *_pRpcChannelBuffer,
  3952. PRPC_MESSAGE _pRpcMessage,
  3953. DWORD *_pdwStubPhase);
  3954. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetMMHandle_Proxy(
  3955. ISpMMSysAudio * This,
  3956. void **pHandle);
  3957. void __RPC_STUB ISpMMSysAudio_GetMMHandle_Stub(
  3958. IRpcStubBuffer *This,
  3959. IRpcChannelBuffer *_pRpcChannelBuffer,
  3960. PRPC_MESSAGE _pRpcMessage,
  3961. DWORD *_pdwStubPhase);
  3962. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_GetLineId_Proxy(
  3963. ISpMMSysAudio * This,
  3964. /* [out] */ UINT *puLineId);
  3965. void __RPC_STUB ISpMMSysAudio_GetLineId_Stub(
  3966. IRpcStubBuffer *This,
  3967. IRpcChannelBuffer *_pRpcChannelBuffer,
  3968. PRPC_MESSAGE _pRpcMessage,
  3969. DWORD *_pdwStubPhase);
  3970. HRESULT STDMETHODCALLTYPE ISpMMSysAudio_SetLineId_Proxy(
  3971. ISpMMSysAudio * This,
  3972. /* [in] */ UINT uLineId);
  3973. void __RPC_STUB ISpMMSysAudio_SetLineId_Stub(
  3974. IRpcStubBuffer *This,
  3975. IRpcChannelBuffer *_pRpcChannelBuffer,
  3976. PRPC_MESSAGE _pRpcMessage,
  3977. DWORD *_pdwStubPhase);
  3978. #endif /* __ISpMMSysAudio_INTERFACE_DEFINED__ */
  3979. #ifndef __ISpTranscript_INTERFACE_DEFINED__
  3980. #define __ISpTranscript_INTERFACE_DEFINED__
  3981. /* interface ISpTranscript */
  3982. /* [restricted][unique][helpstring][uuid][object] */
  3983. EXTERN_C const IID IID_ISpTranscript;
  3984. #if defined(__cplusplus) && !defined(CINTERFACE)
  3985. MIDL_INTERFACE("10F63BCE-201A-11D3-AC70-00C04F8EE6C0")
  3986. ISpTranscript : public IUnknown
  3987. {
  3988. public:
  3989. virtual HRESULT STDMETHODCALLTYPE GetTranscript(
  3990. /* [string][out] */ WCHAR **ppszTranscript) = 0;
  3991. virtual HRESULT STDMETHODCALLTYPE AppendTranscript(
  3992. /* [string][in] */ const WCHAR *pszTranscript) = 0;
  3993. };
  3994. #else /* C style interface */
  3995. typedef struct ISpTranscriptVtbl
  3996. {
  3997. BEGIN_INTERFACE
  3998. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  3999. ISpTranscript * This,
  4000. /* [in] */ REFIID riid,
  4001. /* [iid_is][out] */ void **ppvObject);
  4002. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4003. ISpTranscript * This);
  4004. ULONG ( STDMETHODCALLTYPE *Release )(
  4005. ISpTranscript * This);
  4006. HRESULT ( STDMETHODCALLTYPE *GetTranscript )(
  4007. ISpTranscript * This,
  4008. /* [string][out] */ WCHAR **ppszTranscript);
  4009. HRESULT ( STDMETHODCALLTYPE *AppendTranscript )(
  4010. ISpTranscript * This,
  4011. /* [string][in] */ const WCHAR *pszTranscript);
  4012. END_INTERFACE
  4013. } ISpTranscriptVtbl;
  4014. interface ISpTranscript
  4015. {
  4016. CONST_VTBL struct ISpTranscriptVtbl *lpVtbl;
  4017. };
  4018. #ifdef COBJMACROS
  4019. #define ISpTranscript_QueryInterface(This,riid,ppvObject) \
  4020. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4021. #define ISpTranscript_AddRef(This) \
  4022. (This)->lpVtbl -> AddRef(This)
  4023. #define ISpTranscript_Release(This) \
  4024. (This)->lpVtbl -> Release(This)
  4025. #define ISpTranscript_GetTranscript(This,ppszTranscript) \
  4026. (This)->lpVtbl -> GetTranscript(This,ppszTranscript)
  4027. #define ISpTranscript_AppendTranscript(This,pszTranscript) \
  4028. (This)->lpVtbl -> AppendTranscript(This,pszTranscript)
  4029. #endif /* COBJMACROS */
  4030. #endif /* C style interface */
  4031. HRESULT STDMETHODCALLTYPE ISpTranscript_GetTranscript_Proxy(
  4032. ISpTranscript * This,
  4033. /* [string][out] */ WCHAR **ppszTranscript);
  4034. void __RPC_STUB ISpTranscript_GetTranscript_Stub(
  4035. IRpcStubBuffer *This,
  4036. IRpcChannelBuffer *_pRpcChannelBuffer,
  4037. PRPC_MESSAGE _pRpcMessage,
  4038. DWORD *_pdwStubPhase);
  4039. HRESULT STDMETHODCALLTYPE ISpTranscript_AppendTranscript_Proxy(
  4040. ISpTranscript * This,
  4041. /* [string][in] */ const WCHAR *pszTranscript);
  4042. void __RPC_STUB ISpTranscript_AppendTranscript_Stub(
  4043. IRpcStubBuffer *This,
  4044. IRpcChannelBuffer *_pRpcChannelBuffer,
  4045. PRPC_MESSAGE _pRpcMessage,
  4046. DWORD *_pdwStubPhase);
  4047. #endif /* __ISpTranscript_INTERFACE_DEFINED__ */
  4048. /* interface __MIDL_itf_sapi_0270 */
  4049. /* [local] */
  4050. typedef /* [hidden] */
  4051. enum SPDISPLYATTRIBUTES
  4052. { SPAF_ONE_TRAILING_SPACE = 0x2,
  4053. SPAF_TWO_TRAILING_SPACES = 0x4,
  4054. SPAF_CONSUME_LEADING_SPACES = 0x8,
  4055. SPAF_ALL = 0xf
  4056. } SPDISPLAYATTRIBUTES;
  4057. typedef unsigned short SPPHONEID;
  4058. typedef /* [hidden][restricted] */ struct SPPHRASEELEMENT
  4059. {
  4060. ULONG ulAudioTimeOffset;
  4061. ULONG ulAudioSizeTime;
  4062. ULONG ulAudioStreamOffset;
  4063. ULONG ulAudioSizeBytes;
  4064. ULONG ulRetainedStreamOffset;
  4065. ULONG ulRetainedSizeBytes;
  4066. const WCHAR *pszDisplayText;
  4067. const WCHAR *pszLexicalForm;
  4068. const SPPHONEID *pszPronunciation;
  4069. BYTE bDisplayAttributes;
  4070. signed char RequiredConfidence;
  4071. signed char ActualConfidence;
  4072. BYTE Reserved;
  4073. float SREngineConfidence;
  4074. } SPPHRASEELEMENT;
  4075. typedef /* [hidden][restricted] */ struct SPPHRASERULE SPPHRASERULE;
  4076. /* [hidden] */ struct SPPHRASERULE
  4077. {
  4078. const WCHAR *pszName;
  4079. ULONG ulId;
  4080. ULONG ulFirstElement;
  4081. ULONG ulCountOfElements;
  4082. const SPPHRASERULE *pNextSibling;
  4083. const SPPHRASERULE *pFirstChild;
  4084. float SREngineConfidence;
  4085. signed char Confidence;
  4086. } ;
  4087. typedef /* [hidden][restricted] */ struct SPPHRASEPROPERTY SPPHRASEPROPERTY;
  4088. /* [hidden] */ struct SPPHRASEPROPERTY
  4089. {
  4090. const WCHAR *pszName;
  4091. ULONG ulId;
  4092. const WCHAR *pszValue;
  4093. VARIANT vValue;
  4094. ULONG ulFirstElement;
  4095. ULONG ulCountOfElements;
  4096. const SPPHRASEPROPERTY *pNextSibling;
  4097. const SPPHRASEPROPERTY *pFirstChild;
  4098. float SREngineConfidence;
  4099. signed char Confidence;
  4100. } ;
  4101. typedef /* [hidden][restricted] */ struct SPPHRASEREPLACEMENT
  4102. {
  4103. BYTE bDisplayAttributes;
  4104. const WCHAR *pszReplacementText;
  4105. ULONG ulFirstElement;
  4106. ULONG ulCountOfElements;
  4107. } SPPHRASEREPLACEMENT;
  4108. typedef /* [hidden][restricted] */ struct SPPHRASE
  4109. {
  4110. ULONG cbSize;
  4111. WORD LangID;
  4112. WORD wReserved;
  4113. ULONGLONG ullGrammarID;
  4114. ULONGLONG ftStartTime;
  4115. ULONGLONG ullAudioStreamPosition;
  4116. ULONG ulAudioSizeBytes;
  4117. ULONG ulRetainedSizeBytes;
  4118. ULONG ulAudioSizeTime;
  4119. SPPHRASERULE Rule;
  4120. const SPPHRASEPROPERTY *pProperties;
  4121. const SPPHRASEELEMENT *pElements;
  4122. ULONG cReplacements;
  4123. const SPPHRASEREPLACEMENT *pReplacements;
  4124. GUID SREngineID;
  4125. ULONG ulSREnginePrivateDataSize;
  4126. const BYTE *pSREnginePrivateData;
  4127. } SPPHRASE;
  4128. typedef /* [hidden][restricted] */ struct SPSERIALIZEDPHRASE
  4129. {
  4130. ULONG ulSerializedSize;
  4131. } SPSERIALIZEDPHRASE;
  4132. typedef /* [hidden] */
  4133. enum SPVALUETYPE
  4134. { SPDF_PROPERTY = 0x1,
  4135. SPDF_REPLACEMENT = 0x2,
  4136. SPDF_RULE = 0x4,
  4137. SPDF_DISPLAYTEXT = 0x8,
  4138. SPDF_LEXICALFORM = 0x10,
  4139. SPDF_PRONUNCIATION = 0x20,
  4140. SPDF_AUDIO = 0x40,
  4141. SPDF_ALTERNATES = 0x80,
  4142. SPDF_ALL = 0xff
  4143. } SPVALUETYPE;
  4144. typedef /* [hidden] */ struct SPBINARYGRAMMAR
  4145. {
  4146. ULONG ulTotalSerializedSize;
  4147. } SPBINARYGRAMMAR;
  4148. typedef /* [hidden] */
  4149. enum SPPHRASERNG
  4150. { SPPR_ALL_ELEMENTS = -1
  4151. } SPPHRASERNG;
  4152. #define SP_GETWHOLEPHRASE SPPR_ALL_ELEMENTS
  4153. #define SPRR_ALL_ELEMENTS SPPR_ALL_ELEMENTS
  4154. #if 0
  4155. typedef void *SPSTATEHANDLE;
  4156. #else
  4157. DECLARE_HANDLE(SPSTATEHANDLE);
  4158. #endif
  4159. typedef /* [hidden] */
  4160. enum SPRECOEVENTFLAGS
  4161. { SPREF_AutoPause = 1 << 0,
  4162. SPREF_Emulated = 1 << 1
  4163. } SPRECOEVENTFLAGS;
  4164. typedef /* [hidden] */
  4165. enum SPPARTOFSPEECH
  4166. { SPPS_NotOverriden = -1,
  4167. SPPS_Unknown = 0,
  4168. SPPS_Noun = 0x1000,
  4169. SPPS_Verb = 0x2000,
  4170. SPPS_Modifier = 0x3000,
  4171. SPPS_Function = 0x4000,
  4172. SPPS_Interjection = 0x5000
  4173. } SPPARTOFSPEECH;
  4174. typedef /* [hidden] */
  4175. enum SPLEXICONTYPE
  4176. { eLEXTYPE_USER = 1L << 0,
  4177. eLEXTYPE_APP = 1L << 1,
  4178. eLEXTYPE_RESERVED1 = 1L << 2,
  4179. eLEXTYPE_RESERVED2 = 1L << 3,
  4180. eLEXTYPE_RESERVED3 = 1L << 4,
  4181. eLEXTYPE_RESERVED4 = 1L << 5,
  4182. eLEXTYPE_RESERVED5 = 1L << 6,
  4183. eLEXTYPE_RESERVED6 = 1L << 7,
  4184. eLEXTYPE_RESERVED7 = 1L << 8,
  4185. eLEXTYPE_RESERVED8 = 1L << 9,
  4186. eLEXTYPE_RESERVED9 = 1L << 10,
  4187. eLEXTYPE_RESERVED10 = 1L << 11,
  4188. eLEXTYPE_PRIVATE1 = 1L << 12,
  4189. eLEXTYPE_PRIVATE2 = 1L << 13,
  4190. eLEXTYPE_PRIVATE3 = 1L << 14,
  4191. eLEXTYPE_PRIVATE4 = 1L << 15,
  4192. eLEXTYPE_PRIVATE5 = 1L << 16,
  4193. eLEXTYPE_PRIVATE6 = 1L << 17,
  4194. eLEXTYPE_PRIVATE7 = 1L << 18,
  4195. eLEXTYPE_PRIVATE8 = 1L << 19,
  4196. eLEXTYPE_PRIVATE9 = 1L << 20,
  4197. eLEXTYPE_PRIVATE10 = 1L << 21,
  4198. eLEXTYPE_PRIVATE11 = 1L << 22,
  4199. eLEXTYPE_PRIVATE12 = 1L << 23,
  4200. eLEXTYPE_PRIVATE13 = 1L << 24,
  4201. eLEXTYPE_PRIVATE14 = 1L << 25,
  4202. eLEXTYPE_PRIVATE15 = 1L << 26,
  4203. eLEXTYPE_PRIVATE16 = 1L << 27,
  4204. eLEXTYPE_PRIVATE17 = 1L << 28,
  4205. eLEXTYPE_PRIVATE18 = 1L << 29,
  4206. eLEXTYPE_PRIVATE19 = 1L << 30,
  4207. eLEXTYPE_PRIVATE20 = 1L << 31
  4208. } SPLEXICONTYPE;
  4209. typedef /* [hidden] */
  4210. enum SPWORDTYPE
  4211. { eWORDTYPE_ADDED = 1L << 0,
  4212. eWORDTYPE_DELETED = 1L << 1
  4213. } SPWORDTYPE;
  4214. typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATION
  4215. {
  4216. struct SPWORDPRONUNCIATION *pNextWordPronunciation;
  4217. SPLEXICONTYPE eLexiconType;
  4218. WORD LangID;
  4219. WORD wReserved;
  4220. SPPARTOFSPEECH ePartOfSpeech;
  4221. SPPHONEID szPronunciation[ 1 ];
  4222. } SPWORDPRONUNCIATION;
  4223. typedef /* [hidden][restricted] */ struct SPWORDPRONUNCIATIONLIST
  4224. {
  4225. ULONG ulSize;
  4226. BYTE *pvBuffer;
  4227. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  4228. } SPWORDPRONUNCIATIONLIST;
  4229. typedef /* [hidden][restricted] */ struct SPWORD
  4230. {
  4231. struct SPWORD *pNextWord;
  4232. WORD LangID;
  4233. WORD wReserved;
  4234. SPWORDTYPE eWordType;
  4235. WCHAR *pszWord;
  4236. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  4237. } SPWORD;
  4238. typedef /* [hidden][restricted] */ struct SPWORDLIST
  4239. {
  4240. ULONG ulSize;
  4241. BYTE *pvBuffer;
  4242. SPWORD *pFirstWord;
  4243. } SPWORDLIST;
  4244. extern RPC_IF_HANDLE __MIDL_itf_sapi_0270_v0_0_c_ifspec;
  4245. extern RPC_IF_HANDLE __MIDL_itf_sapi_0270_v0_0_s_ifspec;
  4246. #ifndef __ISpLexicon_INTERFACE_DEFINED__
  4247. #define __ISpLexicon_INTERFACE_DEFINED__
  4248. /* interface ISpLexicon */
  4249. /* [restricted][unique][helpstring][uuid][object] */
  4250. EXTERN_C const IID IID_ISpLexicon;
  4251. #if defined(__cplusplus) && !defined(CINTERFACE)
  4252. MIDL_INTERFACE("DA41A7C2-5383-4DB2-916B-6C1719E3DB58")
  4253. ISpLexicon : public IUnknown
  4254. {
  4255. public:
  4256. virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
  4257. /* [in] */ const WCHAR *pszWord,
  4258. /* [in] */ WORD LangID,
  4259. /* [in] */ DWORD dwFlags,
  4260. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList) = 0;
  4261. virtual HRESULT STDMETHODCALLTYPE AddPronunciation(
  4262. /* [in] */ const WCHAR *pszWord,
  4263. /* [in] */ WORD LangID,
  4264. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4265. /* [in] */ const SPPHONEID *pszPronunciation) = 0;
  4266. virtual HRESULT STDMETHODCALLTYPE RemovePronunciation(
  4267. /* [in] */ const WCHAR *pszWord,
  4268. /* [in] */ WORD LangID,
  4269. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4270. /* [in] */ const SPPHONEID *pszPronunciation) = 0;
  4271. virtual HRESULT STDMETHODCALLTYPE GetGeneration(
  4272. DWORD *pdwGeneration) = 0;
  4273. virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
  4274. /* [in] */ DWORD dwFlags,
  4275. /* [out][in] */ DWORD *pdwGeneration,
  4276. /* [out][in] */ SPWORDLIST *pWordList) = 0;
  4277. virtual HRESULT STDMETHODCALLTYPE GetWords(
  4278. /* [in] */ DWORD dwFlags,
  4279. /* [out][in] */ DWORD *pdwGeneration,
  4280. /* [out][in] */ DWORD *pdwCookie,
  4281. /* [out][in] */ SPWORDLIST *pWordList) = 0;
  4282. };
  4283. #else /* C style interface */
  4284. typedef struct ISpLexiconVtbl
  4285. {
  4286. BEGIN_INTERFACE
  4287. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4288. ISpLexicon * This,
  4289. /* [in] */ REFIID riid,
  4290. /* [iid_is][out] */ void **ppvObject);
  4291. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4292. ISpLexicon * This);
  4293. ULONG ( STDMETHODCALLTYPE *Release )(
  4294. ISpLexicon * This);
  4295. HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  4296. ISpLexicon * This,
  4297. /* [in] */ const WCHAR *pszWord,
  4298. /* [in] */ WORD LangID,
  4299. /* [in] */ DWORD dwFlags,
  4300. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4301. HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  4302. ISpLexicon * This,
  4303. /* [in] */ const WCHAR *pszWord,
  4304. /* [in] */ WORD LangID,
  4305. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4306. /* [in] */ const SPPHONEID *pszPronunciation);
  4307. HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  4308. ISpLexicon * This,
  4309. /* [in] */ const WCHAR *pszWord,
  4310. /* [in] */ WORD LangID,
  4311. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4312. /* [in] */ const SPPHONEID *pszPronunciation);
  4313. HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
  4314. ISpLexicon * This,
  4315. DWORD *pdwGeneration);
  4316. HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  4317. ISpLexicon * This,
  4318. /* [in] */ DWORD dwFlags,
  4319. /* [out][in] */ DWORD *pdwGeneration,
  4320. /* [out][in] */ SPWORDLIST *pWordList);
  4321. HRESULT ( STDMETHODCALLTYPE *GetWords )(
  4322. ISpLexicon * This,
  4323. /* [in] */ DWORD dwFlags,
  4324. /* [out][in] */ DWORD *pdwGeneration,
  4325. /* [out][in] */ DWORD *pdwCookie,
  4326. /* [out][in] */ SPWORDLIST *pWordList);
  4327. END_INTERFACE
  4328. } ISpLexiconVtbl;
  4329. interface ISpLexicon
  4330. {
  4331. CONST_VTBL struct ISpLexiconVtbl *lpVtbl;
  4332. };
  4333. #ifdef COBJMACROS
  4334. #define ISpLexicon_QueryInterface(This,riid,ppvObject) \
  4335. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4336. #define ISpLexicon_AddRef(This) \
  4337. (This)->lpVtbl -> AddRef(This)
  4338. #define ISpLexicon_Release(This) \
  4339. (This)->lpVtbl -> Release(This)
  4340. #define ISpLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) \
  4341. (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  4342. #define ISpLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4343. (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4344. #define ISpLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4345. (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4346. #define ISpLexicon_GetGeneration(This,pdwGeneration) \
  4347. (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
  4348. #define ISpLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) \
  4349. (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  4350. #define ISpLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) \
  4351. (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  4352. #endif /* COBJMACROS */
  4353. #endif /* C style interface */
  4354. HRESULT STDMETHODCALLTYPE ISpLexicon_GetPronunciations_Proxy(
  4355. ISpLexicon * This,
  4356. /* [in] */ const WCHAR *pszWord,
  4357. /* [in] */ WORD LangID,
  4358. /* [in] */ DWORD dwFlags,
  4359. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4360. void __RPC_STUB ISpLexicon_GetPronunciations_Stub(
  4361. IRpcStubBuffer *This,
  4362. IRpcChannelBuffer *_pRpcChannelBuffer,
  4363. PRPC_MESSAGE _pRpcMessage,
  4364. DWORD *_pdwStubPhase);
  4365. HRESULT STDMETHODCALLTYPE ISpLexicon_AddPronunciation_Proxy(
  4366. ISpLexicon * This,
  4367. /* [in] */ const WCHAR *pszWord,
  4368. /* [in] */ WORD LangID,
  4369. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4370. /* [in] */ const SPPHONEID *pszPronunciation);
  4371. void __RPC_STUB ISpLexicon_AddPronunciation_Stub(
  4372. IRpcStubBuffer *This,
  4373. IRpcChannelBuffer *_pRpcChannelBuffer,
  4374. PRPC_MESSAGE _pRpcMessage,
  4375. DWORD *_pdwStubPhase);
  4376. HRESULT STDMETHODCALLTYPE ISpLexicon_RemovePronunciation_Proxy(
  4377. ISpLexicon * This,
  4378. /* [in] */ const WCHAR *pszWord,
  4379. /* [in] */ WORD LangID,
  4380. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4381. /* [in] */ const SPPHONEID *pszPronunciation);
  4382. void __RPC_STUB ISpLexicon_RemovePronunciation_Stub(
  4383. IRpcStubBuffer *This,
  4384. IRpcChannelBuffer *_pRpcChannelBuffer,
  4385. PRPC_MESSAGE _pRpcMessage,
  4386. DWORD *_pdwStubPhase);
  4387. HRESULT STDMETHODCALLTYPE ISpLexicon_GetGeneration_Proxy(
  4388. ISpLexicon * This,
  4389. DWORD *pdwGeneration);
  4390. void __RPC_STUB ISpLexicon_GetGeneration_Stub(
  4391. IRpcStubBuffer *This,
  4392. IRpcChannelBuffer *_pRpcChannelBuffer,
  4393. PRPC_MESSAGE _pRpcMessage,
  4394. DWORD *_pdwStubPhase);
  4395. HRESULT STDMETHODCALLTYPE ISpLexicon_GetGenerationChange_Proxy(
  4396. ISpLexicon * This,
  4397. /* [in] */ DWORD dwFlags,
  4398. /* [out][in] */ DWORD *pdwGeneration,
  4399. /* [out][in] */ SPWORDLIST *pWordList);
  4400. void __RPC_STUB ISpLexicon_GetGenerationChange_Stub(
  4401. IRpcStubBuffer *This,
  4402. IRpcChannelBuffer *_pRpcChannelBuffer,
  4403. PRPC_MESSAGE _pRpcMessage,
  4404. DWORD *_pdwStubPhase);
  4405. HRESULT STDMETHODCALLTYPE ISpLexicon_GetWords_Proxy(
  4406. ISpLexicon * This,
  4407. /* [in] */ DWORD dwFlags,
  4408. /* [out][in] */ DWORD *pdwGeneration,
  4409. /* [out][in] */ DWORD *pdwCookie,
  4410. /* [out][in] */ SPWORDLIST *pWordList);
  4411. void __RPC_STUB ISpLexicon_GetWords_Stub(
  4412. IRpcStubBuffer *This,
  4413. IRpcChannelBuffer *_pRpcChannelBuffer,
  4414. PRPC_MESSAGE _pRpcMessage,
  4415. DWORD *_pdwStubPhase);
  4416. #endif /* __ISpLexicon_INTERFACE_DEFINED__ */
  4417. #ifndef __ISpContainerLexicon_INTERFACE_DEFINED__
  4418. #define __ISpContainerLexicon_INTERFACE_DEFINED__
  4419. /* interface ISpContainerLexicon */
  4420. /* [restricted][unique][helpstring][uuid][object] */
  4421. EXTERN_C const IID IID_ISpContainerLexicon;
  4422. #if defined(__cplusplus) && !defined(CINTERFACE)
  4423. MIDL_INTERFACE("8565572F-C094-41CC-B56E-10BD9C3FF044")
  4424. ISpContainerLexicon : public ISpLexicon
  4425. {
  4426. public:
  4427. virtual HRESULT STDMETHODCALLTYPE AddLexicon(
  4428. /* [in] */ ISpLexicon *pAddLexicon,
  4429. /* [in] */ DWORD dwFlags) = 0;
  4430. };
  4431. #else /* C style interface */
  4432. typedef struct ISpContainerLexiconVtbl
  4433. {
  4434. BEGIN_INTERFACE
  4435. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4436. ISpContainerLexicon * This,
  4437. /* [in] */ REFIID riid,
  4438. /* [iid_is][out] */ void **ppvObject);
  4439. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4440. ISpContainerLexicon * This);
  4441. ULONG ( STDMETHODCALLTYPE *Release )(
  4442. ISpContainerLexicon * This);
  4443. HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  4444. ISpContainerLexicon * This,
  4445. /* [in] */ const WCHAR *pszWord,
  4446. /* [in] */ WORD LangID,
  4447. /* [in] */ DWORD dwFlags,
  4448. /* [out][in] */ SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  4449. HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  4450. ISpContainerLexicon * This,
  4451. /* [in] */ const WCHAR *pszWord,
  4452. /* [in] */ WORD LangID,
  4453. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4454. /* [in] */ const SPPHONEID *pszPronunciation);
  4455. HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  4456. ISpContainerLexicon * This,
  4457. /* [in] */ const WCHAR *pszWord,
  4458. /* [in] */ WORD LangID,
  4459. /* [in] */ SPPARTOFSPEECH ePartOfSpeech,
  4460. /* [in] */ const SPPHONEID *pszPronunciation);
  4461. HRESULT ( STDMETHODCALLTYPE *GetGeneration )(
  4462. ISpContainerLexicon * This,
  4463. DWORD *pdwGeneration);
  4464. HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  4465. ISpContainerLexicon * This,
  4466. /* [in] */ DWORD dwFlags,
  4467. /* [out][in] */ DWORD *pdwGeneration,
  4468. /* [out][in] */ SPWORDLIST *pWordList);
  4469. HRESULT ( STDMETHODCALLTYPE *GetWords )(
  4470. ISpContainerLexicon * This,
  4471. /* [in] */ DWORD dwFlags,
  4472. /* [out][in] */ DWORD *pdwGeneration,
  4473. /* [out][in] */ DWORD *pdwCookie,
  4474. /* [out][in] */ SPWORDLIST *pWordList);
  4475. HRESULT ( STDMETHODCALLTYPE *AddLexicon )(
  4476. ISpContainerLexicon * This,
  4477. /* [in] */ ISpLexicon *pAddLexicon,
  4478. /* [in] */ DWORD dwFlags);
  4479. END_INTERFACE
  4480. } ISpContainerLexiconVtbl;
  4481. interface ISpContainerLexicon
  4482. {
  4483. CONST_VTBL struct ISpContainerLexiconVtbl *lpVtbl;
  4484. };
  4485. #ifdef COBJMACROS
  4486. #define ISpContainerLexicon_QueryInterface(This,riid,ppvObject) \
  4487. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4488. #define ISpContainerLexicon_AddRef(This) \
  4489. (This)->lpVtbl -> AddRef(This)
  4490. #define ISpContainerLexicon_Release(This) \
  4491. (This)->lpVtbl -> Release(This)
  4492. #define ISpContainerLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) \
  4493. (This)->lpVtbl -> GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  4494. #define ISpContainerLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4495. (This)->lpVtbl -> AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4496. #define ISpContainerLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) \
  4497. (This)->lpVtbl -> RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  4498. #define ISpContainerLexicon_GetGeneration(This,pdwGeneration) \
  4499. (This)->lpVtbl -> GetGeneration(This,pdwGeneration)
  4500. #define ISpContainerLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) \
  4501. (This)->lpVtbl -> GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  4502. #define ISpContainerLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) \
  4503. (This)->lpVtbl -> GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  4504. #define ISpContainerLexicon_AddLexicon(This,pAddLexicon,dwFlags) \
  4505. (This)->lpVtbl -> AddLexicon(This,pAddLexicon,dwFlags)
  4506. #endif /* COBJMACROS */
  4507. #endif /* C style interface */
  4508. HRESULT STDMETHODCALLTYPE ISpContainerLexicon_AddLexicon_Proxy(
  4509. ISpContainerLexicon * This,
  4510. /* [in] */ ISpLexicon *pAddLexicon,
  4511. /* [in] */ DWORD dwFlags);
  4512. void __RPC_STUB ISpContainerLexicon_AddLexicon_Stub(
  4513. IRpcStubBuffer *This,
  4514. IRpcChannelBuffer *_pRpcChannelBuffer,
  4515. PRPC_MESSAGE _pRpcMessage,
  4516. DWORD *_pdwStubPhase);
  4517. #endif /* __ISpContainerLexicon_INTERFACE_DEFINED__ */
  4518. #ifndef __ISpPhoneConverter_INTERFACE_DEFINED__
  4519. #define __ISpPhoneConverter_INTERFACE_DEFINED__
  4520. /* interface ISpPhoneConverter */
  4521. /* [restricted][unique][helpstring][uuid][object] */
  4522. EXTERN_C const IID IID_ISpPhoneConverter;
  4523. #if defined(__cplusplus) && !defined(CINTERFACE)
  4524. MIDL_INTERFACE("8445C581-0CAC-4A38-ABFE-9B2CE2826455")
  4525. ISpPhoneConverter : public ISpObjectWithToken
  4526. {
  4527. public:
  4528. virtual HRESULT STDMETHODCALLTYPE PhoneToId(
  4529. /* [in] */ const WCHAR *pszPhone,
  4530. /* [out] */ SPPHONEID *pId) = 0;
  4531. virtual HRESULT STDMETHODCALLTYPE IdToPhone(
  4532. /* [in] */ const SPPHONEID *pId,
  4533. /* [out] */ WCHAR *pszPhone) = 0;
  4534. };
  4535. #else /* C style interface */
  4536. typedef struct ISpPhoneConverterVtbl
  4537. {
  4538. BEGIN_INTERFACE
  4539. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4540. ISpPhoneConverter * This,
  4541. /* [in] */ REFIID riid,
  4542. /* [iid_is][out] */ void **ppvObject);
  4543. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4544. ISpPhoneConverter * This);
  4545. ULONG ( STDMETHODCALLTYPE *Release )(
  4546. ISpPhoneConverter * This);
  4547. HRESULT ( STDMETHODCALLTYPE *SetObjectToken )(
  4548. ISpPhoneConverter * This,
  4549. ISpObjectToken *pToken);
  4550. HRESULT ( STDMETHODCALLTYPE *GetObjectToken )(
  4551. ISpPhoneConverter * This,
  4552. ISpObjectToken **ppToken);
  4553. HRESULT ( STDMETHODCALLTYPE *PhoneToId )(
  4554. ISpPhoneConverter * This,
  4555. /* [in] */ const WCHAR *pszPhone,
  4556. /* [out] */ SPPHONEID *pId);
  4557. HRESULT ( STDMETHODCALLTYPE *IdToPhone )(
  4558. ISpPhoneConverter * This,
  4559. /* [in] */ const SPPHONEID *pId,
  4560. /* [out] */ WCHAR *pszPhone);
  4561. END_INTERFACE
  4562. } ISpPhoneConverterVtbl;
  4563. interface ISpPhoneConverter
  4564. {
  4565. CONST_VTBL struct ISpPhoneConverterVtbl *lpVtbl;
  4566. };
  4567. #ifdef COBJMACROS
  4568. #define ISpPhoneConverter_QueryInterface(This,riid,ppvObject) \
  4569. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4570. #define ISpPhoneConverter_AddRef(This) \
  4571. (This)->lpVtbl -> AddRef(This)
  4572. #define ISpPhoneConverter_Release(This) \
  4573. (This)->lpVtbl -> Release(This)
  4574. #define ISpPhoneConverter_SetObjectToken(This,pToken) \
  4575. (This)->lpVtbl -> SetObjectToken(This,pToken)
  4576. #define ISpPhoneConverter_GetObjectToken(This,ppToken) \
  4577. (This)->lpVtbl -> GetObjectToken(This,ppToken)
  4578. #define ISpPhoneConverter_PhoneToId(This,pszPhone,pId) \
  4579. (This)->lpVtbl -> PhoneToId(This,pszPhone,pId)
  4580. #define ISpPhoneConverter_IdToPhone(This,pId,pszPhone) \
  4581. (This)->lpVtbl -> IdToPhone(This,pId,pszPhone)
  4582. #endif /* COBJMACROS */
  4583. #endif /* C style interface */
  4584. HRESULT STDMETHODCALLTYPE ISpPhoneConverter_PhoneToId_Proxy(
  4585. ISpPhoneConverter * This,
  4586. /* [in] */ const WCHAR *pszPhone,
  4587. /* [out] */ SPPHONEID *pId);
  4588. void __RPC_STUB ISpPhoneConverter_PhoneToId_Stub(
  4589. IRpcStubBuffer *This,
  4590. IRpcChannelBuffer *_pRpcChannelBuffer,
  4591. PRPC_MESSAGE _pRpcMessage,
  4592. DWORD *_pdwStubPhase);
  4593. HRESULT STDMETHODCALLTYPE ISpPhoneConverter_IdToPhone_Proxy(
  4594. ISpPhoneConverter * This,
  4595. /* [in] */ const SPPHONEID *pId,
  4596. /* [out] */ WCHAR *pszPhone);
  4597. void __RPC_STUB ISpPhoneConverter_IdToPhone_Stub(
  4598. IRpcStubBuffer *This,
  4599. IRpcChannelBuffer *_pRpcChannelBuffer,
  4600. PRPC_MESSAGE _pRpcMessage,
  4601. DWORD *_pdwStubPhase);
  4602. #endif /* __ISpPhoneConverter_INTERFACE_DEFINED__ */
  4603. /* interface __MIDL_itf_sapi_0273 */
  4604. /* [local] */
  4605. typedef /* [hidden][restricted] */ struct SPVPITCH
  4606. {
  4607. long MiddleAdj;
  4608. long RangeAdj;
  4609. } SPVPITCH;
  4610. typedef /* [hidden] */
  4611. enum SPVACTIONS
  4612. { SPVA_Speak = 0,
  4613. SPVA_Silence = SPVA_Speak + 1,
  4614. SPVA_Pronounce = SPVA_Silence + 1,
  4615. SPVA_Bookmark = SPVA_Pronounce + 1,
  4616. SPVA_SpellOut = SPVA_Bookmark + 1,
  4617. SPVA_Section = SPVA_SpellOut + 1,
  4618. SPVA_ParseUnknownTag = SPVA_Section + 1
  4619. } SPVACTIONS;
  4620. typedef /* [hidden][restricted] */ struct SPVCONTEXT
  4621. {
  4622. LPCWSTR pCategory;
  4623. LPCWSTR pBefore;
  4624. LPCWSTR pAfter;
  4625. } SPVCONTEXT;
  4626. typedef /* [hidden][restricted] */ struct SPVSTATE
  4627. {
  4628. SPVACTIONS eAction;
  4629. WORD LangID;
  4630. WORD wReserved;
  4631. long EmphAdj;
  4632. long RateAdj;
  4633. ULONG Volume;
  4634. SPVPITCH PitchAdj;
  4635. ULONG SilenceMSecs;
  4636. SPPHONEID *pPhoneIds;
  4637. SPPARTOFSPEECH ePartOfSpeech;
  4638. SPVCONTEXT Context;
  4639. } SPVSTATE;
  4640. typedef /* [hidden] */
  4641. enum SPRUNSTATE
  4642. { SPRS_DONE = 1L << 0,
  4643. SPRS_IS_SPEAKING = 1L << 1
  4644. } SPRUNSTATE;
  4645. typedef /* [hidden] */
  4646. enum SPVLIMITS
  4647. { SPMIN_VOLUME = 0,
  4648. SPMAX_VOLUME = 100,
  4649. SPMIN_RATE = -10,
  4650. SPMAX_RATE = 10
  4651. } SPVLIMITS;
  4652. typedef /* [hidden] */
  4653. enum SPVPRIORITY
  4654. { SPVPRI_NORMAL = 0,
  4655. SPVPRI_ALERT = 1L << 0,
  4656. SPVPRI_OVER = 1L << 1
  4657. } SPVPRIORITY;
  4658. typedef /* [hidden][restricted] */ struct SPVOICESTATUS
  4659. {
  4660. ULONG ulCurrentStream;
  4661. ULONG ulLastStreamQueued;
  4662. HRESULT hrLastResult;
  4663. DWORD dwRunningState;
  4664. ULONG ulInputWordPos;
  4665. ULONG ulInputWordLen;
  4666. ULONG ulInputSentPos;
  4667. ULONG ulInputSentLen;
  4668. LONG lBookmarkId;
  4669. SPPHONEID PhonemeId;
  4670. SPVISEMES VisemeId;
  4671. DWORD dwReserved1;
  4672. DWORD dwReserved2;
  4673. } SPVOICESTATUS;
  4674. typedef /* [hidden] */
  4675. enum SPEAKFLAGS
  4676. { SPF_DEFAULT = 0,
  4677. SPF_ASYNC = 1L << 0,
  4678. SPF_PURGEBEFORESPEAK = 1L << 1,
  4679. SPF_IS_FILENAME = 1L << 2,
  4680. SPF_IS_XML = 1L << 3,
  4681. SPF_IS_NOT_XML = 1L << 4,
  4682. SPF_PERSIST_XML = 1L << 5,
  4683. SPF_NLP_SPEAK_PUNC = 1L << 6,
  4684. SPF_NLP_MASK = SPF_NLP_SPEAK_PUNC,
  4685. SPF_VOICE_MASK = SPF_ASYNC | SPF_PURGEBEFORESPEAK | SPF_IS_FILENAME | SPF_IS_XML | SPF_IS_NOT_XML | SPF_NLP_MASK | SPF_PERSIST_XML,
  4686. SPF_UNUSED_FLAGS = ~SPF_VOICE_MASK
  4687. } SPEAKFLAGS;
  4688. extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_c_ifspec;
  4689. extern RPC_IF_HANDLE __MIDL_itf_sapi_0273_v0_0_s_ifspec;
  4690. #ifndef __ISpVoice_INTERFACE_DEFINED__
  4691. #define __ISpVoice_INTERFACE_DEFINED__
  4692. /* interface ISpVoice */
  4693. /* [restricted][unique][helpstring][uuid][object] */
  4694. EXTERN_C const IID IID_ISpVoice;
  4695. #if defined(__cplusplus) && !defined(CINTERFACE)
  4696. MIDL_INTERFACE("6C44DF74-72B9-4992-A1EC-EF996E0422D4")
  4697. ISpVoice : public ISpEventSource
  4698. {
  4699. public:
  4700. virtual HRESULT STDMETHODCALLTYPE SetOutput(
  4701. /* [in] */ IUnknown *pUnkOutput,
  4702. /* [in] */ BOOL fAllowFormatChanges) = 0;
  4703. virtual HRESULT STDMETHODCALLTYPE GetOutputObjectToken(
  4704. /* [out] */ ISpObjectToken **ppObjectToken) = 0;
  4705. virtual HRESULT STDMETHODCALLTYPE GetOutputStream(
  4706. /* [out] */ ISpStreamFormat **ppStream) = 0;
  4707. virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  4708. virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  4709. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  4710. /* [in] */ ISpObjectToken *pToken) = 0;
  4711. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  4712. /* [out] */ ISpObjectToken **ppToken) = 0;
  4713. virtual HRESULT STDMETHODCALLTYPE Speak(
  4714. /* [string][in] */ const WCHAR *pwcs,
  4715. /* [in] */ DWORD dwFlags,
  4716. /* [out] */ ULONG *pulStreamNumber) = 0;
  4717. virtual HRESULT STDMETHODCALLTYPE SpeakStream(
  4718. /* [in] */ IStream *pStream,
  4719. /* [in] */ DWORD dwFlags,
  4720. /* [out] */ ULONG *pulStreamNumber) = 0;
  4721. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  4722. /* [out] */ SPVOICESTATUS *pStatus,
  4723. /* [string][out] */ WCHAR **ppszLastBookmark) = 0;
  4724. virtual HRESULT STDMETHODCALLTYPE Skip(
  4725. /* [string][in] */ WCHAR *pItemType,
  4726. /* [in] */ long lNumItems,
  4727. /* [out] */ ULONG *pulNumSkipped) = 0;
  4728. virtual HRESULT STDMETHODCALLTYPE SetPriority(
  4729. /* [in] */ SPVPRIORITY ePriority) = 0;
  4730. virtual HRESULT STDMETHODCALLTYPE GetPriority(
  4731. /* [out] */ SPVPRIORITY *pePriority) = 0;
  4732. virtual HRESULT STDMETHODCALLTYPE SetAlertBoundary(
  4733. /* [in] */ SPEVENTENUM eBoundary) = 0;
  4734. virtual HRESULT STDMETHODCALLTYPE GetAlertBoundary(
  4735. /* [out] */ SPEVENTENUM *peBoundary) = 0;
  4736. virtual HRESULT STDMETHODCALLTYPE SetRate(
  4737. /* [in] */ long RateAdjust) = 0;
  4738. virtual HRESULT STDMETHODCALLTYPE GetRate(
  4739. /* [out] */ long *pRateAdjust) = 0;
  4740. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  4741. /* [in] */ USHORT usVolume) = 0;
  4742. virtual HRESULT STDMETHODCALLTYPE GetVolume(
  4743. /* [out] */ USHORT *pusVolume) = 0;
  4744. virtual HRESULT STDMETHODCALLTYPE WaitUntilDone(
  4745. /* [in] */ ULONG msTimeout) = 0;
  4746. virtual HRESULT STDMETHODCALLTYPE SetSyncSpeakTimeout(
  4747. /* [in] */ ULONG msTimeout) = 0;
  4748. virtual HRESULT STDMETHODCALLTYPE GetSyncSpeakTimeout(
  4749. /* [out] */ ULONG *pmsTimeout) = 0;
  4750. virtual /* [local] */ HANDLE STDMETHODCALLTYPE SpeakCompleteEvent( void) = 0;
  4751. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  4752. /* [in] */ const WCHAR *pszTypeOfUI,
  4753. /* [in] */ void *pvExtraData,
  4754. /* [in] */ ULONG cbExtraData,
  4755. /* [out] */ BOOL *pfSupported) = 0;
  4756. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  4757. /* [in] */ HWND hwndParent,
  4758. /* [in] */ const WCHAR *pszTitle,
  4759. /* [in] */ const WCHAR *pszTypeOfUI,
  4760. /* [in] */ void *pvExtraData,
  4761. /* [in] */ ULONG cbExtraData) = 0;
  4762. };
  4763. #else /* C style interface */
  4764. typedef struct ISpVoiceVtbl
  4765. {
  4766. BEGIN_INTERFACE
  4767. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  4768. ISpVoice * This,
  4769. /* [in] */ REFIID riid,
  4770. /* [iid_is][out] */ void **ppvObject);
  4771. ULONG ( STDMETHODCALLTYPE *AddRef )(
  4772. ISpVoice * This);
  4773. ULONG ( STDMETHODCALLTYPE *Release )(
  4774. ISpVoice * This);
  4775. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  4776. ISpVoice * This,
  4777. /* [in] */ ISpNotifySink *pNotifySink);
  4778. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  4779. ISpVoice * This,
  4780. /* [in] */ HWND hWnd,
  4781. /* [in] */ UINT Msg,
  4782. /* [in] */ WPARAM wParam,
  4783. /* [in] */ LPARAM lParam);
  4784. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  4785. ISpVoice * This,
  4786. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  4787. /* [in] */ WPARAM wParam,
  4788. /* [in] */ LPARAM lParam);
  4789. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  4790. ISpVoice * This,
  4791. /* [in] */ ISpNotifyCallback *pSpCallback,
  4792. /* [in] */ WPARAM wParam,
  4793. /* [in] */ LPARAM lParam);
  4794. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  4795. ISpVoice * This);
  4796. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  4797. ISpVoice * This,
  4798. /* [in] */ DWORD dwMilliseconds);
  4799. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  4800. ISpVoice * This);
  4801. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  4802. ISpVoice * This,
  4803. /* [in] */ ULONGLONG ullEventInterest,
  4804. /* [in] */ ULONGLONG ullQueuedInterest);
  4805. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  4806. ISpVoice * This,
  4807. /* [in] */ ULONG ulCount,
  4808. /* [size_is][out] */ SPEVENT *pEventArray,
  4809. /* [out] */ ULONG *pulFetched);
  4810. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  4811. ISpVoice * This,
  4812. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  4813. HRESULT ( STDMETHODCALLTYPE *SetOutput )(
  4814. ISpVoice * This,
  4815. /* [in] */ IUnknown *pUnkOutput,
  4816. /* [in] */ BOOL fAllowFormatChanges);
  4817. HRESULT ( STDMETHODCALLTYPE *GetOutputObjectToken )(
  4818. ISpVoice * This,
  4819. /* [out] */ ISpObjectToken **ppObjectToken);
  4820. HRESULT ( STDMETHODCALLTYPE *GetOutputStream )(
  4821. ISpVoice * This,
  4822. /* [out] */ ISpStreamFormat **ppStream);
  4823. HRESULT ( STDMETHODCALLTYPE *Pause )(
  4824. ISpVoice * This);
  4825. HRESULT ( STDMETHODCALLTYPE *Resume )(
  4826. ISpVoice * This);
  4827. HRESULT ( STDMETHODCALLTYPE *SetVoice )(
  4828. ISpVoice * This,
  4829. /* [in] */ ISpObjectToken *pToken);
  4830. HRESULT ( STDMETHODCALLTYPE *GetVoice )(
  4831. ISpVoice * This,
  4832. /* [out] */ ISpObjectToken **ppToken);
  4833. HRESULT ( STDMETHODCALLTYPE *Speak )(
  4834. ISpVoice * This,
  4835. /* [string][in] */ const WCHAR *pwcs,
  4836. /* [in] */ DWORD dwFlags,
  4837. /* [out] */ ULONG *pulStreamNumber);
  4838. HRESULT ( STDMETHODCALLTYPE *SpeakStream )(
  4839. ISpVoice * This,
  4840. /* [in] */ IStream *pStream,
  4841. /* [in] */ DWORD dwFlags,
  4842. /* [out] */ ULONG *pulStreamNumber);
  4843. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  4844. ISpVoice * This,
  4845. /* [out] */ SPVOICESTATUS *pStatus,
  4846. /* [string][out] */ WCHAR **ppszLastBookmark);
  4847. HRESULT ( STDMETHODCALLTYPE *Skip )(
  4848. ISpVoice * This,
  4849. /* [string][in] */ WCHAR *pItemType,
  4850. /* [in] */ long lNumItems,
  4851. /* [out] */ ULONG *pulNumSkipped);
  4852. HRESULT ( STDMETHODCALLTYPE *SetPriority )(
  4853. ISpVoice * This,
  4854. /* [in] */ SPVPRIORITY ePriority);
  4855. HRESULT ( STDMETHODCALLTYPE *GetPriority )(
  4856. ISpVoice * This,
  4857. /* [out] */ SPVPRIORITY *pePriority);
  4858. HRESULT ( STDMETHODCALLTYPE *SetAlertBoundary )(
  4859. ISpVoice * This,
  4860. /* [in] */ SPEVENTENUM eBoundary);
  4861. HRESULT ( STDMETHODCALLTYPE *GetAlertBoundary )(
  4862. ISpVoice * This,
  4863. /* [out] */ SPEVENTENUM *peBoundary);
  4864. HRESULT ( STDMETHODCALLTYPE *SetRate )(
  4865. ISpVoice * This,
  4866. /* [in] */ long RateAdjust);
  4867. HRESULT ( STDMETHODCALLTYPE *GetRate )(
  4868. ISpVoice * This,
  4869. /* [out] */ long *pRateAdjust);
  4870. HRESULT ( STDMETHODCALLTYPE *SetVolume )(
  4871. ISpVoice * This,
  4872. /* [in] */ USHORT usVolume);
  4873. HRESULT ( STDMETHODCALLTYPE *GetVolume )(
  4874. ISpVoice * This,
  4875. /* [out] */ USHORT *pusVolume);
  4876. HRESULT ( STDMETHODCALLTYPE *WaitUntilDone )(
  4877. ISpVoice * This,
  4878. /* [in] */ ULONG msTimeout);
  4879. HRESULT ( STDMETHODCALLTYPE *SetSyncSpeakTimeout )(
  4880. ISpVoice * This,
  4881. /* [in] */ ULONG msTimeout);
  4882. HRESULT ( STDMETHODCALLTYPE *GetSyncSpeakTimeout )(
  4883. ISpVoice * This,
  4884. /* [out] */ ULONG *pmsTimeout);
  4885. /* [local] */ HANDLE ( STDMETHODCALLTYPE *SpeakCompleteEvent )(
  4886. ISpVoice * This);
  4887. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  4888. ISpVoice * This,
  4889. /* [in] */ const WCHAR *pszTypeOfUI,
  4890. /* [in] */ void *pvExtraData,
  4891. /* [in] */ ULONG cbExtraData,
  4892. /* [out] */ BOOL *pfSupported);
  4893. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  4894. ISpVoice * This,
  4895. /* [in] */ HWND hwndParent,
  4896. /* [in] */ const WCHAR *pszTitle,
  4897. /* [in] */ const WCHAR *pszTypeOfUI,
  4898. /* [in] */ void *pvExtraData,
  4899. /* [in] */ ULONG cbExtraData);
  4900. END_INTERFACE
  4901. } ISpVoiceVtbl;
  4902. interface ISpVoice
  4903. {
  4904. CONST_VTBL struct ISpVoiceVtbl *lpVtbl;
  4905. };
  4906. #ifdef COBJMACROS
  4907. #define ISpVoice_QueryInterface(This,riid,ppvObject) \
  4908. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  4909. #define ISpVoice_AddRef(This) \
  4910. (This)->lpVtbl -> AddRef(This)
  4911. #define ISpVoice_Release(This) \
  4912. (This)->lpVtbl -> Release(This)
  4913. #define ISpVoice_SetNotifySink(This,pNotifySink) \
  4914. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  4915. #define ISpVoice_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  4916. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  4917. #define ISpVoice_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  4918. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  4919. #define ISpVoice_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  4920. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  4921. #define ISpVoice_SetNotifyWin32Event(This) \
  4922. (This)->lpVtbl -> SetNotifyWin32Event(This)
  4923. #define ISpVoice_WaitForNotifyEvent(This,dwMilliseconds) \
  4924. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  4925. #define ISpVoice_GetNotifyEventHandle(This) \
  4926. (This)->lpVtbl -> GetNotifyEventHandle(This)
  4927. #define ISpVoice_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  4928. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  4929. #define ISpVoice_GetEvents(This,ulCount,pEventArray,pulFetched) \
  4930. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  4931. #define ISpVoice_GetInfo(This,pInfo) \
  4932. (This)->lpVtbl -> GetInfo(This,pInfo)
  4933. #define ISpVoice_SetOutput(This,pUnkOutput,fAllowFormatChanges) \
  4934. (This)->lpVtbl -> SetOutput(This,pUnkOutput,fAllowFormatChanges)
  4935. #define ISpVoice_GetOutputObjectToken(This,ppObjectToken) \
  4936. (This)->lpVtbl -> GetOutputObjectToken(This,ppObjectToken)
  4937. #define ISpVoice_GetOutputStream(This,ppStream) \
  4938. (This)->lpVtbl -> GetOutputStream(This,ppStream)
  4939. #define ISpVoice_Pause(This) \
  4940. (This)->lpVtbl -> Pause(This)
  4941. #define ISpVoice_Resume(This) \
  4942. (This)->lpVtbl -> Resume(This)
  4943. #define ISpVoice_SetVoice(This,pToken) \
  4944. (This)->lpVtbl -> SetVoice(This,pToken)
  4945. #define ISpVoice_GetVoice(This,ppToken) \
  4946. (This)->lpVtbl -> GetVoice(This,ppToken)
  4947. #define ISpVoice_Speak(This,pwcs,dwFlags,pulStreamNumber) \
  4948. (This)->lpVtbl -> Speak(This,pwcs,dwFlags,pulStreamNumber)
  4949. #define ISpVoice_SpeakStream(This,pStream,dwFlags,pulStreamNumber) \
  4950. (This)->lpVtbl -> SpeakStream(This,pStream,dwFlags,pulStreamNumber)
  4951. #define ISpVoice_GetStatus(This,pStatus,ppszLastBookmark) \
  4952. (This)->lpVtbl -> GetStatus(This,pStatus,ppszLastBookmark)
  4953. #define ISpVoice_Skip(This,pItemType,lNumItems,pulNumSkipped) \
  4954. (This)->lpVtbl -> Skip(This,pItemType,lNumItems,pulNumSkipped)
  4955. #define ISpVoice_SetPriority(This,ePriority) \
  4956. (This)->lpVtbl -> SetPriority(This,ePriority)
  4957. #define ISpVoice_GetPriority(This,pePriority) \
  4958. (This)->lpVtbl -> GetPriority(This,pePriority)
  4959. #define ISpVoice_SetAlertBoundary(This,eBoundary) \
  4960. (This)->lpVtbl -> SetAlertBoundary(This,eBoundary)
  4961. #define ISpVoice_GetAlertBoundary(This,peBoundary) \
  4962. (This)->lpVtbl -> GetAlertBoundary(This,peBoundary)
  4963. #define ISpVoice_SetRate(This,RateAdjust) \
  4964. (This)->lpVtbl -> SetRate(This,RateAdjust)
  4965. #define ISpVoice_GetRate(This,pRateAdjust) \
  4966. (This)->lpVtbl -> GetRate(This,pRateAdjust)
  4967. #define ISpVoice_SetVolume(This,usVolume) \
  4968. (This)->lpVtbl -> SetVolume(This,usVolume)
  4969. #define ISpVoice_GetVolume(This,pusVolume) \
  4970. (This)->lpVtbl -> GetVolume(This,pusVolume)
  4971. #define ISpVoice_WaitUntilDone(This,msTimeout) \
  4972. (This)->lpVtbl -> WaitUntilDone(This,msTimeout)
  4973. #define ISpVoice_SetSyncSpeakTimeout(This,msTimeout) \
  4974. (This)->lpVtbl -> SetSyncSpeakTimeout(This,msTimeout)
  4975. #define ISpVoice_GetSyncSpeakTimeout(This,pmsTimeout) \
  4976. (This)->lpVtbl -> GetSyncSpeakTimeout(This,pmsTimeout)
  4977. #define ISpVoice_SpeakCompleteEvent(This) \
  4978. (This)->lpVtbl -> SpeakCompleteEvent(This)
  4979. #define ISpVoice_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) \
  4980. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  4981. #define ISpVoice_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) \
  4982. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  4983. #endif /* COBJMACROS */
  4984. #endif /* C style interface */
  4985. HRESULT STDMETHODCALLTYPE ISpVoice_SetOutput_Proxy(
  4986. ISpVoice * This,
  4987. /* [in] */ IUnknown *pUnkOutput,
  4988. /* [in] */ BOOL fAllowFormatChanges);
  4989. void __RPC_STUB ISpVoice_SetOutput_Stub(
  4990. IRpcStubBuffer *This,
  4991. IRpcChannelBuffer *_pRpcChannelBuffer,
  4992. PRPC_MESSAGE _pRpcMessage,
  4993. DWORD *_pdwStubPhase);
  4994. HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputObjectToken_Proxy(
  4995. ISpVoice * This,
  4996. /* [out] */ ISpObjectToken **ppObjectToken);
  4997. void __RPC_STUB ISpVoice_GetOutputObjectToken_Stub(
  4998. IRpcStubBuffer *This,
  4999. IRpcChannelBuffer *_pRpcChannelBuffer,
  5000. PRPC_MESSAGE _pRpcMessage,
  5001. DWORD *_pdwStubPhase);
  5002. HRESULT STDMETHODCALLTYPE ISpVoice_GetOutputStream_Proxy(
  5003. ISpVoice * This,
  5004. /* [out] */ ISpStreamFormat **ppStream);
  5005. void __RPC_STUB ISpVoice_GetOutputStream_Stub(
  5006. IRpcStubBuffer *This,
  5007. IRpcChannelBuffer *_pRpcChannelBuffer,
  5008. PRPC_MESSAGE _pRpcMessage,
  5009. DWORD *_pdwStubPhase);
  5010. HRESULT STDMETHODCALLTYPE ISpVoice_Pause_Proxy(
  5011. ISpVoice * This);
  5012. void __RPC_STUB ISpVoice_Pause_Stub(
  5013. IRpcStubBuffer *This,
  5014. IRpcChannelBuffer *_pRpcChannelBuffer,
  5015. PRPC_MESSAGE _pRpcMessage,
  5016. DWORD *_pdwStubPhase);
  5017. HRESULT STDMETHODCALLTYPE ISpVoice_Resume_Proxy(
  5018. ISpVoice * This);
  5019. void __RPC_STUB ISpVoice_Resume_Stub(
  5020. IRpcStubBuffer *This,
  5021. IRpcChannelBuffer *_pRpcChannelBuffer,
  5022. PRPC_MESSAGE _pRpcMessage,
  5023. DWORD *_pdwStubPhase);
  5024. HRESULT STDMETHODCALLTYPE ISpVoice_SetVoice_Proxy(
  5025. ISpVoice * This,
  5026. /* [in] */ ISpObjectToken *pToken);
  5027. void __RPC_STUB ISpVoice_SetVoice_Stub(
  5028. IRpcStubBuffer *This,
  5029. IRpcChannelBuffer *_pRpcChannelBuffer,
  5030. PRPC_MESSAGE _pRpcMessage,
  5031. DWORD *_pdwStubPhase);
  5032. HRESULT STDMETHODCALLTYPE ISpVoice_GetVoice_Proxy(
  5033. ISpVoice * This,
  5034. /* [out] */ ISpObjectToken **ppToken);
  5035. void __RPC_STUB ISpVoice_GetVoice_Stub(
  5036. IRpcStubBuffer *This,
  5037. IRpcChannelBuffer *_pRpcChannelBuffer,
  5038. PRPC_MESSAGE _pRpcMessage,
  5039. DWORD *_pdwStubPhase);
  5040. HRESULT STDMETHODCALLTYPE ISpVoice_Speak_Proxy(
  5041. ISpVoice * This,
  5042. /* [string][in] */ const WCHAR *pwcs,
  5043. /* [in] */ DWORD dwFlags,
  5044. /* [out] */ ULONG *pulStreamNumber);
  5045. void __RPC_STUB ISpVoice_Speak_Stub(
  5046. IRpcStubBuffer *This,
  5047. IRpcChannelBuffer *_pRpcChannelBuffer,
  5048. PRPC_MESSAGE _pRpcMessage,
  5049. DWORD *_pdwStubPhase);
  5050. HRESULT STDMETHODCALLTYPE ISpVoice_SpeakStream_Proxy(
  5051. ISpVoice * This,
  5052. /* [in] */ IStream *pStream,
  5053. /* [in] */ DWORD dwFlags,
  5054. /* [out] */ ULONG *pulStreamNumber);
  5055. void __RPC_STUB ISpVoice_SpeakStream_Stub(
  5056. IRpcStubBuffer *This,
  5057. IRpcChannelBuffer *_pRpcChannelBuffer,
  5058. PRPC_MESSAGE _pRpcMessage,
  5059. DWORD *_pdwStubPhase);
  5060. HRESULT STDMETHODCALLTYPE ISpVoice_GetStatus_Proxy(
  5061. ISpVoice * This,
  5062. /* [out] */ SPVOICESTATUS *pStatus,
  5063. /* [string][out] */ WCHAR **ppszLastBookmark);
  5064. void __RPC_STUB ISpVoice_GetStatus_Stub(
  5065. IRpcStubBuffer *This,
  5066. IRpcChannelBuffer *_pRpcChannelBuffer,
  5067. PRPC_MESSAGE _pRpcMessage,
  5068. DWORD *_pdwStubPhase);
  5069. HRESULT STDMETHODCALLTYPE ISpVoice_Skip_Proxy(
  5070. ISpVoice * This,
  5071. /* [string][in] */ WCHAR *pItemType,
  5072. /* [in] */ long lNumItems,
  5073. /* [out] */ ULONG *pulNumSkipped);
  5074. void __RPC_STUB ISpVoice_Skip_Stub(
  5075. IRpcStubBuffer *This,
  5076. IRpcChannelBuffer *_pRpcChannelBuffer,
  5077. PRPC_MESSAGE _pRpcMessage,
  5078. DWORD *_pdwStubPhase);
  5079. HRESULT STDMETHODCALLTYPE ISpVoice_SetPriority_Proxy(
  5080. ISpVoice * This,
  5081. /* [in] */ SPVPRIORITY ePriority);
  5082. void __RPC_STUB ISpVoice_SetPriority_Stub(
  5083. IRpcStubBuffer *This,
  5084. IRpcChannelBuffer *_pRpcChannelBuffer,
  5085. PRPC_MESSAGE _pRpcMessage,
  5086. DWORD *_pdwStubPhase);
  5087. HRESULT STDMETHODCALLTYPE ISpVoice_GetPriority_Proxy(
  5088. ISpVoice * This,
  5089. /* [out] */ SPVPRIORITY *pePriority);
  5090. void __RPC_STUB ISpVoice_GetPriority_Stub(
  5091. IRpcStubBuffer *This,
  5092. IRpcChannelBuffer *_pRpcChannelBuffer,
  5093. PRPC_MESSAGE _pRpcMessage,
  5094. DWORD *_pdwStubPhase);
  5095. HRESULT STDMETHODCALLTYPE ISpVoice_SetAlertBoundary_Proxy(
  5096. ISpVoice * This,
  5097. /* [in] */ SPEVENTENUM eBoundary);
  5098. void __RPC_STUB ISpVoice_SetAlertBoundary_Stub(
  5099. IRpcStubBuffer *This,
  5100. IRpcChannelBuffer *_pRpcChannelBuffer,
  5101. PRPC_MESSAGE _pRpcMessage,
  5102. DWORD *_pdwStubPhase);
  5103. HRESULT STDMETHODCALLTYPE ISpVoice_GetAlertBoundary_Proxy(
  5104. ISpVoice * This,
  5105. /* [out] */ SPEVENTENUM *peBoundary);
  5106. void __RPC_STUB ISpVoice_GetAlertBoundary_Stub(
  5107. IRpcStubBuffer *This,
  5108. IRpcChannelBuffer *_pRpcChannelBuffer,
  5109. PRPC_MESSAGE _pRpcMessage,
  5110. DWORD *_pdwStubPhase);
  5111. HRESULT STDMETHODCALLTYPE ISpVoice_SetRate_Proxy(
  5112. ISpVoice * This,
  5113. /* [in] */ long RateAdjust);
  5114. void __RPC_STUB ISpVoice_SetRate_Stub(
  5115. IRpcStubBuffer *This,
  5116. IRpcChannelBuffer *_pRpcChannelBuffer,
  5117. PRPC_MESSAGE _pRpcMessage,
  5118. DWORD *_pdwStubPhase);
  5119. HRESULT STDMETHODCALLTYPE ISpVoice_GetRate_Proxy(
  5120. ISpVoice * This,
  5121. /* [out] */ long *pRateAdjust);
  5122. void __RPC_STUB ISpVoice_GetRate_Stub(
  5123. IRpcStubBuffer *This,
  5124. IRpcChannelBuffer *_pRpcChannelBuffer,
  5125. PRPC_MESSAGE _pRpcMessage,
  5126. DWORD *_pdwStubPhase);
  5127. HRESULT STDMETHODCALLTYPE ISpVoice_SetVolume_Proxy(
  5128. ISpVoice * This,
  5129. /* [in] */ USHORT usVolume);
  5130. void __RPC_STUB ISpVoice_SetVolume_Stub(
  5131. IRpcStubBuffer *This,
  5132. IRpcChannelBuffer *_pRpcChannelBuffer,
  5133. PRPC_MESSAGE _pRpcMessage,
  5134. DWORD *_pdwStubPhase);
  5135. HRESULT STDMETHODCALLTYPE ISpVoice_GetVolume_Proxy(
  5136. ISpVoice * This,
  5137. /* [out] */ USHORT *pusVolume);
  5138. void __RPC_STUB ISpVoice_GetVolume_Stub(
  5139. IRpcStubBuffer *This,
  5140. IRpcChannelBuffer *_pRpcChannelBuffer,
  5141. PRPC_MESSAGE _pRpcMessage,
  5142. DWORD *_pdwStubPhase);
  5143. HRESULT STDMETHODCALLTYPE ISpVoice_WaitUntilDone_Proxy(
  5144. ISpVoice * This,
  5145. /* [in] */ ULONG msTimeout);
  5146. void __RPC_STUB ISpVoice_WaitUntilDone_Stub(
  5147. IRpcStubBuffer *This,
  5148. IRpcChannelBuffer *_pRpcChannelBuffer,
  5149. PRPC_MESSAGE _pRpcMessage,
  5150. DWORD *_pdwStubPhase);
  5151. HRESULT STDMETHODCALLTYPE ISpVoice_SetSyncSpeakTimeout_Proxy(
  5152. ISpVoice * This,
  5153. /* [in] */ ULONG msTimeout);
  5154. void __RPC_STUB ISpVoice_SetSyncSpeakTimeout_Stub(
  5155. IRpcStubBuffer *This,
  5156. IRpcChannelBuffer *_pRpcChannelBuffer,
  5157. PRPC_MESSAGE _pRpcMessage,
  5158. DWORD *_pdwStubPhase);
  5159. HRESULT STDMETHODCALLTYPE ISpVoice_GetSyncSpeakTimeout_Proxy(
  5160. ISpVoice * This,
  5161. /* [out] */ ULONG *pmsTimeout);
  5162. void __RPC_STUB ISpVoice_GetSyncSpeakTimeout_Stub(
  5163. IRpcStubBuffer *This,
  5164. IRpcChannelBuffer *_pRpcChannelBuffer,
  5165. PRPC_MESSAGE _pRpcMessage,
  5166. DWORD *_pdwStubPhase);
  5167. /* [local] */ HANDLE STDMETHODCALLTYPE ISpVoice_SpeakCompleteEvent_Proxy(
  5168. ISpVoice * This);
  5169. void __RPC_STUB ISpVoice_SpeakCompleteEvent_Stub(
  5170. IRpcStubBuffer *This,
  5171. IRpcChannelBuffer *_pRpcChannelBuffer,
  5172. PRPC_MESSAGE _pRpcMessage,
  5173. DWORD *_pdwStubPhase);
  5174. /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_IsUISupported_Proxy(
  5175. ISpVoice * This,
  5176. /* [in] */ const WCHAR *pszTypeOfUI,
  5177. /* [in] */ void *pvExtraData,
  5178. /* [in] */ ULONG cbExtraData,
  5179. /* [out] */ BOOL *pfSupported);
  5180. void __RPC_STUB ISpVoice_IsUISupported_Stub(
  5181. IRpcStubBuffer *This,
  5182. IRpcChannelBuffer *_pRpcChannelBuffer,
  5183. PRPC_MESSAGE _pRpcMessage,
  5184. DWORD *_pdwStubPhase);
  5185. /* [local] */ HRESULT STDMETHODCALLTYPE ISpVoice_DisplayUI_Proxy(
  5186. ISpVoice * This,
  5187. /* [in] */ HWND hwndParent,
  5188. /* [in] */ const WCHAR *pszTitle,
  5189. /* [in] */ const WCHAR *pszTypeOfUI,
  5190. /* [in] */ void *pvExtraData,
  5191. /* [in] */ ULONG cbExtraData);
  5192. void __RPC_STUB ISpVoice_DisplayUI_Stub(
  5193. IRpcStubBuffer *This,
  5194. IRpcChannelBuffer *_pRpcChannelBuffer,
  5195. PRPC_MESSAGE _pRpcMessage,
  5196. DWORD *_pdwStubPhase);
  5197. #endif /* __ISpVoice_INTERFACE_DEFINED__ */
  5198. #ifndef __ISpPhrase_INTERFACE_DEFINED__
  5199. #define __ISpPhrase_INTERFACE_DEFINED__
  5200. /* interface ISpPhrase */
  5201. /* [restricted][unique][helpstring][local][uuid][object] */
  5202. EXTERN_C const IID IID_ISpPhrase;
  5203. #if defined(__cplusplus) && !defined(CINTERFACE)
  5204. MIDL_INTERFACE("1A5C0354-B621-4b5a-8791-D306ED379E53")
  5205. ISpPhrase : public IUnknown
  5206. {
  5207. public:
  5208. virtual HRESULT STDMETHODCALLTYPE GetPhrase(
  5209. /* [out] */ SPPHRASE **ppCoMemPhrase) = 0;
  5210. virtual HRESULT STDMETHODCALLTYPE GetSerializedPhrase(
  5211. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase) = 0;
  5212. virtual HRESULT STDMETHODCALLTYPE GetText(
  5213. /* [in] */ ULONG ulStart,
  5214. /* [in] */ ULONG ulCount,
  5215. /* [in] */ BOOL fUseTextReplacements,
  5216. /* [out] */ WCHAR **ppszCoMemText,
  5217. /* [out] */ BYTE *pbDisplayAttributes) = 0;
  5218. virtual HRESULT STDMETHODCALLTYPE Discard(
  5219. /* [in] */ DWORD dwValueTypes) = 0;
  5220. };
  5221. #else /* C style interface */
  5222. typedef struct ISpPhraseVtbl
  5223. {
  5224. BEGIN_INTERFACE
  5225. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5226. ISpPhrase * This,
  5227. /* [in] */ REFIID riid,
  5228. /* [iid_is][out] */ void **ppvObject);
  5229. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5230. ISpPhrase * This);
  5231. ULONG ( STDMETHODCALLTYPE *Release )(
  5232. ISpPhrase * This);
  5233. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5234. ISpPhrase * This,
  5235. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5236. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5237. ISpPhrase * This,
  5238. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5239. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5240. ISpPhrase * This,
  5241. /* [in] */ ULONG ulStart,
  5242. /* [in] */ ULONG ulCount,
  5243. /* [in] */ BOOL fUseTextReplacements,
  5244. /* [out] */ WCHAR **ppszCoMemText,
  5245. /* [out] */ BYTE *pbDisplayAttributes);
  5246. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5247. ISpPhrase * This,
  5248. /* [in] */ DWORD dwValueTypes);
  5249. END_INTERFACE
  5250. } ISpPhraseVtbl;
  5251. interface ISpPhrase
  5252. {
  5253. CONST_VTBL struct ISpPhraseVtbl *lpVtbl;
  5254. };
  5255. #ifdef COBJMACROS
  5256. #define ISpPhrase_QueryInterface(This,riid,ppvObject) \
  5257. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5258. #define ISpPhrase_AddRef(This) \
  5259. (This)->lpVtbl -> AddRef(This)
  5260. #define ISpPhrase_Release(This) \
  5261. (This)->lpVtbl -> Release(This)
  5262. #define ISpPhrase_GetPhrase(This,ppCoMemPhrase) \
  5263. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5264. #define ISpPhrase_GetSerializedPhrase(This,ppCoMemPhrase) \
  5265. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5266. #define ISpPhrase_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5267. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5268. #define ISpPhrase_Discard(This,dwValueTypes) \
  5269. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5270. #endif /* COBJMACROS */
  5271. #endif /* C style interface */
  5272. HRESULT STDMETHODCALLTYPE ISpPhrase_GetPhrase_Proxy(
  5273. ISpPhrase * This,
  5274. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5275. void __RPC_STUB ISpPhrase_GetPhrase_Stub(
  5276. IRpcStubBuffer *This,
  5277. IRpcChannelBuffer *_pRpcChannelBuffer,
  5278. PRPC_MESSAGE _pRpcMessage,
  5279. DWORD *_pdwStubPhase);
  5280. HRESULT STDMETHODCALLTYPE ISpPhrase_GetSerializedPhrase_Proxy(
  5281. ISpPhrase * This,
  5282. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5283. void __RPC_STUB ISpPhrase_GetSerializedPhrase_Stub(
  5284. IRpcStubBuffer *This,
  5285. IRpcChannelBuffer *_pRpcChannelBuffer,
  5286. PRPC_MESSAGE _pRpcMessage,
  5287. DWORD *_pdwStubPhase);
  5288. HRESULT STDMETHODCALLTYPE ISpPhrase_GetText_Proxy(
  5289. ISpPhrase * This,
  5290. /* [in] */ ULONG ulStart,
  5291. /* [in] */ ULONG ulCount,
  5292. /* [in] */ BOOL fUseTextReplacements,
  5293. /* [out] */ WCHAR **ppszCoMemText,
  5294. /* [out] */ BYTE *pbDisplayAttributes);
  5295. void __RPC_STUB ISpPhrase_GetText_Stub(
  5296. IRpcStubBuffer *This,
  5297. IRpcChannelBuffer *_pRpcChannelBuffer,
  5298. PRPC_MESSAGE _pRpcMessage,
  5299. DWORD *_pdwStubPhase);
  5300. HRESULT STDMETHODCALLTYPE ISpPhrase_Discard_Proxy(
  5301. ISpPhrase * This,
  5302. /* [in] */ DWORD dwValueTypes);
  5303. void __RPC_STUB ISpPhrase_Discard_Stub(
  5304. IRpcStubBuffer *This,
  5305. IRpcChannelBuffer *_pRpcChannelBuffer,
  5306. PRPC_MESSAGE _pRpcMessage,
  5307. DWORD *_pdwStubPhase);
  5308. #endif /* __ISpPhrase_INTERFACE_DEFINED__ */
  5309. #ifndef __ISpPhraseAlt_INTERFACE_DEFINED__
  5310. #define __ISpPhraseAlt_INTERFACE_DEFINED__
  5311. /* interface ISpPhraseAlt */
  5312. /* [restricted][unique][helpstring][local][uuid][object] */
  5313. EXTERN_C const IID IID_ISpPhraseAlt;
  5314. #if defined(__cplusplus) && !defined(CINTERFACE)
  5315. MIDL_INTERFACE("8FCEBC98-4E49-4067-9C6C-D86A0E092E3D")
  5316. ISpPhraseAlt : public ISpPhrase
  5317. {
  5318. public:
  5319. virtual HRESULT STDMETHODCALLTYPE GetAltInfo(
  5320. ISpPhrase **ppParent,
  5321. ULONG *pulStartElementInParent,
  5322. ULONG *pcElementsInParent,
  5323. ULONG *pcElementsInAlt) = 0;
  5324. virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  5325. };
  5326. #else /* C style interface */
  5327. typedef struct ISpPhraseAltVtbl
  5328. {
  5329. BEGIN_INTERFACE
  5330. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5331. ISpPhraseAlt * This,
  5332. /* [in] */ REFIID riid,
  5333. /* [iid_is][out] */ void **ppvObject);
  5334. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5335. ISpPhraseAlt * This);
  5336. ULONG ( STDMETHODCALLTYPE *Release )(
  5337. ISpPhraseAlt * This);
  5338. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5339. ISpPhraseAlt * This,
  5340. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5341. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5342. ISpPhraseAlt * This,
  5343. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5344. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5345. ISpPhraseAlt * This,
  5346. /* [in] */ ULONG ulStart,
  5347. /* [in] */ ULONG ulCount,
  5348. /* [in] */ BOOL fUseTextReplacements,
  5349. /* [out] */ WCHAR **ppszCoMemText,
  5350. /* [out] */ BYTE *pbDisplayAttributes);
  5351. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5352. ISpPhraseAlt * This,
  5353. /* [in] */ DWORD dwValueTypes);
  5354. HRESULT ( STDMETHODCALLTYPE *GetAltInfo )(
  5355. ISpPhraseAlt * This,
  5356. ISpPhrase **ppParent,
  5357. ULONG *pulStartElementInParent,
  5358. ULONG *pcElementsInParent,
  5359. ULONG *pcElementsInAlt);
  5360. HRESULT ( STDMETHODCALLTYPE *Commit )(
  5361. ISpPhraseAlt * This);
  5362. END_INTERFACE
  5363. } ISpPhraseAltVtbl;
  5364. interface ISpPhraseAlt
  5365. {
  5366. CONST_VTBL struct ISpPhraseAltVtbl *lpVtbl;
  5367. };
  5368. #ifdef COBJMACROS
  5369. #define ISpPhraseAlt_QueryInterface(This,riid,ppvObject) \
  5370. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5371. #define ISpPhraseAlt_AddRef(This) \
  5372. (This)->lpVtbl -> AddRef(This)
  5373. #define ISpPhraseAlt_Release(This) \
  5374. (This)->lpVtbl -> Release(This)
  5375. #define ISpPhraseAlt_GetPhrase(This,ppCoMemPhrase) \
  5376. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5377. #define ISpPhraseAlt_GetSerializedPhrase(This,ppCoMemPhrase) \
  5378. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5379. #define ISpPhraseAlt_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5380. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5381. #define ISpPhraseAlt_Discard(This,dwValueTypes) \
  5382. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5383. #define ISpPhraseAlt_GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt) \
  5384. (This)->lpVtbl -> GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt)
  5385. #define ISpPhraseAlt_Commit(This) \
  5386. (This)->lpVtbl -> Commit(This)
  5387. #endif /* COBJMACROS */
  5388. #endif /* C style interface */
  5389. HRESULT STDMETHODCALLTYPE ISpPhraseAlt_GetAltInfo_Proxy(
  5390. ISpPhraseAlt * This,
  5391. ISpPhrase **ppParent,
  5392. ULONG *pulStartElementInParent,
  5393. ULONG *pcElementsInParent,
  5394. ULONG *pcElementsInAlt);
  5395. void __RPC_STUB ISpPhraseAlt_GetAltInfo_Stub(
  5396. IRpcStubBuffer *This,
  5397. IRpcChannelBuffer *_pRpcChannelBuffer,
  5398. PRPC_MESSAGE _pRpcMessage,
  5399. DWORD *_pdwStubPhase);
  5400. HRESULT STDMETHODCALLTYPE ISpPhraseAlt_Commit_Proxy(
  5401. ISpPhraseAlt * This);
  5402. void __RPC_STUB ISpPhraseAlt_Commit_Stub(
  5403. IRpcStubBuffer *This,
  5404. IRpcChannelBuffer *_pRpcChannelBuffer,
  5405. PRPC_MESSAGE _pRpcMessage,
  5406. DWORD *_pdwStubPhase);
  5407. #endif /* __ISpPhraseAlt_INTERFACE_DEFINED__ */
  5408. /* interface __MIDL_itf_sapi_0276 */
  5409. /* [local] */
  5410. typedef /* [hidden][restricted] */ struct SPRECORESULTTIMES
  5411. {
  5412. FILETIME ftStreamTime;
  5413. ULONGLONG ullLength;
  5414. DWORD dwTickCount;
  5415. ULONGLONG ullStart;
  5416. } SPRECORESULTTIMES;
  5417. typedef /* [hidden] */ struct SPSERIALIZEDRESULT
  5418. {
  5419. ULONG ulSerializedSize;
  5420. } SPSERIALIZEDRESULT;
  5421. extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_c_ifspec;
  5422. extern RPC_IF_HANDLE __MIDL_itf_sapi_0276_v0_0_s_ifspec;
  5423. #ifndef __ISpRecoResult_INTERFACE_DEFINED__
  5424. #define __ISpRecoResult_INTERFACE_DEFINED__
  5425. /* interface ISpRecoResult */
  5426. /* [restricted][local][unique][helpstring][uuid][object] */
  5427. EXTERN_C const IID IID_ISpRecoResult;
  5428. #if defined(__cplusplus) && !defined(CINTERFACE)
  5429. MIDL_INTERFACE("20B053BE-E235-43cd-9A2A-8D17A48B7842")
  5430. ISpRecoResult : public ISpPhrase
  5431. {
  5432. public:
  5433. virtual HRESULT STDMETHODCALLTYPE GetResultTimes(
  5434. /* [out] */ SPRECORESULTTIMES *pTimes) = 0;
  5435. virtual HRESULT STDMETHODCALLTYPE GetAlternates(
  5436. /* [in] */ ULONG ulStartElement,
  5437. /* [in] */ ULONG cElements,
  5438. /* [in] */ ULONG ulRequestCount,
  5439. /* [out] */ ISpPhraseAlt **ppPhrases,
  5440. /* [out] */ ULONG *pcPhrasesReturned) = 0;
  5441. virtual HRESULT STDMETHODCALLTYPE GetAudio(
  5442. /* [in] */ ULONG ulStartElement,
  5443. /* [in] */ ULONG cElements,
  5444. /* [out] */ ISpStreamFormat **ppStream) = 0;
  5445. virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
  5446. /* [in] */ ULONG ulStartElement,
  5447. /* [in] */ ULONG cElements,
  5448. /* [in] */ DWORD dwFlags,
  5449. /* [out] */ ULONG *pulStreamNumber) = 0;
  5450. virtual HRESULT STDMETHODCALLTYPE Serialize(
  5451. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult) = 0;
  5452. virtual HRESULT STDMETHODCALLTYPE ScaleAudio(
  5453. /* [in] */ const GUID *pAudioFormatId,
  5454. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  5455. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  5456. /* [out] */ ISpRecoContext **ppRecoContext) = 0;
  5457. };
  5458. #else /* C style interface */
  5459. typedef struct ISpRecoResultVtbl
  5460. {
  5461. BEGIN_INTERFACE
  5462. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5463. ISpRecoResult * This,
  5464. /* [in] */ REFIID riid,
  5465. /* [iid_is][out] */ void **ppvObject);
  5466. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5467. ISpRecoResult * This);
  5468. ULONG ( STDMETHODCALLTYPE *Release )(
  5469. ISpRecoResult * This);
  5470. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  5471. ISpRecoResult * This,
  5472. /* [out] */ SPPHRASE **ppCoMemPhrase);
  5473. HRESULT ( STDMETHODCALLTYPE *GetSerializedPhrase )(
  5474. ISpRecoResult * This,
  5475. /* [out] */ SPSERIALIZEDPHRASE **ppCoMemPhrase);
  5476. HRESULT ( STDMETHODCALLTYPE *GetText )(
  5477. ISpRecoResult * This,
  5478. /* [in] */ ULONG ulStart,
  5479. /* [in] */ ULONG ulCount,
  5480. /* [in] */ BOOL fUseTextReplacements,
  5481. /* [out] */ WCHAR **ppszCoMemText,
  5482. /* [out] */ BYTE *pbDisplayAttributes);
  5483. HRESULT ( STDMETHODCALLTYPE *Discard )(
  5484. ISpRecoResult * This,
  5485. /* [in] */ DWORD dwValueTypes);
  5486. HRESULT ( STDMETHODCALLTYPE *GetResultTimes )(
  5487. ISpRecoResult * This,
  5488. /* [out] */ SPRECORESULTTIMES *pTimes);
  5489. HRESULT ( STDMETHODCALLTYPE *GetAlternates )(
  5490. ISpRecoResult * This,
  5491. /* [in] */ ULONG ulStartElement,
  5492. /* [in] */ ULONG cElements,
  5493. /* [in] */ ULONG ulRequestCount,
  5494. /* [out] */ ISpPhraseAlt **ppPhrases,
  5495. /* [out] */ ULONG *pcPhrasesReturned);
  5496. HRESULT ( STDMETHODCALLTYPE *GetAudio )(
  5497. ISpRecoResult * This,
  5498. /* [in] */ ULONG ulStartElement,
  5499. /* [in] */ ULONG cElements,
  5500. /* [out] */ ISpStreamFormat **ppStream);
  5501. HRESULT ( STDMETHODCALLTYPE *SpeakAudio )(
  5502. ISpRecoResult * This,
  5503. /* [in] */ ULONG ulStartElement,
  5504. /* [in] */ ULONG cElements,
  5505. /* [in] */ DWORD dwFlags,
  5506. /* [out] */ ULONG *pulStreamNumber);
  5507. HRESULT ( STDMETHODCALLTYPE *Serialize )(
  5508. ISpRecoResult * This,
  5509. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  5510. HRESULT ( STDMETHODCALLTYPE *ScaleAudio )(
  5511. ISpRecoResult * This,
  5512. /* [in] */ const GUID *pAudioFormatId,
  5513. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  5514. HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
  5515. ISpRecoResult * This,
  5516. /* [out] */ ISpRecoContext **ppRecoContext);
  5517. END_INTERFACE
  5518. } ISpRecoResultVtbl;
  5519. interface ISpRecoResult
  5520. {
  5521. CONST_VTBL struct ISpRecoResultVtbl *lpVtbl;
  5522. };
  5523. #ifdef COBJMACROS
  5524. #define ISpRecoResult_QueryInterface(This,riid,ppvObject) \
  5525. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5526. #define ISpRecoResult_AddRef(This) \
  5527. (This)->lpVtbl -> AddRef(This)
  5528. #define ISpRecoResult_Release(This) \
  5529. (This)->lpVtbl -> Release(This)
  5530. #define ISpRecoResult_GetPhrase(This,ppCoMemPhrase) \
  5531. (This)->lpVtbl -> GetPhrase(This,ppCoMemPhrase)
  5532. #define ISpRecoResult_GetSerializedPhrase(This,ppCoMemPhrase) \
  5533. (This)->lpVtbl -> GetSerializedPhrase(This,ppCoMemPhrase)
  5534. #define ISpRecoResult_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) \
  5535. (This)->lpVtbl -> GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  5536. #define ISpRecoResult_Discard(This,dwValueTypes) \
  5537. (This)->lpVtbl -> Discard(This,dwValueTypes)
  5538. #define ISpRecoResult_GetResultTimes(This,pTimes) \
  5539. (This)->lpVtbl -> GetResultTimes(This,pTimes)
  5540. #define ISpRecoResult_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned) \
  5541. (This)->lpVtbl -> GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
  5542. #define ISpRecoResult_GetAudio(This,ulStartElement,cElements,ppStream) \
  5543. (This)->lpVtbl -> GetAudio(This,ulStartElement,cElements,ppStream)
  5544. #define ISpRecoResult_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber) \
  5545. (This)->lpVtbl -> SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
  5546. #define ISpRecoResult_Serialize(This,ppCoMemSerializedResult) \
  5547. (This)->lpVtbl -> Serialize(This,ppCoMemSerializedResult)
  5548. #define ISpRecoResult_ScaleAudio(This,pAudioFormatId,pWaveFormatEx) \
  5549. (This)->lpVtbl -> ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
  5550. #define ISpRecoResult_GetRecoContext(This,ppRecoContext) \
  5551. (This)->lpVtbl -> GetRecoContext(This,ppRecoContext)
  5552. #endif /* COBJMACROS */
  5553. #endif /* C style interface */
  5554. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetResultTimes_Proxy(
  5555. ISpRecoResult * This,
  5556. /* [out] */ SPRECORESULTTIMES *pTimes);
  5557. void __RPC_STUB ISpRecoResult_GetResultTimes_Stub(
  5558. IRpcStubBuffer *This,
  5559. IRpcChannelBuffer *_pRpcChannelBuffer,
  5560. PRPC_MESSAGE _pRpcMessage,
  5561. DWORD *_pdwStubPhase);
  5562. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAlternates_Proxy(
  5563. ISpRecoResult * This,
  5564. /* [in] */ ULONG ulStartElement,
  5565. /* [in] */ ULONG cElements,
  5566. /* [in] */ ULONG ulRequestCount,
  5567. /* [out] */ ISpPhraseAlt **ppPhrases,
  5568. /* [out] */ ULONG *pcPhrasesReturned);
  5569. void __RPC_STUB ISpRecoResult_GetAlternates_Stub(
  5570. IRpcStubBuffer *This,
  5571. IRpcChannelBuffer *_pRpcChannelBuffer,
  5572. PRPC_MESSAGE _pRpcMessage,
  5573. DWORD *_pdwStubPhase);
  5574. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetAudio_Proxy(
  5575. ISpRecoResult * This,
  5576. /* [in] */ ULONG ulStartElement,
  5577. /* [in] */ ULONG cElements,
  5578. /* [out] */ ISpStreamFormat **ppStream);
  5579. void __RPC_STUB ISpRecoResult_GetAudio_Stub(
  5580. IRpcStubBuffer *This,
  5581. IRpcChannelBuffer *_pRpcChannelBuffer,
  5582. PRPC_MESSAGE _pRpcMessage,
  5583. DWORD *_pdwStubPhase);
  5584. HRESULT STDMETHODCALLTYPE ISpRecoResult_SpeakAudio_Proxy(
  5585. ISpRecoResult * This,
  5586. /* [in] */ ULONG ulStartElement,
  5587. /* [in] */ ULONG cElements,
  5588. /* [in] */ DWORD dwFlags,
  5589. /* [out] */ ULONG *pulStreamNumber);
  5590. void __RPC_STUB ISpRecoResult_SpeakAudio_Stub(
  5591. IRpcStubBuffer *This,
  5592. IRpcChannelBuffer *_pRpcChannelBuffer,
  5593. PRPC_MESSAGE _pRpcMessage,
  5594. DWORD *_pdwStubPhase);
  5595. HRESULT STDMETHODCALLTYPE ISpRecoResult_Serialize_Proxy(
  5596. ISpRecoResult * This,
  5597. /* [out] */ SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  5598. void __RPC_STUB ISpRecoResult_Serialize_Stub(
  5599. IRpcStubBuffer *This,
  5600. IRpcChannelBuffer *_pRpcChannelBuffer,
  5601. PRPC_MESSAGE _pRpcMessage,
  5602. DWORD *_pdwStubPhase);
  5603. HRESULT STDMETHODCALLTYPE ISpRecoResult_ScaleAudio_Proxy(
  5604. ISpRecoResult * This,
  5605. /* [in] */ const GUID *pAudioFormatId,
  5606. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  5607. void __RPC_STUB ISpRecoResult_ScaleAudio_Stub(
  5608. IRpcStubBuffer *This,
  5609. IRpcChannelBuffer *_pRpcChannelBuffer,
  5610. PRPC_MESSAGE _pRpcMessage,
  5611. DWORD *_pdwStubPhase);
  5612. HRESULT STDMETHODCALLTYPE ISpRecoResult_GetRecoContext_Proxy(
  5613. ISpRecoResult * This,
  5614. /* [out] */ ISpRecoContext **ppRecoContext);
  5615. void __RPC_STUB ISpRecoResult_GetRecoContext_Stub(
  5616. IRpcStubBuffer *This,
  5617. IRpcChannelBuffer *_pRpcChannelBuffer,
  5618. PRPC_MESSAGE _pRpcMessage,
  5619. DWORD *_pdwStubPhase);
  5620. #endif /* __ISpRecoResult_INTERFACE_DEFINED__ */
  5621. /* interface __MIDL_itf_sapi_0277 */
  5622. /* [local] */
  5623. typedef /* [hidden] */ struct tagSPTEXTSELECTIONINFO
  5624. {
  5625. ULONG ulStartActiveOffset;
  5626. ULONG cchActiveChars;
  5627. ULONG ulStartSelection;
  5628. ULONG cchSelection;
  5629. } SPTEXTSELECTIONINFO;
  5630. typedef /* [hidden] */
  5631. enum SPWORDPRONOUNCEABLE
  5632. { SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE = 0,
  5633. SPWP_UNKNOWN_WORD_PRONOUNCEABLE = 1,
  5634. SPWP_KNOWN_WORD_PRONOUNCEABLE = 2
  5635. } SPWORDPRONOUNCEABLE;
  5636. typedef /* [hidden] */
  5637. enum SPGRAMMARSTATE
  5638. { SPGS_DISABLED = 0,
  5639. SPGS_ENABLED = 1,
  5640. SPGS_EXCLUSIVE = 3
  5641. } SPGRAMMARSTATE;
  5642. typedef /* [hidden] */
  5643. enum SPCONTEXTSTATE
  5644. { SPCS_DISABLED = 0,
  5645. SPCS_ENABLED = 1
  5646. } SPCONTEXTSTATE;
  5647. typedef /* [hidden] */
  5648. enum SPRULESTATE
  5649. { SPRS_INACTIVE = 0,
  5650. SPRS_ACTIVE = 1,
  5651. SPRS_ACTIVE_WITH_AUTO_PAUSE = 3
  5652. } SPRULESTATE;
  5653. #define SP_STREAMPOS_ASAP ( 0 )
  5654. #define SP_STREAMPOS_REALTIME ( -1 )
  5655. #define SPRULETRANS_TEXTBUFFER (SPSTATEHANDLE)(-1)
  5656. #define SPRULETRANS_WILDCARD (SPSTATEHANDLE)(-2)
  5657. #define SPRULETRANS_DICTATION (SPSTATEHANDLE)(-3)
  5658. typedef /* [hidden] */
  5659. enum SPGRAMMARWORDTYPE
  5660. { SPWT_DISPLAY = 0,
  5661. SPWT_LEXICAL = SPWT_DISPLAY + 1,
  5662. SPWT_PRONUNCIATION = SPWT_LEXICAL + 1
  5663. } SPGRAMMARWORDTYPE;
  5664. typedef /* [hidden] */ struct tagSPPROPERTYINFO
  5665. {
  5666. const WCHAR *pszName;
  5667. ULONG ulId;
  5668. const WCHAR *pszValue;
  5669. VARIANT vValue;
  5670. } SPPROPERTYINFO;
  5671. typedef /* [hidden] */
  5672. enum SPCFGRULEATTRIBUTES
  5673. { SPRAF_TopLevel = 1 << 0,
  5674. SPRAF_Active = 1 << 1,
  5675. SPRAF_Export = 1 << 2,
  5676. SPRAF_Import = 1 << 3,
  5677. SPRAF_Interpreter = 1 << 4,
  5678. SPRAF_Dynamic = 1 << 5,
  5679. SPRAF_AutoPause = 1 << 16
  5680. } SPCFGRULEATTRIBUTES;
  5681. extern RPC_IF_HANDLE __MIDL_itf_sapi_0277_v0_0_c_ifspec;
  5682. extern RPC_IF_HANDLE __MIDL_itf_sapi_0277_v0_0_s_ifspec;
  5683. #ifndef __ISpGrammarBuilder_INTERFACE_DEFINED__
  5684. #define __ISpGrammarBuilder_INTERFACE_DEFINED__
  5685. /* interface ISpGrammarBuilder */
  5686. /* [local][restricted][unique][helpstring][uuid][object] */
  5687. EXTERN_C const IID IID_ISpGrammarBuilder;
  5688. #if defined(__cplusplus) && !defined(CINTERFACE)
  5689. MIDL_INTERFACE("8137828F-591A-4A42-BE58-49EA7EBAAC68")
  5690. ISpGrammarBuilder : public IUnknown
  5691. {
  5692. public:
  5693. virtual HRESULT STDMETHODCALLTYPE ResetGrammar(
  5694. /* [in] */ WORD NewLanguage) = 0;
  5695. virtual HRESULT STDMETHODCALLTYPE GetRule(
  5696. /* [in] */ const WCHAR *pszRuleName,
  5697. /* [in] */ DWORD dwRuleId,
  5698. /* [in] */ DWORD dwAttributes,
  5699. /* [in] */ BOOL fCreateIfNotExist,
  5700. /* [out] */ SPSTATEHANDLE *phInitialState) = 0;
  5701. virtual HRESULT STDMETHODCALLTYPE ClearRule(
  5702. SPSTATEHANDLE hState) = 0;
  5703. virtual HRESULT STDMETHODCALLTYPE CreateNewState(
  5704. SPSTATEHANDLE hState,
  5705. SPSTATEHANDLE *phState) = 0;
  5706. virtual HRESULT STDMETHODCALLTYPE AddWordTransition(
  5707. SPSTATEHANDLE hFromState,
  5708. SPSTATEHANDLE hToState,
  5709. const WCHAR *psz,
  5710. const WCHAR *pszSeparators,
  5711. SPGRAMMARWORDTYPE eWordType,
  5712. float Weight,
  5713. const SPPROPERTYINFO *pPropInfo) = 0;
  5714. virtual HRESULT STDMETHODCALLTYPE AddRuleTransition(
  5715. SPSTATEHANDLE hFromState,
  5716. SPSTATEHANDLE hToState,
  5717. SPSTATEHANDLE hRule,
  5718. float Weight,
  5719. const SPPROPERTYINFO *pPropInfo) = 0;
  5720. virtual HRESULT STDMETHODCALLTYPE AddResource(
  5721. /* [in] */ SPSTATEHANDLE hRuleState,
  5722. /* [in] */ const WCHAR *pszResourceName,
  5723. /* [in] */ const WCHAR *pszResourceValue) = 0;
  5724. virtual HRESULT STDMETHODCALLTYPE Commit(
  5725. DWORD dwReserved) = 0;
  5726. };
  5727. #else /* C style interface */
  5728. typedef struct ISpGrammarBuilderVtbl
  5729. {
  5730. BEGIN_INTERFACE
  5731. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5732. ISpGrammarBuilder * This,
  5733. /* [in] */ REFIID riid,
  5734. /* [iid_is][out] */ void **ppvObject);
  5735. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5736. ISpGrammarBuilder * This);
  5737. ULONG ( STDMETHODCALLTYPE *Release )(
  5738. ISpGrammarBuilder * This);
  5739. HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
  5740. ISpGrammarBuilder * This,
  5741. /* [in] */ WORD NewLanguage);
  5742. HRESULT ( STDMETHODCALLTYPE *GetRule )(
  5743. ISpGrammarBuilder * This,
  5744. /* [in] */ const WCHAR *pszRuleName,
  5745. /* [in] */ DWORD dwRuleId,
  5746. /* [in] */ DWORD dwAttributes,
  5747. /* [in] */ BOOL fCreateIfNotExist,
  5748. /* [out] */ SPSTATEHANDLE *phInitialState);
  5749. HRESULT ( STDMETHODCALLTYPE *ClearRule )(
  5750. ISpGrammarBuilder * This,
  5751. SPSTATEHANDLE hState);
  5752. HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
  5753. ISpGrammarBuilder * This,
  5754. SPSTATEHANDLE hState,
  5755. SPSTATEHANDLE *phState);
  5756. HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  5757. ISpGrammarBuilder * This,
  5758. SPSTATEHANDLE hFromState,
  5759. SPSTATEHANDLE hToState,
  5760. const WCHAR *psz,
  5761. const WCHAR *pszSeparators,
  5762. SPGRAMMARWORDTYPE eWordType,
  5763. float Weight,
  5764. const SPPROPERTYINFO *pPropInfo);
  5765. HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  5766. ISpGrammarBuilder * This,
  5767. SPSTATEHANDLE hFromState,
  5768. SPSTATEHANDLE hToState,
  5769. SPSTATEHANDLE hRule,
  5770. float Weight,
  5771. const SPPROPERTYINFO *pPropInfo);
  5772. HRESULT ( STDMETHODCALLTYPE *AddResource )(
  5773. ISpGrammarBuilder * This,
  5774. /* [in] */ SPSTATEHANDLE hRuleState,
  5775. /* [in] */ const WCHAR *pszResourceName,
  5776. /* [in] */ const WCHAR *pszResourceValue);
  5777. HRESULT ( STDMETHODCALLTYPE *Commit )(
  5778. ISpGrammarBuilder * This,
  5779. DWORD dwReserved);
  5780. END_INTERFACE
  5781. } ISpGrammarBuilderVtbl;
  5782. interface ISpGrammarBuilder
  5783. {
  5784. CONST_VTBL struct ISpGrammarBuilderVtbl *lpVtbl;
  5785. };
  5786. #ifdef COBJMACROS
  5787. #define ISpGrammarBuilder_QueryInterface(This,riid,ppvObject) \
  5788. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  5789. #define ISpGrammarBuilder_AddRef(This) \
  5790. (This)->lpVtbl -> AddRef(This)
  5791. #define ISpGrammarBuilder_Release(This) \
  5792. (This)->lpVtbl -> Release(This)
  5793. #define ISpGrammarBuilder_ResetGrammar(This,NewLanguage) \
  5794. (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
  5795. #define ISpGrammarBuilder_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) \
  5796. (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  5797. #define ISpGrammarBuilder_ClearRule(This,hState) \
  5798. (This)->lpVtbl -> ClearRule(This,hState)
  5799. #define ISpGrammarBuilder_CreateNewState(This,hState,phState) \
  5800. (This)->lpVtbl -> CreateNewState(This,hState,phState)
  5801. #define ISpGrammarBuilder_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) \
  5802. (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  5803. #define ISpGrammarBuilder_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) \
  5804. (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  5805. #define ISpGrammarBuilder_AddResource(This,hRuleState,pszResourceName,pszResourceValue) \
  5806. (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  5807. #define ISpGrammarBuilder_Commit(This,dwReserved) \
  5808. (This)->lpVtbl -> Commit(This,dwReserved)
  5809. #endif /* COBJMACROS */
  5810. #endif /* C style interface */
  5811. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ResetGrammar_Proxy(
  5812. ISpGrammarBuilder * This,
  5813. /* [in] */ WORD NewLanguage);
  5814. void __RPC_STUB ISpGrammarBuilder_ResetGrammar_Stub(
  5815. IRpcStubBuffer *This,
  5816. IRpcChannelBuffer *_pRpcChannelBuffer,
  5817. PRPC_MESSAGE _pRpcMessage,
  5818. DWORD *_pdwStubPhase);
  5819. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_GetRule_Proxy(
  5820. ISpGrammarBuilder * This,
  5821. /* [in] */ const WCHAR *pszRuleName,
  5822. /* [in] */ DWORD dwRuleId,
  5823. /* [in] */ DWORD dwAttributes,
  5824. /* [in] */ BOOL fCreateIfNotExist,
  5825. /* [out] */ SPSTATEHANDLE *phInitialState);
  5826. void __RPC_STUB ISpGrammarBuilder_GetRule_Stub(
  5827. IRpcStubBuffer *This,
  5828. IRpcChannelBuffer *_pRpcChannelBuffer,
  5829. PRPC_MESSAGE _pRpcMessage,
  5830. DWORD *_pdwStubPhase);
  5831. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_ClearRule_Proxy(
  5832. ISpGrammarBuilder * This,
  5833. SPSTATEHANDLE hState);
  5834. void __RPC_STUB ISpGrammarBuilder_ClearRule_Stub(
  5835. IRpcStubBuffer *This,
  5836. IRpcChannelBuffer *_pRpcChannelBuffer,
  5837. PRPC_MESSAGE _pRpcMessage,
  5838. DWORD *_pdwStubPhase);
  5839. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_CreateNewState_Proxy(
  5840. ISpGrammarBuilder * This,
  5841. SPSTATEHANDLE hState,
  5842. SPSTATEHANDLE *phState);
  5843. void __RPC_STUB ISpGrammarBuilder_CreateNewState_Stub(
  5844. IRpcStubBuffer *This,
  5845. IRpcChannelBuffer *_pRpcChannelBuffer,
  5846. PRPC_MESSAGE _pRpcMessage,
  5847. DWORD *_pdwStubPhase);
  5848. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddWordTransition_Proxy(
  5849. ISpGrammarBuilder * This,
  5850. SPSTATEHANDLE hFromState,
  5851. SPSTATEHANDLE hToState,
  5852. const WCHAR *psz,
  5853. const WCHAR *pszSeparators,
  5854. SPGRAMMARWORDTYPE eWordType,
  5855. float Weight,
  5856. const SPPROPERTYINFO *pPropInfo);
  5857. void __RPC_STUB ISpGrammarBuilder_AddWordTransition_Stub(
  5858. IRpcStubBuffer *This,
  5859. IRpcChannelBuffer *_pRpcChannelBuffer,
  5860. PRPC_MESSAGE _pRpcMessage,
  5861. DWORD *_pdwStubPhase);
  5862. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddRuleTransition_Proxy(
  5863. ISpGrammarBuilder * This,
  5864. SPSTATEHANDLE hFromState,
  5865. SPSTATEHANDLE hToState,
  5866. SPSTATEHANDLE hRule,
  5867. float Weight,
  5868. const SPPROPERTYINFO *pPropInfo);
  5869. void __RPC_STUB ISpGrammarBuilder_AddRuleTransition_Stub(
  5870. IRpcStubBuffer *This,
  5871. IRpcChannelBuffer *_pRpcChannelBuffer,
  5872. PRPC_MESSAGE _pRpcMessage,
  5873. DWORD *_pdwStubPhase);
  5874. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_AddResource_Proxy(
  5875. ISpGrammarBuilder * This,
  5876. /* [in] */ SPSTATEHANDLE hRuleState,
  5877. /* [in] */ const WCHAR *pszResourceName,
  5878. /* [in] */ const WCHAR *pszResourceValue);
  5879. void __RPC_STUB ISpGrammarBuilder_AddResource_Stub(
  5880. IRpcStubBuffer *This,
  5881. IRpcChannelBuffer *_pRpcChannelBuffer,
  5882. PRPC_MESSAGE _pRpcMessage,
  5883. DWORD *_pdwStubPhase);
  5884. HRESULT STDMETHODCALLTYPE ISpGrammarBuilder_Commit_Proxy(
  5885. ISpGrammarBuilder * This,
  5886. DWORD dwReserved);
  5887. void __RPC_STUB ISpGrammarBuilder_Commit_Stub(
  5888. IRpcStubBuffer *This,
  5889. IRpcChannelBuffer *_pRpcChannelBuffer,
  5890. PRPC_MESSAGE _pRpcMessage,
  5891. DWORD *_pdwStubPhase);
  5892. #endif /* __ISpGrammarBuilder_INTERFACE_DEFINED__ */
  5893. /* interface __MIDL_itf_sapi_0278 */
  5894. /* [local] */
  5895. typedef /* [hidden] */
  5896. enum SPLOADOPTIONS
  5897. { SPLO_STATIC = 0,
  5898. SPLO_DYNAMIC = 1
  5899. } SPLOADOPTIONS;
  5900. extern RPC_IF_HANDLE __MIDL_itf_sapi_0278_v0_0_c_ifspec;
  5901. extern RPC_IF_HANDLE __MIDL_itf_sapi_0278_v0_0_s_ifspec;
  5902. #ifndef __ISpRecoGrammar_INTERFACE_DEFINED__
  5903. #define __ISpRecoGrammar_INTERFACE_DEFINED__
  5904. /* interface ISpRecoGrammar */
  5905. /* [local][restricted][unique][helpstring][uuid][object] */
  5906. EXTERN_C const IID IID_ISpRecoGrammar;
  5907. #if defined(__cplusplus) && !defined(CINTERFACE)
  5908. MIDL_INTERFACE("2177DB29-7F45-47D0-8554-067E91C80502")
  5909. ISpRecoGrammar : public ISpGrammarBuilder
  5910. {
  5911. public:
  5912. virtual HRESULT STDMETHODCALLTYPE GetGrammarId(
  5913. /* [out] */ ULONGLONG *pullGrammarId) = 0;
  5914. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  5915. /* [out] */ ISpRecoContext **ppRecoCtxt) = 0;
  5916. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromFile(
  5917. /* [string][in] */ const WCHAR *pszFileName,
  5918. /* [in] */ SPLOADOPTIONS Options) = 0;
  5919. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromObject(
  5920. /* [in] */ REFCLSID rcid,
  5921. /* [string][in] */ const WCHAR *pszGrammarName,
  5922. /* [in] */ SPLOADOPTIONS Options) = 0;
  5923. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromResource(
  5924. /* [in] */ HMODULE hModule,
  5925. /* [string][in] */ const WCHAR *pszResourceName,
  5926. /* [string][in] */ const WCHAR *pszResourceType,
  5927. /* [in] */ WORD wLanguage,
  5928. /* [in] */ SPLOADOPTIONS Options) = 0;
  5929. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromMemory(
  5930. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  5931. /* [in] */ SPLOADOPTIONS Options) = 0;
  5932. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromProprietaryGrammar(
  5933. /* [in] */ REFGUID rguidParam,
  5934. /* [string][in] */ const WCHAR *pszStringParam,
  5935. /* [in] */ const void *pvDataPrarm,
  5936. /* [in] */ ULONG cbDataSize,
  5937. /* [in] */ SPLOADOPTIONS Options) = 0;
  5938. virtual HRESULT STDMETHODCALLTYPE SetRuleState(
  5939. /* [string][in] */ const WCHAR *pszName,
  5940. void *pReserved,
  5941. /* [in] */ SPRULESTATE NewState) = 0;
  5942. virtual HRESULT STDMETHODCALLTYPE SetRuleIdState(
  5943. /* [in] */ ULONG ulRuleId,
  5944. /* [in] */ SPRULESTATE NewState) = 0;
  5945. virtual HRESULT STDMETHODCALLTYPE LoadDictation(
  5946. /* [string][in] */ const WCHAR *pszTopicName,
  5947. /* [in] */ SPLOADOPTIONS Options) = 0;
  5948. virtual HRESULT STDMETHODCALLTYPE UnloadDictation( void) = 0;
  5949. virtual HRESULT STDMETHODCALLTYPE SetDictationState(
  5950. /* [in] */ SPRULESTATE NewState) = 0;
  5951. virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  5952. /* [in] */ const WCHAR *pText,
  5953. /* [in] */ ULONG cchText,
  5954. /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
  5955. virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
  5956. /* [in] */ const SPTEXTSELECTIONINFO *pInfo) = 0;
  5957. virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
  5958. /* [string][in] */ const WCHAR *pszWord,
  5959. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable) = 0;
  5960. virtual HRESULT STDMETHODCALLTYPE SetGrammarState(
  5961. /* [in] */ SPGRAMMARSTATE eGrammarState) = 0;
  5962. virtual HRESULT STDMETHODCALLTYPE SaveCmd(
  5963. /* [in] */ IStream *pStream,
  5964. /* [optional][out] */ WCHAR **ppszCoMemErrorText) = 0;
  5965. virtual HRESULT STDMETHODCALLTYPE GetGrammarState(
  5966. /* [out] */ SPGRAMMARSTATE *peGrammarState) = 0;
  5967. };
  5968. #else /* C style interface */
  5969. typedef struct ISpRecoGrammarVtbl
  5970. {
  5971. BEGIN_INTERFACE
  5972. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  5973. ISpRecoGrammar * This,
  5974. /* [in] */ REFIID riid,
  5975. /* [iid_is][out] */ void **ppvObject);
  5976. ULONG ( STDMETHODCALLTYPE *AddRef )(
  5977. ISpRecoGrammar * This);
  5978. ULONG ( STDMETHODCALLTYPE *Release )(
  5979. ISpRecoGrammar * This);
  5980. HRESULT ( STDMETHODCALLTYPE *ResetGrammar )(
  5981. ISpRecoGrammar * This,
  5982. /* [in] */ WORD NewLanguage);
  5983. HRESULT ( STDMETHODCALLTYPE *GetRule )(
  5984. ISpRecoGrammar * This,
  5985. /* [in] */ const WCHAR *pszRuleName,
  5986. /* [in] */ DWORD dwRuleId,
  5987. /* [in] */ DWORD dwAttributes,
  5988. /* [in] */ BOOL fCreateIfNotExist,
  5989. /* [out] */ SPSTATEHANDLE *phInitialState);
  5990. HRESULT ( STDMETHODCALLTYPE *ClearRule )(
  5991. ISpRecoGrammar * This,
  5992. SPSTATEHANDLE hState);
  5993. HRESULT ( STDMETHODCALLTYPE *CreateNewState )(
  5994. ISpRecoGrammar * This,
  5995. SPSTATEHANDLE hState,
  5996. SPSTATEHANDLE *phState);
  5997. HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  5998. ISpRecoGrammar * This,
  5999. SPSTATEHANDLE hFromState,
  6000. SPSTATEHANDLE hToState,
  6001. const WCHAR *psz,
  6002. const WCHAR *pszSeparators,
  6003. SPGRAMMARWORDTYPE eWordType,
  6004. float Weight,
  6005. const SPPROPERTYINFO *pPropInfo);
  6006. HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  6007. ISpRecoGrammar * This,
  6008. SPSTATEHANDLE hFromState,
  6009. SPSTATEHANDLE hToState,
  6010. SPSTATEHANDLE hRule,
  6011. float Weight,
  6012. const SPPROPERTYINFO *pPropInfo);
  6013. HRESULT ( STDMETHODCALLTYPE *AddResource )(
  6014. ISpRecoGrammar * This,
  6015. /* [in] */ SPSTATEHANDLE hRuleState,
  6016. /* [in] */ const WCHAR *pszResourceName,
  6017. /* [in] */ const WCHAR *pszResourceValue);
  6018. HRESULT ( STDMETHODCALLTYPE *Commit )(
  6019. ISpRecoGrammar * This,
  6020. DWORD dwReserved);
  6021. HRESULT ( STDMETHODCALLTYPE *GetGrammarId )(
  6022. ISpRecoGrammar * This,
  6023. /* [out] */ ULONGLONG *pullGrammarId);
  6024. HRESULT ( STDMETHODCALLTYPE *GetRecoContext )(
  6025. ISpRecoGrammar * This,
  6026. /* [out] */ ISpRecoContext **ppRecoCtxt);
  6027. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromFile )(
  6028. ISpRecoGrammar * This,
  6029. /* [string][in] */ const WCHAR *pszFileName,
  6030. /* [in] */ SPLOADOPTIONS Options);
  6031. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromObject )(
  6032. ISpRecoGrammar * This,
  6033. /* [in] */ REFCLSID rcid,
  6034. /* [string][in] */ const WCHAR *pszGrammarName,
  6035. /* [in] */ SPLOADOPTIONS Options);
  6036. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromResource )(
  6037. ISpRecoGrammar * This,
  6038. /* [in] */ HMODULE hModule,
  6039. /* [string][in] */ const WCHAR *pszResourceName,
  6040. /* [string][in] */ const WCHAR *pszResourceType,
  6041. /* [in] */ WORD wLanguage,
  6042. /* [in] */ SPLOADOPTIONS Options);
  6043. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromMemory )(
  6044. ISpRecoGrammar * This,
  6045. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  6046. /* [in] */ SPLOADOPTIONS Options);
  6047. HRESULT ( STDMETHODCALLTYPE *LoadCmdFromProprietaryGrammar )(
  6048. ISpRecoGrammar * This,
  6049. /* [in] */ REFGUID rguidParam,
  6050. /* [string][in] */ const WCHAR *pszStringParam,
  6051. /* [in] */ const void *pvDataPrarm,
  6052. /* [in] */ ULONG cbDataSize,
  6053. /* [in] */ SPLOADOPTIONS Options);
  6054. HRESULT ( STDMETHODCALLTYPE *SetRuleState )(
  6055. ISpRecoGrammar * This,
  6056. /* [string][in] */ const WCHAR *pszName,
  6057. void *pReserved,
  6058. /* [in] */ SPRULESTATE NewState);
  6059. HRESULT ( STDMETHODCALLTYPE *SetRuleIdState )(
  6060. ISpRecoGrammar * This,
  6061. /* [in] */ ULONG ulRuleId,
  6062. /* [in] */ SPRULESTATE NewState);
  6063. HRESULT ( STDMETHODCALLTYPE *LoadDictation )(
  6064. ISpRecoGrammar * This,
  6065. /* [string][in] */ const WCHAR *pszTopicName,
  6066. /* [in] */ SPLOADOPTIONS Options);
  6067. HRESULT ( STDMETHODCALLTYPE *UnloadDictation )(
  6068. ISpRecoGrammar * This);
  6069. HRESULT ( STDMETHODCALLTYPE *SetDictationState )(
  6070. ISpRecoGrammar * This,
  6071. /* [in] */ SPRULESTATE NewState);
  6072. HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
  6073. ISpRecoGrammar * This,
  6074. /* [in] */ const WCHAR *pText,
  6075. /* [in] */ ULONG cchText,
  6076. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6077. HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
  6078. ISpRecoGrammar * This,
  6079. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6080. HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
  6081. ISpRecoGrammar * This,
  6082. /* [string][in] */ const WCHAR *pszWord,
  6083. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
  6084. HRESULT ( STDMETHODCALLTYPE *SetGrammarState )(
  6085. ISpRecoGrammar * This,
  6086. /* [in] */ SPGRAMMARSTATE eGrammarState);
  6087. HRESULT ( STDMETHODCALLTYPE *SaveCmd )(
  6088. ISpRecoGrammar * This,
  6089. /* [in] */ IStream *pStream,
  6090. /* [optional][out] */ WCHAR **ppszCoMemErrorText);
  6091. HRESULT ( STDMETHODCALLTYPE *GetGrammarState )(
  6092. ISpRecoGrammar * This,
  6093. /* [out] */ SPGRAMMARSTATE *peGrammarState);
  6094. END_INTERFACE
  6095. } ISpRecoGrammarVtbl;
  6096. interface ISpRecoGrammar
  6097. {
  6098. CONST_VTBL struct ISpRecoGrammarVtbl *lpVtbl;
  6099. };
  6100. #ifdef COBJMACROS
  6101. #define ISpRecoGrammar_QueryInterface(This,riid,ppvObject) \
  6102. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6103. #define ISpRecoGrammar_AddRef(This) \
  6104. (This)->lpVtbl -> AddRef(This)
  6105. #define ISpRecoGrammar_Release(This) \
  6106. (This)->lpVtbl -> Release(This)
  6107. #define ISpRecoGrammar_ResetGrammar(This,NewLanguage) \
  6108. (This)->lpVtbl -> ResetGrammar(This,NewLanguage)
  6109. #define ISpRecoGrammar_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) \
  6110. (This)->lpVtbl -> GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  6111. #define ISpRecoGrammar_ClearRule(This,hState) \
  6112. (This)->lpVtbl -> ClearRule(This,hState)
  6113. #define ISpRecoGrammar_CreateNewState(This,hState,phState) \
  6114. (This)->lpVtbl -> CreateNewState(This,hState,phState)
  6115. #define ISpRecoGrammar_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) \
  6116. (This)->lpVtbl -> AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  6117. #define ISpRecoGrammar_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) \
  6118. (This)->lpVtbl -> AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  6119. #define ISpRecoGrammar_AddResource(This,hRuleState,pszResourceName,pszResourceValue) \
  6120. (This)->lpVtbl -> AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  6121. #define ISpRecoGrammar_Commit(This,dwReserved) \
  6122. (This)->lpVtbl -> Commit(This,dwReserved)
  6123. #define ISpRecoGrammar_GetGrammarId(This,pullGrammarId) \
  6124. (This)->lpVtbl -> GetGrammarId(This,pullGrammarId)
  6125. #define ISpRecoGrammar_GetRecoContext(This,ppRecoCtxt) \
  6126. (This)->lpVtbl -> GetRecoContext(This,ppRecoCtxt)
  6127. #define ISpRecoGrammar_LoadCmdFromFile(This,pszFileName,Options) \
  6128. (This)->lpVtbl -> LoadCmdFromFile(This,pszFileName,Options)
  6129. #define ISpRecoGrammar_LoadCmdFromObject(This,rcid,pszGrammarName,Options) \
  6130. (This)->lpVtbl -> LoadCmdFromObject(This,rcid,pszGrammarName,Options)
  6131. #define ISpRecoGrammar_LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options) \
  6132. (This)->lpVtbl -> LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options)
  6133. #define ISpRecoGrammar_LoadCmdFromMemory(This,pGrammar,Options) \
  6134. (This)->lpVtbl -> LoadCmdFromMemory(This,pGrammar,Options)
  6135. #define ISpRecoGrammar_LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options) \
  6136. (This)->lpVtbl -> LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options)
  6137. #define ISpRecoGrammar_SetRuleState(This,pszName,pReserved,NewState) \
  6138. (This)->lpVtbl -> SetRuleState(This,pszName,pReserved,NewState)
  6139. #define ISpRecoGrammar_SetRuleIdState(This,ulRuleId,NewState) \
  6140. (This)->lpVtbl -> SetRuleIdState(This,ulRuleId,NewState)
  6141. #define ISpRecoGrammar_LoadDictation(This,pszTopicName,Options) \
  6142. (This)->lpVtbl -> LoadDictation(This,pszTopicName,Options)
  6143. #define ISpRecoGrammar_UnloadDictation(This) \
  6144. (This)->lpVtbl -> UnloadDictation(This)
  6145. #define ISpRecoGrammar_SetDictationState(This,NewState) \
  6146. (This)->lpVtbl -> SetDictationState(This,NewState)
  6147. #define ISpRecoGrammar_SetWordSequenceData(This,pText,cchText,pInfo) \
  6148. (This)->lpVtbl -> SetWordSequenceData(This,pText,cchText,pInfo)
  6149. #define ISpRecoGrammar_SetTextSelection(This,pInfo) \
  6150. (This)->lpVtbl -> SetTextSelection(This,pInfo)
  6151. #define ISpRecoGrammar_IsPronounceable(This,pszWord,pWordPronounceable) \
  6152. (This)->lpVtbl -> IsPronounceable(This,pszWord,pWordPronounceable)
  6153. #define ISpRecoGrammar_SetGrammarState(This,eGrammarState) \
  6154. (This)->lpVtbl -> SetGrammarState(This,eGrammarState)
  6155. #define ISpRecoGrammar_SaveCmd(This,pStream,ppszCoMemErrorText) \
  6156. (This)->lpVtbl -> SaveCmd(This,pStream,ppszCoMemErrorText)
  6157. #define ISpRecoGrammar_GetGrammarState(This,peGrammarState) \
  6158. (This)->lpVtbl -> GetGrammarState(This,peGrammarState)
  6159. #endif /* COBJMACROS */
  6160. #endif /* C style interface */
  6161. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarId_Proxy(
  6162. ISpRecoGrammar * This,
  6163. /* [out] */ ULONGLONG *pullGrammarId);
  6164. void __RPC_STUB ISpRecoGrammar_GetGrammarId_Stub(
  6165. IRpcStubBuffer *This,
  6166. IRpcChannelBuffer *_pRpcChannelBuffer,
  6167. PRPC_MESSAGE _pRpcMessage,
  6168. DWORD *_pdwStubPhase);
  6169. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetRecoContext_Proxy(
  6170. ISpRecoGrammar * This,
  6171. /* [out] */ ISpRecoContext **ppRecoCtxt);
  6172. void __RPC_STUB ISpRecoGrammar_GetRecoContext_Stub(
  6173. IRpcStubBuffer *This,
  6174. IRpcChannelBuffer *_pRpcChannelBuffer,
  6175. PRPC_MESSAGE _pRpcMessage,
  6176. DWORD *_pdwStubPhase);
  6177. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromFile_Proxy(
  6178. ISpRecoGrammar * This,
  6179. /* [string][in] */ const WCHAR *pszFileName,
  6180. /* [in] */ SPLOADOPTIONS Options);
  6181. void __RPC_STUB ISpRecoGrammar_LoadCmdFromFile_Stub(
  6182. IRpcStubBuffer *This,
  6183. IRpcChannelBuffer *_pRpcChannelBuffer,
  6184. PRPC_MESSAGE _pRpcMessage,
  6185. DWORD *_pdwStubPhase);
  6186. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromObject_Proxy(
  6187. ISpRecoGrammar * This,
  6188. /* [in] */ REFCLSID rcid,
  6189. /* [string][in] */ const WCHAR *pszGrammarName,
  6190. /* [in] */ SPLOADOPTIONS Options);
  6191. void __RPC_STUB ISpRecoGrammar_LoadCmdFromObject_Stub(
  6192. IRpcStubBuffer *This,
  6193. IRpcChannelBuffer *_pRpcChannelBuffer,
  6194. PRPC_MESSAGE _pRpcMessage,
  6195. DWORD *_pdwStubPhase);
  6196. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromResource_Proxy(
  6197. ISpRecoGrammar * This,
  6198. /* [in] */ HMODULE hModule,
  6199. /* [string][in] */ const WCHAR *pszResourceName,
  6200. /* [string][in] */ const WCHAR *pszResourceType,
  6201. /* [in] */ WORD wLanguage,
  6202. /* [in] */ SPLOADOPTIONS Options);
  6203. void __RPC_STUB ISpRecoGrammar_LoadCmdFromResource_Stub(
  6204. IRpcStubBuffer *This,
  6205. IRpcChannelBuffer *_pRpcChannelBuffer,
  6206. PRPC_MESSAGE _pRpcMessage,
  6207. DWORD *_pdwStubPhase);
  6208. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromMemory_Proxy(
  6209. ISpRecoGrammar * This,
  6210. /* [in] */ const SPBINARYGRAMMAR *pGrammar,
  6211. /* [in] */ SPLOADOPTIONS Options);
  6212. void __RPC_STUB ISpRecoGrammar_LoadCmdFromMemory_Stub(
  6213. IRpcStubBuffer *This,
  6214. IRpcChannelBuffer *_pRpcChannelBuffer,
  6215. PRPC_MESSAGE _pRpcMessage,
  6216. DWORD *_pdwStubPhase);
  6217. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Proxy(
  6218. ISpRecoGrammar * This,
  6219. /* [in] */ REFGUID rguidParam,
  6220. /* [string][in] */ const WCHAR *pszStringParam,
  6221. /* [in] */ const void *pvDataPrarm,
  6222. /* [in] */ ULONG cbDataSize,
  6223. /* [in] */ SPLOADOPTIONS Options);
  6224. void __RPC_STUB ISpRecoGrammar_LoadCmdFromProprietaryGrammar_Stub(
  6225. IRpcStubBuffer *This,
  6226. IRpcChannelBuffer *_pRpcChannelBuffer,
  6227. PRPC_MESSAGE _pRpcMessage,
  6228. DWORD *_pdwStubPhase);
  6229. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleState_Proxy(
  6230. ISpRecoGrammar * This,
  6231. /* [string][in] */ const WCHAR *pszName,
  6232. void *pReserved,
  6233. /* [in] */ SPRULESTATE NewState);
  6234. void __RPC_STUB ISpRecoGrammar_SetRuleState_Stub(
  6235. IRpcStubBuffer *This,
  6236. IRpcChannelBuffer *_pRpcChannelBuffer,
  6237. PRPC_MESSAGE _pRpcMessage,
  6238. DWORD *_pdwStubPhase);
  6239. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetRuleIdState_Proxy(
  6240. ISpRecoGrammar * This,
  6241. /* [in] */ ULONG ulRuleId,
  6242. /* [in] */ SPRULESTATE NewState);
  6243. void __RPC_STUB ISpRecoGrammar_SetRuleIdState_Stub(
  6244. IRpcStubBuffer *This,
  6245. IRpcChannelBuffer *_pRpcChannelBuffer,
  6246. PRPC_MESSAGE _pRpcMessage,
  6247. DWORD *_pdwStubPhase);
  6248. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_LoadDictation_Proxy(
  6249. ISpRecoGrammar * This,
  6250. /* [string][in] */ const WCHAR *pszTopicName,
  6251. /* [in] */ SPLOADOPTIONS Options);
  6252. void __RPC_STUB ISpRecoGrammar_LoadDictation_Stub(
  6253. IRpcStubBuffer *This,
  6254. IRpcChannelBuffer *_pRpcChannelBuffer,
  6255. PRPC_MESSAGE _pRpcMessage,
  6256. DWORD *_pdwStubPhase);
  6257. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_UnloadDictation_Proxy(
  6258. ISpRecoGrammar * This);
  6259. void __RPC_STUB ISpRecoGrammar_UnloadDictation_Stub(
  6260. IRpcStubBuffer *This,
  6261. IRpcChannelBuffer *_pRpcChannelBuffer,
  6262. PRPC_MESSAGE _pRpcMessage,
  6263. DWORD *_pdwStubPhase);
  6264. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetDictationState_Proxy(
  6265. ISpRecoGrammar * This,
  6266. /* [in] */ SPRULESTATE NewState);
  6267. void __RPC_STUB ISpRecoGrammar_SetDictationState_Stub(
  6268. IRpcStubBuffer *This,
  6269. IRpcChannelBuffer *_pRpcChannelBuffer,
  6270. PRPC_MESSAGE _pRpcMessage,
  6271. DWORD *_pdwStubPhase);
  6272. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetWordSequenceData_Proxy(
  6273. ISpRecoGrammar * This,
  6274. /* [in] */ const WCHAR *pText,
  6275. /* [in] */ ULONG cchText,
  6276. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6277. void __RPC_STUB ISpRecoGrammar_SetWordSequenceData_Stub(
  6278. IRpcStubBuffer *This,
  6279. IRpcChannelBuffer *_pRpcChannelBuffer,
  6280. PRPC_MESSAGE _pRpcMessage,
  6281. DWORD *_pdwStubPhase);
  6282. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetTextSelection_Proxy(
  6283. ISpRecoGrammar * This,
  6284. /* [in] */ const SPTEXTSELECTIONINFO *pInfo);
  6285. void __RPC_STUB ISpRecoGrammar_SetTextSelection_Stub(
  6286. IRpcStubBuffer *This,
  6287. IRpcChannelBuffer *_pRpcChannelBuffer,
  6288. PRPC_MESSAGE _pRpcMessage,
  6289. DWORD *_pdwStubPhase);
  6290. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_IsPronounceable_Proxy(
  6291. ISpRecoGrammar * This,
  6292. /* [string][in] */ const WCHAR *pszWord,
  6293. /* [out] */ SPWORDPRONOUNCEABLE *pWordPronounceable);
  6294. void __RPC_STUB ISpRecoGrammar_IsPronounceable_Stub(
  6295. IRpcStubBuffer *This,
  6296. IRpcChannelBuffer *_pRpcChannelBuffer,
  6297. PRPC_MESSAGE _pRpcMessage,
  6298. DWORD *_pdwStubPhase);
  6299. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SetGrammarState_Proxy(
  6300. ISpRecoGrammar * This,
  6301. /* [in] */ SPGRAMMARSTATE eGrammarState);
  6302. void __RPC_STUB ISpRecoGrammar_SetGrammarState_Stub(
  6303. IRpcStubBuffer *This,
  6304. IRpcChannelBuffer *_pRpcChannelBuffer,
  6305. PRPC_MESSAGE _pRpcMessage,
  6306. DWORD *_pdwStubPhase);
  6307. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_SaveCmd_Proxy(
  6308. ISpRecoGrammar * This,
  6309. /* [in] */ IStream *pStream,
  6310. /* [optional][out] */ WCHAR **ppszCoMemErrorText);
  6311. void __RPC_STUB ISpRecoGrammar_SaveCmd_Stub(
  6312. IRpcStubBuffer *This,
  6313. IRpcChannelBuffer *_pRpcChannelBuffer,
  6314. PRPC_MESSAGE _pRpcMessage,
  6315. DWORD *_pdwStubPhase);
  6316. HRESULT STDMETHODCALLTYPE ISpRecoGrammar_GetGrammarState_Proxy(
  6317. ISpRecoGrammar * This,
  6318. /* [out] */ SPGRAMMARSTATE *peGrammarState);
  6319. void __RPC_STUB ISpRecoGrammar_GetGrammarState_Stub(
  6320. IRpcStubBuffer *This,
  6321. IRpcChannelBuffer *_pRpcChannelBuffer,
  6322. PRPC_MESSAGE _pRpcMessage,
  6323. DWORD *_pdwStubPhase);
  6324. #endif /* __ISpRecoGrammar_INTERFACE_DEFINED__ */
  6325. /* interface __MIDL_itf_sapi_0279 */
  6326. /* [local] */
  6327. typedef /* [hidden][restricted] */ struct SPRECOCONTEXTSTATUS
  6328. {
  6329. SPINTERFERENCE eInterference;
  6330. WCHAR szRequestTypeOfUI[ 255 ];
  6331. DWORD dwReserved1;
  6332. DWORD dwReserved2;
  6333. } SPRECOCONTEXTSTATUS;
  6334. typedef /* [hidden] */
  6335. enum SPBOOKMARKOPTIONS
  6336. { SPBO_NONE = 0,
  6337. SPBO_PAUSE = 1
  6338. } SPBOOKMARKOPTIONS;
  6339. typedef /* [hidden] */
  6340. enum SPAUDIOOPTIONS
  6341. { SPAO_NONE = 0,
  6342. SPAO_RETAIN_AUDIO = 1 << 0
  6343. } SPAUDIOOPTIONS;
  6344. extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_c_ifspec;
  6345. extern RPC_IF_HANDLE __MIDL_itf_sapi_0279_v0_0_s_ifspec;
  6346. #ifndef __ISpRecoContext_INTERFACE_DEFINED__
  6347. #define __ISpRecoContext_INTERFACE_DEFINED__
  6348. /* interface ISpRecoContext */
  6349. /* [restricted][local][unique][helpstring][uuid][object] */
  6350. EXTERN_C const IID IID_ISpRecoContext;
  6351. #if defined(__cplusplus) && !defined(CINTERFACE)
  6352. MIDL_INTERFACE("F740A62F-7C15-489E-8234-940A33D9272D")
  6353. ISpRecoContext : public ISpEventSource
  6354. {
  6355. public:
  6356. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  6357. /* [out] */ ISpRecognizer **ppRecognizer) = 0;
  6358. virtual HRESULT STDMETHODCALLTYPE CreateGrammar(
  6359. /* [in] */ ULONGLONG ullGrammarId,
  6360. /* [out] */ ISpRecoGrammar **ppGrammar) = 0;
  6361. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  6362. /* [out] */ SPRECOCONTEXTSTATUS *pStatus) = 0;
  6363. virtual HRESULT STDMETHODCALLTYPE GetMaxAlternates(
  6364. /* [in] */ ULONG *pcAlternates) = 0;
  6365. virtual HRESULT STDMETHODCALLTYPE SetMaxAlternates(
  6366. /* [in] */ ULONG cAlternates) = 0;
  6367. virtual HRESULT STDMETHODCALLTYPE SetAudioOptions(
  6368. /* [in] */ SPAUDIOOPTIONS Options,
  6369. /* [in] */ const GUID *pAudioFormatId,
  6370. /* [in] */ const WAVEFORMATEX *pWaveFormatEx) = 0;
  6371. virtual HRESULT STDMETHODCALLTYPE GetAudioOptions(
  6372. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6373. /* [out] */ GUID *pAudioFormatId,
  6374. /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
  6375. virtual HRESULT STDMETHODCALLTYPE DeserializeResult(
  6376. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6377. /* [out] */ ISpRecoResult **ppResult) = 0;
  6378. virtual HRESULT STDMETHODCALLTYPE Bookmark(
  6379. /* [in] */ SPBOOKMARKOPTIONS Options,
  6380. /* [in] */ ULONGLONG ullStreamPosition,
  6381. /* [in] */ LPARAM lparamEvent) = 0;
  6382. virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
  6383. /* [string][in] */ const WCHAR *pAdaptationData,
  6384. /* [in] */ const ULONG cch) = 0;
  6385. virtual HRESULT STDMETHODCALLTYPE Pause(
  6386. DWORD dwReserved) = 0;
  6387. virtual HRESULT STDMETHODCALLTYPE Resume(
  6388. DWORD dwReserved) = 0;
  6389. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  6390. /* [in] */ ISpVoice *pVoice,
  6391. /* [in] */ BOOL fAllowFormatChanges) = 0;
  6392. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  6393. /* [out] */ ISpVoice **ppVoice) = 0;
  6394. virtual HRESULT STDMETHODCALLTYPE SetVoicePurgeEvent(
  6395. /* [in] */ ULONGLONG ullEventInterest) = 0;
  6396. virtual HRESULT STDMETHODCALLTYPE GetVoicePurgeEvent(
  6397. /* [out] */ ULONGLONG *pullEventInterest) = 0;
  6398. virtual HRESULT STDMETHODCALLTYPE SetContextState(
  6399. /* [in] */ SPCONTEXTSTATE eContextState) = 0;
  6400. virtual HRESULT STDMETHODCALLTYPE GetContextState(
  6401. /* [in] */ SPCONTEXTSTATE *peContextState) = 0;
  6402. };
  6403. #else /* C style interface */
  6404. typedef struct ISpRecoContextVtbl
  6405. {
  6406. BEGIN_INTERFACE
  6407. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6408. ISpRecoContext * This,
  6409. /* [in] */ REFIID riid,
  6410. /* [iid_is][out] */ void **ppvObject);
  6411. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6412. ISpRecoContext * This);
  6413. ULONG ( STDMETHODCALLTYPE *Release )(
  6414. ISpRecoContext * This);
  6415. HRESULT ( STDMETHODCALLTYPE *SetNotifySink )(
  6416. ISpRecoContext * This,
  6417. /* [in] */ ISpNotifySink *pNotifySink);
  6418. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWindowMessage )(
  6419. ISpRecoContext * This,
  6420. /* [in] */ HWND hWnd,
  6421. /* [in] */ UINT Msg,
  6422. /* [in] */ WPARAM wParam,
  6423. /* [in] */ LPARAM lParam);
  6424. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackFunction )(
  6425. ISpRecoContext * This,
  6426. /* [in] */ SPNOTIFYCALLBACK *pfnCallback,
  6427. /* [in] */ WPARAM wParam,
  6428. /* [in] */ LPARAM lParam);
  6429. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyCallbackInterface )(
  6430. ISpRecoContext * This,
  6431. /* [in] */ ISpNotifyCallback *pSpCallback,
  6432. /* [in] */ WPARAM wParam,
  6433. /* [in] */ LPARAM lParam);
  6434. /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetNotifyWin32Event )(
  6435. ISpRecoContext * This);
  6436. /* [local] */ HRESULT ( STDMETHODCALLTYPE *WaitForNotifyEvent )(
  6437. ISpRecoContext * This,
  6438. /* [in] */ DWORD dwMilliseconds);
  6439. /* [local] */ HANDLE ( STDMETHODCALLTYPE *GetNotifyEventHandle )(
  6440. ISpRecoContext * This);
  6441. HRESULT ( STDMETHODCALLTYPE *SetInterest )(
  6442. ISpRecoContext * This,
  6443. /* [in] */ ULONGLONG ullEventInterest,
  6444. /* [in] */ ULONGLONG ullQueuedInterest);
  6445. HRESULT ( STDMETHODCALLTYPE *GetEvents )(
  6446. ISpRecoContext * This,
  6447. /* [in] */ ULONG ulCount,
  6448. /* [size_is][out] */ SPEVENT *pEventArray,
  6449. /* [out] */ ULONG *pulFetched);
  6450. HRESULT ( STDMETHODCALLTYPE *GetInfo )(
  6451. ISpRecoContext * This,
  6452. /* [out] */ SPEVENTSOURCEINFO *pInfo);
  6453. HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
  6454. ISpRecoContext * This,
  6455. /* [out] */ ISpRecognizer **ppRecognizer);
  6456. HRESULT ( STDMETHODCALLTYPE *CreateGrammar )(
  6457. ISpRecoContext * This,
  6458. /* [in] */ ULONGLONG ullGrammarId,
  6459. /* [out] */ ISpRecoGrammar **ppGrammar);
  6460. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  6461. ISpRecoContext * This,
  6462. /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
  6463. HRESULT ( STDMETHODCALLTYPE *GetMaxAlternates )(
  6464. ISpRecoContext * This,
  6465. /* [in] */ ULONG *pcAlternates);
  6466. HRESULT ( STDMETHODCALLTYPE *SetMaxAlternates )(
  6467. ISpRecoContext * This,
  6468. /* [in] */ ULONG cAlternates);
  6469. HRESULT ( STDMETHODCALLTYPE *SetAudioOptions )(
  6470. ISpRecoContext * This,
  6471. /* [in] */ SPAUDIOOPTIONS Options,
  6472. /* [in] */ const GUID *pAudioFormatId,
  6473. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  6474. HRESULT ( STDMETHODCALLTYPE *GetAudioOptions )(
  6475. ISpRecoContext * This,
  6476. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6477. /* [out] */ GUID *pAudioFormatId,
  6478. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  6479. HRESULT ( STDMETHODCALLTYPE *DeserializeResult )(
  6480. ISpRecoContext * This,
  6481. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6482. /* [out] */ ISpRecoResult **ppResult);
  6483. HRESULT ( STDMETHODCALLTYPE *Bookmark )(
  6484. ISpRecoContext * This,
  6485. /* [in] */ SPBOOKMARKOPTIONS Options,
  6486. /* [in] */ ULONGLONG ullStreamPosition,
  6487. /* [in] */ LPARAM lparamEvent);
  6488. HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
  6489. ISpRecoContext * This,
  6490. /* [string][in] */ const WCHAR *pAdaptationData,
  6491. /* [in] */ const ULONG cch);
  6492. HRESULT ( STDMETHODCALLTYPE *Pause )(
  6493. ISpRecoContext * This,
  6494. DWORD dwReserved);
  6495. HRESULT ( STDMETHODCALLTYPE *Resume )(
  6496. ISpRecoContext * This,
  6497. DWORD dwReserved);
  6498. HRESULT ( STDMETHODCALLTYPE *SetVoice )(
  6499. ISpRecoContext * This,
  6500. /* [in] */ ISpVoice *pVoice,
  6501. /* [in] */ BOOL fAllowFormatChanges);
  6502. HRESULT ( STDMETHODCALLTYPE *GetVoice )(
  6503. ISpRecoContext * This,
  6504. /* [out] */ ISpVoice **ppVoice);
  6505. HRESULT ( STDMETHODCALLTYPE *SetVoicePurgeEvent )(
  6506. ISpRecoContext * This,
  6507. /* [in] */ ULONGLONG ullEventInterest);
  6508. HRESULT ( STDMETHODCALLTYPE *GetVoicePurgeEvent )(
  6509. ISpRecoContext * This,
  6510. /* [out] */ ULONGLONG *pullEventInterest);
  6511. HRESULT ( STDMETHODCALLTYPE *SetContextState )(
  6512. ISpRecoContext * This,
  6513. /* [in] */ SPCONTEXTSTATE eContextState);
  6514. HRESULT ( STDMETHODCALLTYPE *GetContextState )(
  6515. ISpRecoContext * This,
  6516. /* [in] */ SPCONTEXTSTATE *peContextState);
  6517. END_INTERFACE
  6518. } ISpRecoContextVtbl;
  6519. interface ISpRecoContext
  6520. {
  6521. CONST_VTBL struct ISpRecoContextVtbl *lpVtbl;
  6522. };
  6523. #ifdef COBJMACROS
  6524. #define ISpRecoContext_QueryInterface(This,riid,ppvObject) \
  6525. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6526. #define ISpRecoContext_AddRef(This) \
  6527. (This)->lpVtbl -> AddRef(This)
  6528. #define ISpRecoContext_Release(This) \
  6529. (This)->lpVtbl -> Release(This)
  6530. #define ISpRecoContext_SetNotifySink(This,pNotifySink) \
  6531. (This)->lpVtbl -> SetNotifySink(This,pNotifySink)
  6532. #define ISpRecoContext_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) \
  6533. (This)->lpVtbl -> SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  6534. #define ISpRecoContext_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) \
  6535. (This)->lpVtbl -> SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  6536. #define ISpRecoContext_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) \
  6537. (This)->lpVtbl -> SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  6538. #define ISpRecoContext_SetNotifyWin32Event(This) \
  6539. (This)->lpVtbl -> SetNotifyWin32Event(This)
  6540. #define ISpRecoContext_WaitForNotifyEvent(This,dwMilliseconds) \
  6541. (This)->lpVtbl -> WaitForNotifyEvent(This,dwMilliseconds)
  6542. #define ISpRecoContext_GetNotifyEventHandle(This) \
  6543. (This)->lpVtbl -> GetNotifyEventHandle(This)
  6544. #define ISpRecoContext_SetInterest(This,ullEventInterest,ullQueuedInterest) \
  6545. (This)->lpVtbl -> SetInterest(This,ullEventInterest,ullQueuedInterest)
  6546. #define ISpRecoContext_GetEvents(This,ulCount,pEventArray,pulFetched) \
  6547. (This)->lpVtbl -> GetEvents(This,ulCount,pEventArray,pulFetched)
  6548. #define ISpRecoContext_GetInfo(This,pInfo) \
  6549. (This)->lpVtbl -> GetInfo(This,pInfo)
  6550. #define ISpRecoContext_GetRecognizer(This,ppRecognizer) \
  6551. (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
  6552. #define ISpRecoContext_CreateGrammar(This,ullGrammarId,ppGrammar) \
  6553. (This)->lpVtbl -> CreateGrammar(This,ullGrammarId,ppGrammar)
  6554. #define ISpRecoContext_GetStatus(This,pStatus) \
  6555. (This)->lpVtbl -> GetStatus(This,pStatus)
  6556. #define ISpRecoContext_GetMaxAlternates(This,pcAlternates) \
  6557. (This)->lpVtbl -> GetMaxAlternates(This,pcAlternates)
  6558. #define ISpRecoContext_SetMaxAlternates(This,cAlternates) \
  6559. (This)->lpVtbl -> SetMaxAlternates(This,cAlternates)
  6560. #define ISpRecoContext_SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx) \
  6561. (This)->lpVtbl -> SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx)
  6562. #define ISpRecoContext_GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX) \
  6563. (This)->lpVtbl -> GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX)
  6564. #define ISpRecoContext_DeserializeResult(This,pSerializedResult,ppResult) \
  6565. (This)->lpVtbl -> DeserializeResult(This,pSerializedResult,ppResult)
  6566. #define ISpRecoContext_Bookmark(This,Options,ullStreamPosition,lparamEvent) \
  6567. (This)->lpVtbl -> Bookmark(This,Options,ullStreamPosition,lparamEvent)
  6568. #define ISpRecoContext_SetAdaptationData(This,pAdaptationData,cch) \
  6569. (This)->lpVtbl -> SetAdaptationData(This,pAdaptationData,cch)
  6570. #define ISpRecoContext_Pause(This,dwReserved) \
  6571. (This)->lpVtbl -> Pause(This,dwReserved)
  6572. #define ISpRecoContext_Resume(This,dwReserved) \
  6573. (This)->lpVtbl -> Resume(This,dwReserved)
  6574. #define ISpRecoContext_SetVoice(This,pVoice,fAllowFormatChanges) \
  6575. (This)->lpVtbl -> SetVoice(This,pVoice,fAllowFormatChanges)
  6576. #define ISpRecoContext_GetVoice(This,ppVoice) \
  6577. (This)->lpVtbl -> GetVoice(This,ppVoice)
  6578. #define ISpRecoContext_SetVoicePurgeEvent(This,ullEventInterest) \
  6579. (This)->lpVtbl -> SetVoicePurgeEvent(This,ullEventInterest)
  6580. #define ISpRecoContext_GetVoicePurgeEvent(This,pullEventInterest) \
  6581. (This)->lpVtbl -> GetVoicePurgeEvent(This,pullEventInterest)
  6582. #define ISpRecoContext_SetContextState(This,eContextState) \
  6583. (This)->lpVtbl -> SetContextState(This,eContextState)
  6584. #define ISpRecoContext_GetContextState(This,peContextState) \
  6585. (This)->lpVtbl -> GetContextState(This,peContextState)
  6586. #endif /* COBJMACROS */
  6587. #endif /* C style interface */
  6588. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetRecognizer_Proxy(
  6589. ISpRecoContext * This,
  6590. /* [out] */ ISpRecognizer **ppRecognizer);
  6591. void __RPC_STUB ISpRecoContext_GetRecognizer_Stub(
  6592. IRpcStubBuffer *This,
  6593. IRpcChannelBuffer *_pRpcChannelBuffer,
  6594. PRPC_MESSAGE _pRpcMessage,
  6595. DWORD *_pdwStubPhase);
  6596. HRESULT STDMETHODCALLTYPE ISpRecoContext_CreateGrammar_Proxy(
  6597. ISpRecoContext * This,
  6598. /* [in] */ ULONGLONG ullGrammarId,
  6599. /* [out] */ ISpRecoGrammar **ppGrammar);
  6600. void __RPC_STUB ISpRecoContext_CreateGrammar_Stub(
  6601. IRpcStubBuffer *This,
  6602. IRpcChannelBuffer *_pRpcChannelBuffer,
  6603. PRPC_MESSAGE _pRpcMessage,
  6604. DWORD *_pdwStubPhase);
  6605. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetStatus_Proxy(
  6606. ISpRecoContext * This,
  6607. /* [out] */ SPRECOCONTEXTSTATUS *pStatus);
  6608. void __RPC_STUB ISpRecoContext_GetStatus_Stub(
  6609. IRpcStubBuffer *This,
  6610. IRpcChannelBuffer *_pRpcChannelBuffer,
  6611. PRPC_MESSAGE _pRpcMessage,
  6612. DWORD *_pdwStubPhase);
  6613. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetMaxAlternates_Proxy(
  6614. ISpRecoContext * This,
  6615. /* [in] */ ULONG *pcAlternates);
  6616. void __RPC_STUB ISpRecoContext_GetMaxAlternates_Stub(
  6617. IRpcStubBuffer *This,
  6618. IRpcChannelBuffer *_pRpcChannelBuffer,
  6619. PRPC_MESSAGE _pRpcMessage,
  6620. DWORD *_pdwStubPhase);
  6621. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetMaxAlternates_Proxy(
  6622. ISpRecoContext * This,
  6623. /* [in] */ ULONG cAlternates);
  6624. void __RPC_STUB ISpRecoContext_SetMaxAlternates_Stub(
  6625. IRpcStubBuffer *This,
  6626. IRpcChannelBuffer *_pRpcChannelBuffer,
  6627. PRPC_MESSAGE _pRpcMessage,
  6628. DWORD *_pdwStubPhase);
  6629. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAudioOptions_Proxy(
  6630. ISpRecoContext * This,
  6631. /* [in] */ SPAUDIOOPTIONS Options,
  6632. /* [in] */ const GUID *pAudioFormatId,
  6633. /* [in] */ const WAVEFORMATEX *pWaveFormatEx);
  6634. void __RPC_STUB ISpRecoContext_SetAudioOptions_Stub(
  6635. IRpcStubBuffer *This,
  6636. IRpcChannelBuffer *_pRpcChannelBuffer,
  6637. PRPC_MESSAGE _pRpcMessage,
  6638. DWORD *_pdwStubPhase);
  6639. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetAudioOptions_Proxy(
  6640. ISpRecoContext * This,
  6641. /* [in] */ SPAUDIOOPTIONS *pOptions,
  6642. /* [out] */ GUID *pAudioFormatId,
  6643. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  6644. void __RPC_STUB ISpRecoContext_GetAudioOptions_Stub(
  6645. IRpcStubBuffer *This,
  6646. IRpcChannelBuffer *_pRpcChannelBuffer,
  6647. PRPC_MESSAGE _pRpcMessage,
  6648. DWORD *_pdwStubPhase);
  6649. HRESULT STDMETHODCALLTYPE ISpRecoContext_DeserializeResult_Proxy(
  6650. ISpRecoContext * This,
  6651. /* [in] */ const SPSERIALIZEDRESULT *pSerializedResult,
  6652. /* [out] */ ISpRecoResult **ppResult);
  6653. void __RPC_STUB ISpRecoContext_DeserializeResult_Stub(
  6654. IRpcStubBuffer *This,
  6655. IRpcChannelBuffer *_pRpcChannelBuffer,
  6656. PRPC_MESSAGE _pRpcMessage,
  6657. DWORD *_pdwStubPhase);
  6658. HRESULT STDMETHODCALLTYPE ISpRecoContext_Bookmark_Proxy(
  6659. ISpRecoContext * This,
  6660. /* [in] */ SPBOOKMARKOPTIONS Options,
  6661. /* [in] */ ULONGLONG ullStreamPosition,
  6662. /* [in] */ LPARAM lparamEvent);
  6663. void __RPC_STUB ISpRecoContext_Bookmark_Stub(
  6664. IRpcStubBuffer *This,
  6665. IRpcChannelBuffer *_pRpcChannelBuffer,
  6666. PRPC_MESSAGE _pRpcMessage,
  6667. DWORD *_pdwStubPhase);
  6668. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetAdaptationData_Proxy(
  6669. ISpRecoContext * This,
  6670. /* [string][in] */ const WCHAR *pAdaptationData,
  6671. /* [in] */ const ULONG cch);
  6672. void __RPC_STUB ISpRecoContext_SetAdaptationData_Stub(
  6673. IRpcStubBuffer *This,
  6674. IRpcChannelBuffer *_pRpcChannelBuffer,
  6675. PRPC_MESSAGE _pRpcMessage,
  6676. DWORD *_pdwStubPhase);
  6677. HRESULT STDMETHODCALLTYPE ISpRecoContext_Pause_Proxy(
  6678. ISpRecoContext * This,
  6679. DWORD dwReserved);
  6680. void __RPC_STUB ISpRecoContext_Pause_Stub(
  6681. IRpcStubBuffer *This,
  6682. IRpcChannelBuffer *_pRpcChannelBuffer,
  6683. PRPC_MESSAGE _pRpcMessage,
  6684. DWORD *_pdwStubPhase);
  6685. HRESULT STDMETHODCALLTYPE ISpRecoContext_Resume_Proxy(
  6686. ISpRecoContext * This,
  6687. DWORD dwReserved);
  6688. void __RPC_STUB ISpRecoContext_Resume_Stub(
  6689. IRpcStubBuffer *This,
  6690. IRpcChannelBuffer *_pRpcChannelBuffer,
  6691. PRPC_MESSAGE _pRpcMessage,
  6692. DWORD *_pdwStubPhase);
  6693. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoice_Proxy(
  6694. ISpRecoContext * This,
  6695. /* [in] */ ISpVoice *pVoice,
  6696. /* [in] */ BOOL fAllowFormatChanges);
  6697. void __RPC_STUB ISpRecoContext_SetVoice_Stub(
  6698. IRpcStubBuffer *This,
  6699. IRpcChannelBuffer *_pRpcChannelBuffer,
  6700. PRPC_MESSAGE _pRpcMessage,
  6701. DWORD *_pdwStubPhase);
  6702. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoice_Proxy(
  6703. ISpRecoContext * This,
  6704. /* [out] */ ISpVoice **ppVoice);
  6705. void __RPC_STUB ISpRecoContext_GetVoice_Stub(
  6706. IRpcStubBuffer *This,
  6707. IRpcChannelBuffer *_pRpcChannelBuffer,
  6708. PRPC_MESSAGE _pRpcMessage,
  6709. DWORD *_pdwStubPhase);
  6710. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetVoicePurgeEvent_Proxy(
  6711. ISpRecoContext * This,
  6712. /* [in] */ ULONGLONG ullEventInterest);
  6713. void __RPC_STUB ISpRecoContext_SetVoicePurgeEvent_Stub(
  6714. IRpcStubBuffer *This,
  6715. IRpcChannelBuffer *_pRpcChannelBuffer,
  6716. PRPC_MESSAGE _pRpcMessage,
  6717. DWORD *_pdwStubPhase);
  6718. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetVoicePurgeEvent_Proxy(
  6719. ISpRecoContext * This,
  6720. /* [out] */ ULONGLONG *pullEventInterest);
  6721. void __RPC_STUB ISpRecoContext_GetVoicePurgeEvent_Stub(
  6722. IRpcStubBuffer *This,
  6723. IRpcChannelBuffer *_pRpcChannelBuffer,
  6724. PRPC_MESSAGE _pRpcMessage,
  6725. DWORD *_pdwStubPhase);
  6726. HRESULT STDMETHODCALLTYPE ISpRecoContext_SetContextState_Proxy(
  6727. ISpRecoContext * This,
  6728. /* [in] */ SPCONTEXTSTATE eContextState);
  6729. void __RPC_STUB ISpRecoContext_SetContextState_Stub(
  6730. IRpcStubBuffer *This,
  6731. IRpcChannelBuffer *_pRpcChannelBuffer,
  6732. PRPC_MESSAGE _pRpcMessage,
  6733. DWORD *_pdwStubPhase);
  6734. HRESULT STDMETHODCALLTYPE ISpRecoContext_GetContextState_Proxy(
  6735. ISpRecoContext * This,
  6736. /* [in] */ SPCONTEXTSTATE *peContextState);
  6737. void __RPC_STUB ISpRecoContext_GetContextState_Stub(
  6738. IRpcStubBuffer *This,
  6739. IRpcChannelBuffer *_pRpcChannelBuffer,
  6740. PRPC_MESSAGE _pRpcMessage,
  6741. DWORD *_pdwStubPhase);
  6742. #endif /* __ISpRecoContext_INTERFACE_DEFINED__ */
  6743. #ifndef __ISpProperties_INTERFACE_DEFINED__
  6744. #define __ISpProperties_INTERFACE_DEFINED__
  6745. /* interface ISpProperties */
  6746. /* [restricted][local][unique][helpstring][uuid][object] */
  6747. EXTERN_C const IID IID_ISpProperties;
  6748. #if defined(__cplusplus) && !defined(CINTERFACE)
  6749. MIDL_INTERFACE("5B4FB971-B115-4DE1-AD97-E482E3BF6EE4")
  6750. ISpProperties : public IUnknown
  6751. {
  6752. public:
  6753. virtual HRESULT STDMETHODCALLTYPE SetPropertyNum(
  6754. /* [in] */ const WCHAR *pName,
  6755. /* [in] */ LONG lValue) = 0;
  6756. virtual HRESULT STDMETHODCALLTYPE GetPropertyNum(
  6757. /* [in] */ const WCHAR *pName,
  6758. /* [out] */ LONG *plValue) = 0;
  6759. virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
  6760. /* [in] */ const WCHAR *pName,
  6761. /* [in] */ const WCHAR *pValue) = 0;
  6762. virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
  6763. /* [in] */ const WCHAR *pName,
  6764. /* [out] */ WCHAR **ppCoMemValue) = 0;
  6765. };
  6766. #else /* C style interface */
  6767. typedef struct ISpPropertiesVtbl
  6768. {
  6769. BEGIN_INTERFACE
  6770. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6771. ISpProperties * This,
  6772. /* [in] */ REFIID riid,
  6773. /* [iid_is][out] */ void **ppvObject);
  6774. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6775. ISpProperties * This);
  6776. ULONG ( STDMETHODCALLTYPE *Release )(
  6777. ISpProperties * This);
  6778. HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
  6779. ISpProperties * This,
  6780. /* [in] */ const WCHAR *pName,
  6781. /* [in] */ LONG lValue);
  6782. HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
  6783. ISpProperties * This,
  6784. /* [in] */ const WCHAR *pName,
  6785. /* [out] */ LONG *plValue);
  6786. HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  6787. ISpProperties * This,
  6788. /* [in] */ const WCHAR *pName,
  6789. /* [in] */ const WCHAR *pValue);
  6790. HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  6791. ISpProperties * This,
  6792. /* [in] */ const WCHAR *pName,
  6793. /* [out] */ WCHAR **ppCoMemValue);
  6794. END_INTERFACE
  6795. } ISpPropertiesVtbl;
  6796. interface ISpProperties
  6797. {
  6798. CONST_VTBL struct ISpPropertiesVtbl *lpVtbl;
  6799. };
  6800. #ifdef COBJMACROS
  6801. #define ISpProperties_QueryInterface(This,riid,ppvObject) \
  6802. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  6803. #define ISpProperties_AddRef(This) \
  6804. (This)->lpVtbl -> AddRef(This)
  6805. #define ISpProperties_Release(This) \
  6806. (This)->lpVtbl -> Release(This)
  6807. #define ISpProperties_SetPropertyNum(This,pName,lValue) \
  6808. (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
  6809. #define ISpProperties_GetPropertyNum(This,pName,plValue) \
  6810. (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
  6811. #define ISpProperties_SetPropertyString(This,pName,pValue) \
  6812. (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
  6813. #define ISpProperties_GetPropertyString(This,pName,ppCoMemValue) \
  6814. (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
  6815. #endif /* COBJMACROS */
  6816. #endif /* C style interface */
  6817. HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyNum_Proxy(
  6818. ISpProperties * This,
  6819. /* [in] */ const WCHAR *pName,
  6820. /* [in] */ LONG lValue);
  6821. void __RPC_STUB ISpProperties_SetPropertyNum_Stub(
  6822. IRpcStubBuffer *This,
  6823. IRpcChannelBuffer *_pRpcChannelBuffer,
  6824. PRPC_MESSAGE _pRpcMessage,
  6825. DWORD *_pdwStubPhase);
  6826. HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyNum_Proxy(
  6827. ISpProperties * This,
  6828. /* [in] */ const WCHAR *pName,
  6829. /* [out] */ LONG *plValue);
  6830. void __RPC_STUB ISpProperties_GetPropertyNum_Stub(
  6831. IRpcStubBuffer *This,
  6832. IRpcChannelBuffer *_pRpcChannelBuffer,
  6833. PRPC_MESSAGE _pRpcMessage,
  6834. DWORD *_pdwStubPhase);
  6835. HRESULT STDMETHODCALLTYPE ISpProperties_SetPropertyString_Proxy(
  6836. ISpProperties * This,
  6837. /* [in] */ const WCHAR *pName,
  6838. /* [in] */ const WCHAR *pValue);
  6839. void __RPC_STUB ISpProperties_SetPropertyString_Stub(
  6840. IRpcStubBuffer *This,
  6841. IRpcChannelBuffer *_pRpcChannelBuffer,
  6842. PRPC_MESSAGE _pRpcMessage,
  6843. DWORD *_pdwStubPhase);
  6844. HRESULT STDMETHODCALLTYPE ISpProperties_GetPropertyString_Proxy(
  6845. ISpProperties * This,
  6846. /* [in] */ const WCHAR *pName,
  6847. /* [out] */ WCHAR **ppCoMemValue);
  6848. void __RPC_STUB ISpProperties_GetPropertyString_Stub(
  6849. IRpcStubBuffer *This,
  6850. IRpcChannelBuffer *_pRpcChannelBuffer,
  6851. PRPC_MESSAGE _pRpcMessage,
  6852. DWORD *_pdwStubPhase);
  6853. #endif /* __ISpProperties_INTERFACE_DEFINED__ */
  6854. /* interface __MIDL_itf_sapi_0281 */
  6855. /* [local] */
  6856. #define SP_MAX_LANGIDS ( 20 )
  6857. typedef /* [hidden][restricted] */ struct SPRECOGNIZERSTATUS
  6858. {
  6859. SPAUDIOSTATUS AudioStatus;
  6860. ULONGLONG ullRecognitionStreamPos;
  6861. ULONG ulStreamNumber;
  6862. ULONG ulNumActive;
  6863. CLSID clsidEngine;
  6864. ULONG cLangIDs;
  6865. WORD aLangID[ 20 ];
  6866. DWORD dwReserved1;
  6867. DWORD dwReserved2;
  6868. } SPRECOGNIZERSTATUS;
  6869. typedef /* [hidden] */
  6870. enum SPWAVEFORMATTYPE
  6871. { SPWF_INPUT = 0,
  6872. SPWF_SRENGINE = SPWF_INPUT + 1
  6873. } SPSTREAMFORMATTYPE;
  6874. typedef /* [hidden] */
  6875. enum SPRECOSTATE
  6876. { SPRST_INACTIVE = 0,
  6877. SPRST_ACTIVE = SPRST_INACTIVE + 1,
  6878. SPRST_ACTIVE_ALWAYS = SPRST_ACTIVE + 1,
  6879. SPRST_INACTIVE_WITH_PURGE = SPRST_ACTIVE_ALWAYS + 1,
  6880. SPRST_NUM_STATES = SPRST_INACTIVE_WITH_PURGE + 1
  6881. } SPRECOSTATE;
  6882. extern RPC_IF_HANDLE __MIDL_itf_sapi_0281_v0_0_c_ifspec;
  6883. extern RPC_IF_HANDLE __MIDL_itf_sapi_0281_v0_0_s_ifspec;
  6884. #ifndef __ISpRecognizer_INTERFACE_DEFINED__
  6885. #define __ISpRecognizer_INTERFACE_DEFINED__
  6886. /* interface ISpRecognizer */
  6887. /* [restricted][unique][helpstring][uuid][object] */
  6888. EXTERN_C const IID IID_ISpRecognizer;
  6889. #if defined(__cplusplus) && !defined(CINTERFACE)
  6890. MIDL_INTERFACE("C2B5F241-DAA0-4507-9E16-5A1EAA2B7A5C")
  6891. ISpRecognizer : public ISpProperties
  6892. {
  6893. public:
  6894. virtual HRESULT STDMETHODCALLTYPE SetRecognizer(
  6895. /* [in] */ ISpObjectToken *pRecognizer) = 0;
  6896. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  6897. /* [out] */ ISpObjectToken **ppRecognizer) = 0;
  6898. virtual HRESULT STDMETHODCALLTYPE SetInput(
  6899. /* [in] */ IUnknown *pUnkInput,
  6900. /* [in] */ BOOL fAllowFormatChanges) = 0;
  6901. virtual HRESULT STDMETHODCALLTYPE GetInputObjectToken(
  6902. /* [out] */ ISpObjectToken **ppToken) = 0;
  6903. virtual HRESULT STDMETHODCALLTYPE GetInputStream(
  6904. /* [out] */ ISpStreamFormat **ppStream) = 0;
  6905. virtual HRESULT STDMETHODCALLTYPE CreateRecoContext(
  6906. /* [out] */ ISpRecoContext **ppNewCtxt) = 0;
  6907. virtual HRESULT STDMETHODCALLTYPE GetRecoProfile(
  6908. /* [out] */ ISpObjectToken **ppToken) = 0;
  6909. virtual HRESULT STDMETHODCALLTYPE SetRecoProfile(
  6910. /* [in] */ ISpObjectToken *pToken) = 0;
  6911. virtual HRESULT STDMETHODCALLTYPE IsSharedInstance( void) = 0;
  6912. virtual HRESULT STDMETHODCALLTYPE GetRecoState(
  6913. /* [out] */ SPRECOSTATE *pState) = 0;
  6914. virtual HRESULT STDMETHODCALLTYPE SetRecoState(
  6915. /* [in] */ SPRECOSTATE NewState) = 0;
  6916. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  6917. /* [out] */ SPRECOGNIZERSTATUS *pStatus) = 0;
  6918. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  6919. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  6920. /* [out] */ GUID *pFormatId,
  6921. /* [out] */ WAVEFORMATEX **ppCoMemWFEX) = 0;
  6922. virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  6923. /* [in] */ const WCHAR *pszTypeOfUI,
  6924. /* [in] */ void *pvExtraData,
  6925. /* [in] */ ULONG cbExtraData,
  6926. /* [out] */ BOOL *pfSupported) = 0;
  6927. virtual /* [local] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  6928. /* [in] */ HWND hwndParent,
  6929. /* [in] */ const WCHAR *pszTitle,
  6930. /* [in] */ const WCHAR *pszTypeOfUI,
  6931. /* [in] */ void *pvExtraData,
  6932. /* [in] */ ULONG cbExtraData) = 0;
  6933. virtual HRESULT STDMETHODCALLTYPE EmulateRecognition(
  6934. /* [in] */ ISpPhrase *pPhrase) = 0;
  6935. };
  6936. #else /* C style interface */
  6937. typedef struct ISpRecognizerVtbl
  6938. {
  6939. BEGIN_INTERFACE
  6940. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  6941. ISpRecognizer * This,
  6942. /* [in] */ REFIID riid,
  6943. /* [iid_is][out] */ void **ppvObject);
  6944. ULONG ( STDMETHODCALLTYPE *AddRef )(
  6945. ISpRecognizer * This);
  6946. ULONG ( STDMETHODCALLTYPE *Release )(
  6947. ISpRecognizer * This);
  6948. HRESULT ( STDMETHODCALLTYPE *SetPropertyNum )(
  6949. ISpRecognizer * This,
  6950. /* [in] */ const WCHAR *pName,
  6951. /* [in] */ LONG lValue);
  6952. HRESULT ( STDMETHODCALLTYPE *GetPropertyNum )(
  6953. ISpRecognizer * This,
  6954. /* [in] */ const WCHAR *pName,
  6955. /* [out] */ LONG *plValue);
  6956. HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  6957. ISpRecognizer * This,
  6958. /* [in] */ const WCHAR *pName,
  6959. /* [in] */ const WCHAR *pValue);
  6960. HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  6961. ISpRecognizer * This,
  6962. /* [in] */ const WCHAR *pName,
  6963. /* [out] */ WCHAR **ppCoMemValue);
  6964. HRESULT ( STDMETHODCALLTYPE *SetRecognizer )(
  6965. ISpRecognizer * This,
  6966. /* [in] */ ISpObjectToken *pRecognizer);
  6967. HRESULT ( STDMETHODCALLTYPE *GetRecognizer )(
  6968. ISpRecognizer * This,
  6969. /* [out] */ ISpObjectToken **ppRecognizer);
  6970. HRESULT ( STDMETHODCALLTYPE *SetInput )(
  6971. ISpRecognizer * This,
  6972. /* [in] */ IUnknown *pUnkInput,
  6973. /* [in] */ BOOL fAllowFormatChanges);
  6974. HRESULT ( STDMETHODCALLTYPE *GetInputObjectToken )(
  6975. ISpRecognizer * This,
  6976. /* [out] */ ISpObjectToken **ppToken);
  6977. HRESULT ( STDMETHODCALLTYPE *GetInputStream )(
  6978. ISpRecognizer * This,
  6979. /* [out] */ ISpStreamFormat **ppStream);
  6980. HRESULT ( STDMETHODCALLTYPE *CreateRecoContext )(
  6981. ISpRecognizer * This,
  6982. /* [out] */ ISpRecoContext **ppNewCtxt);
  6983. HRESULT ( STDMETHODCALLTYPE *GetRecoProfile )(
  6984. ISpRecognizer * This,
  6985. /* [out] */ ISpObjectToken **ppToken);
  6986. HRESULT ( STDMETHODCALLTYPE *SetRecoProfile )(
  6987. ISpRecognizer * This,
  6988. /* [in] */ ISpObjectToken *pToken);
  6989. HRESULT ( STDMETHODCALLTYPE *IsSharedInstance )(
  6990. ISpRecognizer * This);
  6991. HRESULT ( STDMETHODCALLTYPE *GetRecoState )(
  6992. ISpRecognizer * This,
  6993. /* [out] */ SPRECOSTATE *pState);
  6994. HRESULT ( STDMETHODCALLTYPE *SetRecoState )(
  6995. ISpRecognizer * This,
  6996. /* [in] */ SPRECOSTATE NewState);
  6997. HRESULT ( STDMETHODCALLTYPE *GetStatus )(
  6998. ISpRecognizer * This,
  6999. /* [out] */ SPRECOGNIZERSTATUS *pStatus);
  7000. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  7001. ISpRecognizer * This,
  7002. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  7003. /* [out] */ GUID *pFormatId,
  7004. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  7005. /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  7006. ISpRecognizer * This,
  7007. /* [in] */ const WCHAR *pszTypeOfUI,
  7008. /* [in] */ void *pvExtraData,
  7009. /* [in] */ ULONG cbExtraData,
  7010. /* [out] */ BOOL *pfSupported);
  7011. /* [local] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  7012. ISpRecognizer * This,
  7013. /* [in] */ HWND hwndParent,
  7014. /* [in] */ const WCHAR *pszTitle,
  7015. /* [in] */ const WCHAR *pszTypeOfUI,
  7016. /* [in] */ void *pvExtraData,
  7017. /* [in] */ ULONG cbExtraData);
  7018. HRESULT ( STDMETHODCALLTYPE *EmulateRecognition )(
  7019. ISpRecognizer * This,
  7020. /* [in] */ ISpPhrase *pPhrase);
  7021. END_INTERFACE
  7022. } ISpRecognizerVtbl;
  7023. interface ISpRecognizer
  7024. {
  7025. CONST_VTBL struct ISpRecognizerVtbl *lpVtbl;
  7026. };
  7027. #ifdef COBJMACROS
  7028. #define ISpRecognizer_QueryInterface(This,riid,ppvObject) \
  7029. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  7030. #define ISpRecognizer_AddRef(This) \
  7031. (This)->lpVtbl -> AddRef(This)
  7032. #define ISpRecognizer_Release(This) \
  7033. (This)->lpVtbl -> Release(This)
  7034. #define ISpRecognizer_SetPropertyNum(This,pName,lValue) \
  7035. (This)->lpVtbl -> SetPropertyNum(This,pName,lValue)
  7036. #define ISpRecognizer_GetPropertyNum(This,pName,plValue) \
  7037. (This)->lpVtbl -> GetPropertyNum(This,pName,plValue)
  7038. #define ISpRecognizer_SetPropertyString(This,pName,pValue) \
  7039. (This)->lpVtbl -> SetPropertyString(This,pName,pValue)
  7040. #define ISpRecognizer_GetPropertyString(This,pName,ppCoMemValue) \
  7041. (This)->lpVtbl -> GetPropertyString(This,pName,ppCoMemValue)
  7042. #define ISpRecognizer_SetRecognizer(This,pRecognizer) \
  7043. (This)->lpVtbl -> SetRecognizer(This,pRecognizer)
  7044. #define ISpRecognizer_GetRecognizer(This,ppRecognizer) \
  7045. (This)->lpVtbl -> GetRecognizer(This,ppRecognizer)
  7046. #define ISpRecognizer_SetInput(This,pUnkInput,fAllowFormatChanges) \
  7047. (This)->lpVtbl -> SetInput(This,pUnkInput,fAllowFormatChanges)
  7048. #define ISpRecognizer_GetInputObjectToken(This,ppToken) \
  7049. (This)->lpVtbl -> GetInputObjectToken(This,ppToken)
  7050. #define ISpRecognizer_GetInputStream(This,ppStream) \
  7051. (This)->lpVtbl -> GetInputStream(This,ppStream)
  7052. #define ISpRecognizer_CreateRecoContext(This,ppNewCtxt) \
  7053. (This)->lpVtbl -> CreateRecoContext(This,ppNewCtxt)
  7054. #define ISpRecognizer_GetRecoProfile(This,ppToken) \
  7055. (This)->lpVtbl -> GetRecoProfile(This,ppToken)
  7056. #define ISpRecognizer_SetRecoProfile(This,pToken) \
  7057. (This)->lpVtbl -> SetRecoProfile(This,pToken)
  7058. #define ISpRecognizer_IsSharedInstance(This) \
  7059. (This)->lpVtbl -> IsSharedInstance(This)
  7060. #define ISpRecognizer_GetRecoState(This,pState) \
  7061. (This)->lpVtbl -> GetRecoState(This,pState)
  7062. #define ISpRecognizer_SetRecoState(This,NewState) \
  7063. (This)->lpVtbl -> SetRecoState(This,NewState)
  7064. #define ISpRecognizer_GetStatus(This,pStatus) \
  7065. (This)->lpVtbl -> GetStatus(This,pStatus)
  7066. #define ISpRecognizer_GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX) \
  7067. (This)->lpVtbl -> GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX)
  7068. #define ISpRecognizer_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) \
  7069. (This)->lpVtbl -> IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  7070. #define ISpRecognizer_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) \
  7071. (This)->lpVtbl -> DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  7072. #define ISpRecognizer_EmulateRecognition(This,pPhrase) \
  7073. (This)->lpVtbl -> EmulateRecognition(This,pPhrase)
  7074. #endif /* COBJMACROS */
  7075. #endif /* C style interface */
  7076. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecognizer_Proxy(
  7077. ISpRecognizer * This,
  7078. /* [in] */ ISpObjectToken *pRecognizer);
  7079. void __RPC_STUB ISpRecognizer_SetRecognizer_Stub(
  7080. IRpcStubBuffer *This,
  7081. IRpcChannelBuffer *_pRpcChannelBuffer,
  7082. PRPC_MESSAGE _pRpcMessage,
  7083. DWORD *_pdwStubPhase);
  7084. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecognizer_Proxy(
  7085. ISpRecognizer * This,
  7086. /* [out] */ ISpObjectToken **ppRecognizer);
  7087. void __RPC_STUB ISpRecognizer_GetRecognizer_Stub(
  7088. IRpcStubBuffer *This,
  7089. IRpcChannelBuffer *_pRpcChannelBuffer,
  7090. PRPC_MESSAGE _pRpcMessage,
  7091. DWORD *_pdwStubPhase);
  7092. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetInput_Proxy(
  7093. ISpRecognizer * This,
  7094. /* [in] */ IUnknown *pUnkInput,
  7095. /* [in] */ BOOL fAllowFormatChanges);
  7096. void __RPC_STUB ISpRecognizer_SetInput_Stub(
  7097. IRpcStubBuffer *This,
  7098. IRpcChannelBuffer *_pRpcChannelBuffer,
  7099. PRPC_MESSAGE _pRpcMessage,
  7100. DWORD *_pdwStubPhase);
  7101. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputObjectToken_Proxy(
  7102. ISpRecognizer * This,
  7103. /* [out] */ ISpObjectToken **ppToken);
  7104. void __RPC_STUB ISpRecognizer_GetInputObjectToken_Stub(
  7105. IRpcStubBuffer *This,
  7106. IRpcChannelBuffer *_pRpcChannelBuffer,
  7107. PRPC_MESSAGE _pRpcMessage,
  7108. DWORD *_pdwStubPhase);
  7109. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetInputStream_Proxy(
  7110. ISpRecognizer * This,
  7111. /* [out] */ ISpStreamFormat **ppStream);
  7112. void __RPC_STUB ISpRecognizer_GetInputStream_Stub(
  7113. IRpcStubBuffer *This,
  7114. IRpcChannelBuffer *_pRpcChannelBuffer,
  7115. PRPC_MESSAGE _pRpcMessage,
  7116. DWORD *_pdwStubPhase);
  7117. HRESULT STDMETHODCALLTYPE ISpRecognizer_CreateRecoContext_Proxy(
  7118. ISpRecognizer * This,
  7119. /* [out] */ ISpRecoContext **ppNewCtxt);
  7120. void __RPC_STUB ISpRecognizer_CreateRecoContext_Stub(
  7121. IRpcStubBuffer *This,
  7122. IRpcChannelBuffer *_pRpcChannelBuffer,
  7123. PRPC_MESSAGE _pRpcMessage,
  7124. DWORD *_pdwStubPhase);
  7125. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoProfile_Proxy(
  7126. ISpRecognizer * This,
  7127. /* [out] */ ISpObjectToken **ppToken);
  7128. void __RPC_STUB ISpRecognizer_GetRecoProfile_Stub(
  7129. IRpcStubBuffer *This,
  7130. IRpcChannelBuffer *_pRpcChannelBuffer,
  7131. PRPC_MESSAGE _pRpcMessage,
  7132. DWORD *_pdwStubPhase);
  7133. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoProfile_Proxy(
  7134. ISpRecognizer * This,
  7135. /* [in] */ ISpObjectToken *pToken);
  7136. void __RPC_STUB ISpRecognizer_SetRecoProfile_Stub(
  7137. IRpcStubBuffer *This,
  7138. IRpcChannelBuffer *_pRpcChannelBuffer,
  7139. PRPC_MESSAGE _pRpcMessage,
  7140. DWORD *_pdwStubPhase);
  7141. HRESULT STDMETHODCALLTYPE ISpRecognizer_IsSharedInstance_Proxy(
  7142. ISpRecognizer * This);
  7143. void __RPC_STUB ISpRecognizer_IsSharedInstance_Stub(
  7144. IRpcStubBuffer *This,
  7145. IRpcChannelBuffer *_pRpcChannelBuffer,
  7146. PRPC_MESSAGE _pRpcMessage,
  7147. DWORD *_pdwStubPhase);
  7148. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetRecoState_Proxy(
  7149. ISpRecognizer * This,
  7150. /* [out] */ SPRECOSTATE *pState);
  7151. void __RPC_STUB ISpRecognizer_GetRecoState_Stub(
  7152. IRpcStubBuffer *This,
  7153. IRpcChannelBuffer *_pRpcChannelBuffer,
  7154. PRPC_MESSAGE _pRpcMessage,
  7155. DWORD *_pdwStubPhase);
  7156. HRESULT STDMETHODCALLTYPE ISpRecognizer_SetRecoState_Proxy(
  7157. ISpRecognizer * This,
  7158. /* [in] */ SPRECOSTATE NewState);
  7159. void __RPC_STUB ISpRecognizer_SetRecoState_Stub(
  7160. IRpcStubBuffer *This,
  7161. IRpcChannelBuffer *_pRpcChannelBuffer,
  7162. PRPC_MESSAGE _pRpcMessage,
  7163. DWORD *_pdwStubPhase);
  7164. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetStatus_Proxy(
  7165. ISpRecognizer * This,
  7166. /* [out] */ SPRECOGNIZERSTATUS *pStatus);
  7167. void __RPC_STUB ISpRecognizer_GetStatus_Stub(
  7168. IRpcStubBuffer *This,
  7169. IRpcChannelBuffer *_pRpcChannelBuffer,
  7170. PRPC_MESSAGE _pRpcMessage,
  7171. DWORD *_pdwStubPhase);
  7172. HRESULT STDMETHODCALLTYPE ISpRecognizer_GetFormat_Proxy(
  7173. ISpRecognizer * This,
  7174. /* [in] */ SPSTREAMFORMATTYPE WaveFormatType,
  7175. /* [out] */ GUID *pFormatId,
  7176. /* [out] */ WAVEFORMATEX **ppCoMemWFEX);
  7177. void __RPC_STUB ISpRecognizer_GetFormat_Stub(
  7178. IRpcStubBuffer *This,
  7179. IRpcChannelBuffer *_pRpcChannelBuffer,
  7180. PRPC_MESSAGE _pRpcMessage,
  7181. DWORD *_pdwStubPhase);
  7182. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_IsUISupported_Proxy(
  7183. ISpRecognizer * This,
  7184. /* [in] */ const WCHAR *pszTypeOfUI,
  7185. /* [in] */ void *pvExtraData,
  7186. /* [in] */ ULONG cbExtraData,
  7187. /* [out] */ BOOL *pfSupported);
  7188. void __RPC_STUB ISpRecognizer_IsUISupported_Stub(
  7189. IRpcStubBuffer *This,
  7190. IRpcChannelBuffer *_pRpcChannelBuffer,
  7191. PRPC_MESSAGE _pRpcMessage,
  7192. DWORD *_pdwStubPhase);
  7193. /* [local] */ HRESULT STDMETHODCALLTYPE ISpRecognizer_DisplayUI_Proxy(
  7194. ISpRecognizer * This,
  7195. /* [in] */ HWND hwndParent,
  7196. /* [in] */ const WCHAR *pszTitle,
  7197. /* [in] */ const WCHAR *pszTypeOfUI,
  7198. /* [in] */ void *pvExtraData,
  7199. /* [in] */ ULONG cbExtraData);
  7200. void __RPC_STUB ISpRecognizer_DisplayUI_Stub(
  7201. IRpcStubBuffer *This,
  7202. IRpcChannelBuffer *_pRpcChannelBuffer,
  7203. PRPC_MESSAGE _pRpcMessage,
  7204. DWORD *_pdwStubPhase);
  7205. HRESULT STDMETHODCALLTYPE ISpRecognizer_EmulateRecognition_Proxy(
  7206. ISpRecognizer * This,
  7207. /* [in] */ ISpPhrase *pPhrase);
  7208. void __RPC_STUB ISpRecognizer_EmulateRecognition_Stub(
  7209. IRpcStubBuffer *This,
  7210. IRpcChannelBuffer *_pRpcChannelBuffer,
  7211. PRPC_MESSAGE _pRpcMessage,
  7212. DWORD *_pdwStubPhase);
  7213. #endif /* __ISpRecognizer_INTERFACE_DEFINED__ */
  7214. #ifndef __SpeechLib_LIBRARY_DEFINED__
  7215. #define __SpeechLib_LIBRARY_DEFINED__
  7216. /* library SpeechLib */
  7217. /* [version][uuid][helpstring] */
  7218. typedef long SpeechLanguageId;
  7219. #define __SpeechStringConstants_MODULE_DEFINED__
  7220. typedef /* [hidden] */
  7221. enum DISPID_SpeechDataKey
  7222. { DISPID_SDKSetBinaryValue = 1,
  7223. DISPID_SDKGetBinaryValue = DISPID_SDKSetBinaryValue + 1,
  7224. DISPID_SDKSetStringValue = DISPID_SDKGetBinaryValue + 1,
  7225. DISPID_SDKGetStringValue = DISPID_SDKSetStringValue + 1,
  7226. DISPID_SDKSetLongValue = DISPID_SDKGetStringValue + 1,
  7227. DISPID_SDKGetlongValue = DISPID_SDKSetLongValue + 1,
  7228. DISPID_SDKOpenKey = DISPID_SDKGetlongValue + 1,
  7229. DISPID_SDKCreateKey = DISPID_SDKOpenKey + 1,
  7230. DISPID_SDKDeleteKey = DISPID_SDKCreateKey + 1,
  7231. DISPID_SDKDeleteValue = DISPID_SDKDeleteKey + 1,
  7232. DISPID_SDKEnumKeys = DISPID_SDKDeleteValue + 1,
  7233. DISPID_SDKEnumValues = DISPID_SDKEnumKeys + 1
  7234. } DISPID_SpeechDataKey;
  7235. typedef /* [hidden] */
  7236. enum DISPID_SpeechObjectToken
  7237. { DISPID_SOTId = 1,
  7238. DISPID_SOTDataKey = DISPID_SOTId + 1,
  7239. DISPID_SOTCategory = DISPID_SOTDataKey + 1,
  7240. DISPID_SOTGetDescription = DISPID_SOTCategory + 1,
  7241. DISPID_SOTSetId = DISPID_SOTGetDescription + 1,
  7242. DISPID_SOTGetAttribute = DISPID_SOTSetId + 1,
  7243. DISPID_SOTCreateInstance = DISPID_SOTGetAttribute + 1,
  7244. DISPID_SOTRemove = DISPID_SOTCreateInstance + 1,
  7245. DISPID_SOTGetStorageFileName = DISPID_SOTRemove + 1,
  7246. DISPID_SOTRemoveStorageFileName = DISPID_SOTGetStorageFileName + 1,
  7247. DISPID_SOTIsUISupported = DISPID_SOTRemoveStorageFileName + 1,
  7248. DISPID_SOTDisplayUI = DISPID_SOTIsUISupported + 1,
  7249. DISPID_SOTMatchesAttributes = DISPID_SOTDisplayUI + 1
  7250. } DISPID_SpeechObjectToken;
  7251. typedef
  7252. enum SpeechDataKeyLocation
  7253. { SDKLDefaultLocation = SPDKL_DefaultLocation,
  7254. SDKLCurrentUser = SPDKL_CurrentUser,
  7255. SDKLLocalMachine = SPDKL_LocalMachine,
  7256. SDKLCurrentConfig = SPDKL_CurrentConfig
  7257. } SpeechDataKeyLocation;
  7258. typedef
  7259. enum SpeechTokenContext
  7260. { STCInprocServer = CLSCTX_INPROC_SERVER,
  7261. STCInprocHandler = CLSCTX_INPROC_HANDLER,
  7262. STCLocalServer = CLSCTX_LOCAL_SERVER,
  7263. STCRemoteServer = CLSCTX_REMOTE_SERVER,
  7264. STCAll = CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER
  7265. } SpeechTokenContext;
  7266. typedef
  7267. enum SpeechTokenShellFolder
  7268. { STSF_AppData = 0x1a,
  7269. STSF_LocalAppData = 0x1c,
  7270. STSF_CommonAppData = 0x23,
  7271. STSF_FlagCreate = 0x8000
  7272. } SpeechTokenShellFolder;
  7273. typedef /* [hidden] */
  7274. enum DISPID_SpeechObjectTokens
  7275. { DISPID_SOTsCount = 1,
  7276. DISPID_SOTsItem = DISPID_VALUE,
  7277. DISPID_SOTs_NewEnum = DISPID_NEWENUM
  7278. } DISPID_SpeechObjectTokens;
  7279. typedef /* [hidden] */
  7280. enum DISPID_SpeechObjectTokenCategory
  7281. { DISPID_SOTCId = 1,
  7282. DISPID_SOTCDefault = DISPID_SOTCId + 1,
  7283. DISPID_SOTCSetId = DISPID_SOTCDefault + 1,
  7284. DISPID_SOTCGetDataKey = DISPID_SOTCSetId + 1,
  7285. DISPID_SOTCEnumerateTokens = DISPID_SOTCGetDataKey + 1
  7286. } DISPID_SpeechObjectTokenCategory;
  7287. typedef
  7288. enum SpeechAudioFormatType
  7289. { SAFTDefault = -1,
  7290. SAFTNoAssignedFormat = 0,
  7291. SAFTText = SAFTNoAssignedFormat + 1,
  7292. SAFTNonStandardFormat = SAFTText + 1,
  7293. SAFTExtendedAudioFormat = SAFTNonStandardFormat + 1,
  7294. SAFT8kHz8BitMono = SAFTExtendedAudioFormat + 1,
  7295. SAFT8kHz8BitStereo = SAFT8kHz8BitMono + 1,
  7296. SAFT8kHz16BitMono = SAFT8kHz8BitStereo + 1,
  7297. SAFT8kHz16BitStereo = SAFT8kHz16BitMono + 1,
  7298. SAFT11kHz8BitMono = SAFT8kHz16BitStereo + 1,
  7299. SAFT11kHz8BitStereo = SAFT11kHz8BitMono + 1,
  7300. SAFT11kHz16BitMono = SAFT11kHz8BitStereo + 1,
  7301. SAFT11kHz16BitStereo = SAFT11kHz16BitMono + 1,
  7302. SAFT12kHz8BitMono = SAFT11kHz16BitStereo + 1,
  7303. SAFT12kHz8BitStereo = SAFT12kHz8BitMono + 1,
  7304. SAFT12kHz16BitMono = SAFT12kHz8BitStereo + 1,
  7305. SAFT12kHz16BitStereo = SAFT12kHz16BitMono + 1,
  7306. SAFT16kHz8BitMono = SAFT12kHz16BitStereo + 1,
  7307. SAFT16kHz8BitStereo = SAFT16kHz8BitMono + 1,
  7308. SAFT16kHz16BitMono = SAFT16kHz8BitStereo + 1,
  7309. SAFT16kHz16BitStereo = SAFT16kHz16BitMono + 1,
  7310. SAFT22kHz8BitMono = SAFT16kHz16BitStereo + 1,
  7311. SAFT22kHz8BitStereo = SAFT22kHz8BitMono + 1,
  7312. SAFT22kHz16BitMono = SAFT22kHz8BitStereo + 1,
  7313. SAFT22kHz16BitStereo = SAFT22kHz16BitMono + 1,
  7314. SAFT24kHz8BitMono = SAFT22kHz16BitStereo + 1,
  7315. SAFT24kHz8BitStereo = SAFT24kHz8BitMono + 1,
  7316. SAFT24kHz16BitMono = SAFT24kHz8BitStereo + 1,
  7317. SAFT24kHz16BitStereo = SAFT24kHz16BitMono + 1,
  7318. SAFT32kHz8BitMono = SAFT24kHz16BitStereo + 1,
  7319. SAFT32kHz8BitStereo = SAFT32kHz8BitMono + 1,
  7320. SAFT32kHz16BitMono = SAFT32kHz8BitStereo + 1,
  7321. SAFT32kHz16BitStereo = SAFT32kHz16BitMono + 1,
  7322. SAFT44kHz8BitMono = SAFT32kHz16BitStereo + 1,
  7323. SAFT44kHz8BitStereo = SAFT44kHz8BitMono + 1,
  7324. SAFT44kHz16BitMono = SAFT44kHz8BitStereo + 1,
  7325. SAFT44kHz16BitStereo = SAFT44kHz16BitMono + 1,
  7326. SAFT48kHz8BitMono = SAFT44kHz16BitStereo + 1,
  7327. SAFT48kHz8BitStereo = SAFT48kHz8BitMono + 1,
  7328. SAFT48kHz16BitMono = SAFT48kHz8BitStereo + 1,
  7329. SAFT48kHz16BitStereo = SAFT48kHz16BitMono + 1,
  7330. SAFTTrueSpeech_8kHz1BitMono = SAFT48kHz16BitStereo + 1,
  7331. SAFTCCITT_ALaw_8kHzMono = SAFTTrueSpeech_8kHz1BitMono + 1,
  7332. SAFTCCITT_ALaw_8kHzStereo = SAFTCCITT_ALaw_8kHzMono + 1,
  7333. SAFTCCITT_ALaw_11kHzMono = SAFTCCITT_ALaw_8kHzStereo + 1,
  7334. SAFTCCITT_ALaw_11kHzStereo = SAFTCCITT_ALaw_11kHzMono + 1,
  7335. SAFTCCITT_ALaw_22kHzMono = SAFTCCITT_ALaw_11kHzStereo + 1,
  7336. SAFTCCITT_ALaw_22kHzStereo = SAFTCCITT_ALaw_22kHzMono + 1,
  7337. SAFTCCITT_ALaw_44kHzMono = SAFTCCITT_ALaw_22kHzStereo + 1,
  7338. SAFTCCITT_ALaw_44kHzStereo = SAFTCCITT_ALaw_44kHzMono + 1,
  7339. SAFTCCITT_uLaw_8kHzMono = SAFTCCITT_ALaw_44kHzStereo + 1,
  7340. SAFTCCITT_uLaw_8kHzStereo = SAFTCCITT_uLaw_8kHzMono + 1,
  7341. SAFTCCITT_uLaw_11kHzMono = SAFTCCITT_uLaw_8kHzStereo + 1,
  7342. SAFTCCITT_uLaw_11kHzStereo = SAFTCCITT_uLaw_11kHzMono + 1,
  7343. SAFTCCITT_uLaw_22kHzMono = SAFTCCITT_uLaw_11kHzStereo + 1,
  7344. SAFTCCITT_uLaw_22kHzStereo = SAFTCCITT_uLaw_22kHzMono + 1,
  7345. SAFTCCITT_uLaw_44kHzMono = SAFTCCITT_uLaw_22kHzStereo + 1,
  7346. SAFTCCITT_uLaw_44kHzStereo = SAFTCCITT_uLaw_44kHzMono + 1,
  7347. SAFTADPCM_8kHzMono = SAFTCCITT_uLaw_44kHzStereo + 1,
  7348. SAFTADPCM_8kHzStereo = SAFTADPCM_8kHzMono + 1,
  7349. SAFTADPCM_11kHzMono = SAFTADPCM_8kHzStereo + 1,
  7350. SAFTADPCM_11kHzStereo = SAFTADPCM_11kHzMono + 1,
  7351. SAFTADPCM_22kHzMono = SAFTADPCM_11kHzStereo + 1,
  7352. SAFTADPCM_22kHzStereo = SAFTADPCM_22kHzMono + 1,
  7353. SAFTADPCM_44kHzMono = SAFTADPCM_22kHzStereo + 1,
  7354. SAFTADPCM_44kHzStereo = SAFTADPCM_44kHzMono + 1,
  7355. SAFTGSM610_8kHzMono = SAFTADPCM_44kHzStereo + 1,
  7356. SAFTGSM610_11kHzMono = SAFTGSM610_8kHzMono + 1,
  7357. SAFTGSM610_22kHzMono = SAFTGSM610_11kHzMono + 1,
  7358. SAFTGSM610_44kHzMono = SAFTGSM610_22kHzMono + 1
  7359. } SpeechAudioFormatType;
  7360. typedef /* [hidden] */
  7361. enum DISPID_SpeechAudioFormat
  7362. { DISPID_SAFType = 1,
  7363. DISPID_SAFGuid = DISPID_SAFType + 1,
  7364. DISPID_SAFGetWaveFormatEx = DISPID_SAFGuid + 1,
  7365. DISPID_SAFSetWaveFormatEx = DISPID_SAFGetWaveFormatEx + 1
  7366. } DISPID_SpeechAudioFormat;
  7367. typedef /* [hidden] */
  7368. enum DISPID_SpeechBaseStream
  7369. { DISPID_SBSFormat = 1,
  7370. DISPID_SBSRead = DISPID_SBSFormat + 1,
  7371. DISPID_SBSWrite = DISPID_SBSRead + 1,
  7372. DISPID_SBSSeek = DISPID_SBSWrite + 1
  7373. } DISPID_SpeechBaseStream;
  7374. typedef
  7375. enum SpeechStreamSeekPositionType
  7376. { SSSPTRelativeToStart = STREAM_SEEK_SET,
  7377. SSSPTRelativeToCurrentPosition = STREAM_SEEK_CUR,
  7378. SSSPTRelativeToEnd = STREAM_SEEK_END
  7379. } SpeechStreamSeekPositionType;
  7380. typedef /* [hidden] */
  7381. enum DISPID_SpeechAudio
  7382. { DISPID_SAStatus = 200,
  7383. DISPID_SABufferInfo = DISPID_SAStatus + 1,
  7384. DISPID_SADefaultFormat = DISPID_SABufferInfo + 1,
  7385. DISPID_SAVolume = DISPID_SADefaultFormat + 1,
  7386. DISPID_SABufferNotifySize = DISPID_SAVolume + 1,
  7387. DISPID_SAEventHandle = DISPID_SABufferNotifySize + 1,
  7388. DISPID_SASetState = DISPID_SAEventHandle + 1
  7389. } DISPID_SpeechAudio;
  7390. typedef
  7391. enum SpeechAudioState
  7392. { SASClosed = SPAS_CLOSED,
  7393. SASStop = SPAS_STOP,
  7394. SASPause = SPAS_PAUSE,
  7395. SASRun = SPAS_RUN
  7396. } SpeechAudioState;
  7397. typedef /* [hidden] */
  7398. enum DISPID_SpeechMMSysAudio
  7399. { DISPID_SMSADeviceId = 300,
  7400. DISPID_SMSALineId = DISPID_SMSADeviceId + 1,
  7401. DISPID_SMSAMMHandle = DISPID_SMSALineId + 1
  7402. } DISPID_SpeechMMSysAudio;
  7403. typedef /* [hidden] */
  7404. enum DISPID_SpeechFileStream
  7405. { DISPID_SFSOpen = 100,
  7406. DISPID_SFSClose = DISPID_SFSOpen + 1
  7407. } DISPID_SpeechFileStream;
  7408. typedef
  7409. enum SpeechStreamFileMode
  7410. { SSFMOpenForRead = SPFM_OPEN_READONLY,
  7411. SSFMOpenReadWrite = SPFM_OPEN_READWRITE,
  7412. SSFMCreate = SPFM_CREATE,
  7413. SSFMCreateForWrite = SPFM_CREATE_ALWAYS
  7414. } SpeechStreamFileMode;
  7415. typedef /* [hidden] */
  7416. enum DISPID_SpeechCustomStream
  7417. { DISPID_SCSBaseStream = 100
  7418. } DISPID_SpeechCustomStream;
  7419. typedef /* [hidden] */
  7420. enum DISPID_SpeechMemoryStream
  7421. { DISPID_SMSSetData = 100,
  7422. DISPID_SMSGetData = DISPID_SMSSetData + 1
  7423. } DISPID_SpeechMemoryStream;
  7424. typedef /* [hidden] */
  7425. enum DISPID_SpeechAudioStatus
  7426. { DISPID_SASFreeBufferSpace = 1,
  7427. DISPID_SASNonBlockingIO = DISPID_SASFreeBufferSpace + 1,
  7428. DISPID_SASState = DISPID_SASNonBlockingIO + 1,
  7429. DISPID_SASCurrentSeekPosition = DISPID_SASState + 1,
  7430. DISPID_SASCurrentDevicePosition = DISPID_SASCurrentSeekPosition + 1
  7431. } DISPID_SpeechAudioStatus;
  7432. typedef /* [hidden] */
  7433. enum DISPID_SpeechAudioBufferInfo
  7434. { DISPID_SABIMinNotification = 1,
  7435. DISPID_SABIBufferSize = DISPID_SABIMinNotification + 1,
  7436. DISPID_SABIEventBias = DISPID_SABIBufferSize + 1
  7437. } DISPID_SpeechAudioBufferInfo;
  7438. typedef /* [hidden] */
  7439. enum DISPID_SpeechWaveFormatEx
  7440. { DISPID_SWFEFormatTag = 1,
  7441. DISPID_SWFEChannels = DISPID_SWFEFormatTag + 1,
  7442. DISPID_SWFESamplesPerSec = DISPID_SWFEChannels + 1,
  7443. DISPID_SWFEAvgBytesPerSec = DISPID_SWFESamplesPerSec + 1,
  7444. DISPID_SWFEBlockAlign = DISPID_SWFEAvgBytesPerSec + 1,
  7445. DISPID_SWFEBitsPerSample = DISPID_SWFEBlockAlign + 1,
  7446. DISPID_SWFEExtraData = DISPID_SWFEBitsPerSample + 1
  7447. } DISPID_SpeechWaveFormatEx;
  7448. typedef /* [hidden] */
  7449. enum DISPID_SpeechVoice
  7450. { DISPID_SVStatus = 1,
  7451. DISPID_SVVoice = DISPID_SVStatus + 1,
  7452. DISPID_SVAudioOutput = DISPID_SVVoice + 1,
  7453. DISPID_SVAudioOutputStream = DISPID_SVAudioOutput + 1,
  7454. DISPID_SVRate = DISPID_SVAudioOutputStream + 1,
  7455. DISPID_SVVolume = DISPID_SVRate + 1,
  7456. DISPID_SVAllowAudioOuputFormatChangesOnNextSet = DISPID_SVVolume + 1,
  7457. DISPID_SVEventInterests = DISPID_SVAllowAudioOuputFormatChangesOnNextSet + 1,
  7458. DISPID_SVPriority = DISPID_SVEventInterests + 1,
  7459. DISPID_SVAlertBoundary = DISPID_SVPriority + 1,
  7460. DISPID_SVSyncronousSpeakTimeout = DISPID_SVAlertBoundary + 1,
  7461. DISPID_SVSpeak = DISPID_SVSyncronousSpeakTimeout + 1,
  7462. DISPID_SVSpeakStream = DISPID_SVSpeak + 1,
  7463. DISPID_SVPause = DISPID_SVSpeakStream + 1,
  7464. DISPID_SVResume = DISPID_SVPause + 1,
  7465. DISPID_SVSkip = DISPID_SVResume + 1,
  7466. DISPID_SVGetVoices = DISPID_SVSkip + 1,
  7467. DISPID_SVGetAudioOutputs = DISPID_SVGetVoices + 1,
  7468. DISPID_SVWaitUntilDone = DISPID_SVGetAudioOutputs + 1,
  7469. DISPID_SVSpeakCompleteEvent = DISPID_SVWaitUntilDone + 1,
  7470. DISPID_SVIsUISupported = DISPID_SVSpeakCompleteEvent + 1,
  7471. DISPID_SVDisplayUI = DISPID_SVIsUISupported + 1
  7472. } DISPID_SpeechVoice;
  7473. typedef
  7474. enum SpeechVoicePriority
  7475. { SVPNormal = SPVPRI_NORMAL,
  7476. SVPAlert = SPVPRI_ALERT,
  7477. SVPOver = SPVPRI_OVER
  7478. } SpeechVoicePriority;
  7479. typedef
  7480. enum SpeechVoiceSpeakFlags
  7481. { SVSFDefault = SPF_DEFAULT,
  7482. SVSFlagsAsync = SPF_ASYNC,
  7483. SVSFPurgeBeforeSpeak = SPF_PURGEBEFORESPEAK,
  7484. SVSFIsFilename = SPF_IS_FILENAME,
  7485. SVSFIsXML = SPF_IS_XML,
  7486. SVSFIsNotXML = SPF_IS_NOT_XML,
  7487. SVSFPersistXML = SPF_PERSIST_XML,
  7488. SVSFNLPSpeakPunc = SPF_NLP_SPEAK_PUNC,
  7489. SVSFNLPMask = SPF_NLP_MASK,
  7490. SVSFVoiceMask = SPF_VOICE_MASK,
  7491. SVSFUnusedFlags = SPF_UNUSED_FLAGS
  7492. } SpeechVoiceSpeakFlags;
  7493. typedef
  7494. enum SpeechVoiceEvents
  7495. { SVEStartInputStream = 1L << 1,
  7496. SVEEndInputStream = 1L << 2,
  7497. SVEVoiceChange = 1L << 3,
  7498. SVEBookmark = 1L << 4,
  7499. SVEWordBoundary = 1L << 5,
  7500. SVEPhoneme = 1L << 6,
  7501. SVESentenceBoundary = 1L << 7,
  7502. SVEViseme = 1L << 8,
  7503. SVEAudioLevel = 1L << 9,
  7504. SVEPrivate = 1L << 15,
  7505. SVEAllEvents = 0x83fe
  7506. } SpeechVoiceEvents;
  7507. typedef /* [hidden] */
  7508. enum DISPID_SpeechVoiceStatus
  7509. { DISPID_SVSCurrentStreamNumber = 1,
  7510. DISPID_SVSLastStreamNumberQueued = DISPID_SVSCurrentStreamNumber + 1,
  7511. DISPID_SVSLastResult = DISPID_SVSLastStreamNumberQueued + 1,
  7512. DISPID_SVSRunningState = DISPID_SVSLastResult + 1,
  7513. DISPID_SVSInputWordPosition = DISPID_SVSRunningState + 1,
  7514. DISPID_SVSInputWordLength = DISPID_SVSInputWordPosition + 1,
  7515. DISPID_SVSInputSentencePosition = DISPID_SVSInputWordLength + 1,
  7516. DISPID_SVSInputSentenceLength = DISPID_SVSInputSentencePosition + 1,
  7517. DISPID_SVSLastBookmark = DISPID_SVSInputSentenceLength + 1,
  7518. DISPID_SVSLastBookmarkId = DISPID_SVSLastBookmark + 1,
  7519. DISPID_SVSPhonemeId = DISPID_SVSLastBookmarkId + 1,
  7520. DISPID_SVSVisemeId = DISPID_SVSPhonemeId + 1
  7521. } DISPID_SpeechVoiceStatus;
  7522. typedef
  7523. enum SpeechRunState
  7524. { SRSEDone = SPRS_DONE,
  7525. SRSEIsSpeaking = SPRS_IS_SPEAKING
  7526. } SpeechRunState;
  7527. typedef
  7528. enum SpeechVisemeType
  7529. { SVP_0 = 0,
  7530. SVP_1 = SVP_0 + 1,
  7531. SVP_2 = SVP_1 + 1,
  7532. SVP_3 = SVP_2 + 1,
  7533. SVP_4 = SVP_3 + 1,
  7534. SVP_5 = SVP_4 + 1,
  7535. SVP_6 = SVP_5 + 1,
  7536. SVP_7 = SVP_6 + 1,
  7537. SVP_8 = SVP_7 + 1,
  7538. SVP_9 = SVP_8 + 1,
  7539. SVP_10 = SVP_9 + 1,
  7540. SVP_11 = SVP_10 + 1,
  7541. SVP_12 = SVP_11 + 1,
  7542. SVP_13 = SVP_12 + 1,
  7543. SVP_14 = SVP_13 + 1,
  7544. SVP_15 = SVP_14 + 1,
  7545. SVP_16 = SVP_15 + 1,
  7546. SVP_17 = SVP_16 + 1,
  7547. SVP_18 = SVP_17 + 1,
  7548. SVP_19 = SVP_18 + 1,
  7549. SVP_20 = SVP_19 + 1,
  7550. SVP_21 = SVP_20 + 1
  7551. } SpeechVisemeType;
  7552. typedef
  7553. enum SpeechVisemeFeature
  7554. { SVF_None = 0,
  7555. SVF_Stressed = SPVFEATURE_STRESSED,
  7556. SVF_Emphasis = SPVFEATURE_EMPHASIS
  7557. } SpeechVisemeFeature;
  7558. typedef /* [hidden] */
  7559. enum DISPID_SpeechVoiceEvent
  7560. { DISPID_SVEStreamStart = 1,
  7561. DISPID_SVEStreamEnd = DISPID_SVEStreamStart + 1,
  7562. DISPID_SVEVoiceChange = DISPID_SVEStreamEnd + 1,
  7563. DISPID_SVEBookmark = DISPID_SVEVoiceChange + 1,
  7564. DISPID_SVEWord = DISPID_SVEBookmark + 1,
  7565. DISPID_SVEPhoneme = DISPID_SVEWord + 1,
  7566. DISPID_SVESentenceBoundary = DISPID_SVEPhoneme + 1,
  7567. DISPID_SVEViseme = DISPID_SVESentenceBoundary + 1,
  7568. DISPID_SVEAudioLevel = DISPID_SVEViseme + 1,
  7569. DISPID_SVEEnginePrivate = DISPID_SVEAudioLevel + 1
  7570. } DISPID_SpeechVoiceEvent;
  7571. typedef /* [hidden] */
  7572. enum DISPID_SpeechRecognizer
  7573. { DISPID_SRRecognizer = 1,
  7574. DISPID_SRAllowAudioInputFormatChangesOnNextSet = DISPID_SRRecognizer + 1,
  7575. DISPID_SRAudioInput = DISPID_SRAllowAudioInputFormatChangesOnNextSet + 1,
  7576. DISPID_SRAudioInputStream = DISPID_SRAudioInput + 1,
  7577. DISPID_SRIsShared = DISPID_SRAudioInputStream + 1,
  7578. DISPID_SRState = DISPID_SRIsShared + 1,
  7579. DISPID_SRStatus = DISPID_SRState + 1,
  7580. DISPID_SRProfile = DISPID_SRStatus + 1,
  7581. DISPID_SREmulateRecognition = DISPID_SRProfile + 1,
  7582. DISPID_SRCreateRecoContext = DISPID_SREmulateRecognition + 1,
  7583. DISPID_SRGetFormat = DISPID_SRCreateRecoContext + 1,
  7584. DISPID_SRSetPropertyNumber = DISPID_SRGetFormat + 1,
  7585. DISPID_SRGetPropertyNumber = DISPID_SRSetPropertyNumber + 1,
  7586. DISPID_SRSetPropertyString = DISPID_SRGetPropertyNumber + 1,
  7587. DISPID_SRGetPropertyString = DISPID_SRSetPropertyString + 1,
  7588. DISPID_SRIsUISupported = DISPID_SRGetPropertyString + 1,
  7589. DISPID_SRDisplayUI = DISPID_SRIsUISupported + 1,
  7590. DISPID_SRGetRecognizers = DISPID_SRDisplayUI + 1,
  7591. DISPID_SVGetAudioInputs = DISPID_SRGetRecognizers + 1,
  7592. DISPID_SVGetProfiles = DISPID_SVGetAudioInputs + 1
  7593. } DISPID_SpeechRecognizer;
  7594. typedef
  7595. enum SpeechRecognizerState
  7596. { SRSInactive = SPRST_INACTIVE,
  7597. SRSActive = SPRST_ACTIVE,
  7598. SRSActiveAlways = SPRST_ACTIVE_ALWAYS,
  7599. SRSInactiveWithPurge = SPRST_INACTIVE_WITH_PURGE
  7600. } SpeechRecognizerState;
  7601. typedef
  7602. enum SpeechDisplayAttributes
  7603. { SDA_No_Trailing_Space = 0,
  7604. SDA_One_Trailing_Space = SPAF_ONE_TRAILING_SPACE,
  7605. SDA_Two_Trailing_Spaces = SPAF_TWO_TRAILING_SPACES,
  7606. SDA_Consume_Leading_Spaces = SPAF_CONSUME_LEADING_SPACES
  7607. } SpeechDisplayAttributes;
  7608. typedef
  7609. enum SpeechFormatType
  7610. { SFTInput = SPWF_INPUT,
  7611. SFTSREngine = SPWF_SRENGINE
  7612. } SpeechFormatType;
  7613. typedef /* [hidden] */
  7614. enum DISPID_SpeechRecognizerStatus
  7615. { DISPID_SRSAudioStatus = 1,
  7616. DISPID_SRSCurrentStreamPosition = DISPID_SRSAudioStatus + 1,
  7617. DISPID_SRSCurrentStreamNumber = DISPID_SRSCurrentStreamPosition + 1,
  7618. DISPID_SRSNumberOfActiveRules = DISPID_SRSCurrentStreamNumber + 1,
  7619. DISPID_SRSClsidEngine = DISPID_SRSNumberOfActiveRules + 1,
  7620. DISPID_SRSSupportedLanguages = DISPID_SRSClsidEngine + 1
  7621. } DISPID_SpeechRecognizerStatus;
  7622. typedef /* [hidden] */
  7623. enum DISPID_SpeechRecoContext
  7624. { DISPID_SRCRecognizer = 1,
  7625. DISPID_SRCAudioInInterferenceStatus = DISPID_SRCRecognizer + 1,
  7626. DISPID_SRCRequestedUIType = DISPID_SRCAudioInInterferenceStatus + 1,
  7627. DISPID_SRCVoice = DISPID_SRCRequestedUIType + 1,
  7628. DISPID_SRAllowVoiceFormatMatchingOnNextSet = DISPID_SRCVoice + 1,
  7629. DISPID_SRCVoicePurgeEvent = DISPID_SRAllowVoiceFormatMatchingOnNextSet + 1,
  7630. DISPID_SRCEventInterests = DISPID_SRCVoicePurgeEvent + 1,
  7631. DISPID_SRCCmdMaxAlternates = DISPID_SRCEventInterests + 1,
  7632. DISPID_SRCState = DISPID_SRCCmdMaxAlternates + 1,
  7633. DISPID_SRCRetainedAudio = DISPID_SRCState + 1,
  7634. DISPID_SRCRetainedAudioFormat = DISPID_SRCRetainedAudio + 1,
  7635. DISPID_SRCPause = DISPID_SRCRetainedAudioFormat + 1,
  7636. DISPID_SRCResume = DISPID_SRCPause + 1,
  7637. DISPID_SRCCreateGrammar = DISPID_SRCResume + 1,
  7638. DISPID_SRCCreateResultFromMemory = DISPID_SRCCreateGrammar + 1,
  7639. DISPID_SRCBookmark = DISPID_SRCCreateResultFromMemory + 1,
  7640. DISPID_SRCSetAdaptationData = DISPID_SRCBookmark + 1
  7641. } DISPID_SpeechRecoContext;
  7642. typedef
  7643. enum SpeechRetainedAudioOptions
  7644. { SRAONone = SPAO_NONE,
  7645. SRAORetainAudio = SPAO_RETAIN_AUDIO
  7646. } SpeechRetainedAudioOptions;
  7647. typedef
  7648. enum SpeechBookmarkOptions
  7649. { SBONone = SPBO_NONE,
  7650. SBOPause = SPBO_PAUSE
  7651. } SpeechBookmarkOptions;
  7652. typedef
  7653. enum SpeechInterference
  7654. { SINone = SPINTERFERENCE_NONE,
  7655. SINoise = SPINTERFERENCE_NOISE,
  7656. SINoSignal = SPINTERFERENCE_NOSIGNAL,
  7657. SITooLoud = SPINTERFERENCE_TOOLOUD,
  7658. SITooQuiet = SPINTERFERENCE_TOOQUIET,
  7659. SITooFast = SPINTERFERENCE_TOOFAST,
  7660. SITooSlow = SPINTERFERENCE_TOOSLOW
  7661. } SpeechInterference;
  7662. typedef
  7663. enum SpeechRecoEvents
  7664. { SREStreamEnd = 1L << 0,
  7665. SRESoundStart = 1L << 1,
  7666. SRESoundEnd = 1L << 2,
  7667. SREPhraseStart = 1L << 3,
  7668. SRERecognition = 1L << 4,
  7669. SREHypothesis = 1L << 5,
  7670. SREBookmark = 1L << 6,
  7671. SREPropertyNumChange = 1L << 7,
  7672. SREPropertyStringChange = 1L << 8,
  7673. SREFalseRecognition = 1L << 9,
  7674. SREInterference = 1L << 10,
  7675. SRERequestUI = 1L << 11,
  7676. SREStateChange = 1L << 12,
  7677. SREAdaptation = 1L << 13,
  7678. SREStreamStart = 1L << 14,
  7679. SRERecoOtherContext = 1L << 15,
  7680. SREAudioLevel = 1L << 16,
  7681. SREPrivate = 1L << 18,
  7682. SREAllEvents = 0x5ffff
  7683. } SpeechRecoEvents;
  7684. typedef
  7685. enum SpeechRecoContextState
  7686. { SRCS_Disabled = SPCS_DISABLED,
  7687. SRCS_Enabled = SPCS_ENABLED
  7688. } SpeechRecoContextState;
  7689. typedef /* [hidden] */
  7690. enum DISPIDSPRG
  7691. { DISPID_SRGId = 1,
  7692. DISPID_SRGRecoContext = DISPID_SRGId + 1,
  7693. DISPID_SRGState = DISPID_SRGRecoContext + 1,
  7694. DISPID_SRGRules = DISPID_SRGState + 1,
  7695. DISPID_SRGReset = DISPID_SRGRules + 1,
  7696. DISPID_SRGCommit = DISPID_SRGReset + 1,
  7697. DISPID_SRGCmdLoadFromFile = DISPID_SRGCommit + 1,
  7698. DISPID_SRGCmdLoadFromObject = DISPID_SRGCmdLoadFromFile + 1,
  7699. DISPID_SRGCmdLoadFromResource = DISPID_SRGCmdLoadFromObject + 1,
  7700. DISPID_SRGCmdLoadFromMemory = DISPID_SRGCmdLoadFromResource + 1,
  7701. DISPID_SRGCmdLoadFromProprietaryGrammar = DISPID_SRGCmdLoadFromMemory + 1,
  7702. DISPID_SRGCmdSetRuleState = DISPID_SRGCmdLoadFromProprietaryGrammar + 1,
  7703. DISPID_SRGCmdSetRuleIdState = DISPID_SRGCmdSetRuleState + 1,
  7704. DISPID_SRGDictationLoad = DISPID_SRGCmdSetRuleIdState + 1,
  7705. DISPID_SRGDictationUnload = DISPID_SRGDictationLoad + 1,
  7706. DISPID_SRGDictationSetState = DISPID_SRGDictationUnload + 1,
  7707. DISPID_SRGSetWordSequenceData = DISPID_SRGDictationSetState + 1,
  7708. DISPID_SRGSetTextSelection = DISPID_SRGSetWordSequenceData + 1,
  7709. DISPID_SRGIsPronounceable = DISPID_SRGSetTextSelection + 1
  7710. } DISPIDSPRG;
  7711. typedef
  7712. enum SpeechLoadOption
  7713. { SLOStatic = SPLO_STATIC,
  7714. SLODynamic = SPLO_DYNAMIC
  7715. } SpeechLoadOption;
  7716. typedef
  7717. enum SpeechWordPronounceable
  7718. { SWPUnknownWordUnpronounceable = SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE,
  7719. SWPUnknownWordPronounceable = SPWP_UNKNOWN_WORD_PRONOUNCEABLE,
  7720. SWPKnownWordPronounceable = SPWP_KNOWN_WORD_PRONOUNCEABLE
  7721. } SpeechWordPronounceable;
  7722. typedef
  7723. enum SpeechGrammarState
  7724. { SGSEnabled = SPGS_ENABLED,
  7725. SGSDisabled = SPGS_DISABLED,
  7726. SGSExclusive = SPGS_EXCLUSIVE
  7727. } SpeechGrammarState;
  7728. typedef
  7729. enum SpeechRuleState
  7730. { SGDSInactive = SPRS_INACTIVE,
  7731. SGDSActive = SPRS_ACTIVE,
  7732. SGDSActiveWithAutoPause = SPRS_ACTIVE_WITH_AUTO_PAUSE
  7733. } SpeechRuleState;
  7734. typedef
  7735. enum SpeechRuleAttributes
  7736. { SRATopLevel = SPRAF_TopLevel,
  7737. SRADefaultToActive = SPRAF_Active,
  7738. SRAExport = SPRAF_Export,
  7739. SRAImport = SPRAF_Import,
  7740. SRAInterpreter = SPRAF_Interpreter,
  7741. SRADynamic = SPRAF_Dynamic
  7742. } SpeechRuleAttributes;
  7743. typedef
  7744. enum SpeechGrammarWordType
  7745. { SGDisplay = SPWT_DISPLAY,
  7746. SGLexical = SPWT_LEXICAL,
  7747. SGPronounciation = SPWT_PRONUNCIATION
  7748. } SpeechGrammarWordType;
  7749. typedef /* [hidden] */
  7750. enum DISPID_SpeechRecoContextEvents
  7751. { DISPID_SRCEStartStream = 1,
  7752. DISPID_SRCEEndStream = DISPID_SRCEStartStream + 1,
  7753. DISPID_SRCEBookmark = DISPID_SRCEEndStream + 1,
  7754. DISPID_SRCESoundStart = DISPID_SRCEBookmark + 1,
  7755. DISPID_SRCESoundEnd = DISPID_SRCESoundStart + 1,
  7756. DISPID_SRCEPhraseStart = DISPID_SRCESoundEnd + 1,
  7757. DISPID_SRCERecognition = DISPID_SRCEPhraseStart + 1,
  7758. DISPID_SRCEHypothesis = DISPID_SRCERecognition + 1,
  7759. DISPID_SRCEPropertyNumberChange = DISPID_SRCEHypothesis + 1,
  7760. DISPID_SRCEPropertyStringChange = DISPID_SRCEPropertyNumberChange + 1,
  7761. DISPID_SRCEFalseRecognition = DISPID_SRCEPropertyStringChange + 1,
  7762. DISPID_SRCEInterference = DISPID_SRCEFalseRecognition + 1,
  7763. DISPID_SRCERequestUI = DISPID_SRCEInterference + 1,
  7764. DISPID_SRCERecognizerStateChange = DISPID_SRCERequestUI + 1,
  7765. DISPID_SRCEAdaptation = DISPID_SRCERecognizerStateChange + 1,
  7766. DISPID_SRCERecognitionForOtherContext = DISPID_SRCEAdaptation + 1,
  7767. DISPID_SRCEAudioLevel = DISPID_SRCERecognitionForOtherContext + 1,
  7768. DISPID_SRCEEnginePrivate = DISPID_SRCEAudioLevel + 1
  7769. } DISPID_SpeechRecoContextEvents;
  7770. typedef
  7771. enum SpeechRecognitionType
  7772. { SRTStandard = 0,
  7773. SRTAutopause = SPREF_AutoPause,
  7774. SRTEmulated = SPREF_Emulated
  7775. } SpeechRecognitionType;
  7776. typedef /* [hidden] */
  7777. enum DISPID_SpeechGrammarRule
  7778. { DISPID_SGRAttributes = 1,
  7779. DISPID_SGRInitialState = DISPID_SGRAttributes + 1,
  7780. DISPID_SGRName = DISPID_SGRInitialState + 1,
  7781. DISPID_SGRId = DISPID_SGRName + 1,
  7782. DISPID_SGRClear = DISPID_SGRId + 1,
  7783. DISPID_SGRAddResource = DISPID_SGRClear + 1,
  7784. DISPID_SGRAddState = DISPID_SGRAddResource + 1
  7785. } DISPID_SpeechGrammarRule;
  7786. typedef /* [hidden] */
  7787. enum DISPID_SpeechGrammarRules
  7788. { DISPID_SGRsCount = 1,
  7789. DISPID_SGRsDynamic = DISPID_SGRsCount + 1,
  7790. DISPID_SGRsAdd = DISPID_SGRsDynamic + 1,
  7791. DISPID_SGRsCommit = DISPID_SGRsAdd + 1,
  7792. DISPID_SGRsCommitAndSave = DISPID_SGRsCommit + 1,
  7793. DISPID_SGRsFindRule = DISPID_SGRsCommitAndSave + 1,
  7794. DISPID_SGRsItem = DISPID_VALUE,
  7795. DISPID_SGRs_NewEnum = DISPID_NEWENUM
  7796. } DISPID_SpeechGrammarRules;
  7797. typedef /* [hidden] */
  7798. enum DISPID_SpeechGrammarRuleState
  7799. { DISPID_SGRSRule = 1,
  7800. DISPID_SGRSTransitions = DISPID_SGRSRule + 1,
  7801. DISPID_SGRSAddWordTransition = DISPID_SGRSTransitions + 1,
  7802. DISPID_SGRSAddRuleTransition = DISPID_SGRSAddWordTransition + 1,
  7803. DISPID_SGRSAddSpecialTransition = DISPID_SGRSAddRuleTransition + 1
  7804. } DISPID_SpeechGrammarRuleState;
  7805. typedef
  7806. enum SpeechSpecialTransitionType
  7807. { SSTTWildcard = 1,
  7808. SSTTDictation = SSTTWildcard + 1,
  7809. SSTTTextBuffer = SSTTDictation + 1
  7810. } SpeechSpecialTransitionType;
  7811. typedef /* [hidden] */
  7812. enum DISPID_SpeechGrammarRuleStateTransitions
  7813. { DISPID_SGRSTsCount = 1,
  7814. DISPID_SGRSTsItem = DISPID_VALUE,
  7815. DISPID_SGRSTs_NewEnum = DISPID_NEWENUM
  7816. } DISPID_SpeechGrammarRuleStateTransitions;
  7817. typedef /* [hidden] */
  7818. enum DISPID_SpeechGrammarRuleStateTransition
  7819. { DISPID_SGRSTType = 1,
  7820. DISPID_SGRSTText = DISPID_SGRSTType + 1,
  7821. DISPID_SGRSTRule = DISPID_SGRSTText + 1,
  7822. DISPID_SGRSTWeight = DISPID_SGRSTRule + 1,
  7823. DISPID_SGRSTPropertyName = DISPID_SGRSTWeight + 1,
  7824. DISPID_SGRSTPropertyId = DISPID_SGRSTPropertyName + 1,
  7825. DISPID_SGRSTPropertyValue = DISPID_SGRSTPropertyId + 1,
  7826. DISPID_SGRSTNextState = DISPID_SGRSTPropertyValue + 1
  7827. } DISPID_SpeechGrammarRuleStateTransition;
  7828. typedef
  7829. enum SpeechGrammarRuleStateTransitionType
  7830. { SGRSTTEpsilon = 0,
  7831. SGRSTTWord = SGRSTTEpsilon + 1,
  7832. SGRSTTRule = SGRSTTWord + 1,
  7833. SGRSTTDictation = SGRSTTRule + 1,
  7834. SGRSTTWildcard = SGRSTTDictation + 1,
  7835. SGRSTTTextBuffer = SGRSTTWildcard + 1
  7836. } SpeechGrammarRuleStateTransitionType;
  7837. typedef /* [hidden] */
  7838. enum DISPIDSPTSI
  7839. { DISPIDSPTSI_ActiveOffset = 1,
  7840. DISPIDSPTSI_ActiveLength = DISPIDSPTSI_ActiveOffset + 1,
  7841. DISPIDSPTSI_SelectionOffset = DISPIDSPTSI_ActiveLength + 1,
  7842. DISPIDSPTSI_SelectionLength = DISPIDSPTSI_SelectionOffset + 1
  7843. } DISPIDSPTSI;
  7844. typedef /* [hidden] */
  7845. enum DISPID_SpeechRecoResult
  7846. { DISPID_SRRRecoContext = 1,
  7847. DISPID_SRRTimes = DISPID_SRRRecoContext + 1,
  7848. DISPID_SRRAudioFormat = DISPID_SRRTimes + 1,
  7849. DISPID_SRRPhraseInfo = DISPID_SRRAudioFormat + 1,
  7850. DISPID_SRRAlternates = DISPID_SRRPhraseInfo + 1,
  7851. DISPID_SRRAudio = DISPID_SRRAlternates + 1,
  7852. DISPID_SRRSpeakAudio = DISPID_SRRAudio + 1,
  7853. DISPID_SRRSaveToMemory = DISPID_SRRSpeakAudio + 1,
  7854. DISPID_SRRDiscardResultInfo = DISPID_SRRSaveToMemory + 1
  7855. } DISPID_SpeechRecoResult;
  7856. typedef
  7857. enum SpeechDiscardType
  7858. { SDTProperty = SPDF_PROPERTY,
  7859. SDTReplacement = SPDF_REPLACEMENT,
  7860. SDTRule = SPDF_RULE,
  7861. SDTDisplayText = SPDF_DISPLAYTEXT,
  7862. SDTLexicalForm = SPDF_LEXICALFORM,
  7863. SDTPronunciation = SPDF_PRONUNCIATION,
  7864. SDTAudio = SPDF_AUDIO,
  7865. SDTAlternates = SPDF_ALTERNATES,
  7866. SDTAll = SPDF_ALL
  7867. } SpeechDiscardType;
  7868. typedef /* [hidden] */
  7869. enum DISPID_SpeechPhraseBuilder
  7870. { DISPID_SPPBRestorePhraseFromMemory = 1
  7871. } DISPID_SpeechPhraseBuilder;
  7872. typedef /* [hidden] */
  7873. enum DISPID_SpeechRecoResultTimes
  7874. { DISPID_SRRTStreamTime = 1,
  7875. DISPID_SRRTLength = DISPID_SRRTStreamTime + 1,
  7876. DISPID_SRRTTickCount = DISPID_SRRTLength + 1,
  7877. DISPID_SRRTOffsetFromStart = DISPID_SRRTTickCount + 1
  7878. } DISPID_SpeechRecoResultTimes;
  7879. typedef /* [hidden] */
  7880. enum DISPID_SpeechPhraseAlternate
  7881. { DISPID_SPARecoResult = 1,
  7882. DISPID_SPAStartElementInResult = DISPID_SPARecoResult + 1,
  7883. DISPID_SPANumberOfElementsInResult = DISPID_SPAStartElementInResult + 1,
  7884. DISPID_SPAPhraseInfo = DISPID_SPANumberOfElementsInResult + 1,
  7885. DISPID_SPACommit = DISPID_SPAPhraseInfo + 1
  7886. } DISPID_SpeechPhraseAlternate;
  7887. typedef /* [hidden] */
  7888. enum DISPID_SpeechPhraseAlternates
  7889. { DISPID_SPAsCount = 1,
  7890. DISPID_SPAsItem = DISPID_VALUE,
  7891. DISPID_SPAs_NewEnum = DISPID_NEWENUM
  7892. } DISPID_SpeechPhraseAlternates;
  7893. typedef /* [hidden] */
  7894. enum DISPID_SpeechPhraseInfo
  7895. { DISPID_SPILanguageId = 1,
  7896. DISPID_SPIGrammarId = DISPID_SPILanguageId + 1,
  7897. DISPID_SPIStartTime = DISPID_SPIGrammarId + 1,
  7898. DISPID_SPIAudioStreamPosition = DISPID_SPIStartTime + 1,
  7899. DISPID_SPIAudioSizeBytes = DISPID_SPIAudioStreamPosition + 1,
  7900. DISPID_SPIRetainedSizeBytes = DISPID_SPIAudioSizeBytes + 1,
  7901. DISPID_SPIAudioSizeTime = DISPID_SPIRetainedSizeBytes + 1,
  7902. DISPID_SPIRule = DISPID_SPIAudioSizeTime + 1,
  7903. DISPID_SPIProperties = DISPID_SPIRule + 1,
  7904. DISPID_SPIElements = DISPID_SPIProperties + 1,
  7905. DISPID_SPIReplacements = DISPID_SPIElements + 1,
  7906. DISPID_SPIEngineId = DISPID_SPIReplacements + 1,
  7907. DISPID_SPIEnginePrivateData = DISPID_SPIEngineId + 1,
  7908. DISPID_SPISaveToMemory = DISPID_SPIEnginePrivateData + 1,
  7909. DISPID_SPIGetText = DISPID_SPISaveToMemory + 1,
  7910. DISPID_SPIGetDisplayAttributes = DISPID_SPIGetText + 1
  7911. } DISPID_SpeechPhraseInfo;
  7912. typedef /* [hidden] */
  7913. enum DISPID_SpeechPhraseElement
  7914. { DISPID_SPEAudioTimeOffset = 1,
  7915. DISPID_SPEAudioSizeTime = DISPID_SPEAudioTimeOffset + 1,
  7916. DISPID_SPEAudioStreamOffset = DISPID_SPEAudioSizeTime + 1,
  7917. DISPID_SPEAudioSizeBytes = DISPID_SPEAudioStreamOffset + 1,
  7918. DISPID_SPERetainedStreamOffset = DISPID_SPEAudioSizeBytes + 1,
  7919. DISPID_SPERetainedSizeBytes = DISPID_SPERetainedStreamOffset + 1,
  7920. DISPID_SPEDisplayText = DISPID_SPERetainedSizeBytes + 1,
  7921. DISPID_SPELexicalForm = DISPID_SPEDisplayText + 1,
  7922. DISPID_SPEPronunciation = DISPID_SPELexicalForm + 1,
  7923. DISPID_SPEDisplayAttributes = DISPID_SPEPronunciation + 1,
  7924. DISPID_SPERequiredConfidence = DISPID_SPEDisplayAttributes + 1,
  7925. DISPID_SPEActualConfidence = DISPID_SPERequiredConfidence + 1,
  7926. DISPID_SPEEngineConfidence = DISPID_SPEActualConfidence + 1
  7927. } DISPID_SpeechPhraseElement;
  7928. typedef
  7929. enum SpeechEngineConfidence
  7930. { SECLowConfidence = -1,
  7931. SECNormalConfidence = 0,
  7932. SECHighConfidence = 1
  7933. } SpeechEngineConfidence;
  7934. typedef /* [hidden] */
  7935. enum DISPID_SpeechPhraseElements
  7936. { DISPID_SPEsCount = 1,
  7937. DISPID_SPEsItem = DISPID_VALUE,
  7938. DISPID_SPEs_NewEnum = DISPID_NEWENUM
  7939. } DISPID_SpeechPhraseElements;
  7940. typedef /* [hidden] */
  7941. enum DISPID_SpeechPhraseReplacement
  7942. { DISPID_SPRDisplayAttributes = 1,
  7943. DISPID_SPRText = DISPID_SPRDisplayAttributes + 1,
  7944. DISPID_SPRFirstElement = DISPID_SPRText + 1,
  7945. DISPID_SPRNumberOfElements = DISPID_SPRFirstElement + 1
  7946. } DISPID_SpeechPhraseReplacement;
  7947. typedef /* [hidden] */
  7948. enum DISPID_SpeechPhraseReplacements
  7949. { DISPID_SPRsCount = 1,
  7950. DISPID_SPRsItem = DISPID_VALUE,
  7951. DISPID_SPRs_NewEnum = DISPID_NEWENUM
  7952. } DISPID_SpeechPhraseReplacements;
  7953. typedef /* [hidden] */
  7954. enum DISPID_SpeechPhraseProperty
  7955. { DISPID_SPPName = 1,
  7956. DISPID_SPPId = DISPID_SPPName + 1,
  7957. DISPID_SPPValue = DISPID_SPPId + 1,
  7958. DISPID_SPPFirstElement = DISPID_SPPValue + 1,
  7959. DISPID_SPPNumberOfElements = DISPID_SPPFirstElement + 1,
  7960. DISPID_SPPEngineConfidence = DISPID_SPPNumberOfElements + 1,
  7961. DISPID_SPPConfidence = DISPID_SPPEngineConfidence + 1,
  7962. DISPID_SPPParent = DISPID_SPPConfidence + 1,
  7963. DISPID_SPPChildren = DISPID_SPPParent + 1
  7964. } DISPID_SpeechPhraseProperty;
  7965. typedef /* [hidden] */
  7966. enum DISPID_SpeechPhraseProperties
  7967. { DISPID_SPPsCount = 1,
  7968. DISPID_SPPsItem = DISPID_VALUE,
  7969. DISPID_SPPs_NewEnum = DISPID_NEWENUM
  7970. } DISPID_SpeechPhraseProperties;
  7971. typedef /* [hidden] */
  7972. enum DISPID_SpeechPhraseRule
  7973. { DISPID_SPRuleName = 1,
  7974. DISPID_SPRuleId = DISPID_SPRuleName + 1,
  7975. DISPID_SPRuleFirstElement = DISPID_SPRuleId + 1,
  7976. DISPID_SPRuleNumberOfElements = DISPID_SPRuleFirstElement + 1,
  7977. DISPID_SPRuleParent = DISPID_SPRuleNumberOfElements + 1,
  7978. DISPID_SPRuleChildren = DISPID_SPRuleParent + 1,
  7979. DISPID_SPRuleConfidence = DISPID_SPRuleChildren + 1,
  7980. DISPID_SPRuleEngineConfidence = DISPID_SPRuleConfidence + 1
  7981. } DISPID_SpeechPhraseRule;
  7982. typedef /* [hidden] */
  7983. enum DISPID_SpeechPhraseRules
  7984. { DISPID_SPRulesCount = 1,
  7985. DISPID_SPRulesItem = DISPID_VALUE,
  7986. DISPID_SPRules_NewEnum = DISPID_NEWENUM
  7987. } DISPID_SpeechPhraseRules;
  7988. typedef /* [hidden] */
  7989. enum DISPID_SpeechLexicon
  7990. { DISPID_SLGenerationId = 1,
  7991. DISPID_SLGetWords = DISPID_SLGenerationId + 1,
  7992. DISPID_SLAddPronunciation = DISPID_SLGetWords + 1,
  7993. DISPID_SLAddPronunciationByPhoneIds = DISPID_SLAddPronunciation + 1,
  7994. DISPID_SLRemovePronunciation = DISPID_SLAddPronunciationByPhoneIds + 1,
  7995. DISPID_SLRemovePronunciationByPhoneIds = DISPID_SLRemovePronunciation + 1,
  7996. DISPID_SLGetPronunciations = DISPID_SLRemovePronunciationByPhoneIds + 1,
  7997. DISPID_SLGetGenerationChange = DISPID_SLGetPronunciations + 1
  7998. } DISPID_SpeechLexicon;
  7999. typedef
  8000. enum SpeechLexiconType
  8001. { SLTUser = eLEXTYPE_USER,
  8002. SLTApp = eLEXTYPE_APP
  8003. } SpeechLexiconType;
  8004. typedef
  8005. enum SpeechPartOfSpeech
  8006. { SPSNotOverriden = SPPS_NotOverriden,
  8007. SPSUnknown = SPPS_Unknown,
  8008. SPSNoun = SPPS_Noun,
  8009. SPSVerb = SPPS_Verb,
  8010. SPSModifier = SPPS_Modifier,
  8011. SPSFunction = SPPS_Function,
  8012. SPSInterjection = SPPS_Interjection
  8013. } SpeechPartOfSpeech;
  8014. typedef /* [hidden] */
  8015. enum DISPID_SpeechLexiconWords
  8016. { DISPID_SLWsCount = 1,
  8017. DISPID_SLWsItem = DISPID_VALUE,
  8018. DISPID_SLWs_NewEnum = DISPID_NEWENUM
  8019. } DISPID_SpeechLexiconWords;
  8020. typedef
  8021. enum SpeechWordType
  8022. { SWTAdded = eWORDTYPE_ADDED,
  8023. SWTDeleted = eWORDTYPE_DELETED
  8024. } SpeechWordType;
  8025. typedef /* [hidden] */
  8026. enum DISPID_SpeechLexiconWord
  8027. { DISPID_SLWLangId = 1,
  8028. DISPID_SLWType = DISPID_SLWLangId + 1,
  8029. DISPID_SLWWord = DISPID_SLWType + 1,
  8030. DISPID_SLWPronunciations = DISPID_SLWWord + 1
  8031. } DISPID_SpeechLexiconWord;
  8032. typedef /* [hidden] */
  8033. enum DISPID_SpeechLexiconProns
  8034. { DISPID_SLPsCount = 1,
  8035. DISPID_SLPsItem = DISPID_VALUE,
  8036. DISPID_SLPs_NewEnum = DISPID_NEWENUM
  8037. } DISPID_SpeechLexiconProns;
  8038. typedef /* [hidden] */
  8039. enum DISPID_SpeechLexiconPronunciation
  8040. { DISPID_SLPType = 1,
  8041. DISPID_SLPLangId = DISPID_SLPType + 1,
  8042. DISPID_SLPPartOfSpeech = DISPID_SLPLangId + 1,
  8043. DISPID_SLPPhoneIds = DISPID_SLPPartOfSpeech + 1,
  8044. DISPID_SLPSymbolic = DISPID_SLPPhoneIds + 1
  8045. } DISPID_SpeechLexiconPronunciation;
  8046. typedef /* [hidden] */
  8047. enum DISPID_SpeechPhoneConverter
  8048. { DISPID_SPCLangId = 1,
  8049. DISPID_SPCPhoneToId = DISPID_SPCLangId + 1,
  8050. DISPID_SPCIdToPhone = DISPID_SPCPhoneToId + 1
  8051. } DISPID_SpeechPhoneConverter;
  8052. EXTERN_C const IID LIBID_SpeechLib;
  8053. #ifndef __ISpeechDataKey_INTERFACE_DEFINED__
  8054. #define __ISpeechDataKey_INTERFACE_DEFINED__
  8055. /* interface ISpeechDataKey */
  8056. /* [unique][helpstring][dual][uuid][object] */
  8057. EXTERN_C const IID IID_ISpeechDataKey;
  8058. #if defined(__cplusplus) && !defined(CINTERFACE)
  8059. MIDL_INTERFACE("CE17C09B-4EFA-44d5-A4C9-59D9585AB0CD")
  8060. ISpeechDataKey : public IDispatch
  8061. {
  8062. public:
  8063. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetBinaryValue(
  8064. /* [in] */ const BSTR ValueName,
  8065. /* [in] */ VARIANT Value) = 0;
  8066. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetBinaryValue(
  8067. /* [in] */ const BSTR ValueName,
  8068. /* [retval][out] */ VARIANT *Value) = 0;
  8069. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetStringValue(
  8070. /* [in] */ const BSTR ValueName,
  8071. /* [in] */ const BSTR Value) = 0;
  8072. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetStringValue(
  8073. /* [in] */ const BSTR ValueName,
  8074. /* [retval][out] */ BSTR *Value) = 0;
  8075. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetLongValue(
  8076. /* [in] */ const BSTR ValueName,
  8077. /* [in] */ long Value) = 0;
  8078. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetLongValue(
  8079. /* [in] */ const BSTR ValueName,
  8080. /* [retval][out] */ long *Value) = 0;
  8081. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE OpenKey(
  8082. /* [in] */ const BSTR SubKeyName,
  8083. /* [retval][out] */ ISpeechDataKey **SubKey) = 0;
  8084. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateKey(
  8085. /* [in] */ const BSTR SubKeyName,
  8086. /* [retval][out] */ ISpeechDataKey **SubKey) = 0;
  8087. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DeleteKey(
  8088. /* [in] */ const BSTR SubKeyName) = 0;
  8089. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DeleteValue(
  8090. /* [in] */ const BSTR ValueName) = 0;
  8091. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumKeys(
  8092. /* [in] */ long Index,
  8093. /* [retval][out] */ BSTR *SubKeyName) = 0;
  8094. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumValues(
  8095. /* [in] */ long Index,
  8096. /* [retval][out] */ BSTR *ValueName) = 0;
  8097. };
  8098. #else /* C style interface */
  8099. typedef struct ISpeechDataKeyVtbl
  8100. {
  8101. BEGIN_INTERFACE
  8102. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8103. ISpeechDataKey * This,
  8104. /* [in] */ REFIID riid,
  8105. /* [iid_is][out] */ void **ppvObject);
  8106. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8107. ISpeechDataKey * This);
  8108. ULONG ( STDMETHODCALLTYPE *Release )(
  8109. ISpeechDataKey * This);
  8110. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8111. ISpeechDataKey * This,
  8112. /* [out] */ UINT *pctinfo);
  8113. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8114. ISpeechDataKey * This,
  8115. /* [in] */ UINT iTInfo,
  8116. /* [in] */ LCID lcid,
  8117. /* [out] */ ITypeInfo **ppTInfo);
  8118. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8119. ISpeechDataKey * This,
  8120. /* [in] */ REFIID riid,
  8121. /* [size_is][in] */ LPOLESTR *rgszNames,
  8122. /* [in] */ UINT cNames,
  8123. /* [in] */ LCID lcid,
  8124. /* [size_is][out] */ DISPID *rgDispId);
  8125. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8126. ISpeechDataKey * This,
  8127. /* [in] */ DISPID dispIdMember,
  8128. /* [in] */ REFIID riid,
  8129. /* [in] */ LCID lcid,
  8130. /* [in] */ WORD wFlags,
  8131. /* [out][in] */ DISPPARAMS *pDispParams,
  8132. /* [out] */ VARIANT *pVarResult,
  8133. /* [out] */ EXCEPINFO *pExcepInfo,
  8134. /* [out] */ UINT *puArgErr);
  8135. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetBinaryValue )(
  8136. ISpeechDataKey * This,
  8137. /* [in] */ const BSTR ValueName,
  8138. /* [in] */ VARIANT Value);
  8139. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetBinaryValue )(
  8140. ISpeechDataKey * This,
  8141. /* [in] */ const BSTR ValueName,
  8142. /* [retval][out] */ VARIANT *Value);
  8143. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStringValue )(
  8144. ISpeechDataKey * This,
  8145. /* [in] */ const BSTR ValueName,
  8146. /* [in] */ const BSTR Value);
  8147. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStringValue )(
  8148. ISpeechDataKey * This,
  8149. /* [in] */ const BSTR ValueName,
  8150. /* [retval][out] */ BSTR *Value);
  8151. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetLongValue )(
  8152. ISpeechDataKey * This,
  8153. /* [in] */ const BSTR ValueName,
  8154. /* [in] */ long Value);
  8155. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLongValue )(
  8156. ISpeechDataKey * This,
  8157. /* [in] */ const BSTR ValueName,
  8158. /* [retval][out] */ long *Value);
  8159. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *OpenKey )(
  8160. ISpeechDataKey * This,
  8161. /* [in] */ const BSTR SubKeyName,
  8162. /* [retval][out] */ ISpeechDataKey **SubKey);
  8163. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateKey )(
  8164. ISpeechDataKey * This,
  8165. /* [in] */ const BSTR SubKeyName,
  8166. /* [retval][out] */ ISpeechDataKey **SubKey);
  8167. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteKey )(
  8168. ISpeechDataKey * This,
  8169. /* [in] */ const BSTR SubKeyName);
  8170. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteValue )(
  8171. ISpeechDataKey * This,
  8172. /* [in] */ const BSTR ValueName);
  8173. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumKeys )(
  8174. ISpeechDataKey * This,
  8175. /* [in] */ long Index,
  8176. /* [retval][out] */ BSTR *SubKeyName);
  8177. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumValues )(
  8178. ISpeechDataKey * This,
  8179. /* [in] */ long Index,
  8180. /* [retval][out] */ BSTR *ValueName);
  8181. END_INTERFACE
  8182. } ISpeechDataKeyVtbl;
  8183. interface ISpeechDataKey
  8184. {
  8185. CONST_VTBL struct ISpeechDataKeyVtbl *lpVtbl;
  8186. };
  8187. #ifdef COBJMACROS
  8188. #define ISpeechDataKey_QueryInterface(This,riid,ppvObject) \
  8189. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8190. #define ISpeechDataKey_AddRef(This) \
  8191. (This)->lpVtbl -> AddRef(This)
  8192. #define ISpeechDataKey_Release(This) \
  8193. (This)->lpVtbl -> Release(This)
  8194. #define ISpeechDataKey_GetTypeInfoCount(This,pctinfo) \
  8195. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8196. #define ISpeechDataKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8197. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8198. #define ISpeechDataKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8199. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8200. #define ISpeechDataKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8201. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8202. #define ISpeechDataKey_SetBinaryValue(This,ValueName,Value) \
  8203. (This)->lpVtbl -> SetBinaryValue(This,ValueName,Value)
  8204. #define ISpeechDataKey_GetBinaryValue(This,ValueName,Value) \
  8205. (This)->lpVtbl -> GetBinaryValue(This,ValueName,Value)
  8206. #define ISpeechDataKey_SetStringValue(This,ValueName,Value) \
  8207. (This)->lpVtbl -> SetStringValue(This,ValueName,Value)
  8208. #define ISpeechDataKey_GetStringValue(This,ValueName,Value) \
  8209. (This)->lpVtbl -> GetStringValue(This,ValueName,Value)
  8210. #define ISpeechDataKey_SetLongValue(This,ValueName,Value) \
  8211. (This)->lpVtbl -> SetLongValue(This,ValueName,Value)
  8212. #define ISpeechDataKey_GetLongValue(This,ValueName,Value) \
  8213. (This)->lpVtbl -> GetLongValue(This,ValueName,Value)
  8214. #define ISpeechDataKey_OpenKey(This,SubKeyName,SubKey) \
  8215. (This)->lpVtbl -> OpenKey(This,SubKeyName,SubKey)
  8216. #define ISpeechDataKey_CreateKey(This,SubKeyName,SubKey) \
  8217. (This)->lpVtbl -> CreateKey(This,SubKeyName,SubKey)
  8218. #define ISpeechDataKey_DeleteKey(This,SubKeyName) \
  8219. (This)->lpVtbl -> DeleteKey(This,SubKeyName)
  8220. #define ISpeechDataKey_DeleteValue(This,ValueName) \
  8221. (This)->lpVtbl -> DeleteValue(This,ValueName)
  8222. #define ISpeechDataKey_EnumKeys(This,Index,SubKeyName) \
  8223. (This)->lpVtbl -> EnumKeys(This,Index,SubKeyName)
  8224. #define ISpeechDataKey_EnumValues(This,Index,ValueName) \
  8225. (This)->lpVtbl -> EnumValues(This,Index,ValueName)
  8226. #endif /* COBJMACROS */
  8227. #endif /* C style interface */
  8228. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetBinaryValue_Proxy(
  8229. ISpeechDataKey * This,
  8230. /* [in] */ const BSTR ValueName,
  8231. /* [in] */ VARIANT Value);
  8232. void __RPC_STUB ISpeechDataKey_SetBinaryValue_Stub(
  8233. IRpcStubBuffer *This,
  8234. IRpcChannelBuffer *_pRpcChannelBuffer,
  8235. PRPC_MESSAGE _pRpcMessage,
  8236. DWORD *_pdwStubPhase);
  8237. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetBinaryValue_Proxy(
  8238. ISpeechDataKey * This,
  8239. /* [in] */ const BSTR ValueName,
  8240. /* [retval][out] */ VARIANT *Value);
  8241. void __RPC_STUB ISpeechDataKey_GetBinaryValue_Stub(
  8242. IRpcStubBuffer *This,
  8243. IRpcChannelBuffer *_pRpcChannelBuffer,
  8244. PRPC_MESSAGE _pRpcMessage,
  8245. DWORD *_pdwStubPhase);
  8246. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetStringValue_Proxy(
  8247. ISpeechDataKey * This,
  8248. /* [in] */ const BSTR ValueName,
  8249. /* [in] */ const BSTR Value);
  8250. void __RPC_STUB ISpeechDataKey_SetStringValue_Stub(
  8251. IRpcStubBuffer *This,
  8252. IRpcChannelBuffer *_pRpcChannelBuffer,
  8253. PRPC_MESSAGE _pRpcMessage,
  8254. DWORD *_pdwStubPhase);
  8255. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetStringValue_Proxy(
  8256. ISpeechDataKey * This,
  8257. /* [in] */ const BSTR ValueName,
  8258. /* [retval][out] */ BSTR *Value);
  8259. void __RPC_STUB ISpeechDataKey_GetStringValue_Stub(
  8260. IRpcStubBuffer *This,
  8261. IRpcChannelBuffer *_pRpcChannelBuffer,
  8262. PRPC_MESSAGE _pRpcMessage,
  8263. DWORD *_pdwStubPhase);
  8264. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_SetLongValue_Proxy(
  8265. ISpeechDataKey * This,
  8266. /* [in] */ const BSTR ValueName,
  8267. /* [in] */ long Value);
  8268. void __RPC_STUB ISpeechDataKey_SetLongValue_Stub(
  8269. IRpcStubBuffer *This,
  8270. IRpcChannelBuffer *_pRpcChannelBuffer,
  8271. PRPC_MESSAGE _pRpcMessage,
  8272. DWORD *_pdwStubPhase);
  8273. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_GetLongValue_Proxy(
  8274. ISpeechDataKey * This,
  8275. /* [in] */ const BSTR ValueName,
  8276. /* [retval][out] */ long *Value);
  8277. void __RPC_STUB ISpeechDataKey_GetLongValue_Stub(
  8278. IRpcStubBuffer *This,
  8279. IRpcChannelBuffer *_pRpcChannelBuffer,
  8280. PRPC_MESSAGE _pRpcMessage,
  8281. DWORD *_pdwStubPhase);
  8282. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_OpenKey_Proxy(
  8283. ISpeechDataKey * This,
  8284. /* [in] */ const BSTR SubKeyName,
  8285. /* [retval][out] */ ISpeechDataKey **SubKey);
  8286. void __RPC_STUB ISpeechDataKey_OpenKey_Stub(
  8287. IRpcStubBuffer *This,
  8288. IRpcChannelBuffer *_pRpcChannelBuffer,
  8289. PRPC_MESSAGE _pRpcMessage,
  8290. DWORD *_pdwStubPhase);
  8291. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_CreateKey_Proxy(
  8292. ISpeechDataKey * This,
  8293. /* [in] */ const BSTR SubKeyName,
  8294. /* [retval][out] */ ISpeechDataKey **SubKey);
  8295. void __RPC_STUB ISpeechDataKey_CreateKey_Stub(
  8296. IRpcStubBuffer *This,
  8297. IRpcChannelBuffer *_pRpcChannelBuffer,
  8298. PRPC_MESSAGE _pRpcMessage,
  8299. DWORD *_pdwStubPhase);
  8300. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_DeleteKey_Proxy(
  8301. ISpeechDataKey * This,
  8302. /* [in] */ const BSTR SubKeyName);
  8303. void __RPC_STUB ISpeechDataKey_DeleteKey_Stub(
  8304. IRpcStubBuffer *This,
  8305. IRpcChannelBuffer *_pRpcChannelBuffer,
  8306. PRPC_MESSAGE _pRpcMessage,
  8307. DWORD *_pdwStubPhase);
  8308. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_DeleteValue_Proxy(
  8309. ISpeechDataKey * This,
  8310. /* [in] */ const BSTR ValueName);
  8311. void __RPC_STUB ISpeechDataKey_DeleteValue_Stub(
  8312. IRpcStubBuffer *This,
  8313. IRpcChannelBuffer *_pRpcChannelBuffer,
  8314. PRPC_MESSAGE _pRpcMessage,
  8315. DWORD *_pdwStubPhase);
  8316. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_EnumKeys_Proxy(
  8317. ISpeechDataKey * This,
  8318. /* [in] */ long Index,
  8319. /* [retval][out] */ BSTR *SubKeyName);
  8320. void __RPC_STUB ISpeechDataKey_EnumKeys_Stub(
  8321. IRpcStubBuffer *This,
  8322. IRpcChannelBuffer *_pRpcChannelBuffer,
  8323. PRPC_MESSAGE _pRpcMessage,
  8324. DWORD *_pdwStubPhase);
  8325. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechDataKey_EnumValues_Proxy(
  8326. ISpeechDataKey * This,
  8327. /* [in] */ long Index,
  8328. /* [retval][out] */ BSTR *ValueName);
  8329. void __RPC_STUB ISpeechDataKey_EnumValues_Stub(
  8330. IRpcStubBuffer *This,
  8331. IRpcChannelBuffer *_pRpcChannelBuffer,
  8332. PRPC_MESSAGE _pRpcMessage,
  8333. DWORD *_pdwStubPhase);
  8334. #endif /* __ISpeechDataKey_INTERFACE_DEFINED__ */
  8335. #ifndef __ISpeechObjectToken_INTERFACE_DEFINED__
  8336. #define __ISpeechObjectToken_INTERFACE_DEFINED__
  8337. /* interface ISpeechObjectToken */
  8338. /* [unique][helpstring][dual][uuid][object] */
  8339. EXTERN_C const IID IID_ISpeechObjectToken;
  8340. #if defined(__cplusplus) && !defined(CINTERFACE)
  8341. MIDL_INTERFACE("C74A3ADC-B727-4500-A84A-B526721C8B8C")
  8342. ISpeechObjectToken : public IDispatch
  8343. {
  8344. public:
  8345. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  8346. /* [retval][out] */ BSTR *ObjectId) = 0;
  8347. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DataKey(
  8348. /* [retval][out] */ ISpeechDataKey **DataKey) = 0;
  8349. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Category(
  8350. /* [retval][out] */ ISpeechObjectTokenCategory **Category) = 0;
  8351. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetDescription(
  8352. /* [defaultvalue][in] */ long Locale,
  8353. /* [retval][out] */ BSTR *Description) = 0;
  8354. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetId(
  8355. /* [in] */ BSTR Id,
  8356. /* [defaultvalue][in] */ BSTR CategoryID = L"",
  8357. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist = 0) = 0;
  8358. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAttribute(
  8359. /* [in] */ BSTR AttributeName,
  8360. /* [retval][out] */ BSTR *AttributeValue) = 0;
  8361. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateInstance(
  8362. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8363. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8364. /* [retval][out] */ IUnknown **Object) = 0;
  8365. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE Remove(
  8366. /* [in] */ BSTR ObjectStorageCLSID) = 0;
  8367. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetStorageFileName(
  8368. /* [in] */ BSTR ObjectStorageCLSID,
  8369. /* [in] */ BSTR KeyName,
  8370. /* [in] */ BSTR FileName,
  8371. /* [in] */ SpeechTokenShellFolder Folder,
  8372. /* [retval][out] */ BSTR *FilePath) = 0;
  8373. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  8374. /* [in] */ BSTR ObjectStorageCLSID,
  8375. /* [in] */ BSTR KeyName,
  8376. /* [in] */ VARIANT_BOOL DeleteFile) = 0;
  8377. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  8378. /* [in] */ const BSTR TypeOfUI,
  8379. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8380. /* [defaultvalue][in] */ IUnknown *Object,
  8381. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  8382. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  8383. /* [in] */ long hWnd,
  8384. /* [in] */ BSTR Title,
  8385. /* [in] */ const BSTR TypeOfUI,
  8386. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0,
  8387. /* [defaultvalue][in] */ IUnknown *Object = 0) = 0;
  8388. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE MatchesAttributes(
  8389. /* [in] */ BSTR Attributes,
  8390. /* [retval][out] */ VARIANT_BOOL *Matches) = 0;
  8391. };
  8392. #else /* C style interface */
  8393. typedef struct ISpeechObjectTokenVtbl
  8394. {
  8395. BEGIN_INTERFACE
  8396. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8397. ISpeechObjectToken * This,
  8398. /* [in] */ REFIID riid,
  8399. /* [iid_is][out] */ void **ppvObject);
  8400. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8401. ISpeechObjectToken * This);
  8402. ULONG ( STDMETHODCALLTYPE *Release )(
  8403. ISpeechObjectToken * This);
  8404. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8405. ISpeechObjectToken * This,
  8406. /* [out] */ UINT *pctinfo);
  8407. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8408. ISpeechObjectToken * This,
  8409. /* [in] */ UINT iTInfo,
  8410. /* [in] */ LCID lcid,
  8411. /* [out] */ ITypeInfo **ppTInfo);
  8412. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8413. ISpeechObjectToken * This,
  8414. /* [in] */ REFIID riid,
  8415. /* [size_is][in] */ LPOLESTR *rgszNames,
  8416. /* [in] */ UINT cNames,
  8417. /* [in] */ LCID lcid,
  8418. /* [size_is][out] */ DISPID *rgDispId);
  8419. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8420. ISpeechObjectToken * This,
  8421. /* [in] */ DISPID dispIdMember,
  8422. /* [in] */ REFIID riid,
  8423. /* [in] */ LCID lcid,
  8424. /* [in] */ WORD wFlags,
  8425. /* [out][in] */ DISPPARAMS *pDispParams,
  8426. /* [out] */ VARIANT *pVarResult,
  8427. /* [out] */ EXCEPINFO *pExcepInfo,
  8428. /* [out] */ UINT *puArgErr);
  8429. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  8430. ISpeechObjectToken * This,
  8431. /* [retval][out] */ BSTR *ObjectId);
  8432. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataKey )(
  8433. ISpeechObjectToken * This,
  8434. /* [retval][out] */ ISpeechDataKey **DataKey);
  8435. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )(
  8436. ISpeechObjectToken * This,
  8437. /* [retval][out] */ ISpeechObjectTokenCategory **Category);
  8438. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDescription )(
  8439. ISpeechObjectToken * This,
  8440. /* [defaultvalue][in] */ long Locale,
  8441. /* [retval][out] */ BSTR *Description);
  8442. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetId )(
  8443. ISpeechObjectToken * This,
  8444. /* [in] */ BSTR Id,
  8445. /* [defaultvalue][in] */ BSTR CategoryID,
  8446. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8447. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAttribute )(
  8448. ISpeechObjectToken * This,
  8449. /* [in] */ BSTR AttributeName,
  8450. /* [retval][out] */ BSTR *AttributeValue);
  8451. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )(
  8452. ISpeechObjectToken * This,
  8453. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8454. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8455. /* [retval][out] */ IUnknown **Object);
  8456. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Remove )(
  8457. ISpeechObjectToken * This,
  8458. /* [in] */ BSTR ObjectStorageCLSID);
  8459. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStorageFileName )(
  8460. ISpeechObjectToken * This,
  8461. /* [in] */ BSTR ObjectStorageCLSID,
  8462. /* [in] */ BSTR KeyName,
  8463. /* [in] */ BSTR FileName,
  8464. /* [in] */ SpeechTokenShellFolder Folder,
  8465. /* [retval][out] */ BSTR *FilePath);
  8466. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveStorageFileName )(
  8467. ISpeechObjectToken * This,
  8468. /* [in] */ BSTR ObjectStorageCLSID,
  8469. /* [in] */ BSTR KeyName,
  8470. /* [in] */ VARIANT_BOOL DeleteFile);
  8471. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  8472. ISpeechObjectToken * This,
  8473. /* [in] */ const BSTR TypeOfUI,
  8474. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8475. /* [defaultvalue][in] */ IUnknown *Object,
  8476. /* [retval][out] */ VARIANT_BOOL *Supported);
  8477. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  8478. ISpeechObjectToken * This,
  8479. /* [in] */ long hWnd,
  8480. /* [in] */ BSTR Title,
  8481. /* [in] */ const BSTR TypeOfUI,
  8482. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8483. /* [defaultvalue][in] */ IUnknown *Object);
  8484. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *MatchesAttributes )(
  8485. ISpeechObjectToken * This,
  8486. /* [in] */ BSTR Attributes,
  8487. /* [retval][out] */ VARIANT_BOOL *Matches);
  8488. END_INTERFACE
  8489. } ISpeechObjectTokenVtbl;
  8490. interface ISpeechObjectToken
  8491. {
  8492. CONST_VTBL struct ISpeechObjectTokenVtbl *lpVtbl;
  8493. };
  8494. #ifdef COBJMACROS
  8495. #define ISpeechObjectToken_QueryInterface(This,riid,ppvObject) \
  8496. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8497. #define ISpeechObjectToken_AddRef(This) \
  8498. (This)->lpVtbl -> AddRef(This)
  8499. #define ISpeechObjectToken_Release(This) \
  8500. (This)->lpVtbl -> Release(This)
  8501. #define ISpeechObjectToken_GetTypeInfoCount(This,pctinfo) \
  8502. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8503. #define ISpeechObjectToken_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8504. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8505. #define ISpeechObjectToken_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8506. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8507. #define ISpeechObjectToken_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8508. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8509. #define ISpeechObjectToken_get_Id(This,ObjectId) \
  8510. (This)->lpVtbl -> get_Id(This,ObjectId)
  8511. #define ISpeechObjectToken_get_DataKey(This,DataKey) \
  8512. (This)->lpVtbl -> get_DataKey(This,DataKey)
  8513. #define ISpeechObjectToken_get_Category(This,Category) \
  8514. (This)->lpVtbl -> get_Category(This,Category)
  8515. #define ISpeechObjectToken_GetDescription(This,Locale,Description) \
  8516. (This)->lpVtbl -> GetDescription(This,Locale,Description)
  8517. #define ISpeechObjectToken_SetId(This,Id,CategoryID,CreateIfNotExist) \
  8518. (This)->lpVtbl -> SetId(This,Id,CategoryID,CreateIfNotExist)
  8519. #define ISpeechObjectToken_GetAttribute(This,AttributeName,AttributeValue) \
  8520. (This)->lpVtbl -> GetAttribute(This,AttributeName,AttributeValue)
  8521. #define ISpeechObjectToken_CreateInstance(This,pUnkOuter,ClsContext,Object) \
  8522. (This)->lpVtbl -> CreateInstance(This,pUnkOuter,ClsContext,Object)
  8523. #define ISpeechObjectToken_Remove(This,ObjectStorageCLSID) \
  8524. (This)->lpVtbl -> Remove(This,ObjectStorageCLSID)
  8525. #define ISpeechObjectToken_GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath) \
  8526. (This)->lpVtbl -> GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath)
  8527. #define ISpeechObjectToken_RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile) \
  8528. (This)->lpVtbl -> RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile)
  8529. #define ISpeechObjectToken_IsUISupported(This,TypeOfUI,ExtraData,Object,Supported) \
  8530. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Object,Supported)
  8531. #define ISpeechObjectToken_DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object) \
  8532. (This)->lpVtbl -> DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object)
  8533. #define ISpeechObjectToken_MatchesAttributes(This,Attributes,Matches) \
  8534. (This)->lpVtbl -> MatchesAttributes(This,Attributes,Matches)
  8535. #endif /* COBJMACROS */
  8536. #endif /* C style interface */
  8537. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_Id_Proxy(
  8538. ISpeechObjectToken * This,
  8539. /* [retval][out] */ BSTR *ObjectId);
  8540. void __RPC_STUB ISpeechObjectToken_get_Id_Stub(
  8541. IRpcStubBuffer *This,
  8542. IRpcChannelBuffer *_pRpcChannelBuffer,
  8543. PRPC_MESSAGE _pRpcMessage,
  8544. DWORD *_pdwStubPhase);
  8545. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_DataKey_Proxy(
  8546. ISpeechObjectToken * This,
  8547. /* [retval][out] */ ISpeechDataKey **DataKey);
  8548. void __RPC_STUB ISpeechObjectToken_get_DataKey_Stub(
  8549. IRpcStubBuffer *This,
  8550. IRpcChannelBuffer *_pRpcChannelBuffer,
  8551. PRPC_MESSAGE _pRpcMessage,
  8552. DWORD *_pdwStubPhase);
  8553. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_get_Category_Proxy(
  8554. ISpeechObjectToken * This,
  8555. /* [retval][out] */ ISpeechObjectTokenCategory **Category);
  8556. void __RPC_STUB ISpeechObjectToken_get_Category_Stub(
  8557. IRpcStubBuffer *This,
  8558. IRpcChannelBuffer *_pRpcChannelBuffer,
  8559. PRPC_MESSAGE _pRpcMessage,
  8560. DWORD *_pdwStubPhase);
  8561. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetDescription_Proxy(
  8562. ISpeechObjectToken * This,
  8563. /* [defaultvalue][in] */ long Locale,
  8564. /* [retval][out] */ BSTR *Description);
  8565. void __RPC_STUB ISpeechObjectToken_GetDescription_Stub(
  8566. IRpcStubBuffer *This,
  8567. IRpcChannelBuffer *_pRpcChannelBuffer,
  8568. PRPC_MESSAGE _pRpcMessage,
  8569. DWORD *_pdwStubPhase);
  8570. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_SetId_Proxy(
  8571. ISpeechObjectToken * This,
  8572. /* [in] */ BSTR Id,
  8573. /* [defaultvalue][in] */ BSTR CategoryID,
  8574. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8575. void __RPC_STUB ISpeechObjectToken_SetId_Stub(
  8576. IRpcStubBuffer *This,
  8577. IRpcChannelBuffer *_pRpcChannelBuffer,
  8578. PRPC_MESSAGE _pRpcMessage,
  8579. DWORD *_pdwStubPhase);
  8580. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetAttribute_Proxy(
  8581. ISpeechObjectToken * This,
  8582. /* [in] */ BSTR AttributeName,
  8583. /* [retval][out] */ BSTR *AttributeValue);
  8584. void __RPC_STUB ISpeechObjectToken_GetAttribute_Stub(
  8585. IRpcStubBuffer *This,
  8586. IRpcChannelBuffer *_pRpcChannelBuffer,
  8587. PRPC_MESSAGE _pRpcMessage,
  8588. DWORD *_pdwStubPhase);
  8589. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_CreateInstance_Proxy(
  8590. ISpeechObjectToken * This,
  8591. /* [defaultvalue][in] */ IUnknown *pUnkOuter,
  8592. /* [defaultvalue][in] */ SpeechTokenContext ClsContext,
  8593. /* [retval][out] */ IUnknown **Object);
  8594. void __RPC_STUB ISpeechObjectToken_CreateInstance_Stub(
  8595. IRpcStubBuffer *This,
  8596. IRpcChannelBuffer *_pRpcChannelBuffer,
  8597. PRPC_MESSAGE _pRpcMessage,
  8598. DWORD *_pdwStubPhase);
  8599. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_Remove_Proxy(
  8600. ISpeechObjectToken * This,
  8601. /* [in] */ BSTR ObjectStorageCLSID);
  8602. void __RPC_STUB ISpeechObjectToken_Remove_Stub(
  8603. IRpcStubBuffer *This,
  8604. IRpcChannelBuffer *_pRpcChannelBuffer,
  8605. PRPC_MESSAGE _pRpcMessage,
  8606. DWORD *_pdwStubPhase);
  8607. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_GetStorageFileName_Proxy(
  8608. ISpeechObjectToken * This,
  8609. /* [in] */ BSTR ObjectStorageCLSID,
  8610. /* [in] */ BSTR KeyName,
  8611. /* [in] */ BSTR FileName,
  8612. /* [in] */ SpeechTokenShellFolder Folder,
  8613. /* [retval][out] */ BSTR *FilePath);
  8614. void __RPC_STUB ISpeechObjectToken_GetStorageFileName_Stub(
  8615. IRpcStubBuffer *This,
  8616. IRpcChannelBuffer *_pRpcChannelBuffer,
  8617. PRPC_MESSAGE _pRpcMessage,
  8618. DWORD *_pdwStubPhase);
  8619. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_RemoveStorageFileName_Proxy(
  8620. ISpeechObjectToken * This,
  8621. /* [in] */ BSTR ObjectStorageCLSID,
  8622. /* [in] */ BSTR KeyName,
  8623. /* [in] */ VARIANT_BOOL DeleteFile);
  8624. void __RPC_STUB ISpeechObjectToken_RemoveStorageFileName_Stub(
  8625. IRpcStubBuffer *This,
  8626. IRpcChannelBuffer *_pRpcChannelBuffer,
  8627. PRPC_MESSAGE _pRpcMessage,
  8628. DWORD *_pdwStubPhase);
  8629. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_IsUISupported_Proxy(
  8630. ISpeechObjectToken * This,
  8631. /* [in] */ const BSTR TypeOfUI,
  8632. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8633. /* [defaultvalue][in] */ IUnknown *Object,
  8634. /* [retval][out] */ VARIANT_BOOL *Supported);
  8635. void __RPC_STUB ISpeechObjectToken_IsUISupported_Stub(
  8636. IRpcStubBuffer *This,
  8637. IRpcChannelBuffer *_pRpcChannelBuffer,
  8638. PRPC_MESSAGE _pRpcMessage,
  8639. DWORD *_pdwStubPhase);
  8640. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_DisplayUI_Proxy(
  8641. ISpeechObjectToken * This,
  8642. /* [in] */ long hWnd,
  8643. /* [in] */ BSTR Title,
  8644. /* [in] */ const BSTR TypeOfUI,
  8645. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  8646. /* [defaultvalue][in] */ IUnknown *Object);
  8647. void __RPC_STUB ISpeechObjectToken_DisplayUI_Stub(
  8648. IRpcStubBuffer *This,
  8649. IRpcChannelBuffer *_pRpcChannelBuffer,
  8650. PRPC_MESSAGE _pRpcMessage,
  8651. DWORD *_pdwStubPhase);
  8652. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectToken_MatchesAttributes_Proxy(
  8653. ISpeechObjectToken * This,
  8654. /* [in] */ BSTR Attributes,
  8655. /* [retval][out] */ VARIANT_BOOL *Matches);
  8656. void __RPC_STUB ISpeechObjectToken_MatchesAttributes_Stub(
  8657. IRpcStubBuffer *This,
  8658. IRpcChannelBuffer *_pRpcChannelBuffer,
  8659. PRPC_MESSAGE _pRpcMessage,
  8660. DWORD *_pdwStubPhase);
  8661. #endif /* __ISpeechObjectToken_INTERFACE_DEFINED__ */
  8662. #ifndef __ISpeechObjectTokens_INTERFACE_DEFINED__
  8663. #define __ISpeechObjectTokens_INTERFACE_DEFINED__
  8664. /* interface ISpeechObjectTokens */
  8665. /* [unique][helpstring][dual][uuid][object] */
  8666. EXTERN_C const IID IID_ISpeechObjectTokens;
  8667. #if defined(__cplusplus) && !defined(CINTERFACE)
  8668. MIDL_INTERFACE("9285B776-2E7B-4bc0-B53E-580EB6FA967F")
  8669. ISpeechObjectTokens : public IDispatch
  8670. {
  8671. public:
  8672. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  8673. /* [retval][out] */ long *Count) = 0;
  8674. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  8675. /* [in] */ long Index,
  8676. /* [retval][out] */ ISpeechObjectToken **Token) = 0;
  8677. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  8678. /* [retval][out] */ IUnknown **ppEnumVARIANT) = 0;
  8679. };
  8680. #else /* C style interface */
  8681. typedef struct ISpeechObjectTokensVtbl
  8682. {
  8683. BEGIN_INTERFACE
  8684. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8685. ISpeechObjectTokens * This,
  8686. /* [in] */ REFIID riid,
  8687. /* [iid_is][out] */ void **ppvObject);
  8688. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8689. ISpeechObjectTokens * This);
  8690. ULONG ( STDMETHODCALLTYPE *Release )(
  8691. ISpeechObjectTokens * This);
  8692. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8693. ISpeechObjectTokens * This,
  8694. /* [out] */ UINT *pctinfo);
  8695. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8696. ISpeechObjectTokens * This,
  8697. /* [in] */ UINT iTInfo,
  8698. /* [in] */ LCID lcid,
  8699. /* [out] */ ITypeInfo **ppTInfo);
  8700. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8701. ISpeechObjectTokens * This,
  8702. /* [in] */ REFIID riid,
  8703. /* [size_is][in] */ LPOLESTR *rgszNames,
  8704. /* [in] */ UINT cNames,
  8705. /* [in] */ LCID lcid,
  8706. /* [size_is][out] */ DISPID *rgDispId);
  8707. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8708. ISpeechObjectTokens * This,
  8709. /* [in] */ DISPID dispIdMember,
  8710. /* [in] */ REFIID riid,
  8711. /* [in] */ LCID lcid,
  8712. /* [in] */ WORD wFlags,
  8713. /* [out][in] */ DISPPARAMS *pDispParams,
  8714. /* [out] */ VARIANT *pVarResult,
  8715. /* [out] */ EXCEPINFO *pExcepInfo,
  8716. /* [out] */ UINT *puArgErr);
  8717. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  8718. ISpeechObjectTokens * This,
  8719. /* [retval][out] */ long *Count);
  8720. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  8721. ISpeechObjectTokens * This,
  8722. /* [in] */ long Index,
  8723. /* [retval][out] */ ISpeechObjectToken **Token);
  8724. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  8725. ISpeechObjectTokens * This,
  8726. /* [retval][out] */ IUnknown **ppEnumVARIANT);
  8727. END_INTERFACE
  8728. } ISpeechObjectTokensVtbl;
  8729. interface ISpeechObjectTokens
  8730. {
  8731. CONST_VTBL struct ISpeechObjectTokensVtbl *lpVtbl;
  8732. };
  8733. #ifdef COBJMACROS
  8734. #define ISpeechObjectTokens_QueryInterface(This,riid,ppvObject) \
  8735. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8736. #define ISpeechObjectTokens_AddRef(This) \
  8737. (This)->lpVtbl -> AddRef(This)
  8738. #define ISpeechObjectTokens_Release(This) \
  8739. (This)->lpVtbl -> Release(This)
  8740. #define ISpeechObjectTokens_GetTypeInfoCount(This,pctinfo) \
  8741. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8742. #define ISpeechObjectTokens_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8743. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8744. #define ISpeechObjectTokens_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8745. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8746. #define ISpeechObjectTokens_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8747. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8748. #define ISpeechObjectTokens_get_Count(This,Count) \
  8749. (This)->lpVtbl -> get_Count(This,Count)
  8750. #define ISpeechObjectTokens_Item(This,Index,Token) \
  8751. (This)->lpVtbl -> Item(This,Index,Token)
  8752. #define ISpeechObjectTokens_get__NewEnum(This,ppEnumVARIANT) \
  8753. (This)->lpVtbl -> get__NewEnum(This,ppEnumVARIANT)
  8754. #endif /* COBJMACROS */
  8755. #endif /* C style interface */
  8756. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_get_Count_Proxy(
  8757. ISpeechObjectTokens * This,
  8758. /* [retval][out] */ long *Count);
  8759. void __RPC_STUB ISpeechObjectTokens_get_Count_Stub(
  8760. IRpcStubBuffer *This,
  8761. IRpcChannelBuffer *_pRpcChannelBuffer,
  8762. PRPC_MESSAGE _pRpcMessage,
  8763. DWORD *_pdwStubPhase);
  8764. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_Item_Proxy(
  8765. ISpeechObjectTokens * This,
  8766. /* [in] */ long Index,
  8767. /* [retval][out] */ ISpeechObjectToken **Token);
  8768. void __RPC_STUB ISpeechObjectTokens_Item_Stub(
  8769. IRpcStubBuffer *This,
  8770. IRpcChannelBuffer *_pRpcChannelBuffer,
  8771. PRPC_MESSAGE _pRpcMessage,
  8772. DWORD *_pdwStubPhase);
  8773. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokens_get__NewEnum_Proxy(
  8774. ISpeechObjectTokens * This,
  8775. /* [retval][out] */ IUnknown **ppEnumVARIANT);
  8776. void __RPC_STUB ISpeechObjectTokens_get__NewEnum_Stub(
  8777. IRpcStubBuffer *This,
  8778. IRpcChannelBuffer *_pRpcChannelBuffer,
  8779. PRPC_MESSAGE _pRpcMessage,
  8780. DWORD *_pdwStubPhase);
  8781. #endif /* __ISpeechObjectTokens_INTERFACE_DEFINED__ */
  8782. #ifndef __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  8783. #define __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  8784. /* interface ISpeechObjectTokenCategory */
  8785. /* [unique][helpstring][dual][uuid][object] */
  8786. EXTERN_C const IID IID_ISpeechObjectTokenCategory;
  8787. #if defined(__cplusplus) && !defined(CINTERFACE)
  8788. MIDL_INTERFACE("CA7EAC50-2D01-4145-86D4-5AE7D70F4469")
  8789. ISpeechObjectTokenCategory : public IDispatch
  8790. {
  8791. public:
  8792. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  8793. /* [retval][out] */ BSTR *Id) = 0;
  8794. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Default(
  8795. /* [in] */ const BSTR TokenId) = 0;
  8796. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Default(
  8797. /* [retval][out] */ BSTR *TokenId) = 0;
  8798. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetId(
  8799. /* [in] */ const BSTR Id,
  8800. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist = 0) = 0;
  8801. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetDataKey(
  8802. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8803. /* [retval][out] */ ISpeechDataKey **DataKey) = 0;
  8804. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EnumerateTokens(
  8805. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8806. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8807. /* [retval][out] */ ISpeechObjectTokens **Tokens) = 0;
  8808. };
  8809. #else /* C style interface */
  8810. typedef struct ISpeechObjectTokenCategoryVtbl
  8811. {
  8812. BEGIN_INTERFACE
  8813. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8814. ISpeechObjectTokenCategory * This,
  8815. /* [in] */ REFIID riid,
  8816. /* [iid_is][out] */ void **ppvObject);
  8817. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8818. ISpeechObjectTokenCategory * This);
  8819. ULONG ( STDMETHODCALLTYPE *Release )(
  8820. ISpeechObjectTokenCategory * This);
  8821. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8822. ISpeechObjectTokenCategory * This,
  8823. /* [out] */ UINT *pctinfo);
  8824. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8825. ISpeechObjectTokenCategory * This,
  8826. /* [in] */ UINT iTInfo,
  8827. /* [in] */ LCID lcid,
  8828. /* [out] */ ITypeInfo **ppTInfo);
  8829. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  8830. ISpeechObjectTokenCategory * This,
  8831. /* [in] */ REFIID riid,
  8832. /* [size_is][in] */ LPOLESTR *rgszNames,
  8833. /* [in] */ UINT cNames,
  8834. /* [in] */ LCID lcid,
  8835. /* [size_is][out] */ DISPID *rgDispId);
  8836. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  8837. ISpeechObjectTokenCategory * This,
  8838. /* [in] */ DISPID dispIdMember,
  8839. /* [in] */ REFIID riid,
  8840. /* [in] */ LCID lcid,
  8841. /* [in] */ WORD wFlags,
  8842. /* [out][in] */ DISPPARAMS *pDispParams,
  8843. /* [out] */ VARIANT *pVarResult,
  8844. /* [out] */ EXCEPINFO *pExcepInfo,
  8845. /* [out] */ UINT *puArgErr);
  8846. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  8847. ISpeechObjectTokenCategory * This,
  8848. /* [retval][out] */ BSTR *Id);
  8849. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Default )(
  8850. ISpeechObjectTokenCategory * This,
  8851. /* [in] */ const BSTR TokenId);
  8852. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Default )(
  8853. ISpeechObjectTokenCategory * This,
  8854. /* [retval][out] */ BSTR *TokenId);
  8855. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetId )(
  8856. ISpeechObjectTokenCategory * This,
  8857. /* [in] */ const BSTR Id,
  8858. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8859. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDataKey )(
  8860. ISpeechObjectTokenCategory * This,
  8861. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8862. /* [retval][out] */ ISpeechDataKey **DataKey);
  8863. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumerateTokens )(
  8864. ISpeechObjectTokenCategory * This,
  8865. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8866. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8867. /* [retval][out] */ ISpeechObjectTokens **Tokens);
  8868. END_INTERFACE
  8869. } ISpeechObjectTokenCategoryVtbl;
  8870. interface ISpeechObjectTokenCategory
  8871. {
  8872. CONST_VTBL struct ISpeechObjectTokenCategoryVtbl *lpVtbl;
  8873. };
  8874. #ifdef COBJMACROS
  8875. #define ISpeechObjectTokenCategory_QueryInterface(This,riid,ppvObject) \
  8876. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  8877. #define ISpeechObjectTokenCategory_AddRef(This) \
  8878. (This)->lpVtbl -> AddRef(This)
  8879. #define ISpeechObjectTokenCategory_Release(This) \
  8880. (This)->lpVtbl -> Release(This)
  8881. #define ISpeechObjectTokenCategory_GetTypeInfoCount(This,pctinfo) \
  8882. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  8883. #define ISpeechObjectTokenCategory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  8884. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8885. #define ISpeechObjectTokenCategory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  8886. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8887. #define ISpeechObjectTokenCategory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  8888. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8889. #define ISpeechObjectTokenCategory_get_Id(This,Id) \
  8890. (This)->lpVtbl -> get_Id(This,Id)
  8891. #define ISpeechObjectTokenCategory_put_Default(This,TokenId) \
  8892. (This)->lpVtbl -> put_Default(This,TokenId)
  8893. #define ISpeechObjectTokenCategory_get_Default(This,TokenId) \
  8894. (This)->lpVtbl -> get_Default(This,TokenId)
  8895. #define ISpeechObjectTokenCategory_SetId(This,Id,CreateIfNotExist) \
  8896. (This)->lpVtbl -> SetId(This,Id,CreateIfNotExist)
  8897. #define ISpeechObjectTokenCategory_GetDataKey(This,Location,DataKey) \
  8898. (This)->lpVtbl -> GetDataKey(This,Location,DataKey)
  8899. #define ISpeechObjectTokenCategory_EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens) \
  8900. (This)->lpVtbl -> EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens)
  8901. #endif /* COBJMACROS */
  8902. #endif /* C style interface */
  8903. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_get_Id_Proxy(
  8904. ISpeechObjectTokenCategory * This,
  8905. /* [retval][out] */ BSTR *Id);
  8906. void __RPC_STUB ISpeechObjectTokenCategory_get_Id_Stub(
  8907. IRpcStubBuffer *This,
  8908. IRpcChannelBuffer *_pRpcChannelBuffer,
  8909. PRPC_MESSAGE _pRpcMessage,
  8910. DWORD *_pdwStubPhase);
  8911. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_put_Default_Proxy(
  8912. ISpeechObjectTokenCategory * This,
  8913. /* [in] */ const BSTR TokenId);
  8914. void __RPC_STUB ISpeechObjectTokenCategory_put_Default_Stub(
  8915. IRpcStubBuffer *This,
  8916. IRpcChannelBuffer *_pRpcChannelBuffer,
  8917. PRPC_MESSAGE _pRpcMessage,
  8918. DWORD *_pdwStubPhase);
  8919. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_get_Default_Proxy(
  8920. ISpeechObjectTokenCategory * This,
  8921. /* [retval][out] */ BSTR *TokenId);
  8922. void __RPC_STUB ISpeechObjectTokenCategory_get_Default_Stub(
  8923. IRpcStubBuffer *This,
  8924. IRpcChannelBuffer *_pRpcChannelBuffer,
  8925. PRPC_MESSAGE _pRpcMessage,
  8926. DWORD *_pdwStubPhase);
  8927. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_SetId_Proxy(
  8928. ISpeechObjectTokenCategory * This,
  8929. /* [in] */ const BSTR Id,
  8930. /* [defaultvalue][in] */ VARIANT_BOOL CreateIfNotExist);
  8931. void __RPC_STUB ISpeechObjectTokenCategory_SetId_Stub(
  8932. IRpcStubBuffer *This,
  8933. IRpcChannelBuffer *_pRpcChannelBuffer,
  8934. PRPC_MESSAGE _pRpcMessage,
  8935. DWORD *_pdwStubPhase);
  8936. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_GetDataKey_Proxy(
  8937. ISpeechObjectTokenCategory * This,
  8938. /* [defaultvalue][in] */ SpeechDataKeyLocation Location,
  8939. /* [retval][out] */ ISpeechDataKey **DataKey);
  8940. void __RPC_STUB ISpeechObjectTokenCategory_GetDataKey_Stub(
  8941. IRpcStubBuffer *This,
  8942. IRpcChannelBuffer *_pRpcChannelBuffer,
  8943. PRPC_MESSAGE _pRpcMessage,
  8944. DWORD *_pdwStubPhase);
  8945. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechObjectTokenCategory_EnumerateTokens_Proxy(
  8946. ISpeechObjectTokenCategory * This,
  8947. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  8948. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  8949. /* [retval][out] */ ISpeechObjectTokens **Tokens);
  8950. void __RPC_STUB ISpeechObjectTokenCategory_EnumerateTokens_Stub(
  8951. IRpcStubBuffer *This,
  8952. IRpcChannelBuffer *_pRpcChannelBuffer,
  8953. PRPC_MESSAGE _pRpcMessage,
  8954. DWORD *_pdwStubPhase);
  8955. #endif /* __ISpeechObjectTokenCategory_INTERFACE_DEFINED__ */
  8956. #ifndef __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  8957. #define __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  8958. /* interface ISpeechAudioBufferInfo */
  8959. /* [unique][helpstring][dual][uuid][object] */
  8960. EXTERN_C const IID IID_ISpeechAudioBufferInfo;
  8961. #if defined(__cplusplus) && !defined(CINTERFACE)
  8962. MIDL_INTERFACE("11B103D8-1142-4edf-A093-82FB3915F8CC")
  8963. ISpeechAudioBufferInfo : public IDispatch
  8964. {
  8965. public:
  8966. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_MinNotification(
  8967. /* [retval][out] */ long *MinNotification) = 0;
  8968. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_MinNotification(
  8969. /* [in] */ long MinNotification) = 0;
  8970. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferSize(
  8971. /* [retval][out] */ long *BufferSize) = 0;
  8972. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BufferSize(
  8973. /* [in] */ long BufferSize) = 0;
  8974. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventBias(
  8975. /* [retval][out] */ long *EventBias) = 0;
  8976. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventBias(
  8977. /* [in] */ long EventBias) = 0;
  8978. };
  8979. #else /* C style interface */
  8980. typedef struct ISpeechAudioBufferInfoVtbl
  8981. {
  8982. BEGIN_INTERFACE
  8983. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  8984. ISpeechAudioBufferInfo * This,
  8985. /* [in] */ REFIID riid,
  8986. /* [iid_is][out] */ void **ppvObject);
  8987. ULONG ( STDMETHODCALLTYPE *AddRef )(
  8988. ISpeechAudioBufferInfo * This);
  8989. ULONG ( STDMETHODCALLTYPE *Release )(
  8990. ISpeechAudioBufferInfo * This);
  8991. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  8992. ISpeechAudioBufferInfo * This,
  8993. /* [out] */ UINT *pctinfo);
  8994. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  8995. ISpeechAudioBufferInfo * This,
  8996. /* [in] */ UINT iTInfo,
  8997. /* [in] */ LCID lcid,
  8998. /* [out] */ ITypeInfo **ppTInfo);
  8999. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9000. ISpeechAudioBufferInfo * This,
  9001. /* [in] */ REFIID riid,
  9002. /* [size_is][in] */ LPOLESTR *rgszNames,
  9003. /* [in] */ UINT cNames,
  9004. /* [in] */ LCID lcid,
  9005. /* [size_is][out] */ DISPID *rgDispId);
  9006. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9007. ISpeechAudioBufferInfo * This,
  9008. /* [in] */ DISPID dispIdMember,
  9009. /* [in] */ REFIID riid,
  9010. /* [in] */ LCID lcid,
  9011. /* [in] */ WORD wFlags,
  9012. /* [out][in] */ DISPPARAMS *pDispParams,
  9013. /* [out] */ VARIANT *pVarResult,
  9014. /* [out] */ EXCEPINFO *pExcepInfo,
  9015. /* [out] */ UINT *puArgErr);
  9016. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinNotification )(
  9017. ISpeechAudioBufferInfo * This,
  9018. /* [retval][out] */ long *MinNotification);
  9019. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinNotification )(
  9020. ISpeechAudioBufferInfo * This,
  9021. /* [in] */ long MinNotification);
  9022. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferSize )(
  9023. ISpeechAudioBufferInfo * This,
  9024. /* [retval][out] */ long *BufferSize);
  9025. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferSize )(
  9026. ISpeechAudioBufferInfo * This,
  9027. /* [in] */ long BufferSize);
  9028. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventBias )(
  9029. ISpeechAudioBufferInfo * This,
  9030. /* [retval][out] */ long *EventBias);
  9031. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventBias )(
  9032. ISpeechAudioBufferInfo * This,
  9033. /* [in] */ long EventBias);
  9034. END_INTERFACE
  9035. } ISpeechAudioBufferInfoVtbl;
  9036. interface ISpeechAudioBufferInfo
  9037. {
  9038. CONST_VTBL struct ISpeechAudioBufferInfoVtbl *lpVtbl;
  9039. };
  9040. #ifdef COBJMACROS
  9041. #define ISpeechAudioBufferInfo_QueryInterface(This,riid,ppvObject) \
  9042. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9043. #define ISpeechAudioBufferInfo_AddRef(This) \
  9044. (This)->lpVtbl -> AddRef(This)
  9045. #define ISpeechAudioBufferInfo_Release(This) \
  9046. (This)->lpVtbl -> Release(This)
  9047. #define ISpeechAudioBufferInfo_GetTypeInfoCount(This,pctinfo) \
  9048. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9049. #define ISpeechAudioBufferInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9050. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9051. #define ISpeechAudioBufferInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9052. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9053. #define ISpeechAudioBufferInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9054. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9055. #define ISpeechAudioBufferInfo_get_MinNotification(This,MinNotification) \
  9056. (This)->lpVtbl -> get_MinNotification(This,MinNotification)
  9057. #define ISpeechAudioBufferInfo_put_MinNotification(This,MinNotification) \
  9058. (This)->lpVtbl -> put_MinNotification(This,MinNotification)
  9059. #define ISpeechAudioBufferInfo_get_BufferSize(This,BufferSize) \
  9060. (This)->lpVtbl -> get_BufferSize(This,BufferSize)
  9061. #define ISpeechAudioBufferInfo_put_BufferSize(This,BufferSize) \
  9062. (This)->lpVtbl -> put_BufferSize(This,BufferSize)
  9063. #define ISpeechAudioBufferInfo_get_EventBias(This,EventBias) \
  9064. (This)->lpVtbl -> get_EventBias(This,EventBias)
  9065. #define ISpeechAudioBufferInfo_put_EventBias(This,EventBias) \
  9066. (This)->lpVtbl -> put_EventBias(This,EventBias)
  9067. #endif /* COBJMACROS */
  9068. #endif /* C style interface */
  9069. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_MinNotification_Proxy(
  9070. ISpeechAudioBufferInfo * This,
  9071. /* [retval][out] */ long *MinNotification);
  9072. void __RPC_STUB ISpeechAudioBufferInfo_get_MinNotification_Stub(
  9073. IRpcStubBuffer *This,
  9074. IRpcChannelBuffer *_pRpcChannelBuffer,
  9075. PRPC_MESSAGE _pRpcMessage,
  9076. DWORD *_pdwStubPhase);
  9077. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_MinNotification_Proxy(
  9078. ISpeechAudioBufferInfo * This,
  9079. /* [in] */ long MinNotification);
  9080. void __RPC_STUB ISpeechAudioBufferInfo_put_MinNotification_Stub(
  9081. IRpcStubBuffer *This,
  9082. IRpcChannelBuffer *_pRpcChannelBuffer,
  9083. PRPC_MESSAGE _pRpcMessage,
  9084. DWORD *_pdwStubPhase);
  9085. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_BufferSize_Proxy(
  9086. ISpeechAudioBufferInfo * This,
  9087. /* [retval][out] */ long *BufferSize);
  9088. void __RPC_STUB ISpeechAudioBufferInfo_get_BufferSize_Stub(
  9089. IRpcStubBuffer *This,
  9090. IRpcChannelBuffer *_pRpcChannelBuffer,
  9091. PRPC_MESSAGE _pRpcMessage,
  9092. DWORD *_pdwStubPhase);
  9093. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_BufferSize_Proxy(
  9094. ISpeechAudioBufferInfo * This,
  9095. /* [in] */ long BufferSize);
  9096. void __RPC_STUB ISpeechAudioBufferInfo_put_BufferSize_Stub(
  9097. IRpcStubBuffer *This,
  9098. IRpcChannelBuffer *_pRpcChannelBuffer,
  9099. PRPC_MESSAGE _pRpcMessage,
  9100. DWORD *_pdwStubPhase);
  9101. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_get_EventBias_Proxy(
  9102. ISpeechAudioBufferInfo * This,
  9103. /* [retval][out] */ long *EventBias);
  9104. void __RPC_STUB ISpeechAudioBufferInfo_get_EventBias_Stub(
  9105. IRpcStubBuffer *This,
  9106. IRpcChannelBuffer *_pRpcChannelBuffer,
  9107. PRPC_MESSAGE _pRpcMessage,
  9108. DWORD *_pdwStubPhase);
  9109. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioBufferInfo_put_EventBias_Proxy(
  9110. ISpeechAudioBufferInfo * This,
  9111. /* [in] */ long EventBias);
  9112. void __RPC_STUB ISpeechAudioBufferInfo_put_EventBias_Stub(
  9113. IRpcStubBuffer *This,
  9114. IRpcChannelBuffer *_pRpcChannelBuffer,
  9115. PRPC_MESSAGE _pRpcMessage,
  9116. DWORD *_pdwStubPhase);
  9117. #endif /* __ISpeechAudioBufferInfo_INTERFACE_DEFINED__ */
  9118. #ifndef __ISpeechAudioStatus_INTERFACE_DEFINED__
  9119. #define __ISpeechAudioStatus_INTERFACE_DEFINED__
  9120. /* interface ISpeechAudioStatus */
  9121. /* [unique][helpstring][dual][uuid][object] */
  9122. EXTERN_C const IID IID_ISpeechAudioStatus;
  9123. #if defined(__cplusplus) && !defined(CINTERFACE)
  9124. MIDL_INTERFACE("C62D9C91-7458-47f6-862D-1EF86FB0B278")
  9125. ISpeechAudioStatus : public IDispatch
  9126. {
  9127. public:
  9128. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FreeBufferSpace(
  9129. /* [retval][out] */ long *FreeBufferSpace) = 0;
  9130. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NonBlockingIO(
  9131. /* [retval][out] */ long *NonBlockingIO) = 0;
  9132. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  9133. /* [retval][out] */ SpeechAudioState *State) = 0;
  9134. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentSeekPosition(
  9135. /* [retval][out] */ VARIANT *CurrentSeekPosition) = 0;
  9136. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentDevicePosition(
  9137. /* [retval][out] */ VARIANT *CurrentDevicePosition) = 0;
  9138. };
  9139. #else /* C style interface */
  9140. typedef struct ISpeechAudioStatusVtbl
  9141. {
  9142. BEGIN_INTERFACE
  9143. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9144. ISpeechAudioStatus * This,
  9145. /* [in] */ REFIID riid,
  9146. /* [iid_is][out] */ void **ppvObject);
  9147. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9148. ISpeechAudioStatus * This);
  9149. ULONG ( STDMETHODCALLTYPE *Release )(
  9150. ISpeechAudioStatus * This);
  9151. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9152. ISpeechAudioStatus * This,
  9153. /* [out] */ UINT *pctinfo);
  9154. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9155. ISpeechAudioStatus * This,
  9156. /* [in] */ UINT iTInfo,
  9157. /* [in] */ LCID lcid,
  9158. /* [out] */ ITypeInfo **ppTInfo);
  9159. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9160. ISpeechAudioStatus * This,
  9161. /* [in] */ REFIID riid,
  9162. /* [size_is][in] */ LPOLESTR *rgszNames,
  9163. /* [in] */ UINT cNames,
  9164. /* [in] */ LCID lcid,
  9165. /* [size_is][out] */ DISPID *rgDispId);
  9166. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9167. ISpeechAudioStatus * This,
  9168. /* [in] */ DISPID dispIdMember,
  9169. /* [in] */ REFIID riid,
  9170. /* [in] */ LCID lcid,
  9171. /* [in] */ WORD wFlags,
  9172. /* [out][in] */ DISPPARAMS *pDispParams,
  9173. /* [out] */ VARIANT *pVarResult,
  9174. /* [out] */ EXCEPINFO *pExcepInfo,
  9175. /* [out] */ UINT *puArgErr);
  9176. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeBufferSpace )(
  9177. ISpeechAudioStatus * This,
  9178. /* [retval][out] */ long *FreeBufferSpace);
  9179. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonBlockingIO )(
  9180. ISpeechAudioStatus * This,
  9181. /* [retval][out] */ long *NonBlockingIO);
  9182. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  9183. ISpeechAudioStatus * This,
  9184. /* [retval][out] */ SpeechAudioState *State);
  9185. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentSeekPosition )(
  9186. ISpeechAudioStatus * This,
  9187. /* [retval][out] */ VARIANT *CurrentSeekPosition);
  9188. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentDevicePosition )(
  9189. ISpeechAudioStatus * This,
  9190. /* [retval][out] */ VARIANT *CurrentDevicePosition);
  9191. END_INTERFACE
  9192. } ISpeechAudioStatusVtbl;
  9193. interface ISpeechAudioStatus
  9194. {
  9195. CONST_VTBL struct ISpeechAudioStatusVtbl *lpVtbl;
  9196. };
  9197. #ifdef COBJMACROS
  9198. #define ISpeechAudioStatus_QueryInterface(This,riid,ppvObject) \
  9199. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9200. #define ISpeechAudioStatus_AddRef(This) \
  9201. (This)->lpVtbl -> AddRef(This)
  9202. #define ISpeechAudioStatus_Release(This) \
  9203. (This)->lpVtbl -> Release(This)
  9204. #define ISpeechAudioStatus_GetTypeInfoCount(This,pctinfo) \
  9205. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9206. #define ISpeechAudioStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9207. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9208. #define ISpeechAudioStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9209. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9210. #define ISpeechAudioStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9211. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9212. #define ISpeechAudioStatus_get_FreeBufferSpace(This,FreeBufferSpace) \
  9213. (This)->lpVtbl -> get_FreeBufferSpace(This,FreeBufferSpace)
  9214. #define ISpeechAudioStatus_get_NonBlockingIO(This,NonBlockingIO) \
  9215. (This)->lpVtbl -> get_NonBlockingIO(This,NonBlockingIO)
  9216. #define ISpeechAudioStatus_get_State(This,State) \
  9217. (This)->lpVtbl -> get_State(This,State)
  9218. #define ISpeechAudioStatus_get_CurrentSeekPosition(This,CurrentSeekPosition) \
  9219. (This)->lpVtbl -> get_CurrentSeekPosition(This,CurrentSeekPosition)
  9220. #define ISpeechAudioStatus_get_CurrentDevicePosition(This,CurrentDevicePosition) \
  9221. (This)->lpVtbl -> get_CurrentDevicePosition(This,CurrentDevicePosition)
  9222. #endif /* COBJMACROS */
  9223. #endif /* C style interface */
  9224. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_FreeBufferSpace_Proxy(
  9225. ISpeechAudioStatus * This,
  9226. /* [retval][out] */ long *FreeBufferSpace);
  9227. void __RPC_STUB ISpeechAudioStatus_get_FreeBufferSpace_Stub(
  9228. IRpcStubBuffer *This,
  9229. IRpcChannelBuffer *_pRpcChannelBuffer,
  9230. PRPC_MESSAGE _pRpcMessage,
  9231. DWORD *_pdwStubPhase);
  9232. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_NonBlockingIO_Proxy(
  9233. ISpeechAudioStatus * This,
  9234. /* [retval][out] */ long *NonBlockingIO);
  9235. void __RPC_STUB ISpeechAudioStatus_get_NonBlockingIO_Stub(
  9236. IRpcStubBuffer *This,
  9237. IRpcChannelBuffer *_pRpcChannelBuffer,
  9238. PRPC_MESSAGE _pRpcMessage,
  9239. DWORD *_pdwStubPhase);
  9240. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_State_Proxy(
  9241. ISpeechAudioStatus * This,
  9242. /* [retval][out] */ SpeechAudioState *State);
  9243. void __RPC_STUB ISpeechAudioStatus_get_State_Stub(
  9244. IRpcStubBuffer *This,
  9245. IRpcChannelBuffer *_pRpcChannelBuffer,
  9246. PRPC_MESSAGE _pRpcMessage,
  9247. DWORD *_pdwStubPhase);
  9248. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_CurrentSeekPosition_Proxy(
  9249. ISpeechAudioStatus * This,
  9250. /* [retval][out] */ VARIANT *CurrentSeekPosition);
  9251. void __RPC_STUB ISpeechAudioStatus_get_CurrentSeekPosition_Stub(
  9252. IRpcStubBuffer *This,
  9253. IRpcChannelBuffer *_pRpcChannelBuffer,
  9254. PRPC_MESSAGE _pRpcMessage,
  9255. DWORD *_pdwStubPhase);
  9256. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioStatus_get_CurrentDevicePosition_Proxy(
  9257. ISpeechAudioStatus * This,
  9258. /* [retval][out] */ VARIANT *CurrentDevicePosition);
  9259. void __RPC_STUB ISpeechAudioStatus_get_CurrentDevicePosition_Stub(
  9260. IRpcStubBuffer *This,
  9261. IRpcChannelBuffer *_pRpcChannelBuffer,
  9262. PRPC_MESSAGE _pRpcMessage,
  9263. DWORD *_pdwStubPhase);
  9264. #endif /* __ISpeechAudioStatus_INTERFACE_DEFINED__ */
  9265. #ifndef __ISpeechAudioFormat_INTERFACE_DEFINED__
  9266. #define __ISpeechAudioFormat_INTERFACE_DEFINED__
  9267. /* interface ISpeechAudioFormat */
  9268. /* [unique][helpstring][dual][uuid][object] */
  9269. EXTERN_C const IID IID_ISpeechAudioFormat;
  9270. #if defined(__cplusplus) && !defined(CINTERFACE)
  9271. MIDL_INTERFACE("E6E9C590-3E18-40e3-8299-061F98BDE7C7")
  9272. ISpeechAudioFormat : public IDispatch
  9273. {
  9274. public:
  9275. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Type(
  9276. /* [retval][out] */ SpeechAudioFormatType *AudioFormat) = 0;
  9277. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Type(
  9278. /* [in] */ SpeechAudioFormatType AudioFormat) = 0;
  9279. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_Guid(
  9280. /* [retval][out] */ BSTR *Guid) = 0;
  9281. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_Guid(
  9282. /* [in] */ BSTR Guid) = 0;
  9283. virtual /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE GetWaveFormatEx(
  9284. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx) = 0;
  9285. virtual /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE SetWaveFormatEx(
  9286. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx) = 0;
  9287. };
  9288. #else /* C style interface */
  9289. typedef struct ISpeechAudioFormatVtbl
  9290. {
  9291. BEGIN_INTERFACE
  9292. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9293. ISpeechAudioFormat * This,
  9294. /* [in] */ REFIID riid,
  9295. /* [iid_is][out] */ void **ppvObject);
  9296. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9297. ISpeechAudioFormat * This);
  9298. ULONG ( STDMETHODCALLTYPE *Release )(
  9299. ISpeechAudioFormat * This);
  9300. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9301. ISpeechAudioFormat * This,
  9302. /* [out] */ UINT *pctinfo);
  9303. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9304. ISpeechAudioFormat * This,
  9305. /* [in] */ UINT iTInfo,
  9306. /* [in] */ LCID lcid,
  9307. /* [out] */ ITypeInfo **ppTInfo);
  9308. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9309. ISpeechAudioFormat * This,
  9310. /* [in] */ REFIID riid,
  9311. /* [size_is][in] */ LPOLESTR *rgszNames,
  9312. /* [in] */ UINT cNames,
  9313. /* [in] */ LCID lcid,
  9314. /* [size_is][out] */ DISPID *rgDispId);
  9315. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9316. ISpeechAudioFormat * This,
  9317. /* [in] */ DISPID dispIdMember,
  9318. /* [in] */ REFIID riid,
  9319. /* [in] */ LCID lcid,
  9320. /* [in] */ WORD wFlags,
  9321. /* [out][in] */ DISPPARAMS *pDispParams,
  9322. /* [out] */ VARIANT *pVarResult,
  9323. /* [out] */ EXCEPINFO *pExcepInfo,
  9324. /* [out] */ UINT *puArgErr);
  9325. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  9326. ISpeechAudioFormat * This,
  9327. /* [retval][out] */ SpeechAudioFormatType *AudioFormat);
  9328. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )(
  9329. ISpeechAudioFormat * This,
  9330. /* [in] */ SpeechAudioFormatType AudioFormat);
  9331. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guid )(
  9332. ISpeechAudioFormat * This,
  9333. /* [retval][out] */ BSTR *Guid);
  9334. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Guid )(
  9335. ISpeechAudioFormat * This,
  9336. /* [in] */ BSTR Guid);
  9337. /* [id][helpstring][hidden] */ HRESULT ( STDMETHODCALLTYPE *GetWaveFormatEx )(
  9338. ISpeechAudioFormat * This,
  9339. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx);
  9340. /* [id][helpstring][hidden] */ HRESULT ( STDMETHODCALLTYPE *SetWaveFormatEx )(
  9341. ISpeechAudioFormat * This,
  9342. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx);
  9343. END_INTERFACE
  9344. } ISpeechAudioFormatVtbl;
  9345. interface ISpeechAudioFormat
  9346. {
  9347. CONST_VTBL struct ISpeechAudioFormatVtbl *lpVtbl;
  9348. };
  9349. #ifdef COBJMACROS
  9350. #define ISpeechAudioFormat_QueryInterface(This,riid,ppvObject) \
  9351. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9352. #define ISpeechAudioFormat_AddRef(This) \
  9353. (This)->lpVtbl -> AddRef(This)
  9354. #define ISpeechAudioFormat_Release(This) \
  9355. (This)->lpVtbl -> Release(This)
  9356. #define ISpeechAudioFormat_GetTypeInfoCount(This,pctinfo) \
  9357. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9358. #define ISpeechAudioFormat_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9359. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9360. #define ISpeechAudioFormat_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9361. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9362. #define ISpeechAudioFormat_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9363. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9364. #define ISpeechAudioFormat_get_Type(This,AudioFormat) \
  9365. (This)->lpVtbl -> get_Type(This,AudioFormat)
  9366. #define ISpeechAudioFormat_put_Type(This,AudioFormat) \
  9367. (This)->lpVtbl -> put_Type(This,AudioFormat)
  9368. #define ISpeechAudioFormat_get_Guid(This,Guid) \
  9369. (This)->lpVtbl -> get_Guid(This,Guid)
  9370. #define ISpeechAudioFormat_put_Guid(This,Guid) \
  9371. (This)->lpVtbl -> put_Guid(This,Guid)
  9372. #define ISpeechAudioFormat_GetWaveFormatEx(This,WaveFormatEx) \
  9373. (This)->lpVtbl -> GetWaveFormatEx(This,WaveFormatEx)
  9374. #define ISpeechAudioFormat_SetWaveFormatEx(This,WaveFormatEx) \
  9375. (This)->lpVtbl -> SetWaveFormatEx(This,WaveFormatEx)
  9376. #endif /* COBJMACROS */
  9377. #endif /* C style interface */
  9378. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_get_Type_Proxy(
  9379. ISpeechAudioFormat * This,
  9380. /* [retval][out] */ SpeechAudioFormatType *AudioFormat);
  9381. void __RPC_STUB ISpeechAudioFormat_get_Type_Stub(
  9382. IRpcStubBuffer *This,
  9383. IRpcChannelBuffer *_pRpcChannelBuffer,
  9384. PRPC_MESSAGE _pRpcMessage,
  9385. DWORD *_pdwStubPhase);
  9386. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_put_Type_Proxy(
  9387. ISpeechAudioFormat * This,
  9388. /* [in] */ SpeechAudioFormatType AudioFormat);
  9389. void __RPC_STUB ISpeechAudioFormat_put_Type_Stub(
  9390. IRpcStubBuffer *This,
  9391. IRpcChannelBuffer *_pRpcChannelBuffer,
  9392. PRPC_MESSAGE _pRpcMessage,
  9393. DWORD *_pdwStubPhase);
  9394. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_get_Guid_Proxy(
  9395. ISpeechAudioFormat * This,
  9396. /* [retval][out] */ BSTR *Guid);
  9397. void __RPC_STUB ISpeechAudioFormat_get_Guid_Stub(
  9398. IRpcStubBuffer *This,
  9399. IRpcChannelBuffer *_pRpcChannelBuffer,
  9400. PRPC_MESSAGE _pRpcMessage,
  9401. DWORD *_pdwStubPhase);
  9402. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_put_Guid_Proxy(
  9403. ISpeechAudioFormat * This,
  9404. /* [in] */ BSTR Guid);
  9405. void __RPC_STUB ISpeechAudioFormat_put_Guid_Stub(
  9406. IRpcStubBuffer *This,
  9407. IRpcChannelBuffer *_pRpcChannelBuffer,
  9408. PRPC_MESSAGE _pRpcMessage,
  9409. DWORD *_pdwStubPhase);
  9410. /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_GetWaveFormatEx_Proxy(
  9411. ISpeechAudioFormat * This,
  9412. /* [retval][out] */ ISpeechWaveFormatEx **WaveFormatEx);
  9413. void __RPC_STUB ISpeechAudioFormat_GetWaveFormatEx_Stub(
  9414. IRpcStubBuffer *This,
  9415. IRpcChannelBuffer *_pRpcChannelBuffer,
  9416. PRPC_MESSAGE _pRpcMessage,
  9417. DWORD *_pdwStubPhase);
  9418. /* [id][helpstring][hidden] */ HRESULT STDMETHODCALLTYPE ISpeechAudioFormat_SetWaveFormatEx_Proxy(
  9419. ISpeechAudioFormat * This,
  9420. /* [in] */ ISpeechWaveFormatEx *WaveFormatEx);
  9421. void __RPC_STUB ISpeechAudioFormat_SetWaveFormatEx_Stub(
  9422. IRpcStubBuffer *This,
  9423. IRpcChannelBuffer *_pRpcChannelBuffer,
  9424. PRPC_MESSAGE _pRpcMessage,
  9425. DWORD *_pdwStubPhase);
  9426. #endif /* __ISpeechAudioFormat_INTERFACE_DEFINED__ */
  9427. #ifndef __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  9428. #define __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  9429. /* interface ISpeechWaveFormatEx */
  9430. /* [unique][helpstring][dual][uuid][object] */
  9431. EXTERN_C const IID IID_ISpeechWaveFormatEx;
  9432. #if defined(__cplusplus) && !defined(CINTERFACE)
  9433. MIDL_INTERFACE("7A1EF0D5-1581-4741-88E4-209A49F11A10")
  9434. ISpeechWaveFormatEx : public IDispatch
  9435. {
  9436. public:
  9437. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FormatTag(
  9438. /* [retval][out] */ short *FormatTag) = 0;
  9439. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_FormatTag(
  9440. /* [in] */ short FormatTag) = 0;
  9441. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Channels(
  9442. /* [retval][out] */ short *Channels) = 0;
  9443. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Channels(
  9444. /* [in] */ short Channels) = 0;
  9445. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SamplesPerSec(
  9446. /* [retval][out] */ long *SamplesPerSec) = 0;
  9447. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SamplesPerSec(
  9448. /* [in] */ long SamplesPerSec) = 0;
  9449. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AvgBytesPerSec(
  9450. /* [retval][out] */ long *AvgBytesPerSec) = 0;
  9451. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_AvgBytesPerSec(
  9452. /* [in] */ long AvgBytesPerSec) = 0;
  9453. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BlockAlign(
  9454. /* [retval][out] */ short *BlockAlign) = 0;
  9455. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BlockAlign(
  9456. /* [in] */ short BlockAlign) = 0;
  9457. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BitsPerSample(
  9458. /* [retval][out] */ short *BitsPerSample) = 0;
  9459. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BitsPerSample(
  9460. /* [in] */ short BitsPerSample) = 0;
  9461. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ExtraData(
  9462. /* [retval][out] */ VARIANT *ExtraData) = 0;
  9463. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ExtraData(
  9464. /* [in] */ VARIANT ExtraData) = 0;
  9465. };
  9466. #else /* C style interface */
  9467. typedef struct ISpeechWaveFormatExVtbl
  9468. {
  9469. BEGIN_INTERFACE
  9470. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9471. ISpeechWaveFormatEx * This,
  9472. /* [in] */ REFIID riid,
  9473. /* [iid_is][out] */ void **ppvObject);
  9474. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9475. ISpeechWaveFormatEx * This);
  9476. ULONG ( STDMETHODCALLTYPE *Release )(
  9477. ISpeechWaveFormatEx * This);
  9478. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9479. ISpeechWaveFormatEx * This,
  9480. /* [out] */ UINT *pctinfo);
  9481. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9482. ISpeechWaveFormatEx * This,
  9483. /* [in] */ UINT iTInfo,
  9484. /* [in] */ LCID lcid,
  9485. /* [out] */ ITypeInfo **ppTInfo);
  9486. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9487. ISpeechWaveFormatEx * This,
  9488. /* [in] */ REFIID riid,
  9489. /* [size_is][in] */ LPOLESTR *rgszNames,
  9490. /* [in] */ UINT cNames,
  9491. /* [in] */ LCID lcid,
  9492. /* [size_is][out] */ DISPID *rgDispId);
  9493. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9494. ISpeechWaveFormatEx * This,
  9495. /* [in] */ DISPID dispIdMember,
  9496. /* [in] */ REFIID riid,
  9497. /* [in] */ LCID lcid,
  9498. /* [in] */ WORD wFlags,
  9499. /* [out][in] */ DISPPARAMS *pDispParams,
  9500. /* [out] */ VARIANT *pVarResult,
  9501. /* [out] */ EXCEPINFO *pExcepInfo,
  9502. /* [out] */ UINT *puArgErr);
  9503. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FormatTag )(
  9504. ISpeechWaveFormatEx * This,
  9505. /* [retval][out] */ short *FormatTag);
  9506. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FormatTag )(
  9507. ISpeechWaveFormatEx * This,
  9508. /* [in] */ short FormatTag);
  9509. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Channels )(
  9510. ISpeechWaveFormatEx * This,
  9511. /* [retval][out] */ short *Channels);
  9512. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Channels )(
  9513. ISpeechWaveFormatEx * This,
  9514. /* [in] */ short Channels);
  9515. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SamplesPerSec )(
  9516. ISpeechWaveFormatEx * This,
  9517. /* [retval][out] */ long *SamplesPerSec);
  9518. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SamplesPerSec )(
  9519. ISpeechWaveFormatEx * This,
  9520. /* [in] */ long SamplesPerSec);
  9521. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvgBytesPerSec )(
  9522. ISpeechWaveFormatEx * This,
  9523. /* [retval][out] */ long *AvgBytesPerSec);
  9524. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AvgBytesPerSec )(
  9525. ISpeechWaveFormatEx * This,
  9526. /* [in] */ long AvgBytesPerSec);
  9527. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockAlign )(
  9528. ISpeechWaveFormatEx * This,
  9529. /* [retval][out] */ short *BlockAlign);
  9530. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockAlign )(
  9531. ISpeechWaveFormatEx * This,
  9532. /* [in] */ short BlockAlign);
  9533. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitsPerSample )(
  9534. ISpeechWaveFormatEx * This,
  9535. /* [retval][out] */ short *BitsPerSample);
  9536. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BitsPerSample )(
  9537. ISpeechWaveFormatEx * This,
  9538. /* [in] */ short BitsPerSample);
  9539. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtraData )(
  9540. ISpeechWaveFormatEx * This,
  9541. /* [retval][out] */ VARIANT *ExtraData);
  9542. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExtraData )(
  9543. ISpeechWaveFormatEx * This,
  9544. /* [in] */ VARIANT ExtraData);
  9545. END_INTERFACE
  9546. } ISpeechWaveFormatExVtbl;
  9547. interface ISpeechWaveFormatEx
  9548. {
  9549. CONST_VTBL struct ISpeechWaveFormatExVtbl *lpVtbl;
  9550. };
  9551. #ifdef COBJMACROS
  9552. #define ISpeechWaveFormatEx_QueryInterface(This,riid,ppvObject) \
  9553. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9554. #define ISpeechWaveFormatEx_AddRef(This) \
  9555. (This)->lpVtbl -> AddRef(This)
  9556. #define ISpeechWaveFormatEx_Release(This) \
  9557. (This)->lpVtbl -> Release(This)
  9558. #define ISpeechWaveFormatEx_GetTypeInfoCount(This,pctinfo) \
  9559. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9560. #define ISpeechWaveFormatEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9561. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9562. #define ISpeechWaveFormatEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9563. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9564. #define ISpeechWaveFormatEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9565. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9566. #define ISpeechWaveFormatEx_get_FormatTag(This,FormatTag) \
  9567. (This)->lpVtbl -> get_FormatTag(This,FormatTag)
  9568. #define ISpeechWaveFormatEx_put_FormatTag(This,FormatTag) \
  9569. (This)->lpVtbl -> put_FormatTag(This,FormatTag)
  9570. #define ISpeechWaveFormatEx_get_Channels(This,Channels) \
  9571. (This)->lpVtbl -> get_Channels(This,Channels)
  9572. #define ISpeechWaveFormatEx_put_Channels(This,Channels) \
  9573. (This)->lpVtbl -> put_Channels(This,Channels)
  9574. #define ISpeechWaveFormatEx_get_SamplesPerSec(This,SamplesPerSec) \
  9575. (This)->lpVtbl -> get_SamplesPerSec(This,SamplesPerSec)
  9576. #define ISpeechWaveFormatEx_put_SamplesPerSec(This,SamplesPerSec) \
  9577. (This)->lpVtbl -> put_SamplesPerSec(This,SamplesPerSec)
  9578. #define ISpeechWaveFormatEx_get_AvgBytesPerSec(This,AvgBytesPerSec) \
  9579. (This)->lpVtbl -> get_AvgBytesPerSec(This,AvgBytesPerSec)
  9580. #define ISpeechWaveFormatEx_put_AvgBytesPerSec(This,AvgBytesPerSec) \
  9581. (This)->lpVtbl -> put_AvgBytesPerSec(This,AvgBytesPerSec)
  9582. #define ISpeechWaveFormatEx_get_BlockAlign(This,BlockAlign) \
  9583. (This)->lpVtbl -> get_BlockAlign(This,BlockAlign)
  9584. #define ISpeechWaveFormatEx_put_BlockAlign(This,BlockAlign) \
  9585. (This)->lpVtbl -> put_BlockAlign(This,BlockAlign)
  9586. #define ISpeechWaveFormatEx_get_BitsPerSample(This,BitsPerSample) \
  9587. (This)->lpVtbl -> get_BitsPerSample(This,BitsPerSample)
  9588. #define ISpeechWaveFormatEx_put_BitsPerSample(This,BitsPerSample) \
  9589. (This)->lpVtbl -> put_BitsPerSample(This,BitsPerSample)
  9590. #define ISpeechWaveFormatEx_get_ExtraData(This,ExtraData) \
  9591. (This)->lpVtbl -> get_ExtraData(This,ExtraData)
  9592. #define ISpeechWaveFormatEx_put_ExtraData(This,ExtraData) \
  9593. (This)->lpVtbl -> put_ExtraData(This,ExtraData)
  9594. #endif /* COBJMACROS */
  9595. #endif /* C style interface */
  9596. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_FormatTag_Proxy(
  9597. ISpeechWaveFormatEx * This,
  9598. /* [retval][out] */ short *FormatTag);
  9599. void __RPC_STUB ISpeechWaveFormatEx_get_FormatTag_Stub(
  9600. IRpcStubBuffer *This,
  9601. IRpcChannelBuffer *_pRpcChannelBuffer,
  9602. PRPC_MESSAGE _pRpcMessage,
  9603. DWORD *_pdwStubPhase);
  9604. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_FormatTag_Proxy(
  9605. ISpeechWaveFormatEx * This,
  9606. /* [in] */ short FormatTag);
  9607. void __RPC_STUB ISpeechWaveFormatEx_put_FormatTag_Stub(
  9608. IRpcStubBuffer *This,
  9609. IRpcChannelBuffer *_pRpcChannelBuffer,
  9610. PRPC_MESSAGE _pRpcMessage,
  9611. DWORD *_pdwStubPhase);
  9612. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_Channels_Proxy(
  9613. ISpeechWaveFormatEx * This,
  9614. /* [retval][out] */ short *Channels);
  9615. void __RPC_STUB ISpeechWaveFormatEx_get_Channels_Stub(
  9616. IRpcStubBuffer *This,
  9617. IRpcChannelBuffer *_pRpcChannelBuffer,
  9618. PRPC_MESSAGE _pRpcMessage,
  9619. DWORD *_pdwStubPhase);
  9620. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_Channels_Proxy(
  9621. ISpeechWaveFormatEx * This,
  9622. /* [in] */ short Channels);
  9623. void __RPC_STUB ISpeechWaveFormatEx_put_Channels_Stub(
  9624. IRpcStubBuffer *This,
  9625. IRpcChannelBuffer *_pRpcChannelBuffer,
  9626. PRPC_MESSAGE _pRpcMessage,
  9627. DWORD *_pdwStubPhase);
  9628. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_SamplesPerSec_Proxy(
  9629. ISpeechWaveFormatEx * This,
  9630. /* [retval][out] */ long *SamplesPerSec);
  9631. void __RPC_STUB ISpeechWaveFormatEx_get_SamplesPerSec_Stub(
  9632. IRpcStubBuffer *This,
  9633. IRpcChannelBuffer *_pRpcChannelBuffer,
  9634. PRPC_MESSAGE _pRpcMessage,
  9635. DWORD *_pdwStubPhase);
  9636. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_SamplesPerSec_Proxy(
  9637. ISpeechWaveFormatEx * This,
  9638. /* [in] */ long SamplesPerSec);
  9639. void __RPC_STUB ISpeechWaveFormatEx_put_SamplesPerSec_Stub(
  9640. IRpcStubBuffer *This,
  9641. IRpcChannelBuffer *_pRpcChannelBuffer,
  9642. PRPC_MESSAGE _pRpcMessage,
  9643. DWORD *_pdwStubPhase);
  9644. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_AvgBytesPerSec_Proxy(
  9645. ISpeechWaveFormatEx * This,
  9646. /* [retval][out] */ long *AvgBytesPerSec);
  9647. void __RPC_STUB ISpeechWaveFormatEx_get_AvgBytesPerSec_Stub(
  9648. IRpcStubBuffer *This,
  9649. IRpcChannelBuffer *_pRpcChannelBuffer,
  9650. PRPC_MESSAGE _pRpcMessage,
  9651. DWORD *_pdwStubPhase);
  9652. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_AvgBytesPerSec_Proxy(
  9653. ISpeechWaveFormatEx * This,
  9654. /* [in] */ long AvgBytesPerSec);
  9655. void __RPC_STUB ISpeechWaveFormatEx_put_AvgBytesPerSec_Stub(
  9656. IRpcStubBuffer *This,
  9657. IRpcChannelBuffer *_pRpcChannelBuffer,
  9658. PRPC_MESSAGE _pRpcMessage,
  9659. DWORD *_pdwStubPhase);
  9660. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_BlockAlign_Proxy(
  9661. ISpeechWaveFormatEx * This,
  9662. /* [retval][out] */ short *BlockAlign);
  9663. void __RPC_STUB ISpeechWaveFormatEx_get_BlockAlign_Stub(
  9664. IRpcStubBuffer *This,
  9665. IRpcChannelBuffer *_pRpcChannelBuffer,
  9666. PRPC_MESSAGE _pRpcMessage,
  9667. DWORD *_pdwStubPhase);
  9668. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_BlockAlign_Proxy(
  9669. ISpeechWaveFormatEx * This,
  9670. /* [in] */ short BlockAlign);
  9671. void __RPC_STUB ISpeechWaveFormatEx_put_BlockAlign_Stub(
  9672. IRpcStubBuffer *This,
  9673. IRpcChannelBuffer *_pRpcChannelBuffer,
  9674. PRPC_MESSAGE _pRpcMessage,
  9675. DWORD *_pdwStubPhase);
  9676. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_BitsPerSample_Proxy(
  9677. ISpeechWaveFormatEx * This,
  9678. /* [retval][out] */ short *BitsPerSample);
  9679. void __RPC_STUB ISpeechWaveFormatEx_get_BitsPerSample_Stub(
  9680. IRpcStubBuffer *This,
  9681. IRpcChannelBuffer *_pRpcChannelBuffer,
  9682. PRPC_MESSAGE _pRpcMessage,
  9683. DWORD *_pdwStubPhase);
  9684. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_BitsPerSample_Proxy(
  9685. ISpeechWaveFormatEx * This,
  9686. /* [in] */ short BitsPerSample);
  9687. void __RPC_STUB ISpeechWaveFormatEx_put_BitsPerSample_Stub(
  9688. IRpcStubBuffer *This,
  9689. IRpcChannelBuffer *_pRpcChannelBuffer,
  9690. PRPC_MESSAGE _pRpcMessage,
  9691. DWORD *_pdwStubPhase);
  9692. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_get_ExtraData_Proxy(
  9693. ISpeechWaveFormatEx * This,
  9694. /* [retval][out] */ VARIANT *ExtraData);
  9695. void __RPC_STUB ISpeechWaveFormatEx_get_ExtraData_Stub(
  9696. IRpcStubBuffer *This,
  9697. IRpcChannelBuffer *_pRpcChannelBuffer,
  9698. PRPC_MESSAGE _pRpcMessage,
  9699. DWORD *_pdwStubPhase);
  9700. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechWaveFormatEx_put_ExtraData_Proxy(
  9701. ISpeechWaveFormatEx * This,
  9702. /* [in] */ VARIANT ExtraData);
  9703. void __RPC_STUB ISpeechWaveFormatEx_put_ExtraData_Stub(
  9704. IRpcStubBuffer *This,
  9705. IRpcChannelBuffer *_pRpcChannelBuffer,
  9706. PRPC_MESSAGE _pRpcMessage,
  9707. DWORD *_pdwStubPhase);
  9708. #endif /* __ISpeechWaveFormatEx_INTERFACE_DEFINED__ */
  9709. #ifndef __ISpeechBaseStream_INTERFACE_DEFINED__
  9710. #define __ISpeechBaseStream_INTERFACE_DEFINED__
  9711. /* interface ISpeechBaseStream */
  9712. /* [unique][helpstring][dual][uuid][object] */
  9713. EXTERN_C const IID IID_ISpeechBaseStream;
  9714. #if defined(__cplusplus) && !defined(CINTERFACE)
  9715. MIDL_INTERFACE("6450336F-7D49-4ced-8097-49D6DEE37294")
  9716. ISpeechBaseStream : public IDispatch
  9717. {
  9718. public:
  9719. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Format(
  9720. /* [retval][out] */ ISpeechAudioFormat **AudioFormat) = 0;
  9721. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Format(
  9722. /* [in] */ ISpeechAudioFormat *AudioFormat) = 0;
  9723. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Read(
  9724. /* [out] */ VARIANT *Buffer,
  9725. /* [in] */ long NumberOfBytes,
  9726. /* [retval][out] */ long *BytesRead) = 0;
  9727. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Write(
  9728. /* [in] */ VARIANT Buffer,
  9729. /* [retval][out] */ long *BytesWritten) = 0;
  9730. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Seek(
  9731. /* [in] */ VARIANT Position,
  9732. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9733. /* [retval][out] */ VARIANT *NewPosition) = 0;
  9734. };
  9735. #else /* C style interface */
  9736. typedef struct ISpeechBaseStreamVtbl
  9737. {
  9738. BEGIN_INTERFACE
  9739. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9740. ISpeechBaseStream * This,
  9741. /* [in] */ REFIID riid,
  9742. /* [iid_is][out] */ void **ppvObject);
  9743. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9744. ISpeechBaseStream * This);
  9745. ULONG ( STDMETHODCALLTYPE *Release )(
  9746. ISpeechBaseStream * This);
  9747. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9748. ISpeechBaseStream * This,
  9749. /* [out] */ UINT *pctinfo);
  9750. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9751. ISpeechBaseStream * This,
  9752. /* [in] */ UINT iTInfo,
  9753. /* [in] */ LCID lcid,
  9754. /* [out] */ ITypeInfo **ppTInfo);
  9755. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9756. ISpeechBaseStream * This,
  9757. /* [in] */ REFIID riid,
  9758. /* [size_is][in] */ LPOLESTR *rgszNames,
  9759. /* [in] */ UINT cNames,
  9760. /* [in] */ LCID lcid,
  9761. /* [size_is][out] */ DISPID *rgDispId);
  9762. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9763. ISpeechBaseStream * This,
  9764. /* [in] */ DISPID dispIdMember,
  9765. /* [in] */ REFIID riid,
  9766. /* [in] */ LCID lcid,
  9767. /* [in] */ WORD wFlags,
  9768. /* [out][in] */ DISPPARAMS *pDispParams,
  9769. /* [out] */ VARIANT *pVarResult,
  9770. /* [out] */ EXCEPINFO *pExcepInfo,
  9771. /* [out] */ UINT *puArgErr);
  9772. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  9773. ISpeechBaseStream * This,
  9774. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9775. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  9776. ISpeechBaseStream * This,
  9777. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9778. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  9779. ISpeechBaseStream * This,
  9780. /* [out] */ VARIANT *Buffer,
  9781. /* [in] */ long NumberOfBytes,
  9782. /* [retval][out] */ long *BytesRead);
  9783. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  9784. ISpeechBaseStream * This,
  9785. /* [in] */ VARIANT Buffer,
  9786. /* [retval][out] */ long *BytesWritten);
  9787. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  9788. ISpeechBaseStream * This,
  9789. /* [in] */ VARIANT Position,
  9790. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9791. /* [retval][out] */ VARIANT *NewPosition);
  9792. END_INTERFACE
  9793. } ISpeechBaseStreamVtbl;
  9794. interface ISpeechBaseStream
  9795. {
  9796. CONST_VTBL struct ISpeechBaseStreamVtbl *lpVtbl;
  9797. };
  9798. #ifdef COBJMACROS
  9799. #define ISpeechBaseStream_QueryInterface(This,riid,ppvObject) \
  9800. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9801. #define ISpeechBaseStream_AddRef(This) \
  9802. (This)->lpVtbl -> AddRef(This)
  9803. #define ISpeechBaseStream_Release(This) \
  9804. (This)->lpVtbl -> Release(This)
  9805. #define ISpeechBaseStream_GetTypeInfoCount(This,pctinfo) \
  9806. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9807. #define ISpeechBaseStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9808. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9809. #define ISpeechBaseStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9810. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9811. #define ISpeechBaseStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9812. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9813. #define ISpeechBaseStream_get_Format(This,AudioFormat) \
  9814. (This)->lpVtbl -> get_Format(This,AudioFormat)
  9815. #define ISpeechBaseStream_putref_Format(This,AudioFormat) \
  9816. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  9817. #define ISpeechBaseStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  9818. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  9819. #define ISpeechBaseStream_Write(This,Buffer,BytesWritten) \
  9820. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  9821. #define ISpeechBaseStream_Seek(This,Position,Origin,NewPosition) \
  9822. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  9823. #endif /* COBJMACROS */
  9824. #endif /* C style interface */
  9825. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_get_Format_Proxy(
  9826. ISpeechBaseStream * This,
  9827. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9828. void __RPC_STUB ISpeechBaseStream_get_Format_Stub(
  9829. IRpcStubBuffer *This,
  9830. IRpcChannelBuffer *_pRpcChannelBuffer,
  9831. PRPC_MESSAGE _pRpcMessage,
  9832. DWORD *_pdwStubPhase);
  9833. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_putref_Format_Proxy(
  9834. ISpeechBaseStream * This,
  9835. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9836. void __RPC_STUB ISpeechBaseStream_putref_Format_Stub(
  9837. IRpcStubBuffer *This,
  9838. IRpcChannelBuffer *_pRpcChannelBuffer,
  9839. PRPC_MESSAGE _pRpcMessage,
  9840. DWORD *_pdwStubPhase);
  9841. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Read_Proxy(
  9842. ISpeechBaseStream * This,
  9843. /* [out] */ VARIANT *Buffer,
  9844. /* [in] */ long NumberOfBytes,
  9845. /* [retval][out] */ long *BytesRead);
  9846. void __RPC_STUB ISpeechBaseStream_Read_Stub(
  9847. IRpcStubBuffer *This,
  9848. IRpcChannelBuffer *_pRpcChannelBuffer,
  9849. PRPC_MESSAGE _pRpcMessage,
  9850. DWORD *_pdwStubPhase);
  9851. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Write_Proxy(
  9852. ISpeechBaseStream * This,
  9853. /* [in] */ VARIANT Buffer,
  9854. /* [retval][out] */ long *BytesWritten);
  9855. void __RPC_STUB ISpeechBaseStream_Write_Stub(
  9856. IRpcStubBuffer *This,
  9857. IRpcChannelBuffer *_pRpcChannelBuffer,
  9858. PRPC_MESSAGE _pRpcMessage,
  9859. DWORD *_pdwStubPhase);
  9860. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechBaseStream_Seek_Proxy(
  9861. ISpeechBaseStream * This,
  9862. /* [in] */ VARIANT Position,
  9863. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9864. /* [retval][out] */ VARIANT *NewPosition);
  9865. void __RPC_STUB ISpeechBaseStream_Seek_Stub(
  9866. IRpcStubBuffer *This,
  9867. IRpcChannelBuffer *_pRpcChannelBuffer,
  9868. PRPC_MESSAGE _pRpcMessage,
  9869. DWORD *_pdwStubPhase);
  9870. #endif /* __ISpeechBaseStream_INTERFACE_DEFINED__ */
  9871. #ifndef __ISpeechFileStream_INTERFACE_DEFINED__
  9872. #define __ISpeechFileStream_INTERFACE_DEFINED__
  9873. /* interface ISpeechFileStream */
  9874. /* [unique][helpstring][dual][uuid][object] */
  9875. EXTERN_C const IID IID_ISpeechFileStream;
  9876. #if defined(__cplusplus) && !defined(CINTERFACE)
  9877. MIDL_INTERFACE("AF67F125-AB39-4e93-B4A2-CC2E66E182A7")
  9878. ISpeechFileStream : public ISpeechBaseStream
  9879. {
  9880. public:
  9881. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Open(
  9882. /* [in] */ BSTR FileName,
  9883. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode = SSFMOpenForRead,
  9884. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents = 0) = 0;
  9885. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Close( void) = 0;
  9886. };
  9887. #else /* C style interface */
  9888. typedef struct ISpeechFileStreamVtbl
  9889. {
  9890. BEGIN_INTERFACE
  9891. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  9892. ISpeechFileStream * This,
  9893. /* [in] */ REFIID riid,
  9894. /* [iid_is][out] */ void **ppvObject);
  9895. ULONG ( STDMETHODCALLTYPE *AddRef )(
  9896. ISpeechFileStream * This);
  9897. ULONG ( STDMETHODCALLTYPE *Release )(
  9898. ISpeechFileStream * This);
  9899. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  9900. ISpeechFileStream * This,
  9901. /* [out] */ UINT *pctinfo);
  9902. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  9903. ISpeechFileStream * This,
  9904. /* [in] */ UINT iTInfo,
  9905. /* [in] */ LCID lcid,
  9906. /* [out] */ ITypeInfo **ppTInfo);
  9907. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  9908. ISpeechFileStream * This,
  9909. /* [in] */ REFIID riid,
  9910. /* [size_is][in] */ LPOLESTR *rgszNames,
  9911. /* [in] */ UINT cNames,
  9912. /* [in] */ LCID lcid,
  9913. /* [size_is][out] */ DISPID *rgDispId);
  9914. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  9915. ISpeechFileStream * This,
  9916. /* [in] */ DISPID dispIdMember,
  9917. /* [in] */ REFIID riid,
  9918. /* [in] */ LCID lcid,
  9919. /* [in] */ WORD wFlags,
  9920. /* [out][in] */ DISPPARAMS *pDispParams,
  9921. /* [out] */ VARIANT *pVarResult,
  9922. /* [out] */ EXCEPINFO *pExcepInfo,
  9923. /* [out] */ UINT *puArgErr);
  9924. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  9925. ISpeechFileStream * This,
  9926. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  9927. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  9928. ISpeechFileStream * This,
  9929. /* [in] */ ISpeechAudioFormat *AudioFormat);
  9930. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  9931. ISpeechFileStream * This,
  9932. /* [out] */ VARIANT *Buffer,
  9933. /* [in] */ long NumberOfBytes,
  9934. /* [retval][out] */ long *BytesRead);
  9935. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  9936. ISpeechFileStream * This,
  9937. /* [in] */ VARIANT Buffer,
  9938. /* [retval][out] */ long *BytesWritten);
  9939. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  9940. ISpeechFileStream * This,
  9941. /* [in] */ VARIANT Position,
  9942. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  9943. /* [retval][out] */ VARIANT *NewPosition);
  9944. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Open )(
  9945. ISpeechFileStream * This,
  9946. /* [in] */ BSTR FileName,
  9947. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode,
  9948. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents);
  9949. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Close )(
  9950. ISpeechFileStream * This);
  9951. END_INTERFACE
  9952. } ISpeechFileStreamVtbl;
  9953. interface ISpeechFileStream
  9954. {
  9955. CONST_VTBL struct ISpeechFileStreamVtbl *lpVtbl;
  9956. };
  9957. #ifdef COBJMACROS
  9958. #define ISpeechFileStream_QueryInterface(This,riid,ppvObject) \
  9959. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  9960. #define ISpeechFileStream_AddRef(This) \
  9961. (This)->lpVtbl -> AddRef(This)
  9962. #define ISpeechFileStream_Release(This) \
  9963. (This)->lpVtbl -> Release(This)
  9964. #define ISpeechFileStream_GetTypeInfoCount(This,pctinfo) \
  9965. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  9966. #define ISpeechFileStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  9967. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9968. #define ISpeechFileStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  9969. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9970. #define ISpeechFileStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  9971. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9972. #define ISpeechFileStream_get_Format(This,AudioFormat) \
  9973. (This)->lpVtbl -> get_Format(This,AudioFormat)
  9974. #define ISpeechFileStream_putref_Format(This,AudioFormat) \
  9975. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  9976. #define ISpeechFileStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  9977. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  9978. #define ISpeechFileStream_Write(This,Buffer,BytesWritten) \
  9979. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  9980. #define ISpeechFileStream_Seek(This,Position,Origin,NewPosition) \
  9981. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  9982. #define ISpeechFileStream_Open(This,FileName,FileMode,DoEvents) \
  9983. (This)->lpVtbl -> Open(This,FileName,FileMode,DoEvents)
  9984. #define ISpeechFileStream_Close(This) \
  9985. (This)->lpVtbl -> Close(This)
  9986. #endif /* COBJMACROS */
  9987. #endif /* C style interface */
  9988. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechFileStream_Open_Proxy(
  9989. ISpeechFileStream * This,
  9990. /* [in] */ BSTR FileName,
  9991. /* [defaultvalue][in] */ SpeechStreamFileMode FileMode,
  9992. /* [defaultvalue][in] */ VARIANT_BOOL DoEvents);
  9993. void __RPC_STUB ISpeechFileStream_Open_Stub(
  9994. IRpcStubBuffer *This,
  9995. IRpcChannelBuffer *_pRpcChannelBuffer,
  9996. PRPC_MESSAGE _pRpcMessage,
  9997. DWORD *_pdwStubPhase);
  9998. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechFileStream_Close_Proxy(
  9999. ISpeechFileStream * This);
  10000. void __RPC_STUB ISpeechFileStream_Close_Stub(
  10001. IRpcStubBuffer *This,
  10002. IRpcChannelBuffer *_pRpcChannelBuffer,
  10003. PRPC_MESSAGE _pRpcMessage,
  10004. DWORD *_pdwStubPhase);
  10005. #endif /* __ISpeechFileStream_INTERFACE_DEFINED__ */
  10006. #ifndef __ISpeechMemoryStream_INTERFACE_DEFINED__
  10007. #define __ISpeechMemoryStream_INTERFACE_DEFINED__
  10008. /* interface ISpeechMemoryStream */
  10009. /* [unique][helpstring][dual][uuid][object] */
  10010. EXTERN_C const IID IID_ISpeechMemoryStream;
  10011. #if defined(__cplusplus) && !defined(CINTERFACE)
  10012. MIDL_INTERFACE("EEB14B68-808B-4abe-A5EA-B51DA7588008")
  10013. ISpeechMemoryStream : public ISpeechBaseStream
  10014. {
  10015. public:
  10016. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetData(
  10017. /* [in] */ VARIANT Data) = 0;
  10018. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetData(
  10019. /* [retval][out] */ VARIANT *pData) = 0;
  10020. };
  10021. #else /* C style interface */
  10022. typedef struct ISpeechMemoryStreamVtbl
  10023. {
  10024. BEGIN_INTERFACE
  10025. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10026. ISpeechMemoryStream * This,
  10027. /* [in] */ REFIID riid,
  10028. /* [iid_is][out] */ void **ppvObject);
  10029. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10030. ISpeechMemoryStream * This);
  10031. ULONG ( STDMETHODCALLTYPE *Release )(
  10032. ISpeechMemoryStream * This);
  10033. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10034. ISpeechMemoryStream * This,
  10035. /* [out] */ UINT *pctinfo);
  10036. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10037. ISpeechMemoryStream * This,
  10038. /* [in] */ UINT iTInfo,
  10039. /* [in] */ LCID lcid,
  10040. /* [out] */ ITypeInfo **ppTInfo);
  10041. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10042. ISpeechMemoryStream * This,
  10043. /* [in] */ REFIID riid,
  10044. /* [size_is][in] */ LPOLESTR *rgszNames,
  10045. /* [in] */ UINT cNames,
  10046. /* [in] */ LCID lcid,
  10047. /* [size_is][out] */ DISPID *rgDispId);
  10048. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10049. ISpeechMemoryStream * This,
  10050. /* [in] */ DISPID dispIdMember,
  10051. /* [in] */ REFIID riid,
  10052. /* [in] */ LCID lcid,
  10053. /* [in] */ WORD wFlags,
  10054. /* [out][in] */ DISPPARAMS *pDispParams,
  10055. /* [out] */ VARIANT *pVarResult,
  10056. /* [out] */ EXCEPINFO *pExcepInfo,
  10057. /* [out] */ UINT *puArgErr);
  10058. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10059. ISpeechMemoryStream * This,
  10060. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10061. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10062. ISpeechMemoryStream * This,
  10063. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10064. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10065. ISpeechMemoryStream * This,
  10066. /* [out] */ VARIANT *Buffer,
  10067. /* [in] */ long NumberOfBytes,
  10068. /* [retval][out] */ long *BytesRead);
  10069. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10070. ISpeechMemoryStream * This,
  10071. /* [in] */ VARIANT Buffer,
  10072. /* [retval][out] */ long *BytesWritten);
  10073. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10074. ISpeechMemoryStream * This,
  10075. /* [in] */ VARIANT Position,
  10076. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10077. /* [retval][out] */ VARIANT *NewPosition);
  10078. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetData )(
  10079. ISpeechMemoryStream * This,
  10080. /* [in] */ VARIANT Data);
  10081. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetData )(
  10082. ISpeechMemoryStream * This,
  10083. /* [retval][out] */ VARIANT *pData);
  10084. END_INTERFACE
  10085. } ISpeechMemoryStreamVtbl;
  10086. interface ISpeechMemoryStream
  10087. {
  10088. CONST_VTBL struct ISpeechMemoryStreamVtbl *lpVtbl;
  10089. };
  10090. #ifdef COBJMACROS
  10091. #define ISpeechMemoryStream_QueryInterface(This,riid,ppvObject) \
  10092. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10093. #define ISpeechMemoryStream_AddRef(This) \
  10094. (This)->lpVtbl -> AddRef(This)
  10095. #define ISpeechMemoryStream_Release(This) \
  10096. (This)->lpVtbl -> Release(This)
  10097. #define ISpeechMemoryStream_GetTypeInfoCount(This,pctinfo) \
  10098. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10099. #define ISpeechMemoryStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10100. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10101. #define ISpeechMemoryStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10102. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10103. #define ISpeechMemoryStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10104. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10105. #define ISpeechMemoryStream_get_Format(This,AudioFormat) \
  10106. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10107. #define ISpeechMemoryStream_putref_Format(This,AudioFormat) \
  10108. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10109. #define ISpeechMemoryStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10110. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10111. #define ISpeechMemoryStream_Write(This,Buffer,BytesWritten) \
  10112. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10113. #define ISpeechMemoryStream_Seek(This,Position,Origin,NewPosition) \
  10114. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10115. #define ISpeechMemoryStream_SetData(This,Data) \
  10116. (This)->lpVtbl -> SetData(This,Data)
  10117. #define ISpeechMemoryStream_GetData(This,pData) \
  10118. (This)->lpVtbl -> GetData(This,pData)
  10119. #endif /* COBJMACROS */
  10120. #endif /* C style interface */
  10121. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechMemoryStream_SetData_Proxy(
  10122. ISpeechMemoryStream * This,
  10123. /* [in] */ VARIANT Data);
  10124. void __RPC_STUB ISpeechMemoryStream_SetData_Stub(
  10125. IRpcStubBuffer *This,
  10126. IRpcChannelBuffer *_pRpcChannelBuffer,
  10127. PRPC_MESSAGE _pRpcMessage,
  10128. DWORD *_pdwStubPhase);
  10129. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechMemoryStream_GetData_Proxy(
  10130. ISpeechMemoryStream * This,
  10131. /* [retval][out] */ VARIANT *pData);
  10132. void __RPC_STUB ISpeechMemoryStream_GetData_Stub(
  10133. IRpcStubBuffer *This,
  10134. IRpcChannelBuffer *_pRpcChannelBuffer,
  10135. PRPC_MESSAGE _pRpcMessage,
  10136. DWORD *_pdwStubPhase);
  10137. #endif /* __ISpeechMemoryStream_INTERFACE_DEFINED__ */
  10138. #ifndef __ISpeechCustomStream_INTERFACE_DEFINED__
  10139. #define __ISpeechCustomStream_INTERFACE_DEFINED__
  10140. /* interface ISpeechCustomStream */
  10141. /* [unique][helpstring][dual][uuid][object] */
  10142. EXTERN_C const IID IID_ISpeechCustomStream;
  10143. #if defined(__cplusplus) && !defined(CINTERFACE)
  10144. MIDL_INTERFACE("1A9E9F4F-104F-4db8-A115-EFD7FD0C97AE")
  10145. ISpeechCustomStream : public ISpeechBaseStream
  10146. {
  10147. public:
  10148. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BaseStream(
  10149. /* [retval][out] */ IUnknown **ppUnkStream) = 0;
  10150. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_BaseStream(
  10151. /* [in] */ IUnknown *pUnkStream) = 0;
  10152. };
  10153. #else /* C style interface */
  10154. typedef struct ISpeechCustomStreamVtbl
  10155. {
  10156. BEGIN_INTERFACE
  10157. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10158. ISpeechCustomStream * This,
  10159. /* [in] */ REFIID riid,
  10160. /* [iid_is][out] */ void **ppvObject);
  10161. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10162. ISpeechCustomStream * This);
  10163. ULONG ( STDMETHODCALLTYPE *Release )(
  10164. ISpeechCustomStream * This);
  10165. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10166. ISpeechCustomStream * This,
  10167. /* [out] */ UINT *pctinfo);
  10168. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10169. ISpeechCustomStream * This,
  10170. /* [in] */ UINT iTInfo,
  10171. /* [in] */ LCID lcid,
  10172. /* [out] */ ITypeInfo **ppTInfo);
  10173. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10174. ISpeechCustomStream * This,
  10175. /* [in] */ REFIID riid,
  10176. /* [size_is][in] */ LPOLESTR *rgszNames,
  10177. /* [in] */ UINT cNames,
  10178. /* [in] */ LCID lcid,
  10179. /* [size_is][out] */ DISPID *rgDispId);
  10180. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10181. ISpeechCustomStream * This,
  10182. /* [in] */ DISPID dispIdMember,
  10183. /* [in] */ REFIID riid,
  10184. /* [in] */ LCID lcid,
  10185. /* [in] */ WORD wFlags,
  10186. /* [out][in] */ DISPPARAMS *pDispParams,
  10187. /* [out] */ VARIANT *pVarResult,
  10188. /* [out] */ EXCEPINFO *pExcepInfo,
  10189. /* [out] */ UINT *puArgErr);
  10190. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10191. ISpeechCustomStream * This,
  10192. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10193. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10194. ISpeechCustomStream * This,
  10195. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10196. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10197. ISpeechCustomStream * This,
  10198. /* [out] */ VARIANT *Buffer,
  10199. /* [in] */ long NumberOfBytes,
  10200. /* [retval][out] */ long *BytesRead);
  10201. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10202. ISpeechCustomStream * This,
  10203. /* [in] */ VARIANT Buffer,
  10204. /* [retval][out] */ long *BytesWritten);
  10205. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10206. ISpeechCustomStream * This,
  10207. /* [in] */ VARIANT Position,
  10208. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10209. /* [retval][out] */ VARIANT *NewPosition);
  10210. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BaseStream )(
  10211. ISpeechCustomStream * This,
  10212. /* [retval][out] */ IUnknown **ppUnkStream);
  10213. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_BaseStream )(
  10214. ISpeechCustomStream * This,
  10215. /* [in] */ IUnknown *pUnkStream);
  10216. END_INTERFACE
  10217. } ISpeechCustomStreamVtbl;
  10218. interface ISpeechCustomStream
  10219. {
  10220. CONST_VTBL struct ISpeechCustomStreamVtbl *lpVtbl;
  10221. };
  10222. #ifdef COBJMACROS
  10223. #define ISpeechCustomStream_QueryInterface(This,riid,ppvObject) \
  10224. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10225. #define ISpeechCustomStream_AddRef(This) \
  10226. (This)->lpVtbl -> AddRef(This)
  10227. #define ISpeechCustomStream_Release(This) \
  10228. (This)->lpVtbl -> Release(This)
  10229. #define ISpeechCustomStream_GetTypeInfoCount(This,pctinfo) \
  10230. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10231. #define ISpeechCustomStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10232. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10233. #define ISpeechCustomStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10234. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10235. #define ISpeechCustomStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10236. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10237. #define ISpeechCustomStream_get_Format(This,AudioFormat) \
  10238. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10239. #define ISpeechCustomStream_putref_Format(This,AudioFormat) \
  10240. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10241. #define ISpeechCustomStream_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10242. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10243. #define ISpeechCustomStream_Write(This,Buffer,BytesWritten) \
  10244. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10245. #define ISpeechCustomStream_Seek(This,Position,Origin,NewPosition) \
  10246. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10247. #define ISpeechCustomStream_get_BaseStream(This,ppUnkStream) \
  10248. (This)->lpVtbl -> get_BaseStream(This,ppUnkStream)
  10249. #define ISpeechCustomStream_putref_BaseStream(This,pUnkStream) \
  10250. (This)->lpVtbl -> putref_BaseStream(This,pUnkStream)
  10251. #endif /* COBJMACROS */
  10252. #endif /* C style interface */
  10253. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechCustomStream_get_BaseStream_Proxy(
  10254. ISpeechCustomStream * This,
  10255. /* [retval][out] */ IUnknown **ppUnkStream);
  10256. void __RPC_STUB ISpeechCustomStream_get_BaseStream_Stub(
  10257. IRpcStubBuffer *This,
  10258. IRpcChannelBuffer *_pRpcChannelBuffer,
  10259. PRPC_MESSAGE _pRpcMessage,
  10260. DWORD *_pdwStubPhase);
  10261. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechCustomStream_putref_BaseStream_Proxy(
  10262. ISpeechCustomStream * This,
  10263. /* [in] */ IUnknown *pUnkStream);
  10264. void __RPC_STUB ISpeechCustomStream_putref_BaseStream_Stub(
  10265. IRpcStubBuffer *This,
  10266. IRpcChannelBuffer *_pRpcChannelBuffer,
  10267. PRPC_MESSAGE _pRpcMessage,
  10268. DWORD *_pdwStubPhase);
  10269. #endif /* __ISpeechCustomStream_INTERFACE_DEFINED__ */
  10270. #ifndef __ISpeechAudio_INTERFACE_DEFINED__
  10271. #define __ISpeechAudio_INTERFACE_DEFINED__
  10272. /* interface ISpeechAudio */
  10273. /* [unique][helpstring][dual][uuid][object] */
  10274. EXTERN_C const IID IID_ISpeechAudio;
  10275. #if defined(__cplusplus) && !defined(CINTERFACE)
  10276. MIDL_INTERFACE("CFF8E175-019E-11d3-A08E-00C04F8EF9B5")
  10277. ISpeechAudio : public ISpeechBaseStream
  10278. {
  10279. public:
  10280. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  10281. /* [retval][out] */ ISpeechAudioStatus **Status) = 0;
  10282. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferInfo(
  10283. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo) = 0;
  10284. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultFormat(
  10285. /* [retval][out] */ ISpeechAudioFormat **StreamFormat) = 0;
  10286. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Volume(
  10287. /* [retval][out] */ long *Volume) = 0;
  10288. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Volume(
  10289. /* [in] */ long Volume) = 0;
  10290. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_BufferNotifySize(
  10291. /* [retval][out] */ long *BufferNotifySize) = 0;
  10292. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_BufferNotifySize(
  10293. /* [in] */ long BufferNotifySize) = 0;
  10294. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_EventHandle(
  10295. /* [retval][out] */ long *EventHandle) = 0;
  10296. virtual /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE SetState(
  10297. /* [in] */ SpeechAudioState State) = 0;
  10298. };
  10299. #else /* C style interface */
  10300. typedef struct ISpeechAudioVtbl
  10301. {
  10302. BEGIN_INTERFACE
  10303. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10304. ISpeechAudio * This,
  10305. /* [in] */ REFIID riid,
  10306. /* [iid_is][out] */ void **ppvObject);
  10307. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10308. ISpeechAudio * This);
  10309. ULONG ( STDMETHODCALLTYPE *Release )(
  10310. ISpeechAudio * This);
  10311. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10312. ISpeechAudio * This,
  10313. /* [out] */ UINT *pctinfo);
  10314. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10315. ISpeechAudio * This,
  10316. /* [in] */ UINT iTInfo,
  10317. /* [in] */ LCID lcid,
  10318. /* [out] */ ITypeInfo **ppTInfo);
  10319. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10320. ISpeechAudio * This,
  10321. /* [in] */ REFIID riid,
  10322. /* [size_is][in] */ LPOLESTR *rgszNames,
  10323. /* [in] */ UINT cNames,
  10324. /* [in] */ LCID lcid,
  10325. /* [size_is][out] */ DISPID *rgDispId);
  10326. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10327. ISpeechAudio * This,
  10328. /* [in] */ DISPID dispIdMember,
  10329. /* [in] */ REFIID riid,
  10330. /* [in] */ LCID lcid,
  10331. /* [in] */ WORD wFlags,
  10332. /* [out][in] */ DISPPARAMS *pDispParams,
  10333. /* [out] */ VARIANT *pVarResult,
  10334. /* [out] */ EXCEPINFO *pExcepInfo,
  10335. /* [out] */ UINT *puArgErr);
  10336. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10337. ISpeechAudio * This,
  10338. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10339. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10340. ISpeechAudio * This,
  10341. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10342. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10343. ISpeechAudio * This,
  10344. /* [out] */ VARIANT *Buffer,
  10345. /* [in] */ long NumberOfBytes,
  10346. /* [retval][out] */ long *BytesRead);
  10347. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10348. ISpeechAudio * This,
  10349. /* [in] */ VARIANT Buffer,
  10350. /* [retval][out] */ long *BytesWritten);
  10351. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10352. ISpeechAudio * This,
  10353. /* [in] */ VARIANT Position,
  10354. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10355. /* [retval][out] */ VARIANT *NewPosition);
  10356. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10357. ISpeechAudio * This,
  10358. /* [retval][out] */ ISpeechAudioStatus **Status);
  10359. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferInfo )(
  10360. ISpeechAudio * This,
  10361. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10362. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFormat )(
  10363. ISpeechAudio * This,
  10364. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10365. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10366. ISpeechAudio * This,
  10367. /* [retval][out] */ long *Volume);
  10368. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10369. ISpeechAudio * This,
  10370. /* [in] */ long Volume);
  10371. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferNotifySize )(
  10372. ISpeechAudio * This,
  10373. /* [retval][out] */ long *BufferNotifySize);
  10374. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferNotifySize )(
  10375. ISpeechAudio * This,
  10376. /* [in] */ long BufferNotifySize);
  10377. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventHandle )(
  10378. ISpeechAudio * This,
  10379. /* [retval][out] */ long *EventHandle);
  10380. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetState )(
  10381. ISpeechAudio * This,
  10382. /* [in] */ SpeechAudioState State);
  10383. END_INTERFACE
  10384. } ISpeechAudioVtbl;
  10385. interface ISpeechAudio
  10386. {
  10387. CONST_VTBL struct ISpeechAudioVtbl *lpVtbl;
  10388. };
  10389. #ifdef COBJMACROS
  10390. #define ISpeechAudio_QueryInterface(This,riid,ppvObject) \
  10391. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10392. #define ISpeechAudio_AddRef(This) \
  10393. (This)->lpVtbl -> AddRef(This)
  10394. #define ISpeechAudio_Release(This) \
  10395. (This)->lpVtbl -> Release(This)
  10396. #define ISpeechAudio_GetTypeInfoCount(This,pctinfo) \
  10397. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10398. #define ISpeechAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10399. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10400. #define ISpeechAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10401. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10402. #define ISpeechAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10403. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10404. #define ISpeechAudio_get_Format(This,AudioFormat) \
  10405. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10406. #define ISpeechAudio_putref_Format(This,AudioFormat) \
  10407. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10408. #define ISpeechAudio_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10409. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10410. #define ISpeechAudio_Write(This,Buffer,BytesWritten) \
  10411. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10412. #define ISpeechAudio_Seek(This,Position,Origin,NewPosition) \
  10413. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10414. #define ISpeechAudio_get_Status(This,Status) \
  10415. (This)->lpVtbl -> get_Status(This,Status)
  10416. #define ISpeechAudio_get_BufferInfo(This,BufferInfo) \
  10417. (This)->lpVtbl -> get_BufferInfo(This,BufferInfo)
  10418. #define ISpeechAudio_get_DefaultFormat(This,StreamFormat) \
  10419. (This)->lpVtbl -> get_DefaultFormat(This,StreamFormat)
  10420. #define ISpeechAudio_get_Volume(This,Volume) \
  10421. (This)->lpVtbl -> get_Volume(This,Volume)
  10422. #define ISpeechAudio_put_Volume(This,Volume) \
  10423. (This)->lpVtbl -> put_Volume(This,Volume)
  10424. #define ISpeechAudio_get_BufferNotifySize(This,BufferNotifySize) \
  10425. (This)->lpVtbl -> get_BufferNotifySize(This,BufferNotifySize)
  10426. #define ISpeechAudio_put_BufferNotifySize(This,BufferNotifySize) \
  10427. (This)->lpVtbl -> put_BufferNotifySize(This,BufferNotifySize)
  10428. #define ISpeechAudio_get_EventHandle(This,EventHandle) \
  10429. (This)->lpVtbl -> get_EventHandle(This,EventHandle)
  10430. #define ISpeechAudio_SetState(This,State) \
  10431. (This)->lpVtbl -> SetState(This,State)
  10432. #endif /* COBJMACROS */
  10433. #endif /* C style interface */
  10434. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_Status_Proxy(
  10435. ISpeechAudio * This,
  10436. /* [retval][out] */ ISpeechAudioStatus **Status);
  10437. void __RPC_STUB ISpeechAudio_get_Status_Stub(
  10438. IRpcStubBuffer *This,
  10439. IRpcChannelBuffer *_pRpcChannelBuffer,
  10440. PRPC_MESSAGE _pRpcMessage,
  10441. DWORD *_pdwStubPhase);
  10442. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_BufferInfo_Proxy(
  10443. ISpeechAudio * This,
  10444. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10445. void __RPC_STUB ISpeechAudio_get_BufferInfo_Stub(
  10446. IRpcStubBuffer *This,
  10447. IRpcChannelBuffer *_pRpcChannelBuffer,
  10448. PRPC_MESSAGE _pRpcMessage,
  10449. DWORD *_pdwStubPhase);
  10450. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_DefaultFormat_Proxy(
  10451. ISpeechAudio * This,
  10452. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10453. void __RPC_STUB ISpeechAudio_get_DefaultFormat_Stub(
  10454. IRpcStubBuffer *This,
  10455. IRpcChannelBuffer *_pRpcChannelBuffer,
  10456. PRPC_MESSAGE _pRpcMessage,
  10457. DWORD *_pdwStubPhase);
  10458. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_Volume_Proxy(
  10459. ISpeechAudio * This,
  10460. /* [retval][out] */ long *Volume);
  10461. void __RPC_STUB ISpeechAudio_get_Volume_Stub(
  10462. IRpcStubBuffer *This,
  10463. IRpcChannelBuffer *_pRpcChannelBuffer,
  10464. PRPC_MESSAGE _pRpcMessage,
  10465. DWORD *_pdwStubPhase);
  10466. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_put_Volume_Proxy(
  10467. ISpeechAudio * This,
  10468. /* [in] */ long Volume);
  10469. void __RPC_STUB ISpeechAudio_put_Volume_Stub(
  10470. IRpcStubBuffer *This,
  10471. IRpcChannelBuffer *_pRpcChannelBuffer,
  10472. PRPC_MESSAGE _pRpcMessage,
  10473. DWORD *_pdwStubPhase);
  10474. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_BufferNotifySize_Proxy(
  10475. ISpeechAudio * This,
  10476. /* [retval][out] */ long *BufferNotifySize);
  10477. void __RPC_STUB ISpeechAudio_get_BufferNotifySize_Stub(
  10478. IRpcStubBuffer *This,
  10479. IRpcChannelBuffer *_pRpcChannelBuffer,
  10480. PRPC_MESSAGE _pRpcMessage,
  10481. DWORD *_pdwStubPhase);
  10482. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_put_BufferNotifySize_Proxy(
  10483. ISpeechAudio * This,
  10484. /* [in] */ long BufferNotifySize);
  10485. void __RPC_STUB ISpeechAudio_put_BufferNotifySize_Stub(
  10486. IRpcStubBuffer *This,
  10487. IRpcChannelBuffer *_pRpcChannelBuffer,
  10488. PRPC_MESSAGE _pRpcMessage,
  10489. DWORD *_pdwStubPhase);
  10490. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_get_EventHandle_Proxy(
  10491. ISpeechAudio * This,
  10492. /* [retval][out] */ long *EventHandle);
  10493. void __RPC_STUB ISpeechAudio_get_EventHandle_Stub(
  10494. IRpcStubBuffer *This,
  10495. IRpcChannelBuffer *_pRpcChannelBuffer,
  10496. PRPC_MESSAGE _pRpcMessage,
  10497. DWORD *_pdwStubPhase);
  10498. /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechAudio_SetState_Proxy(
  10499. ISpeechAudio * This,
  10500. /* [in] */ SpeechAudioState State);
  10501. void __RPC_STUB ISpeechAudio_SetState_Stub(
  10502. IRpcStubBuffer *This,
  10503. IRpcChannelBuffer *_pRpcChannelBuffer,
  10504. PRPC_MESSAGE _pRpcMessage,
  10505. DWORD *_pdwStubPhase);
  10506. #endif /* __ISpeechAudio_INTERFACE_DEFINED__ */
  10507. #ifndef __ISpeechMMSysAudio_INTERFACE_DEFINED__
  10508. #define __ISpeechMMSysAudio_INTERFACE_DEFINED__
  10509. /* interface ISpeechMMSysAudio */
  10510. /* [unique][helpstring][dual][uuid][object] */
  10511. EXTERN_C const IID IID_ISpeechMMSysAudio;
  10512. #if defined(__cplusplus) && !defined(CINTERFACE)
  10513. MIDL_INTERFACE("3C76AF6D-1FD7-4831-81D1-3B71D5A13C44")
  10514. ISpeechMMSysAudio : public ISpeechAudio
  10515. {
  10516. public:
  10517. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId(
  10518. /* [retval][out] */ long *DeviceId) = 0;
  10519. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_DeviceId(
  10520. /* [in] */ long DeviceId) = 0;
  10521. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LineId(
  10522. /* [retval][out] */ long *LineId) = 0;
  10523. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_LineId(
  10524. /* [in] */ long LineId) = 0;
  10525. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_MMHandle(
  10526. /* [retval][out] */ long *Handle) = 0;
  10527. };
  10528. #else /* C style interface */
  10529. typedef struct ISpeechMMSysAudioVtbl
  10530. {
  10531. BEGIN_INTERFACE
  10532. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10533. ISpeechMMSysAudio * This,
  10534. /* [in] */ REFIID riid,
  10535. /* [iid_is][out] */ void **ppvObject);
  10536. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10537. ISpeechMMSysAudio * This);
  10538. ULONG ( STDMETHODCALLTYPE *Release )(
  10539. ISpeechMMSysAudio * This);
  10540. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10541. ISpeechMMSysAudio * This,
  10542. /* [out] */ UINT *pctinfo);
  10543. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10544. ISpeechMMSysAudio * This,
  10545. /* [in] */ UINT iTInfo,
  10546. /* [in] */ LCID lcid,
  10547. /* [out] */ ITypeInfo **ppTInfo);
  10548. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10549. ISpeechMMSysAudio * This,
  10550. /* [in] */ REFIID riid,
  10551. /* [size_is][in] */ LPOLESTR *rgszNames,
  10552. /* [in] */ UINT cNames,
  10553. /* [in] */ LCID lcid,
  10554. /* [size_is][out] */ DISPID *rgDispId);
  10555. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10556. ISpeechMMSysAudio * This,
  10557. /* [in] */ DISPID dispIdMember,
  10558. /* [in] */ REFIID riid,
  10559. /* [in] */ LCID lcid,
  10560. /* [in] */ WORD wFlags,
  10561. /* [out][in] */ DISPPARAMS *pDispParams,
  10562. /* [out] */ VARIANT *pVarResult,
  10563. /* [out] */ EXCEPINFO *pExcepInfo,
  10564. /* [out] */ UINT *puArgErr);
  10565. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Format )(
  10566. ISpeechMMSysAudio * This,
  10567. /* [retval][out] */ ISpeechAudioFormat **AudioFormat);
  10568. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Format )(
  10569. ISpeechMMSysAudio * This,
  10570. /* [in] */ ISpeechAudioFormat *AudioFormat);
  10571. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  10572. ISpeechMMSysAudio * This,
  10573. /* [out] */ VARIANT *Buffer,
  10574. /* [in] */ long NumberOfBytes,
  10575. /* [retval][out] */ long *BytesRead);
  10576. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  10577. ISpeechMMSysAudio * This,
  10578. /* [in] */ VARIANT Buffer,
  10579. /* [retval][out] */ long *BytesWritten);
  10580. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  10581. ISpeechMMSysAudio * This,
  10582. /* [in] */ VARIANT Position,
  10583. /* [defaultvalue][in] */ SpeechStreamSeekPositionType Origin,
  10584. /* [retval][out] */ VARIANT *NewPosition);
  10585. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10586. ISpeechMMSysAudio * This,
  10587. /* [retval][out] */ ISpeechAudioStatus **Status);
  10588. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferInfo )(
  10589. ISpeechMMSysAudio * This,
  10590. /* [retval][out] */ ISpeechAudioBufferInfo **BufferInfo);
  10591. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFormat )(
  10592. ISpeechMMSysAudio * This,
  10593. /* [retval][out] */ ISpeechAudioFormat **StreamFormat);
  10594. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10595. ISpeechMMSysAudio * This,
  10596. /* [retval][out] */ long *Volume);
  10597. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10598. ISpeechMMSysAudio * This,
  10599. /* [in] */ long Volume);
  10600. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferNotifySize )(
  10601. ISpeechMMSysAudio * This,
  10602. /* [retval][out] */ long *BufferNotifySize);
  10603. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferNotifySize )(
  10604. ISpeechMMSysAudio * This,
  10605. /* [in] */ long BufferNotifySize);
  10606. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventHandle )(
  10607. ISpeechMMSysAudio * This,
  10608. /* [retval][out] */ long *EventHandle);
  10609. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetState )(
  10610. ISpeechMMSysAudio * This,
  10611. /* [in] */ SpeechAudioState State);
  10612. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )(
  10613. ISpeechMMSysAudio * This,
  10614. /* [retval][out] */ long *DeviceId);
  10615. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DeviceId )(
  10616. ISpeechMMSysAudio * This,
  10617. /* [in] */ long DeviceId);
  10618. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineId )(
  10619. ISpeechMMSysAudio * This,
  10620. /* [retval][out] */ long *LineId);
  10621. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LineId )(
  10622. ISpeechMMSysAudio * This,
  10623. /* [in] */ long LineId);
  10624. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MMHandle )(
  10625. ISpeechMMSysAudio * This,
  10626. /* [retval][out] */ long *Handle);
  10627. END_INTERFACE
  10628. } ISpeechMMSysAudioVtbl;
  10629. interface ISpeechMMSysAudio
  10630. {
  10631. CONST_VTBL struct ISpeechMMSysAudioVtbl *lpVtbl;
  10632. };
  10633. #ifdef COBJMACROS
  10634. #define ISpeechMMSysAudio_QueryInterface(This,riid,ppvObject) \
  10635. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10636. #define ISpeechMMSysAudio_AddRef(This) \
  10637. (This)->lpVtbl -> AddRef(This)
  10638. #define ISpeechMMSysAudio_Release(This) \
  10639. (This)->lpVtbl -> Release(This)
  10640. #define ISpeechMMSysAudio_GetTypeInfoCount(This,pctinfo) \
  10641. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10642. #define ISpeechMMSysAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10643. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10644. #define ISpeechMMSysAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10645. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10646. #define ISpeechMMSysAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10647. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10648. #define ISpeechMMSysAudio_get_Format(This,AudioFormat) \
  10649. (This)->lpVtbl -> get_Format(This,AudioFormat)
  10650. #define ISpeechMMSysAudio_putref_Format(This,AudioFormat) \
  10651. (This)->lpVtbl -> putref_Format(This,AudioFormat)
  10652. #define ISpeechMMSysAudio_Read(This,Buffer,NumberOfBytes,BytesRead) \
  10653. (This)->lpVtbl -> Read(This,Buffer,NumberOfBytes,BytesRead)
  10654. #define ISpeechMMSysAudio_Write(This,Buffer,BytesWritten) \
  10655. (This)->lpVtbl -> Write(This,Buffer,BytesWritten)
  10656. #define ISpeechMMSysAudio_Seek(This,Position,Origin,NewPosition) \
  10657. (This)->lpVtbl -> Seek(This,Position,Origin,NewPosition)
  10658. #define ISpeechMMSysAudio_get_Status(This,Status) \
  10659. (This)->lpVtbl -> get_Status(This,Status)
  10660. #define ISpeechMMSysAudio_get_BufferInfo(This,BufferInfo) \
  10661. (This)->lpVtbl -> get_BufferInfo(This,BufferInfo)
  10662. #define ISpeechMMSysAudio_get_DefaultFormat(This,StreamFormat) \
  10663. (This)->lpVtbl -> get_DefaultFormat(This,StreamFormat)
  10664. #define ISpeechMMSysAudio_get_Volume(This,Volume) \
  10665. (This)->lpVtbl -> get_Volume(This,Volume)
  10666. #define ISpeechMMSysAudio_put_Volume(This,Volume) \
  10667. (This)->lpVtbl -> put_Volume(This,Volume)
  10668. #define ISpeechMMSysAudio_get_BufferNotifySize(This,BufferNotifySize) \
  10669. (This)->lpVtbl -> get_BufferNotifySize(This,BufferNotifySize)
  10670. #define ISpeechMMSysAudio_put_BufferNotifySize(This,BufferNotifySize) \
  10671. (This)->lpVtbl -> put_BufferNotifySize(This,BufferNotifySize)
  10672. #define ISpeechMMSysAudio_get_EventHandle(This,EventHandle) \
  10673. (This)->lpVtbl -> get_EventHandle(This,EventHandle)
  10674. #define ISpeechMMSysAudio_SetState(This,State) \
  10675. (This)->lpVtbl -> SetState(This,State)
  10676. #define ISpeechMMSysAudio_get_DeviceId(This,DeviceId) \
  10677. (This)->lpVtbl -> get_DeviceId(This,DeviceId)
  10678. #define ISpeechMMSysAudio_put_DeviceId(This,DeviceId) \
  10679. (This)->lpVtbl -> put_DeviceId(This,DeviceId)
  10680. #define ISpeechMMSysAudio_get_LineId(This,LineId) \
  10681. (This)->lpVtbl -> get_LineId(This,LineId)
  10682. #define ISpeechMMSysAudio_put_LineId(This,LineId) \
  10683. (This)->lpVtbl -> put_LineId(This,LineId)
  10684. #define ISpeechMMSysAudio_get_MMHandle(This,Handle) \
  10685. (This)->lpVtbl -> get_MMHandle(This,Handle)
  10686. #endif /* COBJMACROS */
  10687. #endif /* C style interface */
  10688. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_DeviceId_Proxy(
  10689. ISpeechMMSysAudio * This,
  10690. /* [retval][out] */ long *DeviceId);
  10691. void __RPC_STUB ISpeechMMSysAudio_get_DeviceId_Stub(
  10692. IRpcStubBuffer *This,
  10693. IRpcChannelBuffer *_pRpcChannelBuffer,
  10694. PRPC_MESSAGE _pRpcMessage,
  10695. DWORD *_pdwStubPhase);
  10696. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_put_DeviceId_Proxy(
  10697. ISpeechMMSysAudio * This,
  10698. /* [in] */ long DeviceId);
  10699. void __RPC_STUB ISpeechMMSysAudio_put_DeviceId_Stub(
  10700. IRpcStubBuffer *This,
  10701. IRpcChannelBuffer *_pRpcChannelBuffer,
  10702. PRPC_MESSAGE _pRpcMessage,
  10703. DWORD *_pdwStubPhase);
  10704. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_LineId_Proxy(
  10705. ISpeechMMSysAudio * This,
  10706. /* [retval][out] */ long *LineId);
  10707. void __RPC_STUB ISpeechMMSysAudio_get_LineId_Stub(
  10708. IRpcStubBuffer *This,
  10709. IRpcChannelBuffer *_pRpcChannelBuffer,
  10710. PRPC_MESSAGE _pRpcMessage,
  10711. DWORD *_pdwStubPhase);
  10712. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_put_LineId_Proxy(
  10713. ISpeechMMSysAudio * This,
  10714. /* [in] */ long LineId);
  10715. void __RPC_STUB ISpeechMMSysAudio_put_LineId_Stub(
  10716. IRpcStubBuffer *This,
  10717. IRpcChannelBuffer *_pRpcChannelBuffer,
  10718. PRPC_MESSAGE _pRpcMessage,
  10719. DWORD *_pdwStubPhase);
  10720. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechMMSysAudio_get_MMHandle_Proxy(
  10721. ISpeechMMSysAudio * This,
  10722. /* [retval][out] */ long *Handle);
  10723. void __RPC_STUB ISpeechMMSysAudio_get_MMHandle_Stub(
  10724. IRpcStubBuffer *This,
  10725. IRpcChannelBuffer *_pRpcChannelBuffer,
  10726. PRPC_MESSAGE _pRpcMessage,
  10727. DWORD *_pdwStubPhase);
  10728. #endif /* __ISpeechMMSysAudio_INTERFACE_DEFINED__ */
  10729. #ifndef __ISpeechVoice_INTERFACE_DEFINED__
  10730. #define __ISpeechVoice_INTERFACE_DEFINED__
  10731. /* interface ISpeechVoice */
  10732. /* [unique][helpstring][dual][uuid][object] */
  10733. EXTERN_C const IID IID_ISpeechVoice;
  10734. #if defined(__cplusplus) && !defined(CINTERFACE)
  10735. MIDL_INTERFACE("269316D8-57BD-11D2-9EEE-00C04F797396")
  10736. ISpeechVoice : public IDispatch
  10737. {
  10738. public:
  10739. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  10740. /* [retval][out] */ ISpeechVoiceStatus **Status) = 0;
  10741. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Voice(
  10742. /* [retval][out] */ ISpeechObjectToken **Voice) = 0;
  10743. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Voice(
  10744. /* [in] */ ISpeechObjectToken *Voice) = 0;
  10745. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioOutput(
  10746. /* [retval][out] */ ISpeechObjectToken **AudioOutput) = 0;
  10747. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioOutput(
  10748. /* [in] */ ISpeechObjectToken *AudioOutput) = 0;
  10749. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioOutputStream(
  10750. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream) = 0;
  10751. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioOutputStream(
  10752. /* [in] */ ISpeechBaseStream *AudioOutputStream) = 0;
  10753. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rate(
  10754. /* [retval][out] */ long *Rate) = 0;
  10755. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Rate(
  10756. /* [in] */ long Rate) = 0;
  10757. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Volume(
  10758. /* [retval][out] */ long *Volume) = 0;
  10759. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Volume(
  10760. /* [in] */ long Volume) = 0;
  10761. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowAudioOutputFormatChangesOnNextSet(
  10762. /* [in] */ VARIANT_BOOL Allow) = 0;
  10763. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowAudioOutputFormatChangesOnNextSet(
  10764. /* [retval][out] */ VARIANT_BOOL *Allow) = 0;
  10765. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventInterests(
  10766. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags) = 0;
  10767. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventInterests(
  10768. /* [in] */ SpeechVoiceEvents EventInterestFlags) = 0;
  10769. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Priority(
  10770. /* [in] */ SpeechVoicePriority Priority) = 0;
  10771. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Priority(
  10772. /* [retval][out] */ SpeechVoicePriority *Priority) = 0;
  10773. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_AlertBoundary(
  10774. /* [in] */ SpeechVoiceEvents Boundary) = 0;
  10775. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AlertBoundary(
  10776. /* [retval][out] */ SpeechVoiceEvents *Boundary) = 0;
  10777. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SynchronousSpeakTimeout(
  10778. /* [in] */ long msTimeout) = 0;
  10779. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SynchronousSpeakTimeout(
  10780. /* [retval][out] */ long *msTimeout) = 0;
  10781. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Speak(
  10782. /* [in] */ BSTR Text,
  10783. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10784. /* [retval][out] */ long *StreamNumber) = 0;
  10785. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakStream(
  10786. /* [in] */ ISpeechBaseStream *Stream,
  10787. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10788. /* [retval][out] */ long *StreamNumber) = 0;
  10789. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  10790. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  10791. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Skip(
  10792. /* [in] */ const BSTR Type,
  10793. /* [in] */ long NumItems,
  10794. /* [retval][out] */ long *NumSkipped) = 0;
  10795. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetVoices(
  10796. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10797. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10798. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  10799. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAudioOutputs(
  10800. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10801. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10802. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  10803. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE WaitUntilDone(
  10804. /* [in] */ long msTimeout,
  10805. /* [retval][out] */ VARIANT_BOOL *Done) = 0;
  10806. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakCompleteEvent(
  10807. /* [retval][out] */ long *Handle) = 0;
  10808. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  10809. /* [in] */ const BSTR TypeOfUI,
  10810. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  10811. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  10812. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  10813. /* [in] */ long hWndParent,
  10814. /* [in] */ BSTR Title,
  10815. /* [in] */ const BSTR TypeOfUI,
  10816. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0) = 0;
  10817. };
  10818. #else /* C style interface */
  10819. typedef struct ISpeechVoiceVtbl
  10820. {
  10821. BEGIN_INTERFACE
  10822. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  10823. ISpeechVoice * This,
  10824. /* [in] */ REFIID riid,
  10825. /* [iid_is][out] */ void **ppvObject);
  10826. ULONG ( STDMETHODCALLTYPE *AddRef )(
  10827. ISpeechVoice * This);
  10828. ULONG ( STDMETHODCALLTYPE *Release )(
  10829. ISpeechVoice * This);
  10830. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  10831. ISpeechVoice * This,
  10832. /* [out] */ UINT *pctinfo);
  10833. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  10834. ISpeechVoice * This,
  10835. /* [in] */ UINT iTInfo,
  10836. /* [in] */ LCID lcid,
  10837. /* [out] */ ITypeInfo **ppTInfo);
  10838. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  10839. ISpeechVoice * This,
  10840. /* [in] */ REFIID riid,
  10841. /* [size_is][in] */ LPOLESTR *rgszNames,
  10842. /* [in] */ UINT cNames,
  10843. /* [in] */ LCID lcid,
  10844. /* [size_is][out] */ DISPID *rgDispId);
  10845. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  10846. ISpeechVoice * This,
  10847. /* [in] */ DISPID dispIdMember,
  10848. /* [in] */ REFIID riid,
  10849. /* [in] */ LCID lcid,
  10850. /* [in] */ WORD wFlags,
  10851. /* [out][in] */ DISPPARAMS *pDispParams,
  10852. /* [out] */ VARIANT *pVarResult,
  10853. /* [out] */ EXCEPINFO *pExcepInfo,
  10854. /* [out] */ UINT *puArgErr);
  10855. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  10856. ISpeechVoice * This,
  10857. /* [retval][out] */ ISpeechVoiceStatus **Status);
  10858. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Voice )(
  10859. ISpeechVoice * This,
  10860. /* [retval][out] */ ISpeechObjectToken **Voice);
  10861. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Voice )(
  10862. ISpeechVoice * This,
  10863. /* [in] */ ISpeechObjectToken *Voice);
  10864. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioOutput )(
  10865. ISpeechVoice * This,
  10866. /* [retval][out] */ ISpeechObjectToken **AudioOutput);
  10867. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioOutput )(
  10868. ISpeechVoice * This,
  10869. /* [in] */ ISpeechObjectToken *AudioOutput);
  10870. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioOutputStream )(
  10871. ISpeechVoice * This,
  10872. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream);
  10873. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioOutputStream )(
  10874. ISpeechVoice * This,
  10875. /* [in] */ ISpeechBaseStream *AudioOutputStream);
  10876. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )(
  10877. ISpeechVoice * This,
  10878. /* [retval][out] */ long *Rate);
  10879. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )(
  10880. ISpeechVoice * This,
  10881. /* [in] */ long Rate);
  10882. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )(
  10883. ISpeechVoice * This,
  10884. /* [retval][out] */ long *Volume);
  10885. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )(
  10886. ISpeechVoice * This,
  10887. /* [in] */ long Volume);
  10888. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowAudioOutputFormatChangesOnNextSet )(
  10889. ISpeechVoice * This,
  10890. /* [in] */ VARIANT_BOOL Allow);
  10891. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowAudioOutputFormatChangesOnNextSet )(
  10892. ISpeechVoice * This,
  10893. /* [retval][out] */ VARIANT_BOOL *Allow);
  10894. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventInterests )(
  10895. ISpeechVoice * This,
  10896. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags);
  10897. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventInterests )(
  10898. ISpeechVoice * This,
  10899. /* [in] */ SpeechVoiceEvents EventInterestFlags);
  10900. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )(
  10901. ISpeechVoice * This,
  10902. /* [in] */ SpeechVoicePriority Priority);
  10903. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )(
  10904. ISpeechVoice * This,
  10905. /* [retval][out] */ SpeechVoicePriority *Priority);
  10906. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlertBoundary )(
  10907. ISpeechVoice * This,
  10908. /* [in] */ SpeechVoiceEvents Boundary);
  10909. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlertBoundary )(
  10910. ISpeechVoice * This,
  10911. /* [retval][out] */ SpeechVoiceEvents *Boundary);
  10912. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SynchronousSpeakTimeout )(
  10913. ISpeechVoice * This,
  10914. /* [in] */ long msTimeout);
  10915. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SynchronousSpeakTimeout )(
  10916. ISpeechVoice * This,
  10917. /* [retval][out] */ long *msTimeout);
  10918. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Speak )(
  10919. ISpeechVoice * This,
  10920. /* [in] */ BSTR Text,
  10921. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10922. /* [retval][out] */ long *StreamNumber);
  10923. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakStream )(
  10924. ISpeechVoice * This,
  10925. /* [in] */ ISpeechBaseStream *Stream,
  10926. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  10927. /* [retval][out] */ long *StreamNumber);
  10928. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Pause )(
  10929. ISpeechVoice * This);
  10930. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Resume )(
  10931. ISpeechVoice * This);
  10932. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Skip )(
  10933. ISpeechVoice * This,
  10934. /* [in] */ const BSTR Type,
  10935. /* [in] */ long NumItems,
  10936. /* [retval][out] */ long *NumSkipped);
  10937. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVoices )(
  10938. ISpeechVoice * This,
  10939. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10940. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10941. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  10942. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAudioOutputs )(
  10943. ISpeechVoice * This,
  10944. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  10945. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  10946. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  10947. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *WaitUntilDone )(
  10948. ISpeechVoice * This,
  10949. /* [in] */ long msTimeout,
  10950. /* [retval][out] */ VARIANT_BOOL *Done);
  10951. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakCompleteEvent )(
  10952. ISpeechVoice * This,
  10953. /* [retval][out] */ long *Handle);
  10954. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  10955. ISpeechVoice * This,
  10956. /* [in] */ const BSTR TypeOfUI,
  10957. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  10958. /* [retval][out] */ VARIANT_BOOL *Supported);
  10959. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  10960. ISpeechVoice * This,
  10961. /* [in] */ long hWndParent,
  10962. /* [in] */ BSTR Title,
  10963. /* [in] */ const BSTR TypeOfUI,
  10964. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  10965. END_INTERFACE
  10966. } ISpeechVoiceVtbl;
  10967. interface ISpeechVoice
  10968. {
  10969. CONST_VTBL struct ISpeechVoiceVtbl *lpVtbl;
  10970. };
  10971. #ifdef COBJMACROS
  10972. #define ISpeechVoice_QueryInterface(This,riid,ppvObject) \
  10973. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  10974. #define ISpeechVoice_AddRef(This) \
  10975. (This)->lpVtbl -> AddRef(This)
  10976. #define ISpeechVoice_Release(This) \
  10977. (This)->lpVtbl -> Release(This)
  10978. #define ISpeechVoice_GetTypeInfoCount(This,pctinfo) \
  10979. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  10980. #define ISpeechVoice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  10981. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10982. #define ISpeechVoice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  10983. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10984. #define ISpeechVoice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  10985. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10986. #define ISpeechVoice_get_Status(This,Status) \
  10987. (This)->lpVtbl -> get_Status(This,Status)
  10988. #define ISpeechVoice_get_Voice(This,Voice) \
  10989. (This)->lpVtbl -> get_Voice(This,Voice)
  10990. #define ISpeechVoice_putref_Voice(This,Voice) \
  10991. (This)->lpVtbl -> putref_Voice(This,Voice)
  10992. #define ISpeechVoice_get_AudioOutput(This,AudioOutput) \
  10993. (This)->lpVtbl -> get_AudioOutput(This,AudioOutput)
  10994. #define ISpeechVoice_putref_AudioOutput(This,AudioOutput) \
  10995. (This)->lpVtbl -> putref_AudioOutput(This,AudioOutput)
  10996. #define ISpeechVoice_get_AudioOutputStream(This,AudioOutputStream) \
  10997. (This)->lpVtbl -> get_AudioOutputStream(This,AudioOutputStream)
  10998. #define ISpeechVoice_putref_AudioOutputStream(This,AudioOutputStream) \
  10999. (This)->lpVtbl -> putref_AudioOutputStream(This,AudioOutputStream)
  11000. #define ISpeechVoice_get_Rate(This,Rate) \
  11001. (This)->lpVtbl -> get_Rate(This,Rate)
  11002. #define ISpeechVoice_put_Rate(This,Rate) \
  11003. (This)->lpVtbl -> put_Rate(This,Rate)
  11004. #define ISpeechVoice_get_Volume(This,Volume) \
  11005. (This)->lpVtbl -> get_Volume(This,Volume)
  11006. #define ISpeechVoice_put_Volume(This,Volume) \
  11007. (This)->lpVtbl -> put_Volume(This,Volume)
  11008. #define ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet(This,Allow) \
  11009. (This)->lpVtbl -> put_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  11010. #define ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet(This,Allow) \
  11011. (This)->lpVtbl -> get_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  11012. #define ISpeechVoice_get_EventInterests(This,EventInterestFlags) \
  11013. (This)->lpVtbl -> get_EventInterests(This,EventInterestFlags)
  11014. #define ISpeechVoice_put_EventInterests(This,EventInterestFlags) \
  11015. (This)->lpVtbl -> put_EventInterests(This,EventInterestFlags)
  11016. #define ISpeechVoice_put_Priority(This,Priority) \
  11017. (This)->lpVtbl -> put_Priority(This,Priority)
  11018. #define ISpeechVoice_get_Priority(This,Priority) \
  11019. (This)->lpVtbl -> get_Priority(This,Priority)
  11020. #define ISpeechVoice_put_AlertBoundary(This,Boundary) \
  11021. (This)->lpVtbl -> put_AlertBoundary(This,Boundary)
  11022. #define ISpeechVoice_get_AlertBoundary(This,Boundary) \
  11023. (This)->lpVtbl -> get_AlertBoundary(This,Boundary)
  11024. #define ISpeechVoice_put_SynchronousSpeakTimeout(This,msTimeout) \
  11025. (This)->lpVtbl -> put_SynchronousSpeakTimeout(This,msTimeout)
  11026. #define ISpeechVoice_get_SynchronousSpeakTimeout(This,msTimeout) \
  11027. (This)->lpVtbl -> get_SynchronousSpeakTimeout(This,msTimeout)
  11028. #define ISpeechVoice_Speak(This,Text,Flags,StreamNumber) \
  11029. (This)->lpVtbl -> Speak(This,Text,Flags,StreamNumber)
  11030. #define ISpeechVoice_SpeakStream(This,Stream,Flags,StreamNumber) \
  11031. (This)->lpVtbl -> SpeakStream(This,Stream,Flags,StreamNumber)
  11032. #define ISpeechVoice_Pause(This) \
  11033. (This)->lpVtbl -> Pause(This)
  11034. #define ISpeechVoice_Resume(This) \
  11035. (This)->lpVtbl -> Resume(This)
  11036. #define ISpeechVoice_Skip(This,Type,NumItems,NumSkipped) \
  11037. (This)->lpVtbl -> Skip(This,Type,NumItems,NumSkipped)
  11038. #define ISpeechVoice_GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11039. (This)->lpVtbl -> GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11040. #define ISpeechVoice_GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11041. (This)->lpVtbl -> GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11042. #define ISpeechVoice_WaitUntilDone(This,msTimeout,Done) \
  11043. (This)->lpVtbl -> WaitUntilDone(This,msTimeout,Done)
  11044. #define ISpeechVoice_SpeakCompleteEvent(This,Handle) \
  11045. (This)->lpVtbl -> SpeakCompleteEvent(This,Handle)
  11046. #define ISpeechVoice_IsUISupported(This,TypeOfUI,ExtraData,Supported) \
  11047. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Supported)
  11048. #define ISpeechVoice_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) \
  11049. (This)->lpVtbl -> DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  11050. #endif /* COBJMACROS */
  11051. #endif /* C style interface */
  11052. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Status_Proxy(
  11053. ISpeechVoice * This,
  11054. /* [retval][out] */ ISpeechVoiceStatus **Status);
  11055. void __RPC_STUB ISpeechVoice_get_Status_Stub(
  11056. IRpcStubBuffer *This,
  11057. IRpcChannelBuffer *_pRpcChannelBuffer,
  11058. PRPC_MESSAGE _pRpcMessage,
  11059. DWORD *_pdwStubPhase);
  11060. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Voice_Proxy(
  11061. ISpeechVoice * This,
  11062. /* [retval][out] */ ISpeechObjectToken **Voice);
  11063. void __RPC_STUB ISpeechVoice_get_Voice_Stub(
  11064. IRpcStubBuffer *This,
  11065. IRpcChannelBuffer *_pRpcChannelBuffer,
  11066. PRPC_MESSAGE _pRpcMessage,
  11067. DWORD *_pdwStubPhase);
  11068. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_Voice_Proxy(
  11069. ISpeechVoice * This,
  11070. /* [in] */ ISpeechObjectToken *Voice);
  11071. void __RPC_STUB ISpeechVoice_putref_Voice_Stub(
  11072. IRpcStubBuffer *This,
  11073. IRpcChannelBuffer *_pRpcChannelBuffer,
  11074. PRPC_MESSAGE _pRpcMessage,
  11075. DWORD *_pdwStubPhase);
  11076. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AudioOutput_Proxy(
  11077. ISpeechVoice * This,
  11078. /* [retval][out] */ ISpeechObjectToken **AudioOutput);
  11079. void __RPC_STUB ISpeechVoice_get_AudioOutput_Stub(
  11080. IRpcStubBuffer *This,
  11081. IRpcChannelBuffer *_pRpcChannelBuffer,
  11082. PRPC_MESSAGE _pRpcMessage,
  11083. DWORD *_pdwStubPhase);
  11084. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_AudioOutput_Proxy(
  11085. ISpeechVoice * This,
  11086. /* [in] */ ISpeechObjectToken *AudioOutput);
  11087. void __RPC_STUB ISpeechVoice_putref_AudioOutput_Stub(
  11088. IRpcStubBuffer *This,
  11089. IRpcChannelBuffer *_pRpcChannelBuffer,
  11090. PRPC_MESSAGE _pRpcMessage,
  11091. DWORD *_pdwStubPhase);
  11092. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AudioOutputStream_Proxy(
  11093. ISpeechVoice * This,
  11094. /* [retval][out] */ ISpeechBaseStream **AudioOutputStream);
  11095. void __RPC_STUB ISpeechVoice_get_AudioOutputStream_Stub(
  11096. IRpcStubBuffer *This,
  11097. IRpcChannelBuffer *_pRpcChannelBuffer,
  11098. PRPC_MESSAGE _pRpcMessage,
  11099. DWORD *_pdwStubPhase);
  11100. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_putref_AudioOutputStream_Proxy(
  11101. ISpeechVoice * This,
  11102. /* [in] */ ISpeechBaseStream *AudioOutputStream);
  11103. void __RPC_STUB ISpeechVoice_putref_AudioOutputStream_Stub(
  11104. IRpcStubBuffer *This,
  11105. IRpcChannelBuffer *_pRpcChannelBuffer,
  11106. PRPC_MESSAGE _pRpcMessage,
  11107. DWORD *_pdwStubPhase);
  11108. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Rate_Proxy(
  11109. ISpeechVoice * This,
  11110. /* [retval][out] */ long *Rate);
  11111. void __RPC_STUB ISpeechVoice_get_Rate_Stub(
  11112. IRpcStubBuffer *This,
  11113. IRpcChannelBuffer *_pRpcChannelBuffer,
  11114. PRPC_MESSAGE _pRpcMessage,
  11115. DWORD *_pdwStubPhase);
  11116. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Rate_Proxy(
  11117. ISpeechVoice * This,
  11118. /* [in] */ long Rate);
  11119. void __RPC_STUB ISpeechVoice_put_Rate_Stub(
  11120. IRpcStubBuffer *This,
  11121. IRpcChannelBuffer *_pRpcChannelBuffer,
  11122. PRPC_MESSAGE _pRpcMessage,
  11123. DWORD *_pdwStubPhase);
  11124. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Volume_Proxy(
  11125. ISpeechVoice * This,
  11126. /* [retval][out] */ long *Volume);
  11127. void __RPC_STUB ISpeechVoice_get_Volume_Stub(
  11128. IRpcStubBuffer *This,
  11129. IRpcChannelBuffer *_pRpcChannelBuffer,
  11130. PRPC_MESSAGE _pRpcMessage,
  11131. DWORD *_pdwStubPhase);
  11132. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Volume_Proxy(
  11133. ISpeechVoice * This,
  11134. /* [in] */ long Volume);
  11135. void __RPC_STUB ISpeechVoice_put_Volume_Stub(
  11136. IRpcStubBuffer *This,
  11137. IRpcChannelBuffer *_pRpcChannelBuffer,
  11138. PRPC_MESSAGE _pRpcMessage,
  11139. DWORD *_pdwStubPhase);
  11140. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet_Proxy(
  11141. ISpeechVoice * This,
  11142. /* [in] */ VARIANT_BOOL Allow);
  11143. void __RPC_STUB ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet_Stub(
  11144. IRpcStubBuffer *This,
  11145. IRpcChannelBuffer *_pRpcChannelBuffer,
  11146. PRPC_MESSAGE _pRpcMessage,
  11147. DWORD *_pdwStubPhase);
  11148. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet_Proxy(
  11149. ISpeechVoice * This,
  11150. /* [retval][out] */ VARIANT_BOOL *Allow);
  11151. void __RPC_STUB ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet_Stub(
  11152. IRpcStubBuffer *This,
  11153. IRpcChannelBuffer *_pRpcChannelBuffer,
  11154. PRPC_MESSAGE _pRpcMessage,
  11155. DWORD *_pdwStubPhase);
  11156. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_EventInterests_Proxy(
  11157. ISpeechVoice * This,
  11158. /* [retval][out] */ SpeechVoiceEvents *EventInterestFlags);
  11159. void __RPC_STUB ISpeechVoice_get_EventInterests_Stub(
  11160. IRpcStubBuffer *This,
  11161. IRpcChannelBuffer *_pRpcChannelBuffer,
  11162. PRPC_MESSAGE _pRpcMessage,
  11163. DWORD *_pdwStubPhase);
  11164. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_EventInterests_Proxy(
  11165. ISpeechVoice * This,
  11166. /* [in] */ SpeechVoiceEvents EventInterestFlags);
  11167. void __RPC_STUB ISpeechVoice_put_EventInterests_Stub(
  11168. IRpcStubBuffer *This,
  11169. IRpcChannelBuffer *_pRpcChannelBuffer,
  11170. PRPC_MESSAGE _pRpcMessage,
  11171. DWORD *_pdwStubPhase);
  11172. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_Priority_Proxy(
  11173. ISpeechVoice * This,
  11174. /* [in] */ SpeechVoicePriority Priority);
  11175. void __RPC_STUB ISpeechVoice_put_Priority_Stub(
  11176. IRpcStubBuffer *This,
  11177. IRpcChannelBuffer *_pRpcChannelBuffer,
  11178. PRPC_MESSAGE _pRpcMessage,
  11179. DWORD *_pdwStubPhase);
  11180. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_Priority_Proxy(
  11181. ISpeechVoice * This,
  11182. /* [retval][out] */ SpeechVoicePriority *Priority);
  11183. void __RPC_STUB ISpeechVoice_get_Priority_Stub(
  11184. IRpcStubBuffer *This,
  11185. IRpcChannelBuffer *_pRpcChannelBuffer,
  11186. PRPC_MESSAGE _pRpcMessage,
  11187. DWORD *_pdwStubPhase);
  11188. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_AlertBoundary_Proxy(
  11189. ISpeechVoice * This,
  11190. /* [in] */ SpeechVoiceEvents Boundary);
  11191. void __RPC_STUB ISpeechVoice_put_AlertBoundary_Stub(
  11192. IRpcStubBuffer *This,
  11193. IRpcChannelBuffer *_pRpcChannelBuffer,
  11194. PRPC_MESSAGE _pRpcMessage,
  11195. DWORD *_pdwStubPhase);
  11196. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_AlertBoundary_Proxy(
  11197. ISpeechVoice * This,
  11198. /* [retval][out] */ SpeechVoiceEvents *Boundary);
  11199. void __RPC_STUB ISpeechVoice_get_AlertBoundary_Stub(
  11200. IRpcStubBuffer *This,
  11201. IRpcChannelBuffer *_pRpcChannelBuffer,
  11202. PRPC_MESSAGE _pRpcMessage,
  11203. DWORD *_pdwStubPhase);
  11204. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_put_SynchronousSpeakTimeout_Proxy(
  11205. ISpeechVoice * This,
  11206. /* [in] */ long msTimeout);
  11207. void __RPC_STUB ISpeechVoice_put_SynchronousSpeakTimeout_Stub(
  11208. IRpcStubBuffer *This,
  11209. IRpcChannelBuffer *_pRpcChannelBuffer,
  11210. PRPC_MESSAGE _pRpcMessage,
  11211. DWORD *_pdwStubPhase);
  11212. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_get_SynchronousSpeakTimeout_Proxy(
  11213. ISpeechVoice * This,
  11214. /* [retval][out] */ long *msTimeout);
  11215. void __RPC_STUB ISpeechVoice_get_SynchronousSpeakTimeout_Stub(
  11216. IRpcStubBuffer *This,
  11217. IRpcChannelBuffer *_pRpcChannelBuffer,
  11218. PRPC_MESSAGE _pRpcMessage,
  11219. DWORD *_pdwStubPhase);
  11220. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Speak_Proxy(
  11221. ISpeechVoice * This,
  11222. /* [in] */ BSTR Text,
  11223. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  11224. /* [retval][out] */ long *StreamNumber);
  11225. void __RPC_STUB ISpeechVoice_Speak_Stub(
  11226. IRpcStubBuffer *This,
  11227. IRpcChannelBuffer *_pRpcChannelBuffer,
  11228. PRPC_MESSAGE _pRpcMessage,
  11229. DWORD *_pdwStubPhase);
  11230. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_SpeakStream_Proxy(
  11231. ISpeechVoice * This,
  11232. /* [in] */ ISpeechBaseStream *Stream,
  11233. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  11234. /* [retval][out] */ long *StreamNumber);
  11235. void __RPC_STUB ISpeechVoice_SpeakStream_Stub(
  11236. IRpcStubBuffer *This,
  11237. IRpcChannelBuffer *_pRpcChannelBuffer,
  11238. PRPC_MESSAGE _pRpcMessage,
  11239. DWORD *_pdwStubPhase);
  11240. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Pause_Proxy(
  11241. ISpeechVoice * This);
  11242. void __RPC_STUB ISpeechVoice_Pause_Stub(
  11243. IRpcStubBuffer *This,
  11244. IRpcChannelBuffer *_pRpcChannelBuffer,
  11245. PRPC_MESSAGE _pRpcMessage,
  11246. DWORD *_pdwStubPhase);
  11247. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Resume_Proxy(
  11248. ISpeechVoice * This);
  11249. void __RPC_STUB ISpeechVoice_Resume_Stub(
  11250. IRpcStubBuffer *This,
  11251. IRpcChannelBuffer *_pRpcChannelBuffer,
  11252. PRPC_MESSAGE _pRpcMessage,
  11253. DWORD *_pdwStubPhase);
  11254. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_Skip_Proxy(
  11255. ISpeechVoice * This,
  11256. /* [in] */ const BSTR Type,
  11257. /* [in] */ long NumItems,
  11258. /* [retval][out] */ long *NumSkipped);
  11259. void __RPC_STUB ISpeechVoice_Skip_Stub(
  11260. IRpcStubBuffer *This,
  11261. IRpcChannelBuffer *_pRpcChannelBuffer,
  11262. PRPC_MESSAGE _pRpcMessage,
  11263. DWORD *_pdwStubPhase);
  11264. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_GetVoices_Proxy(
  11265. ISpeechVoice * This,
  11266. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11267. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11268. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11269. void __RPC_STUB ISpeechVoice_GetVoices_Stub(
  11270. IRpcStubBuffer *This,
  11271. IRpcChannelBuffer *_pRpcChannelBuffer,
  11272. PRPC_MESSAGE _pRpcMessage,
  11273. DWORD *_pdwStubPhase);
  11274. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_GetAudioOutputs_Proxy(
  11275. ISpeechVoice * This,
  11276. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11277. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11278. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11279. void __RPC_STUB ISpeechVoice_GetAudioOutputs_Stub(
  11280. IRpcStubBuffer *This,
  11281. IRpcChannelBuffer *_pRpcChannelBuffer,
  11282. PRPC_MESSAGE _pRpcMessage,
  11283. DWORD *_pdwStubPhase);
  11284. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_WaitUntilDone_Proxy(
  11285. ISpeechVoice * This,
  11286. /* [in] */ long msTimeout,
  11287. /* [retval][out] */ VARIANT_BOOL *Done);
  11288. void __RPC_STUB ISpeechVoice_WaitUntilDone_Stub(
  11289. IRpcStubBuffer *This,
  11290. IRpcChannelBuffer *_pRpcChannelBuffer,
  11291. PRPC_MESSAGE _pRpcMessage,
  11292. DWORD *_pdwStubPhase);
  11293. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_SpeakCompleteEvent_Proxy(
  11294. ISpeechVoice * This,
  11295. /* [retval][out] */ long *Handle);
  11296. void __RPC_STUB ISpeechVoice_SpeakCompleteEvent_Stub(
  11297. IRpcStubBuffer *This,
  11298. IRpcChannelBuffer *_pRpcChannelBuffer,
  11299. PRPC_MESSAGE _pRpcMessage,
  11300. DWORD *_pdwStubPhase);
  11301. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_IsUISupported_Proxy(
  11302. ISpeechVoice * This,
  11303. /* [in] */ const BSTR TypeOfUI,
  11304. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11305. /* [retval][out] */ VARIANT_BOOL *Supported);
  11306. void __RPC_STUB ISpeechVoice_IsUISupported_Stub(
  11307. IRpcStubBuffer *This,
  11308. IRpcChannelBuffer *_pRpcChannelBuffer,
  11309. PRPC_MESSAGE _pRpcMessage,
  11310. DWORD *_pdwStubPhase);
  11311. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechVoice_DisplayUI_Proxy(
  11312. ISpeechVoice * This,
  11313. /* [in] */ long hWndParent,
  11314. /* [in] */ BSTR Title,
  11315. /* [in] */ const BSTR TypeOfUI,
  11316. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  11317. void __RPC_STUB ISpeechVoice_DisplayUI_Stub(
  11318. IRpcStubBuffer *This,
  11319. IRpcChannelBuffer *_pRpcChannelBuffer,
  11320. PRPC_MESSAGE _pRpcMessage,
  11321. DWORD *_pdwStubPhase);
  11322. #endif /* __ISpeechVoice_INTERFACE_DEFINED__ */
  11323. #ifndef __ISpeechVoiceStatus_INTERFACE_DEFINED__
  11324. #define __ISpeechVoiceStatus_INTERFACE_DEFINED__
  11325. /* interface ISpeechVoiceStatus */
  11326. /* [unique][helpstring][dual][uuid][object] */
  11327. EXTERN_C const IID IID_ISpeechVoiceStatus;
  11328. #if defined(__cplusplus) && !defined(CINTERFACE)
  11329. MIDL_INTERFACE("8BE47B07-57F6-11d2-9EEE-00C04F797396")
  11330. ISpeechVoiceStatus : public IDispatch
  11331. {
  11332. public:
  11333. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  11334. /* [retval][out] */ long *StreamNumber) = 0;
  11335. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastStreamNumberQueued(
  11336. /* [retval][out] */ long *StreamNumber) = 0;
  11337. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastHResult(
  11338. /* [retval][out] */ long *HResult) = 0;
  11339. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RunningState(
  11340. /* [retval][out] */ SpeechRunState *State) = 0;
  11341. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputWordPosition(
  11342. /* [retval][out] */ long *Position) = 0;
  11343. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputWordLength(
  11344. /* [retval][out] */ long *Length) = 0;
  11345. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputSentencePosition(
  11346. /* [retval][out] */ long *Position) = 0;
  11347. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InputSentenceLength(
  11348. /* [retval][out] */ long *Length) = 0;
  11349. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastBookmark(
  11350. /* [retval][out] */ BSTR *Bookmark) = 0;
  11351. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LastBookmarkId(
  11352. /* [retval][out] */ long *BookmarkId) = 0;
  11353. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhonemeId(
  11354. /* [retval][out] */ short *PhoneId) = 0;
  11355. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_VisemeId(
  11356. /* [retval][out] */ short *VisemeId) = 0;
  11357. };
  11358. #else /* C style interface */
  11359. typedef struct ISpeechVoiceStatusVtbl
  11360. {
  11361. BEGIN_INTERFACE
  11362. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11363. ISpeechVoiceStatus * This,
  11364. /* [in] */ REFIID riid,
  11365. /* [iid_is][out] */ void **ppvObject);
  11366. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11367. ISpeechVoiceStatus * This);
  11368. ULONG ( STDMETHODCALLTYPE *Release )(
  11369. ISpeechVoiceStatus * This);
  11370. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11371. ISpeechVoiceStatus * This,
  11372. /* [out] */ UINT *pctinfo);
  11373. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11374. ISpeechVoiceStatus * This,
  11375. /* [in] */ UINT iTInfo,
  11376. /* [in] */ LCID lcid,
  11377. /* [out] */ ITypeInfo **ppTInfo);
  11378. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11379. ISpeechVoiceStatus * This,
  11380. /* [in] */ REFIID riid,
  11381. /* [size_is][in] */ LPOLESTR *rgszNames,
  11382. /* [in] */ UINT cNames,
  11383. /* [in] */ LCID lcid,
  11384. /* [size_is][out] */ DISPID *rgDispId);
  11385. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11386. ISpeechVoiceStatus * This,
  11387. /* [in] */ DISPID dispIdMember,
  11388. /* [in] */ REFIID riid,
  11389. /* [in] */ LCID lcid,
  11390. /* [in] */ WORD wFlags,
  11391. /* [out][in] */ DISPPARAMS *pDispParams,
  11392. /* [out] */ VARIANT *pVarResult,
  11393. /* [out] */ EXCEPINFO *pExcepInfo,
  11394. /* [out] */ UINT *puArgErr);
  11395. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamNumber )(
  11396. ISpeechVoiceStatus * This,
  11397. /* [retval][out] */ long *StreamNumber);
  11398. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastStreamNumberQueued )(
  11399. ISpeechVoiceStatus * This,
  11400. /* [retval][out] */ long *StreamNumber);
  11401. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastHResult )(
  11402. ISpeechVoiceStatus * This,
  11403. /* [retval][out] */ long *HResult);
  11404. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunningState )(
  11405. ISpeechVoiceStatus * This,
  11406. /* [retval][out] */ SpeechRunState *State);
  11407. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputWordPosition )(
  11408. ISpeechVoiceStatus * This,
  11409. /* [retval][out] */ long *Position);
  11410. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputWordLength )(
  11411. ISpeechVoiceStatus * This,
  11412. /* [retval][out] */ long *Length);
  11413. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputSentencePosition )(
  11414. ISpeechVoiceStatus * This,
  11415. /* [retval][out] */ long *Position);
  11416. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputSentenceLength )(
  11417. ISpeechVoiceStatus * This,
  11418. /* [retval][out] */ long *Length);
  11419. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastBookmark )(
  11420. ISpeechVoiceStatus * This,
  11421. /* [retval][out] */ BSTR *Bookmark);
  11422. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastBookmarkId )(
  11423. ISpeechVoiceStatus * This,
  11424. /* [retval][out] */ long *BookmarkId);
  11425. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhonemeId )(
  11426. ISpeechVoiceStatus * This,
  11427. /* [retval][out] */ short *PhoneId);
  11428. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VisemeId )(
  11429. ISpeechVoiceStatus * This,
  11430. /* [retval][out] */ short *VisemeId);
  11431. END_INTERFACE
  11432. } ISpeechVoiceStatusVtbl;
  11433. interface ISpeechVoiceStatus
  11434. {
  11435. CONST_VTBL struct ISpeechVoiceStatusVtbl *lpVtbl;
  11436. };
  11437. #ifdef COBJMACROS
  11438. #define ISpeechVoiceStatus_QueryInterface(This,riid,ppvObject) \
  11439. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11440. #define ISpeechVoiceStatus_AddRef(This) \
  11441. (This)->lpVtbl -> AddRef(This)
  11442. #define ISpeechVoiceStatus_Release(This) \
  11443. (This)->lpVtbl -> Release(This)
  11444. #define ISpeechVoiceStatus_GetTypeInfoCount(This,pctinfo) \
  11445. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11446. #define ISpeechVoiceStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11447. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11448. #define ISpeechVoiceStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11449. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11450. #define ISpeechVoiceStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11451. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11452. #define ISpeechVoiceStatus_get_CurrentStreamNumber(This,StreamNumber) \
  11453. (This)->lpVtbl -> get_CurrentStreamNumber(This,StreamNumber)
  11454. #define ISpeechVoiceStatus_get_LastStreamNumberQueued(This,StreamNumber) \
  11455. (This)->lpVtbl -> get_LastStreamNumberQueued(This,StreamNumber)
  11456. #define ISpeechVoiceStatus_get_LastHResult(This,HResult) \
  11457. (This)->lpVtbl -> get_LastHResult(This,HResult)
  11458. #define ISpeechVoiceStatus_get_RunningState(This,State) \
  11459. (This)->lpVtbl -> get_RunningState(This,State)
  11460. #define ISpeechVoiceStatus_get_InputWordPosition(This,Position) \
  11461. (This)->lpVtbl -> get_InputWordPosition(This,Position)
  11462. #define ISpeechVoiceStatus_get_InputWordLength(This,Length) \
  11463. (This)->lpVtbl -> get_InputWordLength(This,Length)
  11464. #define ISpeechVoiceStatus_get_InputSentencePosition(This,Position) \
  11465. (This)->lpVtbl -> get_InputSentencePosition(This,Position)
  11466. #define ISpeechVoiceStatus_get_InputSentenceLength(This,Length) \
  11467. (This)->lpVtbl -> get_InputSentenceLength(This,Length)
  11468. #define ISpeechVoiceStatus_get_LastBookmark(This,Bookmark) \
  11469. (This)->lpVtbl -> get_LastBookmark(This,Bookmark)
  11470. #define ISpeechVoiceStatus_get_LastBookmarkId(This,BookmarkId) \
  11471. (This)->lpVtbl -> get_LastBookmarkId(This,BookmarkId)
  11472. #define ISpeechVoiceStatus_get_PhonemeId(This,PhoneId) \
  11473. (This)->lpVtbl -> get_PhonemeId(This,PhoneId)
  11474. #define ISpeechVoiceStatus_get_VisemeId(This,VisemeId) \
  11475. (This)->lpVtbl -> get_VisemeId(This,VisemeId)
  11476. #endif /* COBJMACROS */
  11477. #endif /* C style interface */
  11478. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_CurrentStreamNumber_Proxy(
  11479. ISpeechVoiceStatus * This,
  11480. /* [retval][out] */ long *StreamNumber);
  11481. void __RPC_STUB ISpeechVoiceStatus_get_CurrentStreamNumber_Stub(
  11482. IRpcStubBuffer *This,
  11483. IRpcChannelBuffer *_pRpcChannelBuffer,
  11484. PRPC_MESSAGE _pRpcMessage,
  11485. DWORD *_pdwStubPhase);
  11486. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastStreamNumberQueued_Proxy(
  11487. ISpeechVoiceStatus * This,
  11488. /* [retval][out] */ long *StreamNumber);
  11489. void __RPC_STUB ISpeechVoiceStatus_get_LastStreamNumberQueued_Stub(
  11490. IRpcStubBuffer *This,
  11491. IRpcChannelBuffer *_pRpcChannelBuffer,
  11492. PRPC_MESSAGE _pRpcMessage,
  11493. DWORD *_pdwStubPhase);
  11494. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastHResult_Proxy(
  11495. ISpeechVoiceStatus * This,
  11496. /* [retval][out] */ long *HResult);
  11497. void __RPC_STUB ISpeechVoiceStatus_get_LastHResult_Stub(
  11498. IRpcStubBuffer *This,
  11499. IRpcChannelBuffer *_pRpcChannelBuffer,
  11500. PRPC_MESSAGE _pRpcMessage,
  11501. DWORD *_pdwStubPhase);
  11502. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_RunningState_Proxy(
  11503. ISpeechVoiceStatus * This,
  11504. /* [retval][out] */ SpeechRunState *State);
  11505. void __RPC_STUB ISpeechVoiceStatus_get_RunningState_Stub(
  11506. IRpcStubBuffer *This,
  11507. IRpcChannelBuffer *_pRpcChannelBuffer,
  11508. PRPC_MESSAGE _pRpcMessage,
  11509. DWORD *_pdwStubPhase);
  11510. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputWordPosition_Proxy(
  11511. ISpeechVoiceStatus * This,
  11512. /* [retval][out] */ long *Position);
  11513. void __RPC_STUB ISpeechVoiceStatus_get_InputWordPosition_Stub(
  11514. IRpcStubBuffer *This,
  11515. IRpcChannelBuffer *_pRpcChannelBuffer,
  11516. PRPC_MESSAGE _pRpcMessage,
  11517. DWORD *_pdwStubPhase);
  11518. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputWordLength_Proxy(
  11519. ISpeechVoiceStatus * This,
  11520. /* [retval][out] */ long *Length);
  11521. void __RPC_STUB ISpeechVoiceStatus_get_InputWordLength_Stub(
  11522. IRpcStubBuffer *This,
  11523. IRpcChannelBuffer *_pRpcChannelBuffer,
  11524. PRPC_MESSAGE _pRpcMessage,
  11525. DWORD *_pdwStubPhase);
  11526. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputSentencePosition_Proxy(
  11527. ISpeechVoiceStatus * This,
  11528. /* [retval][out] */ long *Position);
  11529. void __RPC_STUB ISpeechVoiceStatus_get_InputSentencePosition_Stub(
  11530. IRpcStubBuffer *This,
  11531. IRpcChannelBuffer *_pRpcChannelBuffer,
  11532. PRPC_MESSAGE _pRpcMessage,
  11533. DWORD *_pdwStubPhase);
  11534. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_InputSentenceLength_Proxy(
  11535. ISpeechVoiceStatus * This,
  11536. /* [retval][out] */ long *Length);
  11537. void __RPC_STUB ISpeechVoiceStatus_get_InputSentenceLength_Stub(
  11538. IRpcStubBuffer *This,
  11539. IRpcChannelBuffer *_pRpcChannelBuffer,
  11540. PRPC_MESSAGE _pRpcMessage,
  11541. DWORD *_pdwStubPhase);
  11542. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastBookmark_Proxy(
  11543. ISpeechVoiceStatus * This,
  11544. /* [retval][out] */ BSTR *Bookmark);
  11545. void __RPC_STUB ISpeechVoiceStatus_get_LastBookmark_Stub(
  11546. IRpcStubBuffer *This,
  11547. IRpcChannelBuffer *_pRpcChannelBuffer,
  11548. PRPC_MESSAGE _pRpcMessage,
  11549. DWORD *_pdwStubPhase);
  11550. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_LastBookmarkId_Proxy(
  11551. ISpeechVoiceStatus * This,
  11552. /* [retval][out] */ long *BookmarkId);
  11553. void __RPC_STUB ISpeechVoiceStatus_get_LastBookmarkId_Stub(
  11554. IRpcStubBuffer *This,
  11555. IRpcChannelBuffer *_pRpcChannelBuffer,
  11556. PRPC_MESSAGE _pRpcMessage,
  11557. DWORD *_pdwStubPhase);
  11558. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_PhonemeId_Proxy(
  11559. ISpeechVoiceStatus * This,
  11560. /* [retval][out] */ short *PhoneId);
  11561. void __RPC_STUB ISpeechVoiceStatus_get_PhonemeId_Stub(
  11562. IRpcStubBuffer *This,
  11563. IRpcChannelBuffer *_pRpcChannelBuffer,
  11564. PRPC_MESSAGE _pRpcMessage,
  11565. DWORD *_pdwStubPhase);
  11566. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechVoiceStatus_get_VisemeId_Proxy(
  11567. ISpeechVoiceStatus * This,
  11568. /* [retval][out] */ short *VisemeId);
  11569. void __RPC_STUB ISpeechVoiceStatus_get_VisemeId_Stub(
  11570. IRpcStubBuffer *This,
  11571. IRpcChannelBuffer *_pRpcChannelBuffer,
  11572. PRPC_MESSAGE _pRpcMessage,
  11573. DWORD *_pdwStubPhase);
  11574. #endif /* __ISpeechVoiceStatus_INTERFACE_DEFINED__ */
  11575. #ifndef ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  11576. #define ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  11577. /* dispinterface _ISpeechVoiceEvents */
  11578. /* [uuid] */
  11579. EXTERN_C const IID DIID__ISpeechVoiceEvents;
  11580. #if defined(__cplusplus) && !defined(CINTERFACE)
  11581. MIDL_INTERFACE("A372ACD1-3BEF-4bbd-8FFB-CB3E2B416AF8")
  11582. _ISpeechVoiceEvents : public IDispatch
  11583. {
  11584. };
  11585. #else /* C style interface */
  11586. typedef struct _ISpeechVoiceEventsVtbl
  11587. {
  11588. BEGIN_INTERFACE
  11589. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11590. _ISpeechVoiceEvents * This,
  11591. /* [in] */ REFIID riid,
  11592. /* [iid_is][out] */ void **ppvObject);
  11593. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11594. _ISpeechVoiceEvents * This);
  11595. ULONG ( STDMETHODCALLTYPE *Release )(
  11596. _ISpeechVoiceEvents * This);
  11597. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11598. _ISpeechVoiceEvents * This,
  11599. /* [out] */ UINT *pctinfo);
  11600. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11601. _ISpeechVoiceEvents * This,
  11602. /* [in] */ UINT iTInfo,
  11603. /* [in] */ LCID lcid,
  11604. /* [out] */ ITypeInfo **ppTInfo);
  11605. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11606. _ISpeechVoiceEvents * This,
  11607. /* [in] */ REFIID riid,
  11608. /* [size_is][in] */ LPOLESTR *rgszNames,
  11609. /* [in] */ UINT cNames,
  11610. /* [in] */ LCID lcid,
  11611. /* [size_is][out] */ DISPID *rgDispId);
  11612. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11613. _ISpeechVoiceEvents * This,
  11614. /* [in] */ DISPID dispIdMember,
  11615. /* [in] */ REFIID riid,
  11616. /* [in] */ LCID lcid,
  11617. /* [in] */ WORD wFlags,
  11618. /* [out][in] */ DISPPARAMS *pDispParams,
  11619. /* [out] */ VARIANT *pVarResult,
  11620. /* [out] */ EXCEPINFO *pExcepInfo,
  11621. /* [out] */ UINT *puArgErr);
  11622. END_INTERFACE
  11623. } _ISpeechVoiceEventsVtbl;
  11624. interface _ISpeechVoiceEvents
  11625. {
  11626. CONST_VTBL struct _ISpeechVoiceEventsVtbl *lpVtbl;
  11627. };
  11628. #ifdef COBJMACROS
  11629. #define _ISpeechVoiceEvents_QueryInterface(This,riid,ppvObject) \
  11630. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11631. #define _ISpeechVoiceEvents_AddRef(This) \
  11632. (This)->lpVtbl -> AddRef(This)
  11633. #define _ISpeechVoiceEvents_Release(This) \
  11634. (This)->lpVtbl -> Release(This)
  11635. #define _ISpeechVoiceEvents_GetTypeInfoCount(This,pctinfo) \
  11636. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11637. #define _ISpeechVoiceEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11638. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11639. #define _ISpeechVoiceEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11640. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11641. #define _ISpeechVoiceEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11642. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11643. #endif /* COBJMACROS */
  11644. #endif /* C style interface */
  11645. #endif /* ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__ */
  11646. #ifndef __ISpeechRecognizer_INTERFACE_DEFINED__
  11647. #define __ISpeechRecognizer_INTERFACE_DEFINED__
  11648. /* interface ISpeechRecognizer */
  11649. /* [unique][helpstring][dual][uuid][object] */
  11650. EXTERN_C const IID IID_ISpeechRecognizer;
  11651. #if defined(__cplusplus) && !defined(CINTERFACE)
  11652. MIDL_INTERFACE("2D5F1C0C-BD75-4b08-9478-3B11FEA2586C")
  11653. ISpeechRecognizer : public IDispatch
  11654. {
  11655. public:
  11656. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Recognizer(
  11657. /* [in] */ ISpeechObjectToken *Recognizer) = 0;
  11658. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Recognizer(
  11659. /* [retval][out] */ ISpeechObjectToken **Recognizer) = 0;
  11660. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowAudioInputFormatChangesOnNextSet(
  11661. /* [in] */ VARIANT_BOOL Allow) = 0;
  11662. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowAudioInputFormatChangesOnNextSet(
  11663. /* [retval][out] */ VARIANT_BOOL *Allow) = 0;
  11664. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioInput(
  11665. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput = 0) = 0;
  11666. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInput(
  11667. /* [retval][out] */ ISpeechObjectToken **AudioInput) = 0;
  11668. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioInputStream(
  11669. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream = 0) = 0;
  11670. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInputStream(
  11671. /* [retval][out] */ ISpeechBaseStream **AudioInputStream) = 0;
  11672. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_IsShared(
  11673. /* [retval][out] */ VARIANT_BOOL *Shared) = 0;
  11674. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  11675. /* [in] */ SpeechRecognizerState State) = 0;
  11676. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  11677. /* [retval][out] */ SpeechRecognizerState *State) = 0;
  11678. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status(
  11679. /* [retval][out] */ ISpeechRecognizerStatus **Status) = 0;
  11680. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Profile(
  11681. /* [defaultvalue][in] */ ISpeechObjectToken *Profile = 0) = 0;
  11682. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Profile(
  11683. /* [retval][out] */ ISpeechObjectToken **Profile) = 0;
  11684. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE EmulateRecognition(
  11685. /* [in] */ VARIANT TextElements,
  11686. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes = 0,
  11687. /* [defaultvalue][in] */ long LanguageId = 0) = 0;
  11688. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateRecoContext(
  11689. /* [retval][out] */ ISpeechRecoContext **NewContext) = 0;
  11690. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetFormat(
  11691. /* [in] */ SpeechFormatType Type,
  11692. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  11693. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetPropertyNumber(
  11694. /* [in] */ const BSTR Name,
  11695. /* [in] */ long Value,
  11696. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11697. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetPropertyNumber(
  11698. /* [in] */ const BSTR Name,
  11699. /* [out][in] */ long *Value,
  11700. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11701. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE SetPropertyString(
  11702. /* [in] */ const BSTR Name,
  11703. /* [in] */ const BSTR Value,
  11704. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11705. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE GetPropertyString(
  11706. /* [in] */ const BSTR Name,
  11707. /* [out][in] */ BSTR *Value,
  11708. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11709. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsUISupported(
  11710. /* [in] */ const BSTR TypeOfUI,
  11711. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11712. /* [retval][out] */ VARIANT_BOOL *Supported) = 0;
  11713. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DisplayUI(
  11714. /* [in] */ long hWndParent,
  11715. /* [in] */ BSTR Title,
  11716. /* [in] */ const BSTR TypeOfUI,
  11717. /* [defaultvalue][in] */ const VARIANT *ExtraData = 0) = 0;
  11718. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetRecognizers(
  11719. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11720. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11721. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11722. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetAudioInputs(
  11723. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11724. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11725. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11726. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetProfiles(
  11727. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11728. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11729. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens) = 0;
  11730. };
  11731. #else /* C style interface */
  11732. typedef struct ISpeechRecognizerVtbl
  11733. {
  11734. BEGIN_INTERFACE
  11735. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  11736. ISpeechRecognizer * This,
  11737. /* [in] */ REFIID riid,
  11738. /* [iid_is][out] */ void **ppvObject);
  11739. ULONG ( STDMETHODCALLTYPE *AddRef )(
  11740. ISpeechRecognizer * This);
  11741. ULONG ( STDMETHODCALLTYPE *Release )(
  11742. ISpeechRecognizer * This);
  11743. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  11744. ISpeechRecognizer * This,
  11745. /* [out] */ UINT *pctinfo);
  11746. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  11747. ISpeechRecognizer * This,
  11748. /* [in] */ UINT iTInfo,
  11749. /* [in] */ LCID lcid,
  11750. /* [out] */ ITypeInfo **ppTInfo);
  11751. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  11752. ISpeechRecognizer * This,
  11753. /* [in] */ REFIID riid,
  11754. /* [size_is][in] */ LPOLESTR *rgszNames,
  11755. /* [in] */ UINT cNames,
  11756. /* [in] */ LCID lcid,
  11757. /* [size_is][out] */ DISPID *rgDispId);
  11758. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  11759. ISpeechRecognizer * This,
  11760. /* [in] */ DISPID dispIdMember,
  11761. /* [in] */ REFIID riid,
  11762. /* [in] */ LCID lcid,
  11763. /* [in] */ WORD wFlags,
  11764. /* [out][in] */ DISPPARAMS *pDispParams,
  11765. /* [out] */ VARIANT *pVarResult,
  11766. /* [out] */ EXCEPINFO *pExcepInfo,
  11767. /* [out] */ UINT *puArgErr);
  11768. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Recognizer )(
  11769. ISpeechRecognizer * This,
  11770. /* [in] */ ISpeechObjectToken *Recognizer);
  11771. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recognizer )(
  11772. ISpeechRecognizer * This,
  11773. /* [retval][out] */ ISpeechObjectToken **Recognizer);
  11774. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowAudioInputFormatChangesOnNextSet )(
  11775. ISpeechRecognizer * This,
  11776. /* [in] */ VARIANT_BOOL Allow);
  11777. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowAudioInputFormatChangesOnNextSet )(
  11778. ISpeechRecognizer * This,
  11779. /* [retval][out] */ VARIANT_BOOL *Allow);
  11780. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioInput )(
  11781. ISpeechRecognizer * This,
  11782. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput);
  11783. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInput )(
  11784. ISpeechRecognizer * This,
  11785. /* [retval][out] */ ISpeechObjectToken **AudioInput);
  11786. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioInputStream )(
  11787. ISpeechRecognizer * This,
  11788. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream);
  11789. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInputStream )(
  11790. ISpeechRecognizer * This,
  11791. /* [retval][out] */ ISpeechBaseStream **AudioInputStream);
  11792. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsShared )(
  11793. ISpeechRecognizer * This,
  11794. /* [retval][out] */ VARIANT_BOOL *Shared);
  11795. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  11796. ISpeechRecognizer * This,
  11797. /* [in] */ SpeechRecognizerState State);
  11798. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  11799. ISpeechRecognizer * This,
  11800. /* [retval][out] */ SpeechRecognizerState *State);
  11801. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )(
  11802. ISpeechRecognizer * This,
  11803. /* [retval][out] */ ISpeechRecognizerStatus **Status);
  11804. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Profile )(
  11805. ISpeechRecognizer * This,
  11806. /* [defaultvalue][in] */ ISpeechObjectToken *Profile);
  11807. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Profile )(
  11808. ISpeechRecognizer * This,
  11809. /* [retval][out] */ ISpeechObjectToken **Profile);
  11810. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *EmulateRecognition )(
  11811. ISpeechRecognizer * This,
  11812. /* [in] */ VARIANT TextElements,
  11813. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes,
  11814. /* [defaultvalue][in] */ long LanguageId);
  11815. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateRecoContext )(
  11816. ISpeechRecognizer * This,
  11817. /* [retval][out] */ ISpeechRecoContext **NewContext);
  11818. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  11819. ISpeechRecognizer * This,
  11820. /* [in] */ SpeechFormatType Type,
  11821. /* [retval][out] */ ISpeechAudioFormat **Format);
  11822. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPropertyNumber )(
  11823. ISpeechRecognizer * This,
  11824. /* [in] */ const BSTR Name,
  11825. /* [in] */ long Value,
  11826. /* [retval][out] */ VARIANT_BOOL *Supported);
  11827. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyNumber )(
  11828. ISpeechRecognizer * This,
  11829. /* [in] */ const BSTR Name,
  11830. /* [out][in] */ long *Value,
  11831. /* [retval][out] */ VARIANT_BOOL *Supported);
  11832. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPropertyString )(
  11833. ISpeechRecognizer * This,
  11834. /* [in] */ const BSTR Name,
  11835. /* [in] */ const BSTR Value,
  11836. /* [retval][out] */ VARIANT_BOOL *Supported);
  11837. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyString )(
  11838. ISpeechRecognizer * This,
  11839. /* [in] */ const BSTR Name,
  11840. /* [out][in] */ BSTR *Value,
  11841. /* [retval][out] */ VARIANT_BOOL *Supported);
  11842. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsUISupported )(
  11843. ISpeechRecognizer * This,
  11844. /* [in] */ const BSTR TypeOfUI,
  11845. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  11846. /* [retval][out] */ VARIANT_BOOL *Supported);
  11847. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayUI )(
  11848. ISpeechRecognizer * This,
  11849. /* [in] */ long hWndParent,
  11850. /* [in] */ BSTR Title,
  11851. /* [in] */ const BSTR TypeOfUI,
  11852. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  11853. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecognizers )(
  11854. ISpeechRecognizer * This,
  11855. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11856. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11857. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11858. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAudioInputs )(
  11859. ISpeechRecognizer * This,
  11860. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11861. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11862. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11863. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetProfiles )(
  11864. ISpeechRecognizer * This,
  11865. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  11866. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  11867. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  11868. END_INTERFACE
  11869. } ISpeechRecognizerVtbl;
  11870. interface ISpeechRecognizer
  11871. {
  11872. CONST_VTBL struct ISpeechRecognizerVtbl *lpVtbl;
  11873. };
  11874. #ifdef COBJMACROS
  11875. #define ISpeechRecognizer_QueryInterface(This,riid,ppvObject) \
  11876. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  11877. #define ISpeechRecognizer_AddRef(This) \
  11878. (This)->lpVtbl -> AddRef(This)
  11879. #define ISpeechRecognizer_Release(This) \
  11880. (This)->lpVtbl -> Release(This)
  11881. #define ISpeechRecognizer_GetTypeInfoCount(This,pctinfo) \
  11882. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  11883. #define ISpeechRecognizer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  11884. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11885. #define ISpeechRecognizer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  11886. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11887. #define ISpeechRecognizer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  11888. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11889. #define ISpeechRecognizer_putref_Recognizer(This,Recognizer) \
  11890. (This)->lpVtbl -> putref_Recognizer(This,Recognizer)
  11891. #define ISpeechRecognizer_get_Recognizer(This,Recognizer) \
  11892. (This)->lpVtbl -> get_Recognizer(This,Recognizer)
  11893. #define ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet(This,Allow) \
  11894. (This)->lpVtbl -> put_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  11895. #define ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet(This,Allow) \
  11896. (This)->lpVtbl -> get_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  11897. #define ISpeechRecognizer_putref_AudioInput(This,AudioInput) \
  11898. (This)->lpVtbl -> putref_AudioInput(This,AudioInput)
  11899. #define ISpeechRecognizer_get_AudioInput(This,AudioInput) \
  11900. (This)->lpVtbl -> get_AudioInput(This,AudioInput)
  11901. #define ISpeechRecognizer_putref_AudioInputStream(This,AudioInputStream) \
  11902. (This)->lpVtbl -> putref_AudioInputStream(This,AudioInputStream)
  11903. #define ISpeechRecognizer_get_AudioInputStream(This,AudioInputStream) \
  11904. (This)->lpVtbl -> get_AudioInputStream(This,AudioInputStream)
  11905. #define ISpeechRecognizer_get_IsShared(This,Shared) \
  11906. (This)->lpVtbl -> get_IsShared(This,Shared)
  11907. #define ISpeechRecognizer_put_State(This,State) \
  11908. (This)->lpVtbl -> put_State(This,State)
  11909. #define ISpeechRecognizer_get_State(This,State) \
  11910. (This)->lpVtbl -> get_State(This,State)
  11911. #define ISpeechRecognizer_get_Status(This,Status) \
  11912. (This)->lpVtbl -> get_Status(This,Status)
  11913. #define ISpeechRecognizer_putref_Profile(This,Profile) \
  11914. (This)->lpVtbl -> putref_Profile(This,Profile)
  11915. #define ISpeechRecognizer_get_Profile(This,Profile) \
  11916. (This)->lpVtbl -> get_Profile(This,Profile)
  11917. #define ISpeechRecognizer_EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId) \
  11918. (This)->lpVtbl -> EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId)
  11919. #define ISpeechRecognizer_CreateRecoContext(This,NewContext) \
  11920. (This)->lpVtbl -> CreateRecoContext(This,NewContext)
  11921. #define ISpeechRecognizer_GetFormat(This,Type,Format) \
  11922. (This)->lpVtbl -> GetFormat(This,Type,Format)
  11923. #define ISpeechRecognizer_SetPropertyNumber(This,Name,Value,Supported) \
  11924. (This)->lpVtbl -> SetPropertyNumber(This,Name,Value,Supported)
  11925. #define ISpeechRecognizer_GetPropertyNumber(This,Name,Value,Supported) \
  11926. (This)->lpVtbl -> GetPropertyNumber(This,Name,Value,Supported)
  11927. #define ISpeechRecognizer_SetPropertyString(This,Name,Value,Supported) \
  11928. (This)->lpVtbl -> SetPropertyString(This,Name,Value,Supported)
  11929. #define ISpeechRecognizer_GetPropertyString(This,Name,Value,Supported) \
  11930. (This)->lpVtbl -> GetPropertyString(This,Name,Value,Supported)
  11931. #define ISpeechRecognizer_IsUISupported(This,TypeOfUI,ExtraData,Supported) \
  11932. (This)->lpVtbl -> IsUISupported(This,TypeOfUI,ExtraData,Supported)
  11933. #define ISpeechRecognizer_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) \
  11934. (This)->lpVtbl -> DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  11935. #define ISpeechRecognizer_GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11936. (This)->lpVtbl -> GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11937. #define ISpeechRecognizer_GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11938. (This)->lpVtbl -> GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11939. #define ISpeechRecognizer_GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens) \
  11940. (This)->lpVtbl -> GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  11941. #endif /* COBJMACROS */
  11942. #endif /* C style interface */
  11943. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_Recognizer_Proxy(
  11944. ISpeechRecognizer * This,
  11945. /* [in] */ ISpeechObjectToken *Recognizer);
  11946. void __RPC_STUB ISpeechRecognizer_putref_Recognizer_Stub(
  11947. IRpcStubBuffer *This,
  11948. IRpcChannelBuffer *_pRpcChannelBuffer,
  11949. PRPC_MESSAGE _pRpcMessage,
  11950. DWORD *_pdwStubPhase);
  11951. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Recognizer_Proxy(
  11952. ISpeechRecognizer * This,
  11953. /* [retval][out] */ ISpeechObjectToken **Recognizer);
  11954. void __RPC_STUB ISpeechRecognizer_get_Recognizer_Stub(
  11955. IRpcStubBuffer *This,
  11956. IRpcChannelBuffer *_pRpcChannelBuffer,
  11957. PRPC_MESSAGE _pRpcMessage,
  11958. DWORD *_pdwStubPhase);
  11959. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet_Proxy(
  11960. ISpeechRecognizer * This,
  11961. /* [in] */ VARIANT_BOOL Allow);
  11962. void __RPC_STUB ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet_Stub(
  11963. IRpcStubBuffer *This,
  11964. IRpcChannelBuffer *_pRpcChannelBuffer,
  11965. PRPC_MESSAGE _pRpcMessage,
  11966. DWORD *_pdwStubPhase);
  11967. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet_Proxy(
  11968. ISpeechRecognizer * This,
  11969. /* [retval][out] */ VARIANT_BOOL *Allow);
  11970. void __RPC_STUB ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet_Stub(
  11971. IRpcStubBuffer *This,
  11972. IRpcChannelBuffer *_pRpcChannelBuffer,
  11973. PRPC_MESSAGE _pRpcMessage,
  11974. DWORD *_pdwStubPhase);
  11975. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_AudioInput_Proxy(
  11976. ISpeechRecognizer * This,
  11977. /* [defaultvalue][in] */ ISpeechObjectToken *AudioInput);
  11978. void __RPC_STUB ISpeechRecognizer_putref_AudioInput_Stub(
  11979. IRpcStubBuffer *This,
  11980. IRpcChannelBuffer *_pRpcChannelBuffer,
  11981. PRPC_MESSAGE _pRpcMessage,
  11982. DWORD *_pdwStubPhase);
  11983. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AudioInput_Proxy(
  11984. ISpeechRecognizer * This,
  11985. /* [retval][out] */ ISpeechObjectToken **AudioInput);
  11986. void __RPC_STUB ISpeechRecognizer_get_AudioInput_Stub(
  11987. IRpcStubBuffer *This,
  11988. IRpcChannelBuffer *_pRpcChannelBuffer,
  11989. PRPC_MESSAGE _pRpcMessage,
  11990. DWORD *_pdwStubPhase);
  11991. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_AudioInputStream_Proxy(
  11992. ISpeechRecognizer * This,
  11993. /* [defaultvalue][in] */ ISpeechBaseStream *AudioInputStream);
  11994. void __RPC_STUB ISpeechRecognizer_putref_AudioInputStream_Stub(
  11995. IRpcStubBuffer *This,
  11996. IRpcChannelBuffer *_pRpcChannelBuffer,
  11997. PRPC_MESSAGE _pRpcMessage,
  11998. DWORD *_pdwStubPhase);
  11999. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_AudioInputStream_Proxy(
  12000. ISpeechRecognizer * This,
  12001. /* [retval][out] */ ISpeechBaseStream **AudioInputStream);
  12002. void __RPC_STUB ISpeechRecognizer_get_AudioInputStream_Stub(
  12003. IRpcStubBuffer *This,
  12004. IRpcChannelBuffer *_pRpcChannelBuffer,
  12005. PRPC_MESSAGE _pRpcMessage,
  12006. DWORD *_pdwStubPhase);
  12007. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_IsShared_Proxy(
  12008. ISpeechRecognizer * This,
  12009. /* [retval][out] */ VARIANT_BOOL *Shared);
  12010. void __RPC_STUB ISpeechRecognizer_get_IsShared_Stub(
  12011. IRpcStubBuffer *This,
  12012. IRpcChannelBuffer *_pRpcChannelBuffer,
  12013. PRPC_MESSAGE _pRpcMessage,
  12014. DWORD *_pdwStubPhase);
  12015. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_put_State_Proxy(
  12016. ISpeechRecognizer * This,
  12017. /* [in] */ SpeechRecognizerState State);
  12018. void __RPC_STUB ISpeechRecognizer_put_State_Stub(
  12019. IRpcStubBuffer *This,
  12020. IRpcChannelBuffer *_pRpcChannelBuffer,
  12021. PRPC_MESSAGE _pRpcMessage,
  12022. DWORD *_pdwStubPhase);
  12023. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_State_Proxy(
  12024. ISpeechRecognizer * This,
  12025. /* [retval][out] */ SpeechRecognizerState *State);
  12026. void __RPC_STUB ISpeechRecognizer_get_State_Stub(
  12027. IRpcStubBuffer *This,
  12028. IRpcChannelBuffer *_pRpcChannelBuffer,
  12029. PRPC_MESSAGE _pRpcMessage,
  12030. DWORD *_pdwStubPhase);
  12031. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Status_Proxy(
  12032. ISpeechRecognizer * This,
  12033. /* [retval][out] */ ISpeechRecognizerStatus **Status);
  12034. void __RPC_STUB ISpeechRecognizer_get_Status_Stub(
  12035. IRpcStubBuffer *This,
  12036. IRpcChannelBuffer *_pRpcChannelBuffer,
  12037. PRPC_MESSAGE _pRpcMessage,
  12038. DWORD *_pdwStubPhase);
  12039. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_putref_Profile_Proxy(
  12040. ISpeechRecognizer * This,
  12041. /* [defaultvalue][in] */ ISpeechObjectToken *Profile);
  12042. void __RPC_STUB ISpeechRecognizer_putref_Profile_Stub(
  12043. IRpcStubBuffer *This,
  12044. IRpcChannelBuffer *_pRpcChannelBuffer,
  12045. PRPC_MESSAGE _pRpcMessage,
  12046. DWORD *_pdwStubPhase);
  12047. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_get_Profile_Proxy(
  12048. ISpeechRecognizer * This,
  12049. /* [retval][out] */ ISpeechObjectToken **Profile);
  12050. void __RPC_STUB ISpeechRecognizer_get_Profile_Stub(
  12051. IRpcStubBuffer *This,
  12052. IRpcChannelBuffer *_pRpcChannelBuffer,
  12053. PRPC_MESSAGE _pRpcMessage,
  12054. DWORD *_pdwStubPhase);
  12055. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_EmulateRecognition_Proxy(
  12056. ISpeechRecognizer * This,
  12057. /* [in] */ VARIANT TextElements,
  12058. /* [defaultvalue][in] */ VARIANT *ElementDisplayAttributes,
  12059. /* [defaultvalue][in] */ long LanguageId);
  12060. void __RPC_STUB ISpeechRecognizer_EmulateRecognition_Stub(
  12061. IRpcStubBuffer *This,
  12062. IRpcChannelBuffer *_pRpcChannelBuffer,
  12063. PRPC_MESSAGE _pRpcMessage,
  12064. DWORD *_pdwStubPhase);
  12065. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_CreateRecoContext_Proxy(
  12066. ISpeechRecognizer * This,
  12067. /* [retval][out] */ ISpeechRecoContext **NewContext);
  12068. void __RPC_STUB ISpeechRecognizer_CreateRecoContext_Stub(
  12069. IRpcStubBuffer *This,
  12070. IRpcChannelBuffer *_pRpcChannelBuffer,
  12071. PRPC_MESSAGE _pRpcMessage,
  12072. DWORD *_pdwStubPhase);
  12073. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetFormat_Proxy(
  12074. ISpeechRecognizer * This,
  12075. /* [in] */ SpeechFormatType Type,
  12076. /* [retval][out] */ ISpeechAudioFormat **Format);
  12077. void __RPC_STUB ISpeechRecognizer_GetFormat_Stub(
  12078. IRpcStubBuffer *This,
  12079. IRpcChannelBuffer *_pRpcChannelBuffer,
  12080. PRPC_MESSAGE _pRpcMessage,
  12081. DWORD *_pdwStubPhase);
  12082. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_SetPropertyNumber_Proxy(
  12083. ISpeechRecognizer * This,
  12084. /* [in] */ const BSTR Name,
  12085. /* [in] */ long Value,
  12086. /* [retval][out] */ VARIANT_BOOL *Supported);
  12087. void __RPC_STUB ISpeechRecognizer_SetPropertyNumber_Stub(
  12088. IRpcStubBuffer *This,
  12089. IRpcChannelBuffer *_pRpcChannelBuffer,
  12090. PRPC_MESSAGE _pRpcMessage,
  12091. DWORD *_pdwStubPhase);
  12092. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetPropertyNumber_Proxy(
  12093. ISpeechRecognizer * This,
  12094. /* [in] */ const BSTR Name,
  12095. /* [out][in] */ long *Value,
  12096. /* [retval][out] */ VARIANT_BOOL *Supported);
  12097. void __RPC_STUB ISpeechRecognizer_GetPropertyNumber_Stub(
  12098. IRpcStubBuffer *This,
  12099. IRpcChannelBuffer *_pRpcChannelBuffer,
  12100. PRPC_MESSAGE _pRpcMessage,
  12101. DWORD *_pdwStubPhase);
  12102. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_SetPropertyString_Proxy(
  12103. ISpeechRecognizer * This,
  12104. /* [in] */ const BSTR Name,
  12105. /* [in] */ const BSTR Value,
  12106. /* [retval][out] */ VARIANT_BOOL *Supported);
  12107. void __RPC_STUB ISpeechRecognizer_SetPropertyString_Stub(
  12108. IRpcStubBuffer *This,
  12109. IRpcChannelBuffer *_pRpcChannelBuffer,
  12110. PRPC_MESSAGE _pRpcMessage,
  12111. DWORD *_pdwStubPhase);
  12112. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetPropertyString_Proxy(
  12113. ISpeechRecognizer * This,
  12114. /* [in] */ const BSTR Name,
  12115. /* [out][in] */ BSTR *Value,
  12116. /* [retval][out] */ VARIANT_BOOL *Supported);
  12117. void __RPC_STUB ISpeechRecognizer_GetPropertyString_Stub(
  12118. IRpcStubBuffer *This,
  12119. IRpcChannelBuffer *_pRpcChannelBuffer,
  12120. PRPC_MESSAGE _pRpcMessage,
  12121. DWORD *_pdwStubPhase);
  12122. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_IsUISupported_Proxy(
  12123. ISpeechRecognizer * This,
  12124. /* [in] */ const BSTR TypeOfUI,
  12125. /* [defaultvalue][in] */ const VARIANT *ExtraData,
  12126. /* [retval][out] */ VARIANT_BOOL *Supported);
  12127. void __RPC_STUB ISpeechRecognizer_IsUISupported_Stub(
  12128. IRpcStubBuffer *This,
  12129. IRpcChannelBuffer *_pRpcChannelBuffer,
  12130. PRPC_MESSAGE _pRpcMessage,
  12131. DWORD *_pdwStubPhase);
  12132. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_DisplayUI_Proxy(
  12133. ISpeechRecognizer * This,
  12134. /* [in] */ long hWndParent,
  12135. /* [in] */ BSTR Title,
  12136. /* [in] */ const BSTR TypeOfUI,
  12137. /* [defaultvalue][in] */ const VARIANT *ExtraData);
  12138. void __RPC_STUB ISpeechRecognizer_DisplayUI_Stub(
  12139. IRpcStubBuffer *This,
  12140. IRpcChannelBuffer *_pRpcChannelBuffer,
  12141. PRPC_MESSAGE _pRpcMessage,
  12142. DWORD *_pdwStubPhase);
  12143. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetRecognizers_Proxy(
  12144. ISpeechRecognizer * This,
  12145. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12146. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12147. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12148. void __RPC_STUB ISpeechRecognizer_GetRecognizers_Stub(
  12149. IRpcStubBuffer *This,
  12150. IRpcChannelBuffer *_pRpcChannelBuffer,
  12151. PRPC_MESSAGE _pRpcMessage,
  12152. DWORD *_pdwStubPhase);
  12153. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetAudioInputs_Proxy(
  12154. ISpeechRecognizer * This,
  12155. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12156. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12157. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12158. void __RPC_STUB ISpeechRecognizer_GetAudioInputs_Stub(
  12159. IRpcStubBuffer *This,
  12160. IRpcChannelBuffer *_pRpcChannelBuffer,
  12161. PRPC_MESSAGE _pRpcMessage,
  12162. DWORD *_pdwStubPhase);
  12163. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizer_GetProfiles_Proxy(
  12164. ISpeechRecognizer * This,
  12165. /* [defaultvalue][in] */ BSTR RequiredAttributes,
  12166. /* [defaultvalue][in] */ BSTR OptionalAttributes,
  12167. /* [retval][out] */ ISpeechObjectTokens **ObjectTokens);
  12168. void __RPC_STUB ISpeechRecognizer_GetProfiles_Stub(
  12169. IRpcStubBuffer *This,
  12170. IRpcChannelBuffer *_pRpcChannelBuffer,
  12171. PRPC_MESSAGE _pRpcMessage,
  12172. DWORD *_pdwStubPhase);
  12173. #endif /* __ISpeechRecognizer_INTERFACE_DEFINED__ */
  12174. #ifndef __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  12175. #define __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  12176. /* interface ISpeechRecognizerStatus */
  12177. /* [unique][helpstring][dual][uuid][object] */
  12178. EXTERN_C const IID IID_ISpeechRecognizerStatus;
  12179. #if defined(__cplusplus) && !defined(CINTERFACE)
  12180. MIDL_INTERFACE("BFF9E781-53EC-484e-BB8A-0E1B5551E35C")
  12181. ISpeechRecognizerStatus : public IDispatch
  12182. {
  12183. public:
  12184. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStatus(
  12185. /* [retval][out] */ ISpeechAudioStatus **AudioStatus) = 0;
  12186. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamPosition(
  12187. /* [retval][out] */ VARIANT *pCurrentStreamPos) = 0;
  12188. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  12189. /* [retval][out] */ long *StreamNumber) = 0;
  12190. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfActiveRules(
  12191. /* [retval][out] */ long *NumberOfActiveRules) = 0;
  12192. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ClsidEngine(
  12193. /* [retval][out] */ BSTR *ClsidEngine) = 0;
  12194. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedLanguages(
  12195. /* [retval][out] */ VARIANT *SupportedLanguages) = 0;
  12196. };
  12197. #else /* C style interface */
  12198. typedef struct ISpeechRecognizerStatusVtbl
  12199. {
  12200. BEGIN_INTERFACE
  12201. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12202. ISpeechRecognizerStatus * This,
  12203. /* [in] */ REFIID riid,
  12204. /* [iid_is][out] */ void **ppvObject);
  12205. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12206. ISpeechRecognizerStatus * This);
  12207. ULONG ( STDMETHODCALLTYPE *Release )(
  12208. ISpeechRecognizerStatus * This);
  12209. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12210. ISpeechRecognizerStatus * This,
  12211. /* [out] */ UINT *pctinfo);
  12212. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12213. ISpeechRecognizerStatus * This,
  12214. /* [in] */ UINT iTInfo,
  12215. /* [in] */ LCID lcid,
  12216. /* [out] */ ITypeInfo **ppTInfo);
  12217. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12218. ISpeechRecognizerStatus * This,
  12219. /* [in] */ REFIID riid,
  12220. /* [size_is][in] */ LPOLESTR *rgszNames,
  12221. /* [in] */ UINT cNames,
  12222. /* [in] */ LCID lcid,
  12223. /* [size_is][out] */ DISPID *rgDispId);
  12224. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12225. ISpeechRecognizerStatus * This,
  12226. /* [in] */ DISPID dispIdMember,
  12227. /* [in] */ REFIID riid,
  12228. /* [in] */ LCID lcid,
  12229. /* [in] */ WORD wFlags,
  12230. /* [out][in] */ DISPPARAMS *pDispParams,
  12231. /* [out] */ VARIANT *pVarResult,
  12232. /* [out] */ EXCEPINFO *pExcepInfo,
  12233. /* [out] */ UINT *puArgErr);
  12234. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStatus )(
  12235. ISpeechRecognizerStatus * This,
  12236. /* [retval][out] */ ISpeechAudioStatus **AudioStatus);
  12237. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamPosition )(
  12238. ISpeechRecognizerStatus * This,
  12239. /* [retval][out] */ VARIANT *pCurrentStreamPos);
  12240. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentStreamNumber )(
  12241. ISpeechRecognizerStatus * This,
  12242. /* [retval][out] */ long *StreamNumber);
  12243. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfActiveRules )(
  12244. ISpeechRecognizerStatus * This,
  12245. /* [retval][out] */ long *NumberOfActiveRules);
  12246. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClsidEngine )(
  12247. ISpeechRecognizerStatus * This,
  12248. /* [retval][out] */ BSTR *ClsidEngine);
  12249. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedLanguages )(
  12250. ISpeechRecognizerStatus * This,
  12251. /* [retval][out] */ VARIANT *SupportedLanguages);
  12252. END_INTERFACE
  12253. } ISpeechRecognizerStatusVtbl;
  12254. interface ISpeechRecognizerStatus
  12255. {
  12256. CONST_VTBL struct ISpeechRecognizerStatusVtbl *lpVtbl;
  12257. };
  12258. #ifdef COBJMACROS
  12259. #define ISpeechRecognizerStatus_QueryInterface(This,riid,ppvObject) \
  12260. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12261. #define ISpeechRecognizerStatus_AddRef(This) \
  12262. (This)->lpVtbl -> AddRef(This)
  12263. #define ISpeechRecognizerStatus_Release(This) \
  12264. (This)->lpVtbl -> Release(This)
  12265. #define ISpeechRecognizerStatus_GetTypeInfoCount(This,pctinfo) \
  12266. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12267. #define ISpeechRecognizerStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12268. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12269. #define ISpeechRecognizerStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12270. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12271. #define ISpeechRecognizerStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12272. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12273. #define ISpeechRecognizerStatus_get_AudioStatus(This,AudioStatus) \
  12274. (This)->lpVtbl -> get_AudioStatus(This,AudioStatus)
  12275. #define ISpeechRecognizerStatus_get_CurrentStreamPosition(This,pCurrentStreamPos) \
  12276. (This)->lpVtbl -> get_CurrentStreamPosition(This,pCurrentStreamPos)
  12277. #define ISpeechRecognizerStatus_get_CurrentStreamNumber(This,StreamNumber) \
  12278. (This)->lpVtbl -> get_CurrentStreamNumber(This,StreamNumber)
  12279. #define ISpeechRecognizerStatus_get_NumberOfActiveRules(This,NumberOfActiveRules) \
  12280. (This)->lpVtbl -> get_NumberOfActiveRules(This,NumberOfActiveRules)
  12281. #define ISpeechRecognizerStatus_get_ClsidEngine(This,ClsidEngine) \
  12282. (This)->lpVtbl -> get_ClsidEngine(This,ClsidEngine)
  12283. #define ISpeechRecognizerStatus_get_SupportedLanguages(This,SupportedLanguages) \
  12284. (This)->lpVtbl -> get_SupportedLanguages(This,SupportedLanguages)
  12285. #endif /* COBJMACROS */
  12286. #endif /* C style interface */
  12287. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_AudioStatus_Proxy(
  12288. ISpeechRecognizerStatus * This,
  12289. /* [retval][out] */ ISpeechAudioStatus **AudioStatus);
  12290. void __RPC_STUB ISpeechRecognizerStatus_get_AudioStatus_Stub(
  12291. IRpcStubBuffer *This,
  12292. IRpcChannelBuffer *_pRpcChannelBuffer,
  12293. PRPC_MESSAGE _pRpcMessage,
  12294. DWORD *_pdwStubPhase);
  12295. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_CurrentStreamPosition_Proxy(
  12296. ISpeechRecognizerStatus * This,
  12297. /* [retval][out] */ VARIANT *pCurrentStreamPos);
  12298. void __RPC_STUB ISpeechRecognizerStatus_get_CurrentStreamPosition_Stub(
  12299. IRpcStubBuffer *This,
  12300. IRpcChannelBuffer *_pRpcChannelBuffer,
  12301. PRPC_MESSAGE _pRpcMessage,
  12302. DWORD *_pdwStubPhase);
  12303. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_CurrentStreamNumber_Proxy(
  12304. ISpeechRecognizerStatus * This,
  12305. /* [retval][out] */ long *StreamNumber);
  12306. void __RPC_STUB ISpeechRecognizerStatus_get_CurrentStreamNumber_Stub(
  12307. IRpcStubBuffer *This,
  12308. IRpcChannelBuffer *_pRpcChannelBuffer,
  12309. PRPC_MESSAGE _pRpcMessage,
  12310. DWORD *_pdwStubPhase);
  12311. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_NumberOfActiveRules_Proxy(
  12312. ISpeechRecognizerStatus * This,
  12313. /* [retval][out] */ long *NumberOfActiveRules);
  12314. void __RPC_STUB ISpeechRecognizerStatus_get_NumberOfActiveRules_Stub(
  12315. IRpcStubBuffer *This,
  12316. IRpcChannelBuffer *_pRpcChannelBuffer,
  12317. PRPC_MESSAGE _pRpcMessage,
  12318. DWORD *_pdwStubPhase);
  12319. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_ClsidEngine_Proxy(
  12320. ISpeechRecognizerStatus * This,
  12321. /* [retval][out] */ BSTR *ClsidEngine);
  12322. void __RPC_STUB ISpeechRecognizerStatus_get_ClsidEngine_Stub(
  12323. IRpcStubBuffer *This,
  12324. IRpcChannelBuffer *_pRpcChannelBuffer,
  12325. PRPC_MESSAGE _pRpcMessage,
  12326. DWORD *_pdwStubPhase);
  12327. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecognizerStatus_get_SupportedLanguages_Proxy(
  12328. ISpeechRecognizerStatus * This,
  12329. /* [retval][out] */ VARIANT *SupportedLanguages);
  12330. void __RPC_STUB ISpeechRecognizerStatus_get_SupportedLanguages_Stub(
  12331. IRpcStubBuffer *This,
  12332. IRpcChannelBuffer *_pRpcChannelBuffer,
  12333. PRPC_MESSAGE _pRpcMessage,
  12334. DWORD *_pdwStubPhase);
  12335. #endif /* __ISpeechRecognizerStatus_INTERFACE_DEFINED__ */
  12336. #ifndef __ISpeechRecoContext_INTERFACE_DEFINED__
  12337. #define __ISpeechRecoContext_INTERFACE_DEFINED__
  12338. /* interface ISpeechRecoContext */
  12339. /* [unique][helpstring][dual][uuid][object] */
  12340. EXTERN_C const IID IID_ISpeechRecoContext;
  12341. #if defined(__cplusplus) && !defined(CINTERFACE)
  12342. MIDL_INTERFACE("580AA49D-7E1E-4809-B8E2-57DA806104B8")
  12343. ISpeechRecoContext : public IDispatch
  12344. {
  12345. public:
  12346. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Recognizer(
  12347. /* [retval][out] */ ISpeechRecognizer **Recognizer) = 0;
  12348. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioInputInterferenceStatus(
  12349. /* [retval][out] */ SpeechInterference *Interference) = 0;
  12350. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedUIType(
  12351. /* [retval][out] */ BSTR *UIType) = 0;
  12352. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_Voice(
  12353. /* [in] */ ISpeechVoice *Voice) = 0;
  12354. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Voice(
  12355. /* [retval][out] */ ISpeechVoice **Voice) = 0;
  12356. virtual /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE put_AllowVoiceFormatMatchingOnNextSet(
  12357. /* [in] */ VARIANT_BOOL Allow) = 0;
  12358. virtual /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE get_AllowVoiceFormatMatchingOnNextSet(
  12359. /* [retval][out] */ VARIANT_BOOL *pAllow) = 0;
  12360. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_VoicePurgeEvent(
  12361. /* [in] */ SpeechRecoEvents EventInterest) = 0;
  12362. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_VoicePurgeEvent(
  12363. /* [retval][out] */ SpeechRecoEvents *EventInterest) = 0;
  12364. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_EventInterests(
  12365. /* [in] */ SpeechRecoEvents EventInterest) = 0;
  12366. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventInterests(
  12367. /* [retval][out] */ SpeechRecoEvents *EventInterest) = 0;
  12368. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_CmdMaxAlternates(
  12369. /* [in] */ long MaxAlternates) = 0;
  12370. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CmdMaxAlternates(
  12371. /* [retval][out] */ long *MaxAlternates) = 0;
  12372. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  12373. /* [in] */ SpeechRecoContextState State) = 0;
  12374. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  12375. /* [retval][out] */ SpeechRecoContextState *State) = 0;
  12376. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_RetainedAudio(
  12377. /* [in] */ SpeechRetainedAudioOptions Option) = 0;
  12378. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedAudio(
  12379. /* [retval][out] */ SpeechRetainedAudioOptions *Option) = 0;
  12380. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_RetainedAudioFormat(
  12381. /* [in] */ ISpeechAudioFormat *Format) = 0;
  12382. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedAudioFormat(
  12383. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  12384. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  12385. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0;
  12386. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateGrammar(
  12387. /* [defaultvalue][in] */ VARIANT GrammarId,
  12388. /* [retval][out] */ ISpeechRecoGrammar **Grammar) = 0;
  12389. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CreateResultFromMemory(
  12390. /* [in] */ VARIANT *ResultBlock,
  12391. /* [retval][out] */ ISpeechRecoResult **Result) = 0;
  12392. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Bookmark(
  12393. /* [in] */ SpeechBookmarkOptions Options,
  12394. /* [in] */ VARIANT StreamPos,
  12395. /* [in] */ VARIANT BookmarkId) = 0;
  12396. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetAdaptationData(
  12397. /* [in] */ BSTR AdaptationString) = 0;
  12398. };
  12399. #else /* C style interface */
  12400. typedef struct ISpeechRecoContextVtbl
  12401. {
  12402. BEGIN_INTERFACE
  12403. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12404. ISpeechRecoContext * This,
  12405. /* [in] */ REFIID riid,
  12406. /* [iid_is][out] */ void **ppvObject);
  12407. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12408. ISpeechRecoContext * This);
  12409. ULONG ( STDMETHODCALLTYPE *Release )(
  12410. ISpeechRecoContext * This);
  12411. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12412. ISpeechRecoContext * This,
  12413. /* [out] */ UINT *pctinfo);
  12414. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12415. ISpeechRecoContext * This,
  12416. /* [in] */ UINT iTInfo,
  12417. /* [in] */ LCID lcid,
  12418. /* [out] */ ITypeInfo **ppTInfo);
  12419. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12420. ISpeechRecoContext * This,
  12421. /* [in] */ REFIID riid,
  12422. /* [size_is][in] */ LPOLESTR *rgszNames,
  12423. /* [in] */ UINT cNames,
  12424. /* [in] */ LCID lcid,
  12425. /* [size_is][out] */ DISPID *rgDispId);
  12426. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12427. ISpeechRecoContext * This,
  12428. /* [in] */ DISPID dispIdMember,
  12429. /* [in] */ REFIID riid,
  12430. /* [in] */ LCID lcid,
  12431. /* [in] */ WORD wFlags,
  12432. /* [out][in] */ DISPPARAMS *pDispParams,
  12433. /* [out] */ VARIANT *pVarResult,
  12434. /* [out] */ EXCEPINFO *pExcepInfo,
  12435. /* [out] */ UINT *puArgErr);
  12436. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recognizer )(
  12437. ISpeechRecoContext * This,
  12438. /* [retval][out] */ ISpeechRecognizer **Recognizer);
  12439. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioInputInterferenceStatus )(
  12440. ISpeechRecoContext * This,
  12441. /* [retval][out] */ SpeechInterference *Interference);
  12442. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedUIType )(
  12443. ISpeechRecoContext * This,
  12444. /* [retval][out] */ BSTR *UIType);
  12445. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Voice )(
  12446. ISpeechRecoContext * This,
  12447. /* [in] */ ISpeechVoice *Voice);
  12448. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Voice )(
  12449. ISpeechRecoContext * This,
  12450. /* [retval][out] */ ISpeechVoice **Voice);
  12451. /* [id][helpstring][hidden][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowVoiceFormatMatchingOnNextSet )(
  12452. ISpeechRecoContext * This,
  12453. /* [in] */ VARIANT_BOOL Allow);
  12454. /* [id][helpstring][hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowVoiceFormatMatchingOnNextSet )(
  12455. ISpeechRecoContext * This,
  12456. /* [retval][out] */ VARIANT_BOOL *pAllow);
  12457. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VoicePurgeEvent )(
  12458. ISpeechRecoContext * This,
  12459. /* [in] */ SpeechRecoEvents EventInterest);
  12460. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VoicePurgeEvent )(
  12461. ISpeechRecoContext * This,
  12462. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12463. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventInterests )(
  12464. ISpeechRecoContext * This,
  12465. /* [in] */ SpeechRecoEvents EventInterest);
  12466. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventInterests )(
  12467. ISpeechRecoContext * This,
  12468. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12469. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CmdMaxAlternates )(
  12470. ISpeechRecoContext * This,
  12471. /* [in] */ long MaxAlternates);
  12472. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CmdMaxAlternates )(
  12473. ISpeechRecoContext * This,
  12474. /* [retval][out] */ long *MaxAlternates);
  12475. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  12476. ISpeechRecoContext * This,
  12477. /* [in] */ SpeechRecoContextState State);
  12478. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  12479. ISpeechRecoContext * This,
  12480. /* [retval][out] */ SpeechRecoContextState *State);
  12481. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetainedAudio )(
  12482. ISpeechRecoContext * This,
  12483. /* [in] */ SpeechRetainedAudioOptions Option);
  12484. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedAudio )(
  12485. ISpeechRecoContext * This,
  12486. /* [retval][out] */ SpeechRetainedAudioOptions *Option);
  12487. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_RetainedAudioFormat )(
  12488. ISpeechRecoContext * This,
  12489. /* [in] */ ISpeechAudioFormat *Format);
  12490. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedAudioFormat )(
  12491. ISpeechRecoContext * This,
  12492. /* [retval][out] */ ISpeechAudioFormat **Format);
  12493. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Pause )(
  12494. ISpeechRecoContext * This);
  12495. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Resume )(
  12496. ISpeechRecoContext * This);
  12497. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateGrammar )(
  12498. ISpeechRecoContext * This,
  12499. /* [defaultvalue][in] */ VARIANT GrammarId,
  12500. /* [retval][out] */ ISpeechRecoGrammar **Grammar);
  12501. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateResultFromMemory )(
  12502. ISpeechRecoContext * This,
  12503. /* [in] */ VARIANT *ResultBlock,
  12504. /* [retval][out] */ ISpeechRecoResult **Result);
  12505. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Bookmark )(
  12506. ISpeechRecoContext * This,
  12507. /* [in] */ SpeechBookmarkOptions Options,
  12508. /* [in] */ VARIANT StreamPos,
  12509. /* [in] */ VARIANT BookmarkId);
  12510. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetAdaptationData )(
  12511. ISpeechRecoContext * This,
  12512. /* [in] */ BSTR AdaptationString);
  12513. END_INTERFACE
  12514. } ISpeechRecoContextVtbl;
  12515. interface ISpeechRecoContext
  12516. {
  12517. CONST_VTBL struct ISpeechRecoContextVtbl *lpVtbl;
  12518. };
  12519. #ifdef COBJMACROS
  12520. #define ISpeechRecoContext_QueryInterface(This,riid,ppvObject) \
  12521. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12522. #define ISpeechRecoContext_AddRef(This) \
  12523. (This)->lpVtbl -> AddRef(This)
  12524. #define ISpeechRecoContext_Release(This) \
  12525. (This)->lpVtbl -> Release(This)
  12526. #define ISpeechRecoContext_GetTypeInfoCount(This,pctinfo) \
  12527. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12528. #define ISpeechRecoContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12529. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12530. #define ISpeechRecoContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12531. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12532. #define ISpeechRecoContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12533. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12534. #define ISpeechRecoContext_get_Recognizer(This,Recognizer) \
  12535. (This)->lpVtbl -> get_Recognizer(This,Recognizer)
  12536. #define ISpeechRecoContext_get_AudioInputInterferenceStatus(This,Interference) \
  12537. (This)->lpVtbl -> get_AudioInputInterferenceStatus(This,Interference)
  12538. #define ISpeechRecoContext_get_RequestedUIType(This,UIType) \
  12539. (This)->lpVtbl -> get_RequestedUIType(This,UIType)
  12540. #define ISpeechRecoContext_putref_Voice(This,Voice) \
  12541. (This)->lpVtbl -> putref_Voice(This,Voice)
  12542. #define ISpeechRecoContext_get_Voice(This,Voice) \
  12543. (This)->lpVtbl -> get_Voice(This,Voice)
  12544. #define ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet(This,Allow) \
  12545. (This)->lpVtbl -> put_AllowVoiceFormatMatchingOnNextSet(This,Allow)
  12546. #define ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet(This,pAllow) \
  12547. (This)->lpVtbl -> get_AllowVoiceFormatMatchingOnNextSet(This,pAllow)
  12548. #define ISpeechRecoContext_put_VoicePurgeEvent(This,EventInterest) \
  12549. (This)->lpVtbl -> put_VoicePurgeEvent(This,EventInterest)
  12550. #define ISpeechRecoContext_get_VoicePurgeEvent(This,EventInterest) \
  12551. (This)->lpVtbl -> get_VoicePurgeEvent(This,EventInterest)
  12552. #define ISpeechRecoContext_put_EventInterests(This,EventInterest) \
  12553. (This)->lpVtbl -> put_EventInterests(This,EventInterest)
  12554. #define ISpeechRecoContext_get_EventInterests(This,EventInterest) \
  12555. (This)->lpVtbl -> get_EventInterests(This,EventInterest)
  12556. #define ISpeechRecoContext_put_CmdMaxAlternates(This,MaxAlternates) \
  12557. (This)->lpVtbl -> put_CmdMaxAlternates(This,MaxAlternates)
  12558. #define ISpeechRecoContext_get_CmdMaxAlternates(This,MaxAlternates) \
  12559. (This)->lpVtbl -> get_CmdMaxAlternates(This,MaxAlternates)
  12560. #define ISpeechRecoContext_put_State(This,State) \
  12561. (This)->lpVtbl -> put_State(This,State)
  12562. #define ISpeechRecoContext_get_State(This,State) \
  12563. (This)->lpVtbl -> get_State(This,State)
  12564. #define ISpeechRecoContext_put_RetainedAudio(This,Option) \
  12565. (This)->lpVtbl -> put_RetainedAudio(This,Option)
  12566. #define ISpeechRecoContext_get_RetainedAudio(This,Option) \
  12567. (This)->lpVtbl -> get_RetainedAudio(This,Option)
  12568. #define ISpeechRecoContext_putref_RetainedAudioFormat(This,Format) \
  12569. (This)->lpVtbl -> putref_RetainedAudioFormat(This,Format)
  12570. #define ISpeechRecoContext_get_RetainedAudioFormat(This,Format) \
  12571. (This)->lpVtbl -> get_RetainedAudioFormat(This,Format)
  12572. #define ISpeechRecoContext_Pause(This) \
  12573. (This)->lpVtbl -> Pause(This)
  12574. #define ISpeechRecoContext_Resume(This) \
  12575. (This)->lpVtbl -> Resume(This)
  12576. #define ISpeechRecoContext_CreateGrammar(This,GrammarId,Grammar) \
  12577. (This)->lpVtbl -> CreateGrammar(This,GrammarId,Grammar)
  12578. #define ISpeechRecoContext_CreateResultFromMemory(This,ResultBlock,Result) \
  12579. (This)->lpVtbl -> CreateResultFromMemory(This,ResultBlock,Result)
  12580. #define ISpeechRecoContext_Bookmark(This,Options,StreamPos,BookmarkId) \
  12581. (This)->lpVtbl -> Bookmark(This,Options,StreamPos,BookmarkId)
  12582. #define ISpeechRecoContext_SetAdaptationData(This,AdaptationString) \
  12583. (This)->lpVtbl -> SetAdaptationData(This,AdaptationString)
  12584. #endif /* COBJMACROS */
  12585. #endif /* C style interface */
  12586. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_Recognizer_Proxy(
  12587. ISpeechRecoContext * This,
  12588. /* [retval][out] */ ISpeechRecognizer **Recognizer);
  12589. void __RPC_STUB ISpeechRecoContext_get_Recognizer_Stub(
  12590. IRpcStubBuffer *This,
  12591. IRpcChannelBuffer *_pRpcChannelBuffer,
  12592. PRPC_MESSAGE _pRpcMessage,
  12593. DWORD *_pdwStubPhase);
  12594. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_AudioInputInterferenceStatus_Proxy(
  12595. ISpeechRecoContext * This,
  12596. /* [retval][out] */ SpeechInterference *Interference);
  12597. void __RPC_STUB ISpeechRecoContext_get_AudioInputInterferenceStatus_Stub(
  12598. IRpcStubBuffer *This,
  12599. IRpcChannelBuffer *_pRpcChannelBuffer,
  12600. PRPC_MESSAGE _pRpcMessage,
  12601. DWORD *_pdwStubPhase);
  12602. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RequestedUIType_Proxy(
  12603. ISpeechRecoContext * This,
  12604. /* [retval][out] */ BSTR *UIType);
  12605. void __RPC_STUB ISpeechRecoContext_get_RequestedUIType_Stub(
  12606. IRpcStubBuffer *This,
  12607. IRpcChannelBuffer *_pRpcChannelBuffer,
  12608. PRPC_MESSAGE _pRpcMessage,
  12609. DWORD *_pdwStubPhase);
  12610. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_putref_Voice_Proxy(
  12611. ISpeechRecoContext * This,
  12612. /* [in] */ ISpeechVoice *Voice);
  12613. void __RPC_STUB ISpeechRecoContext_putref_Voice_Stub(
  12614. IRpcStubBuffer *This,
  12615. IRpcChannelBuffer *_pRpcChannelBuffer,
  12616. PRPC_MESSAGE _pRpcMessage,
  12617. DWORD *_pdwStubPhase);
  12618. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_Voice_Proxy(
  12619. ISpeechRecoContext * This,
  12620. /* [retval][out] */ ISpeechVoice **Voice);
  12621. void __RPC_STUB ISpeechRecoContext_get_Voice_Stub(
  12622. IRpcStubBuffer *This,
  12623. IRpcChannelBuffer *_pRpcChannelBuffer,
  12624. PRPC_MESSAGE _pRpcMessage,
  12625. DWORD *_pdwStubPhase);
  12626. /* [id][helpstring][hidden][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet_Proxy(
  12627. ISpeechRecoContext * This,
  12628. /* [in] */ VARIANT_BOOL Allow);
  12629. void __RPC_STUB ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet_Stub(
  12630. IRpcStubBuffer *This,
  12631. IRpcChannelBuffer *_pRpcChannelBuffer,
  12632. PRPC_MESSAGE _pRpcMessage,
  12633. DWORD *_pdwStubPhase);
  12634. /* [id][helpstring][hidden][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet_Proxy(
  12635. ISpeechRecoContext * This,
  12636. /* [retval][out] */ VARIANT_BOOL *pAllow);
  12637. void __RPC_STUB ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet_Stub(
  12638. IRpcStubBuffer *This,
  12639. IRpcChannelBuffer *_pRpcChannelBuffer,
  12640. PRPC_MESSAGE _pRpcMessage,
  12641. DWORD *_pdwStubPhase);
  12642. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_VoicePurgeEvent_Proxy(
  12643. ISpeechRecoContext * This,
  12644. /* [in] */ SpeechRecoEvents EventInterest);
  12645. void __RPC_STUB ISpeechRecoContext_put_VoicePurgeEvent_Stub(
  12646. IRpcStubBuffer *This,
  12647. IRpcChannelBuffer *_pRpcChannelBuffer,
  12648. PRPC_MESSAGE _pRpcMessage,
  12649. DWORD *_pdwStubPhase);
  12650. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_VoicePurgeEvent_Proxy(
  12651. ISpeechRecoContext * This,
  12652. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12653. void __RPC_STUB ISpeechRecoContext_get_VoicePurgeEvent_Stub(
  12654. IRpcStubBuffer *This,
  12655. IRpcChannelBuffer *_pRpcChannelBuffer,
  12656. PRPC_MESSAGE _pRpcMessage,
  12657. DWORD *_pdwStubPhase);
  12658. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_EventInterests_Proxy(
  12659. ISpeechRecoContext * This,
  12660. /* [in] */ SpeechRecoEvents EventInterest);
  12661. void __RPC_STUB ISpeechRecoContext_put_EventInterests_Stub(
  12662. IRpcStubBuffer *This,
  12663. IRpcChannelBuffer *_pRpcChannelBuffer,
  12664. PRPC_MESSAGE _pRpcMessage,
  12665. DWORD *_pdwStubPhase);
  12666. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_EventInterests_Proxy(
  12667. ISpeechRecoContext * This,
  12668. /* [retval][out] */ SpeechRecoEvents *EventInterest);
  12669. void __RPC_STUB ISpeechRecoContext_get_EventInterests_Stub(
  12670. IRpcStubBuffer *This,
  12671. IRpcChannelBuffer *_pRpcChannelBuffer,
  12672. PRPC_MESSAGE _pRpcMessage,
  12673. DWORD *_pdwStubPhase);
  12674. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_CmdMaxAlternates_Proxy(
  12675. ISpeechRecoContext * This,
  12676. /* [in] */ long MaxAlternates);
  12677. void __RPC_STUB ISpeechRecoContext_put_CmdMaxAlternates_Stub(
  12678. IRpcStubBuffer *This,
  12679. IRpcChannelBuffer *_pRpcChannelBuffer,
  12680. PRPC_MESSAGE _pRpcMessage,
  12681. DWORD *_pdwStubPhase);
  12682. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_CmdMaxAlternates_Proxy(
  12683. ISpeechRecoContext * This,
  12684. /* [retval][out] */ long *MaxAlternates);
  12685. void __RPC_STUB ISpeechRecoContext_get_CmdMaxAlternates_Stub(
  12686. IRpcStubBuffer *This,
  12687. IRpcChannelBuffer *_pRpcChannelBuffer,
  12688. PRPC_MESSAGE _pRpcMessage,
  12689. DWORD *_pdwStubPhase);
  12690. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_State_Proxy(
  12691. ISpeechRecoContext * This,
  12692. /* [in] */ SpeechRecoContextState State);
  12693. void __RPC_STUB ISpeechRecoContext_put_State_Stub(
  12694. IRpcStubBuffer *This,
  12695. IRpcChannelBuffer *_pRpcChannelBuffer,
  12696. PRPC_MESSAGE _pRpcMessage,
  12697. DWORD *_pdwStubPhase);
  12698. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_State_Proxy(
  12699. ISpeechRecoContext * This,
  12700. /* [retval][out] */ SpeechRecoContextState *State);
  12701. void __RPC_STUB ISpeechRecoContext_get_State_Stub(
  12702. IRpcStubBuffer *This,
  12703. IRpcChannelBuffer *_pRpcChannelBuffer,
  12704. PRPC_MESSAGE _pRpcMessage,
  12705. DWORD *_pdwStubPhase);
  12706. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_put_RetainedAudio_Proxy(
  12707. ISpeechRecoContext * This,
  12708. /* [in] */ SpeechRetainedAudioOptions Option);
  12709. void __RPC_STUB ISpeechRecoContext_put_RetainedAudio_Stub(
  12710. IRpcStubBuffer *This,
  12711. IRpcChannelBuffer *_pRpcChannelBuffer,
  12712. PRPC_MESSAGE _pRpcMessage,
  12713. DWORD *_pdwStubPhase);
  12714. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RetainedAudio_Proxy(
  12715. ISpeechRecoContext * This,
  12716. /* [retval][out] */ SpeechRetainedAudioOptions *Option);
  12717. void __RPC_STUB ISpeechRecoContext_get_RetainedAudio_Stub(
  12718. IRpcStubBuffer *This,
  12719. IRpcChannelBuffer *_pRpcChannelBuffer,
  12720. PRPC_MESSAGE _pRpcMessage,
  12721. DWORD *_pdwStubPhase);
  12722. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_putref_RetainedAudioFormat_Proxy(
  12723. ISpeechRecoContext * This,
  12724. /* [in] */ ISpeechAudioFormat *Format);
  12725. void __RPC_STUB ISpeechRecoContext_putref_RetainedAudioFormat_Stub(
  12726. IRpcStubBuffer *This,
  12727. IRpcChannelBuffer *_pRpcChannelBuffer,
  12728. PRPC_MESSAGE _pRpcMessage,
  12729. DWORD *_pdwStubPhase);
  12730. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_get_RetainedAudioFormat_Proxy(
  12731. ISpeechRecoContext * This,
  12732. /* [retval][out] */ ISpeechAudioFormat **Format);
  12733. void __RPC_STUB ISpeechRecoContext_get_RetainedAudioFormat_Stub(
  12734. IRpcStubBuffer *This,
  12735. IRpcChannelBuffer *_pRpcChannelBuffer,
  12736. PRPC_MESSAGE _pRpcMessage,
  12737. DWORD *_pdwStubPhase);
  12738. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Pause_Proxy(
  12739. ISpeechRecoContext * This);
  12740. void __RPC_STUB ISpeechRecoContext_Pause_Stub(
  12741. IRpcStubBuffer *This,
  12742. IRpcChannelBuffer *_pRpcChannelBuffer,
  12743. PRPC_MESSAGE _pRpcMessage,
  12744. DWORD *_pdwStubPhase);
  12745. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Resume_Proxy(
  12746. ISpeechRecoContext * This);
  12747. void __RPC_STUB ISpeechRecoContext_Resume_Stub(
  12748. IRpcStubBuffer *This,
  12749. IRpcChannelBuffer *_pRpcChannelBuffer,
  12750. PRPC_MESSAGE _pRpcMessage,
  12751. DWORD *_pdwStubPhase);
  12752. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_CreateGrammar_Proxy(
  12753. ISpeechRecoContext * This,
  12754. /* [defaultvalue][in] */ VARIANT GrammarId,
  12755. /* [retval][out] */ ISpeechRecoGrammar **Grammar);
  12756. void __RPC_STUB ISpeechRecoContext_CreateGrammar_Stub(
  12757. IRpcStubBuffer *This,
  12758. IRpcChannelBuffer *_pRpcChannelBuffer,
  12759. PRPC_MESSAGE _pRpcMessage,
  12760. DWORD *_pdwStubPhase);
  12761. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_CreateResultFromMemory_Proxy(
  12762. ISpeechRecoContext * This,
  12763. /* [in] */ VARIANT *ResultBlock,
  12764. /* [retval][out] */ ISpeechRecoResult **Result);
  12765. void __RPC_STUB ISpeechRecoContext_CreateResultFromMemory_Stub(
  12766. IRpcStubBuffer *This,
  12767. IRpcChannelBuffer *_pRpcChannelBuffer,
  12768. PRPC_MESSAGE _pRpcMessage,
  12769. DWORD *_pdwStubPhase);
  12770. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_Bookmark_Proxy(
  12771. ISpeechRecoContext * This,
  12772. /* [in] */ SpeechBookmarkOptions Options,
  12773. /* [in] */ VARIANT StreamPos,
  12774. /* [in] */ VARIANT BookmarkId);
  12775. void __RPC_STUB ISpeechRecoContext_Bookmark_Stub(
  12776. IRpcStubBuffer *This,
  12777. IRpcChannelBuffer *_pRpcChannelBuffer,
  12778. PRPC_MESSAGE _pRpcMessage,
  12779. DWORD *_pdwStubPhase);
  12780. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoContext_SetAdaptationData_Proxy(
  12781. ISpeechRecoContext * This,
  12782. /* [in] */ BSTR AdaptationString);
  12783. void __RPC_STUB ISpeechRecoContext_SetAdaptationData_Stub(
  12784. IRpcStubBuffer *This,
  12785. IRpcChannelBuffer *_pRpcChannelBuffer,
  12786. PRPC_MESSAGE _pRpcMessage,
  12787. DWORD *_pdwStubPhase);
  12788. #endif /* __ISpeechRecoContext_INTERFACE_DEFINED__ */
  12789. #ifndef __ISpeechRecoGrammar_INTERFACE_DEFINED__
  12790. #define __ISpeechRecoGrammar_INTERFACE_DEFINED__
  12791. /* interface ISpeechRecoGrammar */
  12792. /* [unique][helpstring][dual][uuid][object] */
  12793. EXTERN_C const IID IID_ISpeechRecoGrammar;
  12794. #if defined(__cplusplus) && !defined(CINTERFACE)
  12795. MIDL_INTERFACE("B6D6F79F-2158-4e50-B5BC-9A9CCD852A09")
  12796. ISpeechRecoGrammar : public IDispatch
  12797. {
  12798. public:
  12799. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  12800. /* [retval][out] */ VARIANT *Id) = 0;
  12801. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoContext(
  12802. /* [retval][out] */ ISpeechRecoContext **RecoContext) = 0;
  12803. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_State(
  12804. /* [in] */ SpeechGrammarState State) = 0;
  12805. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_State(
  12806. /* [retval][out] */ SpeechGrammarState *State) = 0;
  12807. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rules(
  12808. /* [retval][out] */ ISpeechGrammarRules **Rules) = 0;
  12809. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Reset(
  12810. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage = 0) = 0;
  12811. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromFile(
  12812. /* [in] */ const BSTR FileName,
  12813. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12814. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromObject(
  12815. /* [in] */ const BSTR ClassId,
  12816. /* [in] */ const BSTR GrammarName,
  12817. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12818. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromResource(
  12819. /* [in] */ long hModule,
  12820. /* [in] */ VARIANT ResourceName,
  12821. /* [in] */ VARIANT ResourceType,
  12822. /* [in] */ SpeechLanguageId LanguageId,
  12823. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12824. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromMemory(
  12825. /* [in] */ VARIANT GrammarData,
  12826. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12827. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdLoadFromProprietaryGrammar(
  12828. /* [in] */ const BSTR ProprietaryGuid,
  12829. /* [in] */ const BSTR ProprietaryString,
  12830. /* [in] */ VARIANT ProprietaryData,
  12831. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12832. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdSetRuleState(
  12833. /* [in] */ const BSTR Name,
  12834. /* [in] */ SpeechRuleState State) = 0;
  12835. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CmdSetRuleIdState(
  12836. /* [in] */ long RuleId,
  12837. /* [in] */ SpeechRuleState State) = 0;
  12838. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationLoad(
  12839. /* [defaultvalue][in] */ const BSTR TopicName = L"",
  12840. /* [defaultvalue][in] */ SpeechLoadOption LoadOption = SLOStatic) = 0;
  12841. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationUnload( void) = 0;
  12842. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DictationSetState(
  12843. /* [in] */ SpeechRuleState State) = 0;
  12844. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  12845. /* [in] */ const BSTR Text,
  12846. /* [in] */ long TextLength,
  12847. /* [in] */ ISpeechTextSelectionInformation *Info) = 0;
  12848. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SetTextSelection(
  12849. /* [in] */ ISpeechTextSelectionInformation *Info) = 0;
  12850. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE IsPronounceable(
  12851. /* [in] */ const BSTR Word,
  12852. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable) = 0;
  12853. };
  12854. #else /* C style interface */
  12855. typedef struct ISpeechRecoGrammarVtbl
  12856. {
  12857. BEGIN_INTERFACE
  12858. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  12859. ISpeechRecoGrammar * This,
  12860. /* [in] */ REFIID riid,
  12861. /* [iid_is][out] */ void **ppvObject);
  12862. ULONG ( STDMETHODCALLTYPE *AddRef )(
  12863. ISpeechRecoGrammar * This);
  12864. ULONG ( STDMETHODCALLTYPE *Release )(
  12865. ISpeechRecoGrammar * This);
  12866. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  12867. ISpeechRecoGrammar * This,
  12868. /* [out] */ UINT *pctinfo);
  12869. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  12870. ISpeechRecoGrammar * This,
  12871. /* [in] */ UINT iTInfo,
  12872. /* [in] */ LCID lcid,
  12873. /* [out] */ ITypeInfo **ppTInfo);
  12874. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  12875. ISpeechRecoGrammar * This,
  12876. /* [in] */ REFIID riid,
  12877. /* [size_is][in] */ LPOLESTR *rgszNames,
  12878. /* [in] */ UINT cNames,
  12879. /* [in] */ LCID lcid,
  12880. /* [size_is][out] */ DISPID *rgDispId);
  12881. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  12882. ISpeechRecoGrammar * This,
  12883. /* [in] */ DISPID dispIdMember,
  12884. /* [in] */ REFIID riid,
  12885. /* [in] */ LCID lcid,
  12886. /* [in] */ WORD wFlags,
  12887. /* [out][in] */ DISPPARAMS *pDispParams,
  12888. /* [out] */ VARIANT *pVarResult,
  12889. /* [out] */ EXCEPINFO *pExcepInfo,
  12890. /* [out] */ UINT *puArgErr);
  12891. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  12892. ISpeechRecoGrammar * This,
  12893. /* [retval][out] */ VARIANT *Id);
  12894. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoContext )(
  12895. ISpeechRecoGrammar * This,
  12896. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  12897. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )(
  12898. ISpeechRecoGrammar * This,
  12899. /* [in] */ SpeechGrammarState State);
  12900. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )(
  12901. ISpeechRecoGrammar * This,
  12902. /* [retval][out] */ SpeechGrammarState *State);
  12903. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rules )(
  12904. ISpeechRecoGrammar * This,
  12905. /* [retval][out] */ ISpeechGrammarRules **Rules);
  12906. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Reset )(
  12907. ISpeechRecoGrammar * This,
  12908. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage);
  12909. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromFile )(
  12910. ISpeechRecoGrammar * This,
  12911. /* [in] */ const BSTR FileName,
  12912. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12913. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromObject )(
  12914. ISpeechRecoGrammar * This,
  12915. /* [in] */ const BSTR ClassId,
  12916. /* [in] */ const BSTR GrammarName,
  12917. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12918. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromResource )(
  12919. ISpeechRecoGrammar * This,
  12920. /* [in] */ long hModule,
  12921. /* [in] */ VARIANT ResourceName,
  12922. /* [in] */ VARIANT ResourceType,
  12923. /* [in] */ SpeechLanguageId LanguageId,
  12924. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12925. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromMemory )(
  12926. ISpeechRecoGrammar * This,
  12927. /* [in] */ VARIANT GrammarData,
  12928. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12929. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdLoadFromProprietaryGrammar )(
  12930. ISpeechRecoGrammar * This,
  12931. /* [in] */ const BSTR ProprietaryGuid,
  12932. /* [in] */ const BSTR ProprietaryString,
  12933. /* [in] */ VARIANT ProprietaryData,
  12934. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12935. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdSetRuleState )(
  12936. ISpeechRecoGrammar * This,
  12937. /* [in] */ const BSTR Name,
  12938. /* [in] */ SpeechRuleState State);
  12939. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CmdSetRuleIdState )(
  12940. ISpeechRecoGrammar * This,
  12941. /* [in] */ long RuleId,
  12942. /* [in] */ SpeechRuleState State);
  12943. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationLoad )(
  12944. ISpeechRecoGrammar * This,
  12945. /* [defaultvalue][in] */ const BSTR TopicName,
  12946. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  12947. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationUnload )(
  12948. ISpeechRecoGrammar * This);
  12949. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DictationSetState )(
  12950. ISpeechRecoGrammar * This,
  12951. /* [in] */ SpeechRuleState State);
  12952. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetWordSequenceData )(
  12953. ISpeechRecoGrammar * This,
  12954. /* [in] */ const BSTR Text,
  12955. /* [in] */ long TextLength,
  12956. /* [in] */ ISpeechTextSelectionInformation *Info);
  12957. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTextSelection )(
  12958. ISpeechRecoGrammar * This,
  12959. /* [in] */ ISpeechTextSelectionInformation *Info);
  12960. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsPronounceable )(
  12961. ISpeechRecoGrammar * This,
  12962. /* [in] */ const BSTR Word,
  12963. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable);
  12964. END_INTERFACE
  12965. } ISpeechRecoGrammarVtbl;
  12966. interface ISpeechRecoGrammar
  12967. {
  12968. CONST_VTBL struct ISpeechRecoGrammarVtbl *lpVtbl;
  12969. };
  12970. #ifdef COBJMACROS
  12971. #define ISpeechRecoGrammar_QueryInterface(This,riid,ppvObject) \
  12972. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  12973. #define ISpeechRecoGrammar_AddRef(This) \
  12974. (This)->lpVtbl -> AddRef(This)
  12975. #define ISpeechRecoGrammar_Release(This) \
  12976. (This)->lpVtbl -> Release(This)
  12977. #define ISpeechRecoGrammar_GetTypeInfoCount(This,pctinfo) \
  12978. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  12979. #define ISpeechRecoGrammar_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  12980. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12981. #define ISpeechRecoGrammar_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  12982. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12983. #define ISpeechRecoGrammar_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  12984. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12985. #define ISpeechRecoGrammar_get_Id(This,Id) \
  12986. (This)->lpVtbl -> get_Id(This,Id)
  12987. #define ISpeechRecoGrammar_get_RecoContext(This,RecoContext) \
  12988. (This)->lpVtbl -> get_RecoContext(This,RecoContext)
  12989. #define ISpeechRecoGrammar_put_State(This,State) \
  12990. (This)->lpVtbl -> put_State(This,State)
  12991. #define ISpeechRecoGrammar_get_State(This,State) \
  12992. (This)->lpVtbl -> get_State(This,State)
  12993. #define ISpeechRecoGrammar_get_Rules(This,Rules) \
  12994. (This)->lpVtbl -> get_Rules(This,Rules)
  12995. #define ISpeechRecoGrammar_Reset(This,NewLanguage) \
  12996. (This)->lpVtbl -> Reset(This,NewLanguage)
  12997. #define ISpeechRecoGrammar_CmdLoadFromFile(This,FileName,LoadOption) \
  12998. (This)->lpVtbl -> CmdLoadFromFile(This,FileName,LoadOption)
  12999. #define ISpeechRecoGrammar_CmdLoadFromObject(This,ClassId,GrammarName,LoadOption) \
  13000. (This)->lpVtbl -> CmdLoadFromObject(This,ClassId,GrammarName,LoadOption)
  13001. #define ISpeechRecoGrammar_CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption) \
  13002. (This)->lpVtbl -> CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption)
  13003. #define ISpeechRecoGrammar_CmdLoadFromMemory(This,GrammarData,LoadOption) \
  13004. (This)->lpVtbl -> CmdLoadFromMemory(This,GrammarData,LoadOption)
  13005. #define ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption) \
  13006. (This)->lpVtbl -> CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption)
  13007. #define ISpeechRecoGrammar_CmdSetRuleState(This,Name,State) \
  13008. (This)->lpVtbl -> CmdSetRuleState(This,Name,State)
  13009. #define ISpeechRecoGrammar_CmdSetRuleIdState(This,RuleId,State) \
  13010. (This)->lpVtbl -> CmdSetRuleIdState(This,RuleId,State)
  13011. #define ISpeechRecoGrammar_DictationLoad(This,TopicName,LoadOption) \
  13012. (This)->lpVtbl -> DictationLoad(This,TopicName,LoadOption)
  13013. #define ISpeechRecoGrammar_DictationUnload(This) \
  13014. (This)->lpVtbl -> DictationUnload(This)
  13015. #define ISpeechRecoGrammar_DictationSetState(This,State) \
  13016. (This)->lpVtbl -> DictationSetState(This,State)
  13017. #define ISpeechRecoGrammar_SetWordSequenceData(This,Text,TextLength,Info) \
  13018. (This)->lpVtbl -> SetWordSequenceData(This,Text,TextLength,Info)
  13019. #define ISpeechRecoGrammar_SetTextSelection(This,Info) \
  13020. (This)->lpVtbl -> SetTextSelection(This,Info)
  13021. #define ISpeechRecoGrammar_IsPronounceable(This,Word,WordPronounceable) \
  13022. (This)->lpVtbl -> IsPronounceable(This,Word,WordPronounceable)
  13023. #endif /* COBJMACROS */
  13024. #endif /* C style interface */
  13025. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_Id_Proxy(
  13026. ISpeechRecoGrammar * This,
  13027. /* [retval][out] */ VARIANT *Id);
  13028. void __RPC_STUB ISpeechRecoGrammar_get_Id_Stub(
  13029. IRpcStubBuffer *This,
  13030. IRpcChannelBuffer *_pRpcChannelBuffer,
  13031. PRPC_MESSAGE _pRpcMessage,
  13032. DWORD *_pdwStubPhase);
  13033. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_RecoContext_Proxy(
  13034. ISpeechRecoGrammar * This,
  13035. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  13036. void __RPC_STUB ISpeechRecoGrammar_get_RecoContext_Stub(
  13037. IRpcStubBuffer *This,
  13038. IRpcChannelBuffer *_pRpcChannelBuffer,
  13039. PRPC_MESSAGE _pRpcMessage,
  13040. DWORD *_pdwStubPhase);
  13041. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_put_State_Proxy(
  13042. ISpeechRecoGrammar * This,
  13043. /* [in] */ SpeechGrammarState State);
  13044. void __RPC_STUB ISpeechRecoGrammar_put_State_Stub(
  13045. IRpcStubBuffer *This,
  13046. IRpcChannelBuffer *_pRpcChannelBuffer,
  13047. PRPC_MESSAGE _pRpcMessage,
  13048. DWORD *_pdwStubPhase);
  13049. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_State_Proxy(
  13050. ISpeechRecoGrammar * This,
  13051. /* [retval][out] */ SpeechGrammarState *State);
  13052. void __RPC_STUB ISpeechRecoGrammar_get_State_Stub(
  13053. IRpcStubBuffer *This,
  13054. IRpcChannelBuffer *_pRpcChannelBuffer,
  13055. PRPC_MESSAGE _pRpcMessage,
  13056. DWORD *_pdwStubPhase);
  13057. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_get_Rules_Proxy(
  13058. ISpeechRecoGrammar * This,
  13059. /* [retval][out] */ ISpeechGrammarRules **Rules);
  13060. void __RPC_STUB ISpeechRecoGrammar_get_Rules_Stub(
  13061. IRpcStubBuffer *This,
  13062. IRpcChannelBuffer *_pRpcChannelBuffer,
  13063. PRPC_MESSAGE _pRpcMessage,
  13064. DWORD *_pdwStubPhase);
  13065. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_Reset_Proxy(
  13066. ISpeechRecoGrammar * This,
  13067. /* [defaultvalue][in] */ SpeechLanguageId NewLanguage);
  13068. void __RPC_STUB ISpeechRecoGrammar_Reset_Stub(
  13069. IRpcStubBuffer *This,
  13070. IRpcChannelBuffer *_pRpcChannelBuffer,
  13071. PRPC_MESSAGE _pRpcMessage,
  13072. DWORD *_pdwStubPhase);
  13073. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromFile_Proxy(
  13074. ISpeechRecoGrammar * This,
  13075. /* [in] */ const BSTR FileName,
  13076. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13077. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromFile_Stub(
  13078. IRpcStubBuffer *This,
  13079. IRpcChannelBuffer *_pRpcChannelBuffer,
  13080. PRPC_MESSAGE _pRpcMessage,
  13081. DWORD *_pdwStubPhase);
  13082. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromObject_Proxy(
  13083. ISpeechRecoGrammar * This,
  13084. /* [in] */ const BSTR ClassId,
  13085. /* [in] */ const BSTR GrammarName,
  13086. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13087. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromObject_Stub(
  13088. IRpcStubBuffer *This,
  13089. IRpcChannelBuffer *_pRpcChannelBuffer,
  13090. PRPC_MESSAGE _pRpcMessage,
  13091. DWORD *_pdwStubPhase);
  13092. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromResource_Proxy(
  13093. ISpeechRecoGrammar * This,
  13094. /* [in] */ long hModule,
  13095. /* [in] */ VARIANT ResourceName,
  13096. /* [in] */ VARIANT ResourceType,
  13097. /* [in] */ SpeechLanguageId LanguageId,
  13098. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13099. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromResource_Stub(
  13100. IRpcStubBuffer *This,
  13101. IRpcChannelBuffer *_pRpcChannelBuffer,
  13102. PRPC_MESSAGE _pRpcMessage,
  13103. DWORD *_pdwStubPhase);
  13104. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromMemory_Proxy(
  13105. ISpeechRecoGrammar * This,
  13106. /* [in] */ VARIANT GrammarData,
  13107. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13108. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromMemory_Stub(
  13109. IRpcStubBuffer *This,
  13110. IRpcChannelBuffer *_pRpcChannelBuffer,
  13111. PRPC_MESSAGE _pRpcMessage,
  13112. DWORD *_pdwStubPhase);
  13113. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar_Proxy(
  13114. ISpeechRecoGrammar * This,
  13115. /* [in] */ const BSTR ProprietaryGuid,
  13116. /* [in] */ const BSTR ProprietaryString,
  13117. /* [in] */ VARIANT ProprietaryData,
  13118. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13119. void __RPC_STUB ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar_Stub(
  13120. IRpcStubBuffer *This,
  13121. IRpcChannelBuffer *_pRpcChannelBuffer,
  13122. PRPC_MESSAGE _pRpcMessage,
  13123. DWORD *_pdwStubPhase);
  13124. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdSetRuleState_Proxy(
  13125. ISpeechRecoGrammar * This,
  13126. /* [in] */ const BSTR Name,
  13127. /* [in] */ SpeechRuleState State);
  13128. void __RPC_STUB ISpeechRecoGrammar_CmdSetRuleState_Stub(
  13129. IRpcStubBuffer *This,
  13130. IRpcChannelBuffer *_pRpcChannelBuffer,
  13131. PRPC_MESSAGE _pRpcMessage,
  13132. DWORD *_pdwStubPhase);
  13133. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_CmdSetRuleIdState_Proxy(
  13134. ISpeechRecoGrammar * This,
  13135. /* [in] */ long RuleId,
  13136. /* [in] */ SpeechRuleState State);
  13137. void __RPC_STUB ISpeechRecoGrammar_CmdSetRuleIdState_Stub(
  13138. IRpcStubBuffer *This,
  13139. IRpcChannelBuffer *_pRpcChannelBuffer,
  13140. PRPC_MESSAGE _pRpcMessage,
  13141. DWORD *_pdwStubPhase);
  13142. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationLoad_Proxy(
  13143. ISpeechRecoGrammar * This,
  13144. /* [defaultvalue][in] */ const BSTR TopicName,
  13145. /* [defaultvalue][in] */ SpeechLoadOption LoadOption);
  13146. void __RPC_STUB ISpeechRecoGrammar_DictationLoad_Stub(
  13147. IRpcStubBuffer *This,
  13148. IRpcChannelBuffer *_pRpcChannelBuffer,
  13149. PRPC_MESSAGE _pRpcMessage,
  13150. DWORD *_pdwStubPhase);
  13151. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationUnload_Proxy(
  13152. ISpeechRecoGrammar * This);
  13153. void __RPC_STUB ISpeechRecoGrammar_DictationUnload_Stub(
  13154. IRpcStubBuffer *This,
  13155. IRpcChannelBuffer *_pRpcChannelBuffer,
  13156. PRPC_MESSAGE _pRpcMessage,
  13157. DWORD *_pdwStubPhase);
  13158. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_DictationSetState_Proxy(
  13159. ISpeechRecoGrammar * This,
  13160. /* [in] */ SpeechRuleState State);
  13161. void __RPC_STUB ISpeechRecoGrammar_DictationSetState_Stub(
  13162. IRpcStubBuffer *This,
  13163. IRpcChannelBuffer *_pRpcChannelBuffer,
  13164. PRPC_MESSAGE _pRpcMessage,
  13165. DWORD *_pdwStubPhase);
  13166. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_SetWordSequenceData_Proxy(
  13167. ISpeechRecoGrammar * This,
  13168. /* [in] */ const BSTR Text,
  13169. /* [in] */ long TextLength,
  13170. /* [in] */ ISpeechTextSelectionInformation *Info);
  13171. void __RPC_STUB ISpeechRecoGrammar_SetWordSequenceData_Stub(
  13172. IRpcStubBuffer *This,
  13173. IRpcChannelBuffer *_pRpcChannelBuffer,
  13174. PRPC_MESSAGE _pRpcMessage,
  13175. DWORD *_pdwStubPhase);
  13176. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_SetTextSelection_Proxy(
  13177. ISpeechRecoGrammar * This,
  13178. /* [in] */ ISpeechTextSelectionInformation *Info);
  13179. void __RPC_STUB ISpeechRecoGrammar_SetTextSelection_Stub(
  13180. IRpcStubBuffer *This,
  13181. IRpcChannelBuffer *_pRpcChannelBuffer,
  13182. PRPC_MESSAGE _pRpcMessage,
  13183. DWORD *_pdwStubPhase);
  13184. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoGrammar_IsPronounceable_Proxy(
  13185. ISpeechRecoGrammar * This,
  13186. /* [in] */ const BSTR Word,
  13187. /* [retval][out] */ SpeechWordPronounceable *WordPronounceable);
  13188. void __RPC_STUB ISpeechRecoGrammar_IsPronounceable_Stub(
  13189. IRpcStubBuffer *This,
  13190. IRpcChannelBuffer *_pRpcChannelBuffer,
  13191. PRPC_MESSAGE _pRpcMessage,
  13192. DWORD *_pdwStubPhase);
  13193. #endif /* __ISpeechRecoGrammar_INTERFACE_DEFINED__ */
  13194. #ifndef ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  13195. #define ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  13196. /* dispinterface _ISpeechRecoContextEvents */
  13197. /* [uuid] */
  13198. EXTERN_C const IID DIID__ISpeechRecoContextEvents;
  13199. #if defined(__cplusplus) && !defined(CINTERFACE)
  13200. MIDL_INTERFACE("7B8FCB42-0E9D-4f00-A048-7B04D6179D3D")
  13201. _ISpeechRecoContextEvents : public IDispatch
  13202. {
  13203. };
  13204. #else /* C style interface */
  13205. typedef struct _ISpeechRecoContextEventsVtbl
  13206. {
  13207. BEGIN_INTERFACE
  13208. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13209. _ISpeechRecoContextEvents * This,
  13210. /* [in] */ REFIID riid,
  13211. /* [iid_is][out] */ void **ppvObject);
  13212. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13213. _ISpeechRecoContextEvents * This);
  13214. ULONG ( STDMETHODCALLTYPE *Release )(
  13215. _ISpeechRecoContextEvents * This);
  13216. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13217. _ISpeechRecoContextEvents * This,
  13218. /* [out] */ UINT *pctinfo);
  13219. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13220. _ISpeechRecoContextEvents * This,
  13221. /* [in] */ UINT iTInfo,
  13222. /* [in] */ LCID lcid,
  13223. /* [out] */ ITypeInfo **ppTInfo);
  13224. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13225. _ISpeechRecoContextEvents * This,
  13226. /* [in] */ REFIID riid,
  13227. /* [size_is][in] */ LPOLESTR *rgszNames,
  13228. /* [in] */ UINT cNames,
  13229. /* [in] */ LCID lcid,
  13230. /* [size_is][out] */ DISPID *rgDispId);
  13231. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13232. _ISpeechRecoContextEvents * This,
  13233. /* [in] */ DISPID dispIdMember,
  13234. /* [in] */ REFIID riid,
  13235. /* [in] */ LCID lcid,
  13236. /* [in] */ WORD wFlags,
  13237. /* [out][in] */ DISPPARAMS *pDispParams,
  13238. /* [out] */ VARIANT *pVarResult,
  13239. /* [out] */ EXCEPINFO *pExcepInfo,
  13240. /* [out] */ UINT *puArgErr);
  13241. END_INTERFACE
  13242. } _ISpeechRecoContextEventsVtbl;
  13243. interface _ISpeechRecoContextEvents
  13244. {
  13245. CONST_VTBL struct _ISpeechRecoContextEventsVtbl *lpVtbl;
  13246. };
  13247. #ifdef COBJMACROS
  13248. #define _ISpeechRecoContextEvents_QueryInterface(This,riid,ppvObject) \
  13249. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13250. #define _ISpeechRecoContextEvents_AddRef(This) \
  13251. (This)->lpVtbl -> AddRef(This)
  13252. #define _ISpeechRecoContextEvents_Release(This) \
  13253. (This)->lpVtbl -> Release(This)
  13254. #define _ISpeechRecoContextEvents_GetTypeInfoCount(This,pctinfo) \
  13255. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13256. #define _ISpeechRecoContextEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13257. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13258. #define _ISpeechRecoContextEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13259. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13260. #define _ISpeechRecoContextEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13261. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13262. #endif /* COBJMACROS */
  13263. #endif /* C style interface */
  13264. #endif /* ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__ */
  13265. #ifndef __ISpeechGrammarRule_INTERFACE_DEFINED__
  13266. #define __ISpeechGrammarRule_INTERFACE_DEFINED__
  13267. /* interface ISpeechGrammarRule */
  13268. /* [unique][helpstring][dual][uuid][object] */
  13269. EXTERN_C const IID IID_ISpeechGrammarRule;
  13270. #if defined(__cplusplus) && !defined(CINTERFACE)
  13271. MIDL_INTERFACE("AFE719CF-5DD1-44f2-999C-7A399F1CFCCC")
  13272. ISpeechGrammarRule : public IDispatch
  13273. {
  13274. public:
  13275. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes(
  13276. /* [retval][out] */ SpeechRuleAttributes *Attributes) = 0;
  13277. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_InitialState(
  13278. /* [retval][out] */ ISpeechGrammarRuleState **State) = 0;
  13279. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  13280. /* [retval][out] */ BSTR *Name) = 0;
  13281. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  13282. /* [retval][out] */ long *Id) = 0;
  13283. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0;
  13284. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddResource(
  13285. /* [in] */ const BSTR ResourceName,
  13286. /* [in] */ const BSTR ResourceValue) = 0;
  13287. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddState(
  13288. /* [retval][out] */ ISpeechGrammarRuleState **State) = 0;
  13289. };
  13290. #else /* C style interface */
  13291. typedef struct ISpeechGrammarRuleVtbl
  13292. {
  13293. BEGIN_INTERFACE
  13294. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13295. ISpeechGrammarRule * This,
  13296. /* [in] */ REFIID riid,
  13297. /* [iid_is][out] */ void **ppvObject);
  13298. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13299. ISpeechGrammarRule * This);
  13300. ULONG ( STDMETHODCALLTYPE *Release )(
  13301. ISpeechGrammarRule * This);
  13302. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13303. ISpeechGrammarRule * This,
  13304. /* [out] */ UINT *pctinfo);
  13305. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13306. ISpeechGrammarRule * This,
  13307. /* [in] */ UINT iTInfo,
  13308. /* [in] */ LCID lcid,
  13309. /* [out] */ ITypeInfo **ppTInfo);
  13310. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13311. ISpeechGrammarRule * This,
  13312. /* [in] */ REFIID riid,
  13313. /* [size_is][in] */ LPOLESTR *rgszNames,
  13314. /* [in] */ UINT cNames,
  13315. /* [in] */ LCID lcid,
  13316. /* [size_is][out] */ DISPID *rgDispId);
  13317. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13318. ISpeechGrammarRule * This,
  13319. /* [in] */ DISPID dispIdMember,
  13320. /* [in] */ REFIID riid,
  13321. /* [in] */ LCID lcid,
  13322. /* [in] */ WORD wFlags,
  13323. /* [out][in] */ DISPPARAMS *pDispParams,
  13324. /* [out] */ VARIANT *pVarResult,
  13325. /* [out] */ EXCEPINFO *pExcepInfo,
  13326. /* [out] */ UINT *puArgErr);
  13327. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )(
  13328. ISpeechGrammarRule * This,
  13329. /* [retval][out] */ SpeechRuleAttributes *Attributes);
  13330. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InitialState )(
  13331. ISpeechGrammarRule * This,
  13332. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13333. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  13334. ISpeechGrammarRule * This,
  13335. /* [retval][out] */ BSTR *Name);
  13336. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  13337. ISpeechGrammarRule * This,
  13338. /* [retval][out] */ long *Id);
  13339. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clear )(
  13340. ISpeechGrammarRule * This);
  13341. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddResource )(
  13342. ISpeechGrammarRule * This,
  13343. /* [in] */ const BSTR ResourceName,
  13344. /* [in] */ const BSTR ResourceValue);
  13345. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddState )(
  13346. ISpeechGrammarRule * This,
  13347. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13348. END_INTERFACE
  13349. } ISpeechGrammarRuleVtbl;
  13350. interface ISpeechGrammarRule
  13351. {
  13352. CONST_VTBL struct ISpeechGrammarRuleVtbl *lpVtbl;
  13353. };
  13354. #ifdef COBJMACROS
  13355. #define ISpeechGrammarRule_QueryInterface(This,riid,ppvObject) \
  13356. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13357. #define ISpeechGrammarRule_AddRef(This) \
  13358. (This)->lpVtbl -> AddRef(This)
  13359. #define ISpeechGrammarRule_Release(This) \
  13360. (This)->lpVtbl -> Release(This)
  13361. #define ISpeechGrammarRule_GetTypeInfoCount(This,pctinfo) \
  13362. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13363. #define ISpeechGrammarRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13364. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13365. #define ISpeechGrammarRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13366. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13367. #define ISpeechGrammarRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13368. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13369. #define ISpeechGrammarRule_get_Attributes(This,Attributes) \
  13370. (This)->lpVtbl -> get_Attributes(This,Attributes)
  13371. #define ISpeechGrammarRule_get_InitialState(This,State) \
  13372. (This)->lpVtbl -> get_InitialState(This,State)
  13373. #define ISpeechGrammarRule_get_Name(This,Name) \
  13374. (This)->lpVtbl -> get_Name(This,Name)
  13375. #define ISpeechGrammarRule_get_Id(This,Id) \
  13376. (This)->lpVtbl -> get_Id(This,Id)
  13377. #define ISpeechGrammarRule_Clear(This) \
  13378. (This)->lpVtbl -> Clear(This)
  13379. #define ISpeechGrammarRule_AddResource(This,ResourceName,ResourceValue) \
  13380. (This)->lpVtbl -> AddResource(This,ResourceName,ResourceValue)
  13381. #define ISpeechGrammarRule_AddState(This,State) \
  13382. (This)->lpVtbl -> AddState(This,State)
  13383. #endif /* COBJMACROS */
  13384. #endif /* C style interface */
  13385. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Attributes_Proxy(
  13386. ISpeechGrammarRule * This,
  13387. /* [retval][out] */ SpeechRuleAttributes *Attributes);
  13388. void __RPC_STUB ISpeechGrammarRule_get_Attributes_Stub(
  13389. IRpcStubBuffer *This,
  13390. IRpcChannelBuffer *_pRpcChannelBuffer,
  13391. PRPC_MESSAGE _pRpcMessage,
  13392. DWORD *_pdwStubPhase);
  13393. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_InitialState_Proxy(
  13394. ISpeechGrammarRule * This,
  13395. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13396. void __RPC_STUB ISpeechGrammarRule_get_InitialState_Stub(
  13397. IRpcStubBuffer *This,
  13398. IRpcChannelBuffer *_pRpcChannelBuffer,
  13399. PRPC_MESSAGE _pRpcMessage,
  13400. DWORD *_pdwStubPhase);
  13401. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Name_Proxy(
  13402. ISpeechGrammarRule * This,
  13403. /* [retval][out] */ BSTR *Name);
  13404. void __RPC_STUB ISpeechGrammarRule_get_Name_Stub(
  13405. IRpcStubBuffer *This,
  13406. IRpcChannelBuffer *_pRpcChannelBuffer,
  13407. PRPC_MESSAGE _pRpcMessage,
  13408. DWORD *_pdwStubPhase);
  13409. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_get_Id_Proxy(
  13410. ISpeechGrammarRule * This,
  13411. /* [retval][out] */ long *Id);
  13412. void __RPC_STUB ISpeechGrammarRule_get_Id_Stub(
  13413. IRpcStubBuffer *This,
  13414. IRpcChannelBuffer *_pRpcChannelBuffer,
  13415. PRPC_MESSAGE _pRpcMessage,
  13416. DWORD *_pdwStubPhase);
  13417. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_Clear_Proxy(
  13418. ISpeechGrammarRule * This);
  13419. void __RPC_STUB ISpeechGrammarRule_Clear_Stub(
  13420. IRpcStubBuffer *This,
  13421. IRpcChannelBuffer *_pRpcChannelBuffer,
  13422. PRPC_MESSAGE _pRpcMessage,
  13423. DWORD *_pdwStubPhase);
  13424. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_AddResource_Proxy(
  13425. ISpeechGrammarRule * This,
  13426. /* [in] */ const BSTR ResourceName,
  13427. /* [in] */ const BSTR ResourceValue);
  13428. void __RPC_STUB ISpeechGrammarRule_AddResource_Stub(
  13429. IRpcStubBuffer *This,
  13430. IRpcChannelBuffer *_pRpcChannelBuffer,
  13431. PRPC_MESSAGE _pRpcMessage,
  13432. DWORD *_pdwStubPhase);
  13433. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRule_AddState_Proxy(
  13434. ISpeechGrammarRule * This,
  13435. /* [retval][out] */ ISpeechGrammarRuleState **State);
  13436. void __RPC_STUB ISpeechGrammarRule_AddState_Stub(
  13437. IRpcStubBuffer *This,
  13438. IRpcChannelBuffer *_pRpcChannelBuffer,
  13439. PRPC_MESSAGE _pRpcMessage,
  13440. DWORD *_pdwStubPhase);
  13441. #endif /* __ISpeechGrammarRule_INTERFACE_DEFINED__ */
  13442. #ifndef __ISpeechGrammarRules_INTERFACE_DEFINED__
  13443. #define __ISpeechGrammarRules_INTERFACE_DEFINED__
  13444. /* interface ISpeechGrammarRules */
  13445. /* [unique][helpstring][dual][uuid][object] */
  13446. EXTERN_C const IID IID_ISpeechGrammarRules;
  13447. #if defined(__cplusplus) && !defined(CINTERFACE)
  13448. MIDL_INTERFACE("6FFA3B44-FC2D-40d1-8AFC-32911C7F1AD1")
  13449. ISpeechGrammarRules : public IDispatch
  13450. {
  13451. public:
  13452. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  13453. /* [retval][out] */ long *Count) = 0;
  13454. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE FindRule(
  13455. /* [in] */ VARIANT RuleNameOrId,
  13456. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13457. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  13458. /* [in] */ long Index,
  13459. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13460. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  13461. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  13462. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Dynamic(
  13463. /* [retval][out] */ VARIANT_BOOL *Dynamic) = 0;
  13464. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Add(
  13465. /* [in] */ BSTR RuleName,
  13466. /* [in] */ SpeechRuleAttributes Attributes,
  13467. /* [defaultvalue][in] */ long RuleId,
  13468. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13469. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  13470. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE CommitAndSave(
  13471. /* [out] */ BSTR *ErrorText,
  13472. /* [retval][out] */ VARIANT *SaveStream) = 0;
  13473. };
  13474. #else /* C style interface */
  13475. typedef struct ISpeechGrammarRulesVtbl
  13476. {
  13477. BEGIN_INTERFACE
  13478. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13479. ISpeechGrammarRules * This,
  13480. /* [in] */ REFIID riid,
  13481. /* [iid_is][out] */ void **ppvObject);
  13482. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13483. ISpeechGrammarRules * This);
  13484. ULONG ( STDMETHODCALLTYPE *Release )(
  13485. ISpeechGrammarRules * This);
  13486. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13487. ISpeechGrammarRules * This,
  13488. /* [out] */ UINT *pctinfo);
  13489. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13490. ISpeechGrammarRules * This,
  13491. /* [in] */ UINT iTInfo,
  13492. /* [in] */ LCID lcid,
  13493. /* [out] */ ITypeInfo **ppTInfo);
  13494. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13495. ISpeechGrammarRules * This,
  13496. /* [in] */ REFIID riid,
  13497. /* [size_is][in] */ LPOLESTR *rgszNames,
  13498. /* [in] */ UINT cNames,
  13499. /* [in] */ LCID lcid,
  13500. /* [size_is][out] */ DISPID *rgDispId);
  13501. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13502. ISpeechGrammarRules * This,
  13503. /* [in] */ DISPID dispIdMember,
  13504. /* [in] */ REFIID riid,
  13505. /* [in] */ LCID lcid,
  13506. /* [in] */ WORD wFlags,
  13507. /* [out][in] */ DISPPARAMS *pDispParams,
  13508. /* [out] */ VARIANT *pVarResult,
  13509. /* [out] */ EXCEPINFO *pExcepInfo,
  13510. /* [out] */ UINT *puArgErr);
  13511. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  13512. ISpeechGrammarRules * This,
  13513. /* [retval][out] */ long *Count);
  13514. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *FindRule )(
  13515. ISpeechGrammarRules * This,
  13516. /* [in] */ VARIANT RuleNameOrId,
  13517. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13518. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  13519. ISpeechGrammarRules * This,
  13520. /* [in] */ long Index,
  13521. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13522. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  13523. ISpeechGrammarRules * This,
  13524. /* [retval][out] */ IUnknown **EnumVARIANT);
  13525. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dynamic )(
  13526. ISpeechGrammarRules * This,
  13527. /* [retval][out] */ VARIANT_BOOL *Dynamic);
  13528. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Add )(
  13529. ISpeechGrammarRules * This,
  13530. /* [in] */ BSTR RuleName,
  13531. /* [in] */ SpeechRuleAttributes Attributes,
  13532. /* [defaultvalue][in] */ long RuleId,
  13533. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13534. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Commit )(
  13535. ISpeechGrammarRules * This);
  13536. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CommitAndSave )(
  13537. ISpeechGrammarRules * This,
  13538. /* [out] */ BSTR *ErrorText,
  13539. /* [retval][out] */ VARIANT *SaveStream);
  13540. END_INTERFACE
  13541. } ISpeechGrammarRulesVtbl;
  13542. interface ISpeechGrammarRules
  13543. {
  13544. CONST_VTBL struct ISpeechGrammarRulesVtbl *lpVtbl;
  13545. };
  13546. #ifdef COBJMACROS
  13547. #define ISpeechGrammarRules_QueryInterface(This,riid,ppvObject) \
  13548. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13549. #define ISpeechGrammarRules_AddRef(This) \
  13550. (This)->lpVtbl -> AddRef(This)
  13551. #define ISpeechGrammarRules_Release(This) \
  13552. (This)->lpVtbl -> Release(This)
  13553. #define ISpeechGrammarRules_GetTypeInfoCount(This,pctinfo) \
  13554. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13555. #define ISpeechGrammarRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13556. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13557. #define ISpeechGrammarRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13558. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13559. #define ISpeechGrammarRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13560. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13561. #define ISpeechGrammarRules_get_Count(This,Count) \
  13562. (This)->lpVtbl -> get_Count(This,Count)
  13563. #define ISpeechGrammarRules_FindRule(This,RuleNameOrId,Rule) \
  13564. (This)->lpVtbl -> FindRule(This,RuleNameOrId,Rule)
  13565. #define ISpeechGrammarRules_Item(This,Index,Rule) \
  13566. (This)->lpVtbl -> Item(This,Index,Rule)
  13567. #define ISpeechGrammarRules_get__NewEnum(This,EnumVARIANT) \
  13568. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  13569. #define ISpeechGrammarRules_get_Dynamic(This,Dynamic) \
  13570. (This)->lpVtbl -> get_Dynamic(This,Dynamic)
  13571. #define ISpeechGrammarRules_Add(This,RuleName,Attributes,RuleId,Rule) \
  13572. (This)->lpVtbl -> Add(This,RuleName,Attributes,RuleId,Rule)
  13573. #define ISpeechGrammarRules_Commit(This) \
  13574. (This)->lpVtbl -> Commit(This)
  13575. #define ISpeechGrammarRules_CommitAndSave(This,ErrorText,SaveStream) \
  13576. (This)->lpVtbl -> CommitAndSave(This,ErrorText,SaveStream)
  13577. #endif /* COBJMACROS */
  13578. #endif /* C style interface */
  13579. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get_Count_Proxy(
  13580. ISpeechGrammarRules * This,
  13581. /* [retval][out] */ long *Count);
  13582. void __RPC_STUB ISpeechGrammarRules_get_Count_Stub(
  13583. IRpcStubBuffer *This,
  13584. IRpcChannelBuffer *_pRpcChannelBuffer,
  13585. PRPC_MESSAGE _pRpcMessage,
  13586. DWORD *_pdwStubPhase);
  13587. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_FindRule_Proxy(
  13588. ISpeechGrammarRules * This,
  13589. /* [in] */ VARIANT RuleNameOrId,
  13590. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13591. void __RPC_STUB ISpeechGrammarRules_FindRule_Stub(
  13592. IRpcStubBuffer *This,
  13593. IRpcChannelBuffer *_pRpcChannelBuffer,
  13594. PRPC_MESSAGE _pRpcMessage,
  13595. DWORD *_pdwStubPhase);
  13596. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Item_Proxy(
  13597. ISpeechGrammarRules * This,
  13598. /* [in] */ long Index,
  13599. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13600. void __RPC_STUB ISpeechGrammarRules_Item_Stub(
  13601. IRpcStubBuffer *This,
  13602. IRpcChannelBuffer *_pRpcChannelBuffer,
  13603. PRPC_MESSAGE _pRpcMessage,
  13604. DWORD *_pdwStubPhase);
  13605. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get__NewEnum_Proxy(
  13606. ISpeechGrammarRules * This,
  13607. /* [retval][out] */ IUnknown **EnumVARIANT);
  13608. void __RPC_STUB ISpeechGrammarRules_get__NewEnum_Stub(
  13609. IRpcStubBuffer *This,
  13610. IRpcChannelBuffer *_pRpcChannelBuffer,
  13611. PRPC_MESSAGE _pRpcMessage,
  13612. DWORD *_pdwStubPhase);
  13613. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_get_Dynamic_Proxy(
  13614. ISpeechGrammarRules * This,
  13615. /* [retval][out] */ VARIANT_BOOL *Dynamic);
  13616. void __RPC_STUB ISpeechGrammarRules_get_Dynamic_Stub(
  13617. IRpcStubBuffer *This,
  13618. IRpcChannelBuffer *_pRpcChannelBuffer,
  13619. PRPC_MESSAGE _pRpcMessage,
  13620. DWORD *_pdwStubPhase);
  13621. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Add_Proxy(
  13622. ISpeechGrammarRules * This,
  13623. /* [in] */ BSTR RuleName,
  13624. /* [in] */ SpeechRuleAttributes Attributes,
  13625. /* [defaultvalue][in] */ long RuleId,
  13626. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13627. void __RPC_STUB ISpeechGrammarRules_Add_Stub(
  13628. IRpcStubBuffer *This,
  13629. IRpcChannelBuffer *_pRpcChannelBuffer,
  13630. PRPC_MESSAGE _pRpcMessage,
  13631. DWORD *_pdwStubPhase);
  13632. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_Commit_Proxy(
  13633. ISpeechGrammarRules * This);
  13634. void __RPC_STUB ISpeechGrammarRules_Commit_Stub(
  13635. IRpcStubBuffer *This,
  13636. IRpcChannelBuffer *_pRpcChannelBuffer,
  13637. PRPC_MESSAGE _pRpcMessage,
  13638. DWORD *_pdwStubPhase);
  13639. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRules_CommitAndSave_Proxy(
  13640. ISpeechGrammarRules * This,
  13641. /* [out] */ BSTR *ErrorText,
  13642. /* [retval][out] */ VARIANT *SaveStream);
  13643. void __RPC_STUB ISpeechGrammarRules_CommitAndSave_Stub(
  13644. IRpcStubBuffer *This,
  13645. IRpcChannelBuffer *_pRpcChannelBuffer,
  13646. PRPC_MESSAGE _pRpcMessage,
  13647. DWORD *_pdwStubPhase);
  13648. #endif /* __ISpeechGrammarRules_INTERFACE_DEFINED__ */
  13649. #ifndef __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  13650. #define __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  13651. /* interface ISpeechGrammarRuleState */
  13652. /* [unique][helpstring][dual][uuid][object] */
  13653. EXTERN_C const IID IID_ISpeechGrammarRuleState;
  13654. #if defined(__cplusplus) && !defined(CINTERFACE)
  13655. MIDL_INTERFACE("D4286F2C-EE67-45ae-B928-28D695362EDA")
  13656. ISpeechGrammarRuleState : public IDispatch
  13657. {
  13658. public:
  13659. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  13660. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13661. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Transitions(
  13662. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions) = 0;
  13663. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddWordTransition(
  13664. /* [in] */ ISpeechGrammarRuleState *DestState,
  13665. /* [in] */ const BSTR Words,
  13666. /* [defaultvalue][in] */ const BSTR Separators = L" ",
  13667. /* [defaultvalue][in] */ SpeechGrammarWordType Type = SGLexical,
  13668. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13669. /* [defaultvalue][in] */ long PropertyId = 0,
  13670. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13671. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13672. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddRuleTransition(
  13673. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13674. /* [in] */ ISpeechGrammarRule *Rule,
  13675. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13676. /* [defaultvalue][in] */ long PropertyId = 0,
  13677. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13678. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13679. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddSpecialTransition(
  13680. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13681. /* [in] */ SpeechSpecialTransitionType Type,
  13682. /* [defaultvalue][in] */ const BSTR PropertyName = L"",
  13683. /* [defaultvalue][in] */ long PropertyId = 0,
  13684. /* [defaultvalue][in] */ VARIANT *PropertyValue = 0,
  13685. /* [defaultvalue][in] */ float Weight = 1) = 0;
  13686. };
  13687. #else /* C style interface */
  13688. typedef struct ISpeechGrammarRuleStateVtbl
  13689. {
  13690. BEGIN_INTERFACE
  13691. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13692. ISpeechGrammarRuleState * This,
  13693. /* [in] */ REFIID riid,
  13694. /* [iid_is][out] */ void **ppvObject);
  13695. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13696. ISpeechGrammarRuleState * This);
  13697. ULONG ( STDMETHODCALLTYPE *Release )(
  13698. ISpeechGrammarRuleState * This);
  13699. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13700. ISpeechGrammarRuleState * This,
  13701. /* [out] */ UINT *pctinfo);
  13702. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13703. ISpeechGrammarRuleState * This,
  13704. /* [in] */ UINT iTInfo,
  13705. /* [in] */ LCID lcid,
  13706. /* [out] */ ITypeInfo **ppTInfo);
  13707. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13708. ISpeechGrammarRuleState * This,
  13709. /* [in] */ REFIID riid,
  13710. /* [size_is][in] */ LPOLESTR *rgszNames,
  13711. /* [in] */ UINT cNames,
  13712. /* [in] */ LCID lcid,
  13713. /* [size_is][out] */ DISPID *rgDispId);
  13714. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13715. ISpeechGrammarRuleState * This,
  13716. /* [in] */ DISPID dispIdMember,
  13717. /* [in] */ REFIID riid,
  13718. /* [in] */ LCID lcid,
  13719. /* [in] */ WORD wFlags,
  13720. /* [out][in] */ DISPPARAMS *pDispParams,
  13721. /* [out] */ VARIANT *pVarResult,
  13722. /* [out] */ EXCEPINFO *pExcepInfo,
  13723. /* [out] */ UINT *puArgErr);
  13724. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  13725. ISpeechGrammarRuleState * This,
  13726. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13727. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Transitions )(
  13728. ISpeechGrammarRuleState * This,
  13729. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions);
  13730. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddWordTransition )(
  13731. ISpeechGrammarRuleState * This,
  13732. /* [in] */ ISpeechGrammarRuleState *DestState,
  13733. /* [in] */ const BSTR Words,
  13734. /* [defaultvalue][in] */ const BSTR Separators,
  13735. /* [defaultvalue][in] */ SpeechGrammarWordType Type,
  13736. /* [defaultvalue][in] */ const BSTR PropertyName,
  13737. /* [defaultvalue][in] */ long PropertyId,
  13738. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13739. /* [defaultvalue][in] */ float Weight);
  13740. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddRuleTransition )(
  13741. ISpeechGrammarRuleState * This,
  13742. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13743. /* [in] */ ISpeechGrammarRule *Rule,
  13744. /* [defaultvalue][in] */ const BSTR PropertyName,
  13745. /* [defaultvalue][in] */ long PropertyId,
  13746. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13747. /* [defaultvalue][in] */ float Weight);
  13748. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddSpecialTransition )(
  13749. ISpeechGrammarRuleState * This,
  13750. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13751. /* [in] */ SpeechSpecialTransitionType Type,
  13752. /* [defaultvalue][in] */ const BSTR PropertyName,
  13753. /* [defaultvalue][in] */ long PropertyId,
  13754. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13755. /* [defaultvalue][in] */ float Weight);
  13756. END_INTERFACE
  13757. } ISpeechGrammarRuleStateVtbl;
  13758. interface ISpeechGrammarRuleState
  13759. {
  13760. CONST_VTBL struct ISpeechGrammarRuleStateVtbl *lpVtbl;
  13761. };
  13762. #ifdef COBJMACROS
  13763. #define ISpeechGrammarRuleState_QueryInterface(This,riid,ppvObject) \
  13764. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13765. #define ISpeechGrammarRuleState_AddRef(This) \
  13766. (This)->lpVtbl -> AddRef(This)
  13767. #define ISpeechGrammarRuleState_Release(This) \
  13768. (This)->lpVtbl -> Release(This)
  13769. #define ISpeechGrammarRuleState_GetTypeInfoCount(This,pctinfo) \
  13770. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13771. #define ISpeechGrammarRuleState_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13772. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13773. #define ISpeechGrammarRuleState_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13774. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13775. #define ISpeechGrammarRuleState_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13776. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13777. #define ISpeechGrammarRuleState_get_Rule(This,Rule) \
  13778. (This)->lpVtbl -> get_Rule(This,Rule)
  13779. #define ISpeechGrammarRuleState_get_Transitions(This,Transitions) \
  13780. (This)->lpVtbl -> get_Transitions(This,Transitions)
  13781. #define ISpeechGrammarRuleState_AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight) \
  13782. (This)->lpVtbl -> AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight)
  13783. #define ISpeechGrammarRuleState_AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight) \
  13784. (This)->lpVtbl -> AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight)
  13785. #define ISpeechGrammarRuleState_AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight) \
  13786. (This)->lpVtbl -> AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight)
  13787. #endif /* COBJMACROS */
  13788. #endif /* C style interface */
  13789. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_get_Rule_Proxy(
  13790. ISpeechGrammarRuleState * This,
  13791. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13792. void __RPC_STUB ISpeechGrammarRuleState_get_Rule_Stub(
  13793. IRpcStubBuffer *This,
  13794. IRpcChannelBuffer *_pRpcChannelBuffer,
  13795. PRPC_MESSAGE _pRpcMessage,
  13796. DWORD *_pdwStubPhase);
  13797. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_get_Transitions_Proxy(
  13798. ISpeechGrammarRuleState * This,
  13799. /* [retval][out] */ ISpeechGrammarRuleStateTransitions **Transitions);
  13800. void __RPC_STUB ISpeechGrammarRuleState_get_Transitions_Stub(
  13801. IRpcStubBuffer *This,
  13802. IRpcChannelBuffer *_pRpcChannelBuffer,
  13803. PRPC_MESSAGE _pRpcMessage,
  13804. DWORD *_pdwStubPhase);
  13805. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddWordTransition_Proxy(
  13806. ISpeechGrammarRuleState * This,
  13807. /* [in] */ ISpeechGrammarRuleState *DestState,
  13808. /* [in] */ const BSTR Words,
  13809. /* [defaultvalue][in] */ const BSTR Separators,
  13810. /* [defaultvalue][in] */ SpeechGrammarWordType Type,
  13811. /* [defaultvalue][in] */ const BSTR PropertyName,
  13812. /* [defaultvalue][in] */ long PropertyId,
  13813. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13814. /* [defaultvalue][in] */ float Weight);
  13815. void __RPC_STUB ISpeechGrammarRuleState_AddWordTransition_Stub(
  13816. IRpcStubBuffer *This,
  13817. IRpcChannelBuffer *_pRpcChannelBuffer,
  13818. PRPC_MESSAGE _pRpcMessage,
  13819. DWORD *_pdwStubPhase);
  13820. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddRuleTransition_Proxy(
  13821. ISpeechGrammarRuleState * This,
  13822. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13823. /* [in] */ ISpeechGrammarRule *Rule,
  13824. /* [defaultvalue][in] */ const BSTR PropertyName,
  13825. /* [defaultvalue][in] */ long PropertyId,
  13826. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13827. /* [defaultvalue][in] */ float Weight);
  13828. void __RPC_STUB ISpeechGrammarRuleState_AddRuleTransition_Stub(
  13829. IRpcStubBuffer *This,
  13830. IRpcChannelBuffer *_pRpcChannelBuffer,
  13831. PRPC_MESSAGE _pRpcMessage,
  13832. DWORD *_pdwStubPhase);
  13833. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleState_AddSpecialTransition_Proxy(
  13834. ISpeechGrammarRuleState * This,
  13835. /* [in] */ ISpeechGrammarRuleState *DestinationState,
  13836. /* [in] */ SpeechSpecialTransitionType Type,
  13837. /* [defaultvalue][in] */ const BSTR PropertyName,
  13838. /* [defaultvalue][in] */ long PropertyId,
  13839. /* [defaultvalue][in] */ VARIANT *PropertyValue,
  13840. /* [defaultvalue][in] */ float Weight);
  13841. void __RPC_STUB ISpeechGrammarRuleState_AddSpecialTransition_Stub(
  13842. IRpcStubBuffer *This,
  13843. IRpcChannelBuffer *_pRpcChannelBuffer,
  13844. PRPC_MESSAGE _pRpcMessage,
  13845. DWORD *_pdwStubPhase);
  13846. #endif /* __ISpeechGrammarRuleState_INTERFACE_DEFINED__ */
  13847. #ifndef __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  13848. #define __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  13849. /* interface ISpeechGrammarRuleStateTransition */
  13850. /* [unique][helpstring][dual][uuid][object] */
  13851. EXTERN_C const IID IID_ISpeechGrammarRuleStateTransition;
  13852. #if defined(__cplusplus) && !defined(CINTERFACE)
  13853. MIDL_INTERFACE("CAFD1DB1-41D1-4a06-9863-E2E81DA17A9A")
  13854. ISpeechGrammarRuleStateTransition : public IDispatch
  13855. {
  13856. public:
  13857. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Type(
  13858. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type) = 0;
  13859. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Text(
  13860. /* [retval][out] */ BSTR *Text) = 0;
  13861. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  13862. /* [retval][out] */ ISpeechGrammarRule **Rule) = 0;
  13863. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Weight(
  13864. /* [retval][out] */ VARIANT *Weight) = 0;
  13865. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyName(
  13866. /* [retval][out] */ BSTR *PropertyName) = 0;
  13867. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyId(
  13868. /* [retval][out] */ long *PropertyId) = 0;
  13869. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyValue(
  13870. /* [retval][out] */ VARIANT *PropertyValue) = 0;
  13871. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NextState(
  13872. /* [retval][out] */ ISpeechGrammarRuleState **NextState) = 0;
  13873. };
  13874. #else /* C style interface */
  13875. typedef struct ISpeechGrammarRuleStateTransitionVtbl
  13876. {
  13877. BEGIN_INTERFACE
  13878. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  13879. ISpeechGrammarRuleStateTransition * This,
  13880. /* [in] */ REFIID riid,
  13881. /* [iid_is][out] */ void **ppvObject);
  13882. ULONG ( STDMETHODCALLTYPE *AddRef )(
  13883. ISpeechGrammarRuleStateTransition * This);
  13884. ULONG ( STDMETHODCALLTYPE *Release )(
  13885. ISpeechGrammarRuleStateTransition * This);
  13886. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  13887. ISpeechGrammarRuleStateTransition * This,
  13888. /* [out] */ UINT *pctinfo);
  13889. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  13890. ISpeechGrammarRuleStateTransition * This,
  13891. /* [in] */ UINT iTInfo,
  13892. /* [in] */ LCID lcid,
  13893. /* [out] */ ITypeInfo **ppTInfo);
  13894. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  13895. ISpeechGrammarRuleStateTransition * This,
  13896. /* [in] */ REFIID riid,
  13897. /* [size_is][in] */ LPOLESTR *rgszNames,
  13898. /* [in] */ UINT cNames,
  13899. /* [in] */ LCID lcid,
  13900. /* [size_is][out] */ DISPID *rgDispId);
  13901. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  13902. ISpeechGrammarRuleStateTransition * This,
  13903. /* [in] */ DISPID dispIdMember,
  13904. /* [in] */ REFIID riid,
  13905. /* [in] */ LCID lcid,
  13906. /* [in] */ WORD wFlags,
  13907. /* [out][in] */ DISPPARAMS *pDispParams,
  13908. /* [out] */ VARIANT *pVarResult,
  13909. /* [out] */ EXCEPINFO *pExcepInfo,
  13910. /* [out] */ UINT *puArgErr);
  13911. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  13912. ISpeechGrammarRuleStateTransition * This,
  13913. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type);
  13914. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )(
  13915. ISpeechGrammarRuleStateTransition * This,
  13916. /* [retval][out] */ BSTR *Text);
  13917. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  13918. ISpeechGrammarRuleStateTransition * This,
  13919. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13920. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Weight )(
  13921. ISpeechGrammarRuleStateTransition * This,
  13922. /* [retval][out] */ VARIANT *Weight);
  13923. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyName )(
  13924. ISpeechGrammarRuleStateTransition * This,
  13925. /* [retval][out] */ BSTR *PropertyName);
  13926. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )(
  13927. ISpeechGrammarRuleStateTransition * This,
  13928. /* [retval][out] */ long *PropertyId);
  13929. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyValue )(
  13930. ISpeechGrammarRuleStateTransition * This,
  13931. /* [retval][out] */ VARIANT *PropertyValue);
  13932. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextState )(
  13933. ISpeechGrammarRuleStateTransition * This,
  13934. /* [retval][out] */ ISpeechGrammarRuleState **NextState);
  13935. END_INTERFACE
  13936. } ISpeechGrammarRuleStateTransitionVtbl;
  13937. interface ISpeechGrammarRuleStateTransition
  13938. {
  13939. CONST_VTBL struct ISpeechGrammarRuleStateTransitionVtbl *lpVtbl;
  13940. };
  13941. #ifdef COBJMACROS
  13942. #define ISpeechGrammarRuleStateTransition_QueryInterface(This,riid,ppvObject) \
  13943. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  13944. #define ISpeechGrammarRuleStateTransition_AddRef(This) \
  13945. (This)->lpVtbl -> AddRef(This)
  13946. #define ISpeechGrammarRuleStateTransition_Release(This) \
  13947. (This)->lpVtbl -> Release(This)
  13948. #define ISpeechGrammarRuleStateTransition_GetTypeInfoCount(This,pctinfo) \
  13949. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  13950. #define ISpeechGrammarRuleStateTransition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  13951. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13952. #define ISpeechGrammarRuleStateTransition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  13953. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13954. #define ISpeechGrammarRuleStateTransition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  13955. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13956. #define ISpeechGrammarRuleStateTransition_get_Type(This,Type) \
  13957. (This)->lpVtbl -> get_Type(This,Type)
  13958. #define ISpeechGrammarRuleStateTransition_get_Text(This,Text) \
  13959. (This)->lpVtbl -> get_Text(This,Text)
  13960. #define ISpeechGrammarRuleStateTransition_get_Rule(This,Rule) \
  13961. (This)->lpVtbl -> get_Rule(This,Rule)
  13962. #define ISpeechGrammarRuleStateTransition_get_Weight(This,Weight) \
  13963. (This)->lpVtbl -> get_Weight(This,Weight)
  13964. #define ISpeechGrammarRuleStateTransition_get_PropertyName(This,PropertyName) \
  13965. (This)->lpVtbl -> get_PropertyName(This,PropertyName)
  13966. #define ISpeechGrammarRuleStateTransition_get_PropertyId(This,PropertyId) \
  13967. (This)->lpVtbl -> get_PropertyId(This,PropertyId)
  13968. #define ISpeechGrammarRuleStateTransition_get_PropertyValue(This,PropertyValue) \
  13969. (This)->lpVtbl -> get_PropertyValue(This,PropertyValue)
  13970. #define ISpeechGrammarRuleStateTransition_get_NextState(This,NextState) \
  13971. (This)->lpVtbl -> get_NextState(This,NextState)
  13972. #endif /* COBJMACROS */
  13973. #endif /* C style interface */
  13974. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Type_Proxy(
  13975. ISpeechGrammarRuleStateTransition * This,
  13976. /* [retval][out] */ SpeechGrammarRuleStateTransitionType *Type);
  13977. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Type_Stub(
  13978. IRpcStubBuffer *This,
  13979. IRpcChannelBuffer *_pRpcChannelBuffer,
  13980. PRPC_MESSAGE _pRpcMessage,
  13981. DWORD *_pdwStubPhase);
  13982. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Text_Proxy(
  13983. ISpeechGrammarRuleStateTransition * This,
  13984. /* [retval][out] */ BSTR *Text);
  13985. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Text_Stub(
  13986. IRpcStubBuffer *This,
  13987. IRpcChannelBuffer *_pRpcChannelBuffer,
  13988. PRPC_MESSAGE _pRpcMessage,
  13989. DWORD *_pdwStubPhase);
  13990. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Rule_Proxy(
  13991. ISpeechGrammarRuleStateTransition * This,
  13992. /* [retval][out] */ ISpeechGrammarRule **Rule);
  13993. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Rule_Stub(
  13994. IRpcStubBuffer *This,
  13995. IRpcChannelBuffer *_pRpcChannelBuffer,
  13996. PRPC_MESSAGE _pRpcMessage,
  13997. DWORD *_pdwStubPhase);
  13998. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_Weight_Proxy(
  13999. ISpeechGrammarRuleStateTransition * This,
  14000. /* [retval][out] */ VARIANT *Weight);
  14001. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_Weight_Stub(
  14002. IRpcStubBuffer *This,
  14003. IRpcChannelBuffer *_pRpcChannelBuffer,
  14004. PRPC_MESSAGE _pRpcMessage,
  14005. DWORD *_pdwStubPhase);
  14006. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyName_Proxy(
  14007. ISpeechGrammarRuleStateTransition * This,
  14008. /* [retval][out] */ BSTR *PropertyName);
  14009. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyName_Stub(
  14010. IRpcStubBuffer *This,
  14011. IRpcChannelBuffer *_pRpcChannelBuffer,
  14012. PRPC_MESSAGE _pRpcMessage,
  14013. DWORD *_pdwStubPhase);
  14014. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyId_Proxy(
  14015. ISpeechGrammarRuleStateTransition * This,
  14016. /* [retval][out] */ long *PropertyId);
  14017. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyId_Stub(
  14018. IRpcStubBuffer *This,
  14019. IRpcChannelBuffer *_pRpcChannelBuffer,
  14020. PRPC_MESSAGE _pRpcMessage,
  14021. DWORD *_pdwStubPhase);
  14022. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_PropertyValue_Proxy(
  14023. ISpeechGrammarRuleStateTransition * This,
  14024. /* [retval][out] */ VARIANT *PropertyValue);
  14025. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_PropertyValue_Stub(
  14026. IRpcStubBuffer *This,
  14027. IRpcChannelBuffer *_pRpcChannelBuffer,
  14028. PRPC_MESSAGE _pRpcMessage,
  14029. DWORD *_pdwStubPhase);
  14030. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransition_get_NextState_Proxy(
  14031. ISpeechGrammarRuleStateTransition * This,
  14032. /* [retval][out] */ ISpeechGrammarRuleState **NextState);
  14033. void __RPC_STUB ISpeechGrammarRuleStateTransition_get_NextState_Stub(
  14034. IRpcStubBuffer *This,
  14035. IRpcChannelBuffer *_pRpcChannelBuffer,
  14036. PRPC_MESSAGE _pRpcMessage,
  14037. DWORD *_pdwStubPhase);
  14038. #endif /* __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__ */
  14039. #ifndef __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  14040. #define __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  14041. /* interface ISpeechGrammarRuleStateTransitions */
  14042. /* [unique][helpstring][dual][uuid][object] */
  14043. EXTERN_C const IID IID_ISpeechGrammarRuleStateTransitions;
  14044. #if defined(__cplusplus) && !defined(CINTERFACE)
  14045. MIDL_INTERFACE("EABCE657-75BC-44a2-AA7F-C56476742963")
  14046. ISpeechGrammarRuleStateTransitions : public IDispatch
  14047. {
  14048. public:
  14049. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  14050. /* [retval][out] */ long *Count) = 0;
  14051. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  14052. /* [in] */ long Index,
  14053. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition) = 0;
  14054. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  14055. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  14056. };
  14057. #else /* C style interface */
  14058. typedef struct ISpeechGrammarRuleStateTransitionsVtbl
  14059. {
  14060. BEGIN_INTERFACE
  14061. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14062. ISpeechGrammarRuleStateTransitions * This,
  14063. /* [in] */ REFIID riid,
  14064. /* [iid_is][out] */ void **ppvObject);
  14065. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14066. ISpeechGrammarRuleStateTransitions * This);
  14067. ULONG ( STDMETHODCALLTYPE *Release )(
  14068. ISpeechGrammarRuleStateTransitions * This);
  14069. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14070. ISpeechGrammarRuleStateTransitions * This,
  14071. /* [out] */ UINT *pctinfo);
  14072. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14073. ISpeechGrammarRuleStateTransitions * This,
  14074. /* [in] */ UINT iTInfo,
  14075. /* [in] */ LCID lcid,
  14076. /* [out] */ ITypeInfo **ppTInfo);
  14077. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14078. ISpeechGrammarRuleStateTransitions * This,
  14079. /* [in] */ REFIID riid,
  14080. /* [size_is][in] */ LPOLESTR *rgszNames,
  14081. /* [in] */ UINT cNames,
  14082. /* [in] */ LCID lcid,
  14083. /* [size_is][out] */ DISPID *rgDispId);
  14084. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14085. ISpeechGrammarRuleStateTransitions * This,
  14086. /* [in] */ DISPID dispIdMember,
  14087. /* [in] */ REFIID riid,
  14088. /* [in] */ LCID lcid,
  14089. /* [in] */ WORD wFlags,
  14090. /* [out][in] */ DISPPARAMS *pDispParams,
  14091. /* [out] */ VARIANT *pVarResult,
  14092. /* [out] */ EXCEPINFO *pExcepInfo,
  14093. /* [out] */ UINT *puArgErr);
  14094. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  14095. ISpeechGrammarRuleStateTransitions * This,
  14096. /* [retval][out] */ long *Count);
  14097. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  14098. ISpeechGrammarRuleStateTransitions * This,
  14099. /* [in] */ long Index,
  14100. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition);
  14101. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  14102. ISpeechGrammarRuleStateTransitions * This,
  14103. /* [retval][out] */ IUnknown **EnumVARIANT);
  14104. END_INTERFACE
  14105. } ISpeechGrammarRuleStateTransitionsVtbl;
  14106. interface ISpeechGrammarRuleStateTransitions
  14107. {
  14108. CONST_VTBL struct ISpeechGrammarRuleStateTransitionsVtbl *lpVtbl;
  14109. };
  14110. #ifdef COBJMACROS
  14111. #define ISpeechGrammarRuleStateTransitions_QueryInterface(This,riid,ppvObject) \
  14112. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14113. #define ISpeechGrammarRuleStateTransitions_AddRef(This) \
  14114. (This)->lpVtbl -> AddRef(This)
  14115. #define ISpeechGrammarRuleStateTransitions_Release(This) \
  14116. (This)->lpVtbl -> Release(This)
  14117. #define ISpeechGrammarRuleStateTransitions_GetTypeInfoCount(This,pctinfo) \
  14118. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14119. #define ISpeechGrammarRuleStateTransitions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14120. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14121. #define ISpeechGrammarRuleStateTransitions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14122. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14123. #define ISpeechGrammarRuleStateTransitions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14124. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14125. #define ISpeechGrammarRuleStateTransitions_get_Count(This,Count) \
  14126. (This)->lpVtbl -> get_Count(This,Count)
  14127. #define ISpeechGrammarRuleStateTransitions_Item(This,Index,Transition) \
  14128. (This)->lpVtbl -> Item(This,Index,Transition)
  14129. #define ISpeechGrammarRuleStateTransitions_get__NewEnum(This,EnumVARIANT) \
  14130. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  14131. #endif /* COBJMACROS */
  14132. #endif /* C style interface */
  14133. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_get_Count_Proxy(
  14134. ISpeechGrammarRuleStateTransitions * This,
  14135. /* [retval][out] */ long *Count);
  14136. void __RPC_STUB ISpeechGrammarRuleStateTransitions_get_Count_Stub(
  14137. IRpcStubBuffer *This,
  14138. IRpcChannelBuffer *_pRpcChannelBuffer,
  14139. PRPC_MESSAGE _pRpcMessage,
  14140. DWORD *_pdwStubPhase);
  14141. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_Item_Proxy(
  14142. ISpeechGrammarRuleStateTransitions * This,
  14143. /* [in] */ long Index,
  14144. /* [retval][out] */ ISpeechGrammarRuleStateTransition **Transition);
  14145. void __RPC_STUB ISpeechGrammarRuleStateTransitions_Item_Stub(
  14146. IRpcStubBuffer *This,
  14147. IRpcChannelBuffer *_pRpcChannelBuffer,
  14148. PRPC_MESSAGE _pRpcMessage,
  14149. DWORD *_pdwStubPhase);
  14150. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechGrammarRuleStateTransitions_get__NewEnum_Proxy(
  14151. ISpeechGrammarRuleStateTransitions * This,
  14152. /* [retval][out] */ IUnknown **EnumVARIANT);
  14153. void __RPC_STUB ISpeechGrammarRuleStateTransitions_get__NewEnum_Stub(
  14154. IRpcStubBuffer *This,
  14155. IRpcChannelBuffer *_pRpcChannelBuffer,
  14156. PRPC_MESSAGE _pRpcMessage,
  14157. DWORD *_pdwStubPhase);
  14158. #endif /* __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__ */
  14159. #ifndef __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  14160. #define __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  14161. /* interface ISpeechTextSelectionInformation */
  14162. /* [unique][helpstring][dual][uuid][object] */
  14163. EXTERN_C const IID IID_ISpeechTextSelectionInformation;
  14164. #if defined(__cplusplus) && !defined(CINTERFACE)
  14165. MIDL_INTERFACE("3B9C7E7A-6EEE-4DED-9092-11657279ADBE")
  14166. ISpeechTextSelectionInformation : public IDispatch
  14167. {
  14168. public:
  14169. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveOffset(
  14170. /* [in] */ long ActiveOffset) = 0;
  14171. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveOffset(
  14172. /* [retval][out] */ long *ActiveOffset) = 0;
  14173. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveLength(
  14174. /* [in] */ long ActiveLength) = 0;
  14175. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveLength(
  14176. /* [retval][out] */ long *ActiveLength) = 0;
  14177. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SelectionOffset(
  14178. /* [in] */ long SelectionOffset) = 0;
  14179. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SelectionOffset(
  14180. /* [retval][out] */ long *SelectionOffset) = 0;
  14181. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SelectionLength(
  14182. /* [in] */ long SelectionLength) = 0;
  14183. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SelectionLength(
  14184. /* [retval][out] */ long *SelectionLength) = 0;
  14185. };
  14186. #else /* C style interface */
  14187. typedef struct ISpeechTextSelectionInformationVtbl
  14188. {
  14189. BEGIN_INTERFACE
  14190. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14191. ISpeechTextSelectionInformation * This,
  14192. /* [in] */ REFIID riid,
  14193. /* [iid_is][out] */ void **ppvObject);
  14194. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14195. ISpeechTextSelectionInformation * This);
  14196. ULONG ( STDMETHODCALLTYPE *Release )(
  14197. ISpeechTextSelectionInformation * This);
  14198. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14199. ISpeechTextSelectionInformation * This,
  14200. /* [out] */ UINT *pctinfo);
  14201. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14202. ISpeechTextSelectionInformation * This,
  14203. /* [in] */ UINT iTInfo,
  14204. /* [in] */ LCID lcid,
  14205. /* [out] */ ITypeInfo **ppTInfo);
  14206. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14207. ISpeechTextSelectionInformation * This,
  14208. /* [in] */ REFIID riid,
  14209. /* [size_is][in] */ LPOLESTR *rgszNames,
  14210. /* [in] */ UINT cNames,
  14211. /* [in] */ LCID lcid,
  14212. /* [size_is][out] */ DISPID *rgDispId);
  14213. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14214. ISpeechTextSelectionInformation * This,
  14215. /* [in] */ DISPID dispIdMember,
  14216. /* [in] */ REFIID riid,
  14217. /* [in] */ LCID lcid,
  14218. /* [in] */ WORD wFlags,
  14219. /* [out][in] */ DISPPARAMS *pDispParams,
  14220. /* [out] */ VARIANT *pVarResult,
  14221. /* [out] */ EXCEPINFO *pExcepInfo,
  14222. /* [out] */ UINT *puArgErr);
  14223. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveOffset )(
  14224. ISpeechTextSelectionInformation * This,
  14225. /* [in] */ long ActiveOffset);
  14226. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveOffset )(
  14227. ISpeechTextSelectionInformation * This,
  14228. /* [retval][out] */ long *ActiveOffset);
  14229. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveLength )(
  14230. ISpeechTextSelectionInformation * This,
  14231. /* [in] */ long ActiveLength);
  14232. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveLength )(
  14233. ISpeechTextSelectionInformation * This,
  14234. /* [retval][out] */ long *ActiveLength);
  14235. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SelectionOffset )(
  14236. ISpeechTextSelectionInformation * This,
  14237. /* [in] */ long SelectionOffset);
  14238. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SelectionOffset )(
  14239. ISpeechTextSelectionInformation * This,
  14240. /* [retval][out] */ long *SelectionOffset);
  14241. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SelectionLength )(
  14242. ISpeechTextSelectionInformation * This,
  14243. /* [in] */ long SelectionLength);
  14244. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SelectionLength )(
  14245. ISpeechTextSelectionInformation * This,
  14246. /* [retval][out] */ long *SelectionLength);
  14247. END_INTERFACE
  14248. } ISpeechTextSelectionInformationVtbl;
  14249. interface ISpeechTextSelectionInformation
  14250. {
  14251. CONST_VTBL struct ISpeechTextSelectionInformationVtbl *lpVtbl;
  14252. };
  14253. #ifdef COBJMACROS
  14254. #define ISpeechTextSelectionInformation_QueryInterface(This,riid,ppvObject) \
  14255. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14256. #define ISpeechTextSelectionInformation_AddRef(This) \
  14257. (This)->lpVtbl -> AddRef(This)
  14258. #define ISpeechTextSelectionInformation_Release(This) \
  14259. (This)->lpVtbl -> Release(This)
  14260. #define ISpeechTextSelectionInformation_GetTypeInfoCount(This,pctinfo) \
  14261. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14262. #define ISpeechTextSelectionInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14263. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14264. #define ISpeechTextSelectionInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14265. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14266. #define ISpeechTextSelectionInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14267. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14268. #define ISpeechTextSelectionInformation_put_ActiveOffset(This,ActiveOffset) \
  14269. (This)->lpVtbl -> put_ActiveOffset(This,ActiveOffset)
  14270. #define ISpeechTextSelectionInformation_get_ActiveOffset(This,ActiveOffset) \
  14271. (This)->lpVtbl -> get_ActiveOffset(This,ActiveOffset)
  14272. #define ISpeechTextSelectionInformation_put_ActiveLength(This,ActiveLength) \
  14273. (This)->lpVtbl -> put_ActiveLength(This,ActiveLength)
  14274. #define ISpeechTextSelectionInformation_get_ActiveLength(This,ActiveLength) \
  14275. (This)->lpVtbl -> get_ActiveLength(This,ActiveLength)
  14276. #define ISpeechTextSelectionInformation_put_SelectionOffset(This,SelectionOffset) \
  14277. (This)->lpVtbl -> put_SelectionOffset(This,SelectionOffset)
  14278. #define ISpeechTextSelectionInformation_get_SelectionOffset(This,SelectionOffset) \
  14279. (This)->lpVtbl -> get_SelectionOffset(This,SelectionOffset)
  14280. #define ISpeechTextSelectionInformation_put_SelectionLength(This,SelectionLength) \
  14281. (This)->lpVtbl -> put_SelectionLength(This,SelectionLength)
  14282. #define ISpeechTextSelectionInformation_get_SelectionLength(This,SelectionLength) \
  14283. (This)->lpVtbl -> get_SelectionLength(This,SelectionLength)
  14284. #endif /* COBJMACROS */
  14285. #endif /* C style interface */
  14286. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_ActiveOffset_Proxy(
  14287. ISpeechTextSelectionInformation * This,
  14288. /* [in] */ long ActiveOffset);
  14289. void __RPC_STUB ISpeechTextSelectionInformation_put_ActiveOffset_Stub(
  14290. IRpcStubBuffer *This,
  14291. IRpcChannelBuffer *_pRpcChannelBuffer,
  14292. PRPC_MESSAGE _pRpcMessage,
  14293. DWORD *_pdwStubPhase);
  14294. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_ActiveOffset_Proxy(
  14295. ISpeechTextSelectionInformation * This,
  14296. /* [retval][out] */ long *ActiveOffset);
  14297. void __RPC_STUB ISpeechTextSelectionInformation_get_ActiveOffset_Stub(
  14298. IRpcStubBuffer *This,
  14299. IRpcChannelBuffer *_pRpcChannelBuffer,
  14300. PRPC_MESSAGE _pRpcMessage,
  14301. DWORD *_pdwStubPhase);
  14302. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_ActiveLength_Proxy(
  14303. ISpeechTextSelectionInformation * This,
  14304. /* [in] */ long ActiveLength);
  14305. void __RPC_STUB ISpeechTextSelectionInformation_put_ActiveLength_Stub(
  14306. IRpcStubBuffer *This,
  14307. IRpcChannelBuffer *_pRpcChannelBuffer,
  14308. PRPC_MESSAGE _pRpcMessage,
  14309. DWORD *_pdwStubPhase);
  14310. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_ActiveLength_Proxy(
  14311. ISpeechTextSelectionInformation * This,
  14312. /* [retval][out] */ long *ActiveLength);
  14313. void __RPC_STUB ISpeechTextSelectionInformation_get_ActiveLength_Stub(
  14314. IRpcStubBuffer *This,
  14315. IRpcChannelBuffer *_pRpcChannelBuffer,
  14316. PRPC_MESSAGE _pRpcMessage,
  14317. DWORD *_pdwStubPhase);
  14318. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_SelectionOffset_Proxy(
  14319. ISpeechTextSelectionInformation * This,
  14320. /* [in] */ long SelectionOffset);
  14321. void __RPC_STUB ISpeechTextSelectionInformation_put_SelectionOffset_Stub(
  14322. IRpcStubBuffer *This,
  14323. IRpcChannelBuffer *_pRpcChannelBuffer,
  14324. PRPC_MESSAGE _pRpcMessage,
  14325. DWORD *_pdwStubPhase);
  14326. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_SelectionOffset_Proxy(
  14327. ISpeechTextSelectionInformation * This,
  14328. /* [retval][out] */ long *SelectionOffset);
  14329. void __RPC_STUB ISpeechTextSelectionInformation_get_SelectionOffset_Stub(
  14330. IRpcStubBuffer *This,
  14331. IRpcChannelBuffer *_pRpcChannelBuffer,
  14332. PRPC_MESSAGE _pRpcMessage,
  14333. DWORD *_pdwStubPhase);
  14334. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_put_SelectionLength_Proxy(
  14335. ISpeechTextSelectionInformation * This,
  14336. /* [in] */ long SelectionLength);
  14337. void __RPC_STUB ISpeechTextSelectionInformation_put_SelectionLength_Stub(
  14338. IRpcStubBuffer *This,
  14339. IRpcChannelBuffer *_pRpcChannelBuffer,
  14340. PRPC_MESSAGE _pRpcMessage,
  14341. DWORD *_pdwStubPhase);
  14342. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechTextSelectionInformation_get_SelectionLength_Proxy(
  14343. ISpeechTextSelectionInformation * This,
  14344. /* [retval][out] */ long *SelectionLength);
  14345. void __RPC_STUB ISpeechTextSelectionInformation_get_SelectionLength_Stub(
  14346. IRpcStubBuffer *This,
  14347. IRpcChannelBuffer *_pRpcChannelBuffer,
  14348. PRPC_MESSAGE _pRpcMessage,
  14349. DWORD *_pdwStubPhase);
  14350. #endif /* __ISpeechTextSelectionInformation_INTERFACE_DEFINED__ */
  14351. #ifndef __ISpeechRecoResult_INTERFACE_DEFINED__
  14352. #define __ISpeechRecoResult_INTERFACE_DEFINED__
  14353. /* interface ISpeechRecoResult */
  14354. /* [unique][helpstring][dual][uuid][object] */
  14355. EXTERN_C const IID IID_ISpeechRecoResult;
  14356. #if defined(__cplusplus) && !defined(CINTERFACE)
  14357. MIDL_INTERFACE("ED2879CF-CED9-4ee6-A534-DE0191D5468D")
  14358. ISpeechRecoResult : public IDispatch
  14359. {
  14360. public:
  14361. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoContext(
  14362. /* [retval][out] */ ISpeechRecoContext **RecoContext) = 0;
  14363. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Times(
  14364. /* [retval][out] */ ISpeechRecoResultTimes **Times) = 0;
  14365. virtual /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE putref_AudioFormat(
  14366. /* [in] */ ISpeechAudioFormat *Format) = 0;
  14367. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioFormat(
  14368. /* [retval][out] */ ISpeechAudioFormat **Format) = 0;
  14369. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  14370. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  14371. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Alternates(
  14372. /* [in] */ long RequestCount,
  14373. /* [defaultvalue][in] */ long StartElement,
  14374. /* [defaultvalue][in] */ long Elements,
  14375. /* [retval][out] */ ISpeechPhraseAlternates **Alternates) = 0;
  14376. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Audio(
  14377. /* [defaultvalue][in] */ long StartElement,
  14378. /* [defaultvalue][in] */ long Elements,
  14379. /* [retval][out] */ ISpeechMemoryStream **Stream) = 0;
  14380. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SpeakAudio(
  14381. /* [defaultvalue][in] */ long StartElement,
  14382. /* [defaultvalue][in] */ long Elements,
  14383. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14384. /* [retval][out] */ long *StreamNumber) = 0;
  14385. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SaveToMemory(
  14386. /* [retval][out] */ VARIANT *ResultBlock) = 0;
  14387. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE DiscardResultInfo(
  14388. /* [in] */ SpeechDiscardType ValueTypes) = 0;
  14389. };
  14390. #else /* C style interface */
  14391. typedef struct ISpeechRecoResultVtbl
  14392. {
  14393. BEGIN_INTERFACE
  14394. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14395. ISpeechRecoResult * This,
  14396. /* [in] */ REFIID riid,
  14397. /* [iid_is][out] */ void **ppvObject);
  14398. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14399. ISpeechRecoResult * This);
  14400. ULONG ( STDMETHODCALLTYPE *Release )(
  14401. ISpeechRecoResult * This);
  14402. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14403. ISpeechRecoResult * This,
  14404. /* [out] */ UINT *pctinfo);
  14405. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14406. ISpeechRecoResult * This,
  14407. /* [in] */ UINT iTInfo,
  14408. /* [in] */ LCID lcid,
  14409. /* [out] */ ITypeInfo **ppTInfo);
  14410. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14411. ISpeechRecoResult * This,
  14412. /* [in] */ REFIID riid,
  14413. /* [size_is][in] */ LPOLESTR *rgszNames,
  14414. /* [in] */ UINT cNames,
  14415. /* [in] */ LCID lcid,
  14416. /* [size_is][out] */ DISPID *rgDispId);
  14417. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14418. ISpeechRecoResult * This,
  14419. /* [in] */ DISPID dispIdMember,
  14420. /* [in] */ REFIID riid,
  14421. /* [in] */ LCID lcid,
  14422. /* [in] */ WORD wFlags,
  14423. /* [out][in] */ DISPPARAMS *pDispParams,
  14424. /* [out] */ VARIANT *pVarResult,
  14425. /* [out] */ EXCEPINFO *pExcepInfo,
  14426. /* [out] */ UINT *puArgErr);
  14427. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoContext )(
  14428. ISpeechRecoResult * This,
  14429. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  14430. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Times )(
  14431. ISpeechRecoResult * This,
  14432. /* [retval][out] */ ISpeechRecoResultTimes **Times);
  14433. /* [id][helpstring][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_AudioFormat )(
  14434. ISpeechRecoResult * This,
  14435. /* [in] */ ISpeechAudioFormat *Format);
  14436. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioFormat )(
  14437. ISpeechRecoResult * This,
  14438. /* [retval][out] */ ISpeechAudioFormat **Format);
  14439. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhraseInfo )(
  14440. ISpeechRecoResult * This,
  14441. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14442. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Alternates )(
  14443. ISpeechRecoResult * This,
  14444. /* [in] */ long RequestCount,
  14445. /* [defaultvalue][in] */ long StartElement,
  14446. /* [defaultvalue][in] */ long Elements,
  14447. /* [retval][out] */ ISpeechPhraseAlternates **Alternates);
  14448. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Audio )(
  14449. ISpeechRecoResult * This,
  14450. /* [defaultvalue][in] */ long StartElement,
  14451. /* [defaultvalue][in] */ long Elements,
  14452. /* [retval][out] */ ISpeechMemoryStream **Stream);
  14453. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SpeakAudio )(
  14454. ISpeechRecoResult * This,
  14455. /* [defaultvalue][in] */ long StartElement,
  14456. /* [defaultvalue][in] */ long Elements,
  14457. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14458. /* [retval][out] */ long *StreamNumber);
  14459. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SaveToMemory )(
  14460. ISpeechRecoResult * This,
  14461. /* [retval][out] */ VARIANT *ResultBlock);
  14462. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *DiscardResultInfo )(
  14463. ISpeechRecoResult * This,
  14464. /* [in] */ SpeechDiscardType ValueTypes);
  14465. END_INTERFACE
  14466. } ISpeechRecoResultVtbl;
  14467. interface ISpeechRecoResult
  14468. {
  14469. CONST_VTBL struct ISpeechRecoResultVtbl *lpVtbl;
  14470. };
  14471. #ifdef COBJMACROS
  14472. #define ISpeechRecoResult_QueryInterface(This,riid,ppvObject) \
  14473. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14474. #define ISpeechRecoResult_AddRef(This) \
  14475. (This)->lpVtbl -> AddRef(This)
  14476. #define ISpeechRecoResult_Release(This) \
  14477. (This)->lpVtbl -> Release(This)
  14478. #define ISpeechRecoResult_GetTypeInfoCount(This,pctinfo) \
  14479. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14480. #define ISpeechRecoResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14481. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14482. #define ISpeechRecoResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14483. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14484. #define ISpeechRecoResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14485. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14486. #define ISpeechRecoResult_get_RecoContext(This,RecoContext) \
  14487. (This)->lpVtbl -> get_RecoContext(This,RecoContext)
  14488. #define ISpeechRecoResult_get_Times(This,Times) \
  14489. (This)->lpVtbl -> get_Times(This,Times)
  14490. #define ISpeechRecoResult_putref_AudioFormat(This,Format) \
  14491. (This)->lpVtbl -> putref_AudioFormat(This,Format)
  14492. #define ISpeechRecoResult_get_AudioFormat(This,Format) \
  14493. (This)->lpVtbl -> get_AudioFormat(This,Format)
  14494. #define ISpeechRecoResult_get_PhraseInfo(This,PhraseInfo) \
  14495. (This)->lpVtbl -> get_PhraseInfo(This,PhraseInfo)
  14496. #define ISpeechRecoResult_Alternates(This,RequestCount,StartElement,Elements,Alternates) \
  14497. (This)->lpVtbl -> Alternates(This,RequestCount,StartElement,Elements,Alternates)
  14498. #define ISpeechRecoResult_Audio(This,StartElement,Elements,Stream) \
  14499. (This)->lpVtbl -> Audio(This,StartElement,Elements,Stream)
  14500. #define ISpeechRecoResult_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) \
  14501. (This)->lpVtbl -> SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  14502. #define ISpeechRecoResult_SaveToMemory(This,ResultBlock) \
  14503. (This)->lpVtbl -> SaveToMemory(This,ResultBlock)
  14504. #define ISpeechRecoResult_DiscardResultInfo(This,ValueTypes) \
  14505. (This)->lpVtbl -> DiscardResultInfo(This,ValueTypes)
  14506. #endif /* COBJMACROS */
  14507. #endif /* C style interface */
  14508. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_RecoContext_Proxy(
  14509. ISpeechRecoResult * This,
  14510. /* [retval][out] */ ISpeechRecoContext **RecoContext);
  14511. void __RPC_STUB ISpeechRecoResult_get_RecoContext_Stub(
  14512. IRpcStubBuffer *This,
  14513. IRpcChannelBuffer *_pRpcChannelBuffer,
  14514. PRPC_MESSAGE _pRpcMessage,
  14515. DWORD *_pdwStubPhase);
  14516. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_Times_Proxy(
  14517. ISpeechRecoResult * This,
  14518. /* [retval][out] */ ISpeechRecoResultTimes **Times);
  14519. void __RPC_STUB ISpeechRecoResult_get_Times_Stub(
  14520. IRpcStubBuffer *This,
  14521. IRpcChannelBuffer *_pRpcChannelBuffer,
  14522. PRPC_MESSAGE _pRpcMessage,
  14523. DWORD *_pdwStubPhase);
  14524. /* [id][helpstring][propputref] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_putref_AudioFormat_Proxy(
  14525. ISpeechRecoResult * This,
  14526. /* [in] */ ISpeechAudioFormat *Format);
  14527. void __RPC_STUB ISpeechRecoResult_putref_AudioFormat_Stub(
  14528. IRpcStubBuffer *This,
  14529. IRpcChannelBuffer *_pRpcChannelBuffer,
  14530. PRPC_MESSAGE _pRpcMessage,
  14531. DWORD *_pdwStubPhase);
  14532. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_AudioFormat_Proxy(
  14533. ISpeechRecoResult * This,
  14534. /* [retval][out] */ ISpeechAudioFormat **Format);
  14535. void __RPC_STUB ISpeechRecoResult_get_AudioFormat_Stub(
  14536. IRpcStubBuffer *This,
  14537. IRpcChannelBuffer *_pRpcChannelBuffer,
  14538. PRPC_MESSAGE _pRpcMessage,
  14539. DWORD *_pdwStubPhase);
  14540. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_get_PhraseInfo_Proxy(
  14541. ISpeechRecoResult * This,
  14542. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14543. void __RPC_STUB ISpeechRecoResult_get_PhraseInfo_Stub(
  14544. IRpcStubBuffer *This,
  14545. IRpcChannelBuffer *_pRpcChannelBuffer,
  14546. PRPC_MESSAGE _pRpcMessage,
  14547. DWORD *_pdwStubPhase);
  14548. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_Alternates_Proxy(
  14549. ISpeechRecoResult * This,
  14550. /* [in] */ long RequestCount,
  14551. /* [defaultvalue][in] */ long StartElement,
  14552. /* [defaultvalue][in] */ long Elements,
  14553. /* [retval][out] */ ISpeechPhraseAlternates **Alternates);
  14554. void __RPC_STUB ISpeechRecoResult_Alternates_Stub(
  14555. IRpcStubBuffer *This,
  14556. IRpcChannelBuffer *_pRpcChannelBuffer,
  14557. PRPC_MESSAGE _pRpcMessage,
  14558. DWORD *_pdwStubPhase);
  14559. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_Audio_Proxy(
  14560. ISpeechRecoResult * This,
  14561. /* [defaultvalue][in] */ long StartElement,
  14562. /* [defaultvalue][in] */ long Elements,
  14563. /* [retval][out] */ ISpeechMemoryStream **Stream);
  14564. void __RPC_STUB ISpeechRecoResult_Audio_Stub(
  14565. IRpcStubBuffer *This,
  14566. IRpcChannelBuffer *_pRpcChannelBuffer,
  14567. PRPC_MESSAGE _pRpcMessage,
  14568. DWORD *_pdwStubPhase);
  14569. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_SpeakAudio_Proxy(
  14570. ISpeechRecoResult * This,
  14571. /* [defaultvalue][in] */ long StartElement,
  14572. /* [defaultvalue][in] */ long Elements,
  14573. /* [defaultvalue][in] */ SpeechVoiceSpeakFlags Flags,
  14574. /* [retval][out] */ long *StreamNumber);
  14575. void __RPC_STUB ISpeechRecoResult_SpeakAudio_Stub(
  14576. IRpcStubBuffer *This,
  14577. IRpcChannelBuffer *_pRpcChannelBuffer,
  14578. PRPC_MESSAGE _pRpcMessage,
  14579. DWORD *_pdwStubPhase);
  14580. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_SaveToMemory_Proxy(
  14581. ISpeechRecoResult * This,
  14582. /* [retval][out] */ VARIANT *ResultBlock);
  14583. void __RPC_STUB ISpeechRecoResult_SaveToMemory_Stub(
  14584. IRpcStubBuffer *This,
  14585. IRpcChannelBuffer *_pRpcChannelBuffer,
  14586. PRPC_MESSAGE _pRpcMessage,
  14587. DWORD *_pdwStubPhase);
  14588. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResult_DiscardResultInfo_Proxy(
  14589. ISpeechRecoResult * This,
  14590. /* [in] */ SpeechDiscardType ValueTypes);
  14591. void __RPC_STUB ISpeechRecoResult_DiscardResultInfo_Stub(
  14592. IRpcStubBuffer *This,
  14593. IRpcChannelBuffer *_pRpcChannelBuffer,
  14594. PRPC_MESSAGE _pRpcMessage,
  14595. DWORD *_pdwStubPhase);
  14596. #endif /* __ISpeechRecoResult_INTERFACE_DEFINED__ */
  14597. #ifndef __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  14598. #define __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  14599. /* interface ISpeechRecoResultTimes */
  14600. /* [unique][helpstring][dual][uuid][object] */
  14601. EXTERN_C const IID IID_ISpeechRecoResultTimes;
  14602. #if defined(__cplusplus) && !defined(CINTERFACE)
  14603. MIDL_INTERFACE("62B3B8FB-F6E7-41be-BDCB-056B1C29EFC0")
  14604. ISpeechRecoResultTimes : public IDispatch
  14605. {
  14606. public:
  14607. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StreamTime(
  14608. /* [retval][out] */ VARIANT *Time) = 0;
  14609. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Length(
  14610. /* [retval][out] */ VARIANT *Length) = 0;
  14611. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_TickCount(
  14612. /* [retval][out] */ long *TickCount) = 0;
  14613. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_OffsetFromStart(
  14614. /* [retval][out] */ VARIANT *OffsetFromStart) = 0;
  14615. };
  14616. #else /* C style interface */
  14617. typedef struct ISpeechRecoResultTimesVtbl
  14618. {
  14619. BEGIN_INTERFACE
  14620. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14621. ISpeechRecoResultTimes * This,
  14622. /* [in] */ REFIID riid,
  14623. /* [iid_is][out] */ void **ppvObject);
  14624. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14625. ISpeechRecoResultTimes * This);
  14626. ULONG ( STDMETHODCALLTYPE *Release )(
  14627. ISpeechRecoResultTimes * This);
  14628. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14629. ISpeechRecoResultTimes * This,
  14630. /* [out] */ UINT *pctinfo);
  14631. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14632. ISpeechRecoResultTimes * This,
  14633. /* [in] */ UINT iTInfo,
  14634. /* [in] */ LCID lcid,
  14635. /* [out] */ ITypeInfo **ppTInfo);
  14636. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14637. ISpeechRecoResultTimes * This,
  14638. /* [in] */ REFIID riid,
  14639. /* [size_is][in] */ LPOLESTR *rgszNames,
  14640. /* [in] */ UINT cNames,
  14641. /* [in] */ LCID lcid,
  14642. /* [size_is][out] */ DISPID *rgDispId);
  14643. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14644. ISpeechRecoResultTimes * This,
  14645. /* [in] */ DISPID dispIdMember,
  14646. /* [in] */ REFIID riid,
  14647. /* [in] */ LCID lcid,
  14648. /* [in] */ WORD wFlags,
  14649. /* [out][in] */ DISPPARAMS *pDispParams,
  14650. /* [out] */ VARIANT *pVarResult,
  14651. /* [out] */ EXCEPINFO *pExcepInfo,
  14652. /* [out] */ UINT *puArgErr);
  14653. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreamTime )(
  14654. ISpeechRecoResultTimes * This,
  14655. /* [retval][out] */ VARIANT *Time);
  14656. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )(
  14657. ISpeechRecoResultTimes * This,
  14658. /* [retval][out] */ VARIANT *Length);
  14659. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TickCount )(
  14660. ISpeechRecoResultTimes * This,
  14661. /* [retval][out] */ long *TickCount);
  14662. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OffsetFromStart )(
  14663. ISpeechRecoResultTimes * This,
  14664. /* [retval][out] */ VARIANT *OffsetFromStart);
  14665. END_INTERFACE
  14666. } ISpeechRecoResultTimesVtbl;
  14667. interface ISpeechRecoResultTimes
  14668. {
  14669. CONST_VTBL struct ISpeechRecoResultTimesVtbl *lpVtbl;
  14670. };
  14671. #ifdef COBJMACROS
  14672. #define ISpeechRecoResultTimes_QueryInterface(This,riid,ppvObject) \
  14673. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14674. #define ISpeechRecoResultTimes_AddRef(This) \
  14675. (This)->lpVtbl -> AddRef(This)
  14676. #define ISpeechRecoResultTimes_Release(This) \
  14677. (This)->lpVtbl -> Release(This)
  14678. #define ISpeechRecoResultTimes_GetTypeInfoCount(This,pctinfo) \
  14679. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14680. #define ISpeechRecoResultTimes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14681. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14682. #define ISpeechRecoResultTimes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14683. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14684. #define ISpeechRecoResultTimes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14685. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14686. #define ISpeechRecoResultTimes_get_StreamTime(This,Time) \
  14687. (This)->lpVtbl -> get_StreamTime(This,Time)
  14688. #define ISpeechRecoResultTimes_get_Length(This,Length) \
  14689. (This)->lpVtbl -> get_Length(This,Length)
  14690. #define ISpeechRecoResultTimes_get_TickCount(This,TickCount) \
  14691. (This)->lpVtbl -> get_TickCount(This,TickCount)
  14692. #define ISpeechRecoResultTimes_get_OffsetFromStart(This,OffsetFromStart) \
  14693. (This)->lpVtbl -> get_OffsetFromStart(This,OffsetFromStart)
  14694. #endif /* COBJMACROS */
  14695. #endif /* C style interface */
  14696. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_StreamTime_Proxy(
  14697. ISpeechRecoResultTimes * This,
  14698. /* [retval][out] */ VARIANT *Time);
  14699. void __RPC_STUB ISpeechRecoResultTimes_get_StreamTime_Stub(
  14700. IRpcStubBuffer *This,
  14701. IRpcChannelBuffer *_pRpcChannelBuffer,
  14702. PRPC_MESSAGE _pRpcMessage,
  14703. DWORD *_pdwStubPhase);
  14704. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_Length_Proxy(
  14705. ISpeechRecoResultTimes * This,
  14706. /* [retval][out] */ VARIANT *Length);
  14707. void __RPC_STUB ISpeechRecoResultTimes_get_Length_Stub(
  14708. IRpcStubBuffer *This,
  14709. IRpcChannelBuffer *_pRpcChannelBuffer,
  14710. PRPC_MESSAGE _pRpcMessage,
  14711. DWORD *_pdwStubPhase);
  14712. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_TickCount_Proxy(
  14713. ISpeechRecoResultTimes * This,
  14714. /* [retval][out] */ long *TickCount);
  14715. void __RPC_STUB ISpeechRecoResultTimes_get_TickCount_Stub(
  14716. IRpcStubBuffer *This,
  14717. IRpcChannelBuffer *_pRpcChannelBuffer,
  14718. PRPC_MESSAGE _pRpcMessage,
  14719. DWORD *_pdwStubPhase);
  14720. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechRecoResultTimes_get_OffsetFromStart_Proxy(
  14721. ISpeechRecoResultTimes * This,
  14722. /* [retval][out] */ VARIANT *OffsetFromStart);
  14723. void __RPC_STUB ISpeechRecoResultTimes_get_OffsetFromStart_Stub(
  14724. IRpcStubBuffer *This,
  14725. IRpcChannelBuffer *_pRpcChannelBuffer,
  14726. PRPC_MESSAGE _pRpcMessage,
  14727. DWORD *_pdwStubPhase);
  14728. #endif /* __ISpeechRecoResultTimes_INTERFACE_DEFINED__ */
  14729. #ifndef __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  14730. #define __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  14731. /* interface ISpeechPhraseAlternate */
  14732. /* [unique][helpstring][dual][uuid][object] */
  14733. EXTERN_C const IID IID_ISpeechPhraseAlternate;
  14734. #if defined(__cplusplus) && !defined(CINTERFACE)
  14735. MIDL_INTERFACE("27864A2A-2B9F-4cb8-92D3-0D2722FD1E73")
  14736. ISpeechPhraseAlternate : public IDispatch
  14737. {
  14738. public:
  14739. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RecoResult(
  14740. /* [retval][out] */ ISpeechRecoResult **RecoResult) = 0;
  14741. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StartElementInResult(
  14742. /* [retval][out] */ long *StartElement) = 0;
  14743. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElementsInResult(
  14744. /* [retval][out] */ long *NumberOfElements) = 0;
  14745. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  14746. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  14747. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0;
  14748. };
  14749. #else /* C style interface */
  14750. typedef struct ISpeechPhraseAlternateVtbl
  14751. {
  14752. BEGIN_INTERFACE
  14753. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14754. ISpeechPhraseAlternate * This,
  14755. /* [in] */ REFIID riid,
  14756. /* [iid_is][out] */ void **ppvObject);
  14757. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14758. ISpeechPhraseAlternate * This);
  14759. ULONG ( STDMETHODCALLTYPE *Release )(
  14760. ISpeechPhraseAlternate * This);
  14761. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14762. ISpeechPhraseAlternate * This,
  14763. /* [out] */ UINT *pctinfo);
  14764. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14765. ISpeechPhraseAlternate * This,
  14766. /* [in] */ UINT iTInfo,
  14767. /* [in] */ LCID lcid,
  14768. /* [out] */ ITypeInfo **ppTInfo);
  14769. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14770. ISpeechPhraseAlternate * This,
  14771. /* [in] */ REFIID riid,
  14772. /* [size_is][in] */ LPOLESTR *rgszNames,
  14773. /* [in] */ UINT cNames,
  14774. /* [in] */ LCID lcid,
  14775. /* [size_is][out] */ DISPID *rgDispId);
  14776. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14777. ISpeechPhraseAlternate * This,
  14778. /* [in] */ DISPID dispIdMember,
  14779. /* [in] */ REFIID riid,
  14780. /* [in] */ LCID lcid,
  14781. /* [in] */ WORD wFlags,
  14782. /* [out][in] */ DISPPARAMS *pDispParams,
  14783. /* [out] */ VARIANT *pVarResult,
  14784. /* [out] */ EXCEPINFO *pExcepInfo,
  14785. /* [out] */ UINT *puArgErr);
  14786. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecoResult )(
  14787. ISpeechPhraseAlternate * This,
  14788. /* [retval][out] */ ISpeechRecoResult **RecoResult);
  14789. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartElementInResult )(
  14790. ISpeechPhraseAlternate * This,
  14791. /* [retval][out] */ long *StartElement);
  14792. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElementsInResult )(
  14793. ISpeechPhraseAlternate * This,
  14794. /* [retval][out] */ long *NumberOfElements);
  14795. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PhraseInfo )(
  14796. ISpeechPhraseAlternate * This,
  14797. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14798. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Commit )(
  14799. ISpeechPhraseAlternate * This);
  14800. END_INTERFACE
  14801. } ISpeechPhraseAlternateVtbl;
  14802. interface ISpeechPhraseAlternate
  14803. {
  14804. CONST_VTBL struct ISpeechPhraseAlternateVtbl *lpVtbl;
  14805. };
  14806. #ifdef COBJMACROS
  14807. #define ISpeechPhraseAlternate_QueryInterface(This,riid,ppvObject) \
  14808. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14809. #define ISpeechPhraseAlternate_AddRef(This) \
  14810. (This)->lpVtbl -> AddRef(This)
  14811. #define ISpeechPhraseAlternate_Release(This) \
  14812. (This)->lpVtbl -> Release(This)
  14813. #define ISpeechPhraseAlternate_GetTypeInfoCount(This,pctinfo) \
  14814. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14815. #define ISpeechPhraseAlternate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14816. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14817. #define ISpeechPhraseAlternate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14818. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14819. #define ISpeechPhraseAlternate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14820. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14821. #define ISpeechPhraseAlternate_get_RecoResult(This,RecoResult) \
  14822. (This)->lpVtbl -> get_RecoResult(This,RecoResult)
  14823. #define ISpeechPhraseAlternate_get_StartElementInResult(This,StartElement) \
  14824. (This)->lpVtbl -> get_StartElementInResult(This,StartElement)
  14825. #define ISpeechPhraseAlternate_get_NumberOfElementsInResult(This,NumberOfElements) \
  14826. (This)->lpVtbl -> get_NumberOfElementsInResult(This,NumberOfElements)
  14827. #define ISpeechPhraseAlternate_get_PhraseInfo(This,PhraseInfo) \
  14828. (This)->lpVtbl -> get_PhraseInfo(This,PhraseInfo)
  14829. #define ISpeechPhraseAlternate_Commit(This) \
  14830. (This)->lpVtbl -> Commit(This)
  14831. #endif /* COBJMACROS */
  14832. #endif /* C style interface */
  14833. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_RecoResult_Proxy(
  14834. ISpeechPhraseAlternate * This,
  14835. /* [retval][out] */ ISpeechRecoResult **RecoResult);
  14836. void __RPC_STUB ISpeechPhraseAlternate_get_RecoResult_Stub(
  14837. IRpcStubBuffer *This,
  14838. IRpcChannelBuffer *_pRpcChannelBuffer,
  14839. PRPC_MESSAGE _pRpcMessage,
  14840. DWORD *_pdwStubPhase);
  14841. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_StartElementInResult_Proxy(
  14842. ISpeechPhraseAlternate * This,
  14843. /* [retval][out] */ long *StartElement);
  14844. void __RPC_STUB ISpeechPhraseAlternate_get_StartElementInResult_Stub(
  14845. IRpcStubBuffer *This,
  14846. IRpcChannelBuffer *_pRpcChannelBuffer,
  14847. PRPC_MESSAGE _pRpcMessage,
  14848. DWORD *_pdwStubPhase);
  14849. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_NumberOfElementsInResult_Proxy(
  14850. ISpeechPhraseAlternate * This,
  14851. /* [retval][out] */ long *NumberOfElements);
  14852. void __RPC_STUB ISpeechPhraseAlternate_get_NumberOfElementsInResult_Stub(
  14853. IRpcStubBuffer *This,
  14854. IRpcChannelBuffer *_pRpcChannelBuffer,
  14855. PRPC_MESSAGE _pRpcMessage,
  14856. DWORD *_pdwStubPhase);
  14857. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_get_PhraseInfo_Proxy(
  14858. ISpeechPhraseAlternate * This,
  14859. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  14860. void __RPC_STUB ISpeechPhraseAlternate_get_PhraseInfo_Stub(
  14861. IRpcStubBuffer *This,
  14862. IRpcChannelBuffer *_pRpcChannelBuffer,
  14863. PRPC_MESSAGE _pRpcMessage,
  14864. DWORD *_pdwStubPhase);
  14865. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternate_Commit_Proxy(
  14866. ISpeechPhraseAlternate * This);
  14867. void __RPC_STUB ISpeechPhraseAlternate_Commit_Stub(
  14868. IRpcStubBuffer *This,
  14869. IRpcChannelBuffer *_pRpcChannelBuffer,
  14870. PRPC_MESSAGE _pRpcMessage,
  14871. DWORD *_pdwStubPhase);
  14872. #endif /* __ISpeechPhraseAlternate_INTERFACE_DEFINED__ */
  14873. #ifndef __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  14874. #define __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  14875. /* interface ISpeechPhraseAlternates */
  14876. /* [unique][helpstring][dual][uuid][object] */
  14877. EXTERN_C const IID IID_ISpeechPhraseAlternates;
  14878. #if defined(__cplusplus) && !defined(CINTERFACE)
  14879. MIDL_INTERFACE("B238B6D5-F276-4c3d-A6C1-2974801C3CC2")
  14880. ISpeechPhraseAlternates : public IDispatch
  14881. {
  14882. public:
  14883. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  14884. /* [retval][out] */ long *Count) = 0;
  14885. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  14886. /* [in] */ long Index,
  14887. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate) = 0;
  14888. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  14889. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  14890. };
  14891. #else /* C style interface */
  14892. typedef struct ISpeechPhraseAlternatesVtbl
  14893. {
  14894. BEGIN_INTERFACE
  14895. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  14896. ISpeechPhraseAlternates * This,
  14897. /* [in] */ REFIID riid,
  14898. /* [iid_is][out] */ void **ppvObject);
  14899. ULONG ( STDMETHODCALLTYPE *AddRef )(
  14900. ISpeechPhraseAlternates * This);
  14901. ULONG ( STDMETHODCALLTYPE *Release )(
  14902. ISpeechPhraseAlternates * This);
  14903. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  14904. ISpeechPhraseAlternates * This,
  14905. /* [out] */ UINT *pctinfo);
  14906. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  14907. ISpeechPhraseAlternates * This,
  14908. /* [in] */ UINT iTInfo,
  14909. /* [in] */ LCID lcid,
  14910. /* [out] */ ITypeInfo **ppTInfo);
  14911. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  14912. ISpeechPhraseAlternates * This,
  14913. /* [in] */ REFIID riid,
  14914. /* [size_is][in] */ LPOLESTR *rgszNames,
  14915. /* [in] */ UINT cNames,
  14916. /* [in] */ LCID lcid,
  14917. /* [size_is][out] */ DISPID *rgDispId);
  14918. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  14919. ISpeechPhraseAlternates * This,
  14920. /* [in] */ DISPID dispIdMember,
  14921. /* [in] */ REFIID riid,
  14922. /* [in] */ LCID lcid,
  14923. /* [in] */ WORD wFlags,
  14924. /* [out][in] */ DISPPARAMS *pDispParams,
  14925. /* [out] */ VARIANT *pVarResult,
  14926. /* [out] */ EXCEPINFO *pExcepInfo,
  14927. /* [out] */ UINT *puArgErr);
  14928. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  14929. ISpeechPhraseAlternates * This,
  14930. /* [retval][out] */ long *Count);
  14931. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  14932. ISpeechPhraseAlternates * This,
  14933. /* [in] */ long Index,
  14934. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate);
  14935. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  14936. ISpeechPhraseAlternates * This,
  14937. /* [retval][out] */ IUnknown **EnumVARIANT);
  14938. END_INTERFACE
  14939. } ISpeechPhraseAlternatesVtbl;
  14940. interface ISpeechPhraseAlternates
  14941. {
  14942. CONST_VTBL struct ISpeechPhraseAlternatesVtbl *lpVtbl;
  14943. };
  14944. #ifdef COBJMACROS
  14945. #define ISpeechPhraseAlternates_QueryInterface(This,riid,ppvObject) \
  14946. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  14947. #define ISpeechPhraseAlternates_AddRef(This) \
  14948. (This)->lpVtbl -> AddRef(This)
  14949. #define ISpeechPhraseAlternates_Release(This) \
  14950. (This)->lpVtbl -> Release(This)
  14951. #define ISpeechPhraseAlternates_GetTypeInfoCount(This,pctinfo) \
  14952. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  14953. #define ISpeechPhraseAlternates_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  14954. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14955. #define ISpeechPhraseAlternates_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  14956. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14957. #define ISpeechPhraseAlternates_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  14958. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14959. #define ISpeechPhraseAlternates_get_Count(This,Count) \
  14960. (This)->lpVtbl -> get_Count(This,Count)
  14961. #define ISpeechPhraseAlternates_Item(This,Index,PhraseAlternate) \
  14962. (This)->lpVtbl -> Item(This,Index,PhraseAlternate)
  14963. #define ISpeechPhraseAlternates_get__NewEnum(This,EnumVARIANT) \
  14964. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  14965. #endif /* COBJMACROS */
  14966. #endif /* C style interface */
  14967. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_get_Count_Proxy(
  14968. ISpeechPhraseAlternates * This,
  14969. /* [retval][out] */ long *Count);
  14970. void __RPC_STUB ISpeechPhraseAlternates_get_Count_Stub(
  14971. IRpcStubBuffer *This,
  14972. IRpcChannelBuffer *_pRpcChannelBuffer,
  14973. PRPC_MESSAGE _pRpcMessage,
  14974. DWORD *_pdwStubPhase);
  14975. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_Item_Proxy(
  14976. ISpeechPhraseAlternates * This,
  14977. /* [in] */ long Index,
  14978. /* [retval][out] */ ISpeechPhraseAlternate **PhraseAlternate);
  14979. void __RPC_STUB ISpeechPhraseAlternates_Item_Stub(
  14980. IRpcStubBuffer *This,
  14981. IRpcChannelBuffer *_pRpcChannelBuffer,
  14982. PRPC_MESSAGE _pRpcMessage,
  14983. DWORD *_pdwStubPhase);
  14984. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseAlternates_get__NewEnum_Proxy(
  14985. ISpeechPhraseAlternates * This,
  14986. /* [retval][out] */ IUnknown **EnumVARIANT);
  14987. void __RPC_STUB ISpeechPhraseAlternates_get__NewEnum_Stub(
  14988. IRpcStubBuffer *This,
  14989. IRpcChannelBuffer *_pRpcChannelBuffer,
  14990. PRPC_MESSAGE _pRpcMessage,
  14991. DWORD *_pdwStubPhase);
  14992. #endif /* __ISpeechPhraseAlternates_INTERFACE_DEFINED__ */
  14993. #ifndef __ISpeechPhraseInfo_INTERFACE_DEFINED__
  14994. #define __ISpeechPhraseInfo_INTERFACE_DEFINED__
  14995. /* interface ISpeechPhraseInfo */
  14996. /* [unique][helpstring][dual][uuid][object] */
  14997. EXTERN_C const IID IID_ISpeechPhraseInfo;
  14998. #if defined(__cplusplus) && !defined(CINTERFACE)
  14999. MIDL_INTERFACE("961559CF-4E67-4662-8BF0-D93F1FCD61B3")
  15000. ISpeechPhraseInfo : public IDispatch
  15001. {
  15002. public:
  15003. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageId(
  15004. /* [retval][out] */ long *LanguageId) = 0;
  15005. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_GrammarId(
  15006. /* [retval][out] */ VARIANT *GrammarId) = 0;
  15007. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime(
  15008. /* [retval][out] */ VARIANT *StartTime) = 0;
  15009. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStreamPosition(
  15010. /* [retval][out] */ VARIANT *AudioStreamPosition) = 0;
  15011. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  15012. /* [retval][out] */ long *pAudioSizeBytes) = 0;
  15013. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  15014. /* [retval][out] */ long *RetainedSizeBytes) = 0;
  15015. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  15016. /* [retval][out] */ long *AudioSizeTime) = 0;
  15017. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Rule(
  15018. /* [retval][out] */ ISpeechPhraseRule **Rule) = 0;
  15019. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Properties(
  15020. /* [retval][out] */ ISpeechPhraseProperties **Properties) = 0;
  15021. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Elements(
  15022. /* [retval][out] */ ISpeechPhraseElements **Elements) = 0;
  15023. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Replacements(
  15024. /* [retval][out] */ ISpeechPhraseReplacements **Replacements) = 0;
  15025. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineId(
  15026. /* [retval][out] */ BSTR *EngineIdGuid) = 0;
  15027. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EnginePrivateData(
  15028. /* [retval][out] */ VARIANT *PrivateData) = 0;
  15029. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE SaveToMemory(
  15030. /* [retval][out] */ VARIANT *PhraseBlock) = 0;
  15031. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetText(
  15032. /* [defaultvalue][in] */ long StartElement,
  15033. /* [defaultvalue][in] */ long Elements,
  15034. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15035. /* [retval][out] */ BSTR *Text) = 0;
  15036. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayAttributes(
  15037. /* [defaultvalue][in] */ long StartElement,
  15038. /* [defaultvalue][in] */ long Elements,
  15039. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15040. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15041. };
  15042. #else /* C style interface */
  15043. typedef struct ISpeechPhraseInfoVtbl
  15044. {
  15045. BEGIN_INTERFACE
  15046. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15047. ISpeechPhraseInfo * This,
  15048. /* [in] */ REFIID riid,
  15049. /* [iid_is][out] */ void **ppvObject);
  15050. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15051. ISpeechPhraseInfo * This);
  15052. ULONG ( STDMETHODCALLTYPE *Release )(
  15053. ISpeechPhraseInfo * This);
  15054. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15055. ISpeechPhraseInfo * This,
  15056. /* [out] */ UINT *pctinfo);
  15057. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15058. ISpeechPhraseInfo * This,
  15059. /* [in] */ UINT iTInfo,
  15060. /* [in] */ LCID lcid,
  15061. /* [out] */ ITypeInfo **ppTInfo);
  15062. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15063. ISpeechPhraseInfo * This,
  15064. /* [in] */ REFIID riid,
  15065. /* [size_is][in] */ LPOLESTR *rgszNames,
  15066. /* [in] */ UINT cNames,
  15067. /* [in] */ LCID lcid,
  15068. /* [size_is][out] */ DISPID *rgDispId);
  15069. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15070. ISpeechPhraseInfo * This,
  15071. /* [in] */ DISPID dispIdMember,
  15072. /* [in] */ REFIID riid,
  15073. /* [in] */ LCID lcid,
  15074. /* [in] */ WORD wFlags,
  15075. /* [out][in] */ DISPPARAMS *pDispParams,
  15076. /* [out] */ VARIANT *pVarResult,
  15077. /* [out] */ EXCEPINFO *pExcepInfo,
  15078. /* [out] */ UINT *puArgErr);
  15079. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageId )(
  15080. ISpeechPhraseInfo * This,
  15081. /* [retval][out] */ long *LanguageId);
  15082. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GrammarId )(
  15083. ISpeechPhraseInfo * This,
  15084. /* [retval][out] */ VARIANT *GrammarId);
  15085. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )(
  15086. ISpeechPhraseInfo * This,
  15087. /* [retval][out] */ VARIANT *StartTime);
  15088. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStreamPosition )(
  15089. ISpeechPhraseInfo * This,
  15090. /* [retval][out] */ VARIANT *AudioStreamPosition);
  15091. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeBytes )(
  15092. ISpeechPhraseInfo * This,
  15093. /* [retval][out] */ long *pAudioSizeBytes);
  15094. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedSizeBytes )(
  15095. ISpeechPhraseInfo * This,
  15096. /* [retval][out] */ long *RetainedSizeBytes);
  15097. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeTime )(
  15098. ISpeechPhraseInfo * This,
  15099. /* [retval][out] */ long *AudioSizeTime);
  15100. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rule )(
  15101. ISpeechPhraseInfo * This,
  15102. /* [retval][out] */ ISpeechPhraseRule **Rule);
  15103. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )(
  15104. ISpeechPhraseInfo * This,
  15105. /* [retval][out] */ ISpeechPhraseProperties **Properties);
  15106. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Elements )(
  15107. ISpeechPhraseInfo * This,
  15108. /* [retval][out] */ ISpeechPhraseElements **Elements);
  15109. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Replacements )(
  15110. ISpeechPhraseInfo * This,
  15111. /* [retval][out] */ ISpeechPhraseReplacements **Replacements);
  15112. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineId )(
  15113. ISpeechPhraseInfo * This,
  15114. /* [retval][out] */ BSTR *EngineIdGuid);
  15115. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnginePrivateData )(
  15116. ISpeechPhraseInfo * This,
  15117. /* [retval][out] */ VARIANT *PrivateData);
  15118. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *SaveToMemory )(
  15119. ISpeechPhraseInfo * This,
  15120. /* [retval][out] */ VARIANT *PhraseBlock);
  15121. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetText )(
  15122. ISpeechPhraseInfo * This,
  15123. /* [defaultvalue][in] */ long StartElement,
  15124. /* [defaultvalue][in] */ long Elements,
  15125. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15126. /* [retval][out] */ BSTR *Text);
  15127. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDisplayAttributes )(
  15128. ISpeechPhraseInfo * This,
  15129. /* [defaultvalue][in] */ long StartElement,
  15130. /* [defaultvalue][in] */ long Elements,
  15131. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15132. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15133. END_INTERFACE
  15134. } ISpeechPhraseInfoVtbl;
  15135. interface ISpeechPhraseInfo
  15136. {
  15137. CONST_VTBL struct ISpeechPhraseInfoVtbl *lpVtbl;
  15138. };
  15139. #ifdef COBJMACROS
  15140. #define ISpeechPhraseInfo_QueryInterface(This,riid,ppvObject) \
  15141. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15142. #define ISpeechPhraseInfo_AddRef(This) \
  15143. (This)->lpVtbl -> AddRef(This)
  15144. #define ISpeechPhraseInfo_Release(This) \
  15145. (This)->lpVtbl -> Release(This)
  15146. #define ISpeechPhraseInfo_GetTypeInfoCount(This,pctinfo) \
  15147. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15148. #define ISpeechPhraseInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15149. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15150. #define ISpeechPhraseInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15151. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15152. #define ISpeechPhraseInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15153. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15154. #define ISpeechPhraseInfo_get_LanguageId(This,LanguageId) \
  15155. (This)->lpVtbl -> get_LanguageId(This,LanguageId)
  15156. #define ISpeechPhraseInfo_get_GrammarId(This,GrammarId) \
  15157. (This)->lpVtbl -> get_GrammarId(This,GrammarId)
  15158. #define ISpeechPhraseInfo_get_StartTime(This,StartTime) \
  15159. (This)->lpVtbl -> get_StartTime(This,StartTime)
  15160. #define ISpeechPhraseInfo_get_AudioStreamPosition(This,AudioStreamPosition) \
  15161. (This)->lpVtbl -> get_AudioStreamPosition(This,AudioStreamPosition)
  15162. #define ISpeechPhraseInfo_get_AudioSizeBytes(This,pAudioSizeBytes) \
  15163. (This)->lpVtbl -> get_AudioSizeBytes(This,pAudioSizeBytes)
  15164. #define ISpeechPhraseInfo_get_RetainedSizeBytes(This,RetainedSizeBytes) \
  15165. (This)->lpVtbl -> get_RetainedSizeBytes(This,RetainedSizeBytes)
  15166. #define ISpeechPhraseInfo_get_AudioSizeTime(This,AudioSizeTime) \
  15167. (This)->lpVtbl -> get_AudioSizeTime(This,AudioSizeTime)
  15168. #define ISpeechPhraseInfo_get_Rule(This,Rule) \
  15169. (This)->lpVtbl -> get_Rule(This,Rule)
  15170. #define ISpeechPhraseInfo_get_Properties(This,Properties) \
  15171. (This)->lpVtbl -> get_Properties(This,Properties)
  15172. #define ISpeechPhraseInfo_get_Elements(This,Elements) \
  15173. (This)->lpVtbl -> get_Elements(This,Elements)
  15174. #define ISpeechPhraseInfo_get_Replacements(This,Replacements) \
  15175. (This)->lpVtbl -> get_Replacements(This,Replacements)
  15176. #define ISpeechPhraseInfo_get_EngineId(This,EngineIdGuid) \
  15177. (This)->lpVtbl -> get_EngineId(This,EngineIdGuid)
  15178. #define ISpeechPhraseInfo_get_EnginePrivateData(This,PrivateData) \
  15179. (This)->lpVtbl -> get_EnginePrivateData(This,PrivateData)
  15180. #define ISpeechPhraseInfo_SaveToMemory(This,PhraseBlock) \
  15181. (This)->lpVtbl -> SaveToMemory(This,PhraseBlock)
  15182. #define ISpeechPhraseInfo_GetText(This,StartElement,Elements,UseReplacements,Text) \
  15183. (This)->lpVtbl -> GetText(This,StartElement,Elements,UseReplacements,Text)
  15184. #define ISpeechPhraseInfo_GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes) \
  15185. (This)->lpVtbl -> GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes)
  15186. #endif /* COBJMACROS */
  15187. #endif /* C style interface */
  15188. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_LanguageId_Proxy(
  15189. ISpeechPhraseInfo * This,
  15190. /* [retval][out] */ long *LanguageId);
  15191. void __RPC_STUB ISpeechPhraseInfo_get_LanguageId_Stub(
  15192. IRpcStubBuffer *This,
  15193. IRpcChannelBuffer *_pRpcChannelBuffer,
  15194. PRPC_MESSAGE _pRpcMessage,
  15195. DWORD *_pdwStubPhase);
  15196. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_GrammarId_Proxy(
  15197. ISpeechPhraseInfo * This,
  15198. /* [retval][out] */ VARIANT *GrammarId);
  15199. void __RPC_STUB ISpeechPhraseInfo_get_GrammarId_Stub(
  15200. IRpcStubBuffer *This,
  15201. IRpcChannelBuffer *_pRpcChannelBuffer,
  15202. PRPC_MESSAGE _pRpcMessage,
  15203. DWORD *_pdwStubPhase);
  15204. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_StartTime_Proxy(
  15205. ISpeechPhraseInfo * This,
  15206. /* [retval][out] */ VARIANT *StartTime);
  15207. void __RPC_STUB ISpeechPhraseInfo_get_StartTime_Stub(
  15208. IRpcStubBuffer *This,
  15209. IRpcChannelBuffer *_pRpcChannelBuffer,
  15210. PRPC_MESSAGE _pRpcMessage,
  15211. DWORD *_pdwStubPhase);
  15212. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioStreamPosition_Proxy(
  15213. ISpeechPhraseInfo * This,
  15214. /* [retval][out] */ VARIANT *AudioStreamPosition);
  15215. void __RPC_STUB ISpeechPhraseInfo_get_AudioStreamPosition_Stub(
  15216. IRpcStubBuffer *This,
  15217. IRpcChannelBuffer *_pRpcChannelBuffer,
  15218. PRPC_MESSAGE _pRpcMessage,
  15219. DWORD *_pdwStubPhase);
  15220. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioSizeBytes_Proxy(
  15221. ISpeechPhraseInfo * This,
  15222. /* [retval][out] */ long *pAudioSizeBytes);
  15223. void __RPC_STUB ISpeechPhraseInfo_get_AudioSizeBytes_Stub(
  15224. IRpcStubBuffer *This,
  15225. IRpcChannelBuffer *_pRpcChannelBuffer,
  15226. PRPC_MESSAGE _pRpcMessage,
  15227. DWORD *_pdwStubPhase);
  15228. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_RetainedSizeBytes_Proxy(
  15229. ISpeechPhraseInfo * This,
  15230. /* [retval][out] */ long *RetainedSizeBytes);
  15231. void __RPC_STUB ISpeechPhraseInfo_get_RetainedSizeBytes_Stub(
  15232. IRpcStubBuffer *This,
  15233. IRpcChannelBuffer *_pRpcChannelBuffer,
  15234. PRPC_MESSAGE _pRpcMessage,
  15235. DWORD *_pdwStubPhase);
  15236. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_AudioSizeTime_Proxy(
  15237. ISpeechPhraseInfo * This,
  15238. /* [retval][out] */ long *AudioSizeTime);
  15239. void __RPC_STUB ISpeechPhraseInfo_get_AudioSizeTime_Stub(
  15240. IRpcStubBuffer *This,
  15241. IRpcChannelBuffer *_pRpcChannelBuffer,
  15242. PRPC_MESSAGE _pRpcMessage,
  15243. DWORD *_pdwStubPhase);
  15244. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Rule_Proxy(
  15245. ISpeechPhraseInfo * This,
  15246. /* [retval][out] */ ISpeechPhraseRule **Rule);
  15247. void __RPC_STUB ISpeechPhraseInfo_get_Rule_Stub(
  15248. IRpcStubBuffer *This,
  15249. IRpcChannelBuffer *_pRpcChannelBuffer,
  15250. PRPC_MESSAGE _pRpcMessage,
  15251. DWORD *_pdwStubPhase);
  15252. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Properties_Proxy(
  15253. ISpeechPhraseInfo * This,
  15254. /* [retval][out] */ ISpeechPhraseProperties **Properties);
  15255. void __RPC_STUB ISpeechPhraseInfo_get_Properties_Stub(
  15256. IRpcStubBuffer *This,
  15257. IRpcChannelBuffer *_pRpcChannelBuffer,
  15258. PRPC_MESSAGE _pRpcMessage,
  15259. DWORD *_pdwStubPhase);
  15260. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Elements_Proxy(
  15261. ISpeechPhraseInfo * This,
  15262. /* [retval][out] */ ISpeechPhraseElements **Elements);
  15263. void __RPC_STUB ISpeechPhraseInfo_get_Elements_Stub(
  15264. IRpcStubBuffer *This,
  15265. IRpcChannelBuffer *_pRpcChannelBuffer,
  15266. PRPC_MESSAGE _pRpcMessage,
  15267. DWORD *_pdwStubPhase);
  15268. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_Replacements_Proxy(
  15269. ISpeechPhraseInfo * This,
  15270. /* [retval][out] */ ISpeechPhraseReplacements **Replacements);
  15271. void __RPC_STUB ISpeechPhraseInfo_get_Replacements_Stub(
  15272. IRpcStubBuffer *This,
  15273. IRpcChannelBuffer *_pRpcChannelBuffer,
  15274. PRPC_MESSAGE _pRpcMessage,
  15275. DWORD *_pdwStubPhase);
  15276. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_EngineId_Proxy(
  15277. ISpeechPhraseInfo * This,
  15278. /* [retval][out] */ BSTR *EngineIdGuid);
  15279. void __RPC_STUB ISpeechPhraseInfo_get_EngineId_Stub(
  15280. IRpcStubBuffer *This,
  15281. IRpcChannelBuffer *_pRpcChannelBuffer,
  15282. PRPC_MESSAGE _pRpcMessage,
  15283. DWORD *_pdwStubPhase);
  15284. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_get_EnginePrivateData_Proxy(
  15285. ISpeechPhraseInfo * This,
  15286. /* [retval][out] */ VARIANT *PrivateData);
  15287. void __RPC_STUB ISpeechPhraseInfo_get_EnginePrivateData_Stub(
  15288. IRpcStubBuffer *This,
  15289. IRpcChannelBuffer *_pRpcChannelBuffer,
  15290. PRPC_MESSAGE _pRpcMessage,
  15291. DWORD *_pdwStubPhase);
  15292. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_SaveToMemory_Proxy(
  15293. ISpeechPhraseInfo * This,
  15294. /* [retval][out] */ VARIANT *PhraseBlock);
  15295. void __RPC_STUB ISpeechPhraseInfo_SaveToMemory_Stub(
  15296. IRpcStubBuffer *This,
  15297. IRpcChannelBuffer *_pRpcChannelBuffer,
  15298. PRPC_MESSAGE _pRpcMessage,
  15299. DWORD *_pdwStubPhase);
  15300. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_GetText_Proxy(
  15301. ISpeechPhraseInfo * This,
  15302. /* [defaultvalue][in] */ long StartElement,
  15303. /* [defaultvalue][in] */ long Elements,
  15304. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15305. /* [retval][out] */ BSTR *Text);
  15306. void __RPC_STUB ISpeechPhraseInfo_GetText_Stub(
  15307. IRpcStubBuffer *This,
  15308. IRpcChannelBuffer *_pRpcChannelBuffer,
  15309. PRPC_MESSAGE _pRpcMessage,
  15310. DWORD *_pdwStubPhase);
  15311. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfo_GetDisplayAttributes_Proxy(
  15312. ISpeechPhraseInfo * This,
  15313. /* [defaultvalue][in] */ long StartElement,
  15314. /* [defaultvalue][in] */ long Elements,
  15315. /* [defaultvalue][in] */ VARIANT_BOOL UseReplacements,
  15316. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15317. void __RPC_STUB ISpeechPhraseInfo_GetDisplayAttributes_Stub(
  15318. IRpcStubBuffer *This,
  15319. IRpcChannelBuffer *_pRpcChannelBuffer,
  15320. PRPC_MESSAGE _pRpcMessage,
  15321. DWORD *_pdwStubPhase);
  15322. #endif /* __ISpeechPhraseInfo_INTERFACE_DEFINED__ */
  15323. #ifndef __ISpeechPhraseElement_INTERFACE_DEFINED__
  15324. #define __ISpeechPhraseElement_INTERFACE_DEFINED__
  15325. /* interface ISpeechPhraseElement */
  15326. /* [unique][helpstring][dual][uuid][object] */
  15327. EXTERN_C const IID IID_ISpeechPhraseElement;
  15328. #if defined(__cplusplus) && !defined(CINTERFACE)
  15329. MIDL_INTERFACE("E6176F96-E373-4801-B223-3B62C068C0B4")
  15330. ISpeechPhraseElement : public IDispatch
  15331. {
  15332. public:
  15333. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioTimeOffset(
  15334. /* [retval][out] */ long *AudioTimeOffset) = 0;
  15335. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  15336. /* [retval][out] */ long *AudioSizeTime) = 0;
  15337. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioStreamOffset(
  15338. /* [retval][out] */ long *AudioStreamOffset) = 0;
  15339. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  15340. /* [retval][out] */ long *AudioSizeBytes) = 0;
  15341. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedStreamOffset(
  15342. /* [retval][out] */ long *RetainedStreamOffset) = 0;
  15343. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  15344. /* [retval][out] */ long *RetainedSizeBytes) = 0;
  15345. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayText(
  15346. /* [retval][out] */ BSTR *DisplayText) = 0;
  15347. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LexicalForm(
  15348. /* [retval][out] */ BSTR *LexicalForm) = 0;
  15349. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Pronunciation(
  15350. /* [retval][out] */ VARIANT *Pronunciation) = 0;
  15351. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  15352. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15353. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RequiredConfidence(
  15354. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence) = 0;
  15355. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ActualConfidence(
  15356. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence) = 0;
  15357. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  15358. /* [retval][out] */ float *EngineConfidence) = 0;
  15359. };
  15360. #else /* C style interface */
  15361. typedef struct ISpeechPhraseElementVtbl
  15362. {
  15363. BEGIN_INTERFACE
  15364. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15365. ISpeechPhraseElement * This,
  15366. /* [in] */ REFIID riid,
  15367. /* [iid_is][out] */ void **ppvObject);
  15368. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15369. ISpeechPhraseElement * This);
  15370. ULONG ( STDMETHODCALLTYPE *Release )(
  15371. ISpeechPhraseElement * This);
  15372. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15373. ISpeechPhraseElement * This,
  15374. /* [out] */ UINT *pctinfo);
  15375. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15376. ISpeechPhraseElement * This,
  15377. /* [in] */ UINT iTInfo,
  15378. /* [in] */ LCID lcid,
  15379. /* [out] */ ITypeInfo **ppTInfo);
  15380. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15381. ISpeechPhraseElement * This,
  15382. /* [in] */ REFIID riid,
  15383. /* [size_is][in] */ LPOLESTR *rgszNames,
  15384. /* [in] */ UINT cNames,
  15385. /* [in] */ LCID lcid,
  15386. /* [size_is][out] */ DISPID *rgDispId);
  15387. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15388. ISpeechPhraseElement * This,
  15389. /* [in] */ DISPID dispIdMember,
  15390. /* [in] */ REFIID riid,
  15391. /* [in] */ LCID lcid,
  15392. /* [in] */ WORD wFlags,
  15393. /* [out][in] */ DISPPARAMS *pDispParams,
  15394. /* [out] */ VARIANT *pVarResult,
  15395. /* [out] */ EXCEPINFO *pExcepInfo,
  15396. /* [out] */ UINT *puArgErr);
  15397. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioTimeOffset )(
  15398. ISpeechPhraseElement * This,
  15399. /* [retval][out] */ long *AudioTimeOffset);
  15400. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeTime )(
  15401. ISpeechPhraseElement * This,
  15402. /* [retval][out] */ long *AudioSizeTime);
  15403. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioStreamOffset )(
  15404. ISpeechPhraseElement * This,
  15405. /* [retval][out] */ long *AudioStreamOffset);
  15406. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioSizeBytes )(
  15407. ISpeechPhraseElement * This,
  15408. /* [retval][out] */ long *AudioSizeBytes);
  15409. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedStreamOffset )(
  15410. ISpeechPhraseElement * This,
  15411. /* [retval][out] */ long *RetainedStreamOffset);
  15412. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainedSizeBytes )(
  15413. ISpeechPhraseElement * This,
  15414. /* [retval][out] */ long *RetainedSizeBytes);
  15415. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayText )(
  15416. ISpeechPhraseElement * This,
  15417. /* [retval][out] */ BSTR *DisplayText);
  15418. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LexicalForm )(
  15419. ISpeechPhraseElement * This,
  15420. /* [retval][out] */ BSTR *LexicalForm);
  15421. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pronunciation )(
  15422. ISpeechPhraseElement * This,
  15423. /* [retval][out] */ VARIANT *Pronunciation);
  15424. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayAttributes )(
  15425. ISpeechPhraseElement * This,
  15426. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15427. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequiredConfidence )(
  15428. ISpeechPhraseElement * This,
  15429. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence);
  15430. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActualConfidence )(
  15431. ISpeechPhraseElement * This,
  15432. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  15433. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  15434. ISpeechPhraseElement * This,
  15435. /* [retval][out] */ float *EngineConfidence);
  15436. END_INTERFACE
  15437. } ISpeechPhraseElementVtbl;
  15438. interface ISpeechPhraseElement
  15439. {
  15440. CONST_VTBL struct ISpeechPhraseElementVtbl *lpVtbl;
  15441. };
  15442. #ifdef COBJMACROS
  15443. #define ISpeechPhraseElement_QueryInterface(This,riid,ppvObject) \
  15444. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15445. #define ISpeechPhraseElement_AddRef(This) \
  15446. (This)->lpVtbl -> AddRef(This)
  15447. #define ISpeechPhraseElement_Release(This) \
  15448. (This)->lpVtbl -> Release(This)
  15449. #define ISpeechPhraseElement_GetTypeInfoCount(This,pctinfo) \
  15450. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15451. #define ISpeechPhraseElement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15452. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15453. #define ISpeechPhraseElement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15454. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15455. #define ISpeechPhraseElement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15456. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15457. #define ISpeechPhraseElement_get_AudioTimeOffset(This,AudioTimeOffset) \
  15458. (This)->lpVtbl -> get_AudioTimeOffset(This,AudioTimeOffset)
  15459. #define ISpeechPhraseElement_get_AudioSizeTime(This,AudioSizeTime) \
  15460. (This)->lpVtbl -> get_AudioSizeTime(This,AudioSizeTime)
  15461. #define ISpeechPhraseElement_get_AudioStreamOffset(This,AudioStreamOffset) \
  15462. (This)->lpVtbl -> get_AudioStreamOffset(This,AudioStreamOffset)
  15463. #define ISpeechPhraseElement_get_AudioSizeBytes(This,AudioSizeBytes) \
  15464. (This)->lpVtbl -> get_AudioSizeBytes(This,AudioSizeBytes)
  15465. #define ISpeechPhraseElement_get_RetainedStreamOffset(This,RetainedStreamOffset) \
  15466. (This)->lpVtbl -> get_RetainedStreamOffset(This,RetainedStreamOffset)
  15467. #define ISpeechPhraseElement_get_RetainedSizeBytes(This,RetainedSizeBytes) \
  15468. (This)->lpVtbl -> get_RetainedSizeBytes(This,RetainedSizeBytes)
  15469. #define ISpeechPhraseElement_get_DisplayText(This,DisplayText) \
  15470. (This)->lpVtbl -> get_DisplayText(This,DisplayText)
  15471. #define ISpeechPhraseElement_get_LexicalForm(This,LexicalForm) \
  15472. (This)->lpVtbl -> get_LexicalForm(This,LexicalForm)
  15473. #define ISpeechPhraseElement_get_Pronunciation(This,Pronunciation) \
  15474. (This)->lpVtbl -> get_Pronunciation(This,Pronunciation)
  15475. #define ISpeechPhraseElement_get_DisplayAttributes(This,DisplayAttributes) \
  15476. (This)->lpVtbl -> get_DisplayAttributes(This,DisplayAttributes)
  15477. #define ISpeechPhraseElement_get_RequiredConfidence(This,RequiredConfidence) \
  15478. (This)->lpVtbl -> get_RequiredConfidence(This,RequiredConfidence)
  15479. #define ISpeechPhraseElement_get_ActualConfidence(This,ActualConfidence) \
  15480. (This)->lpVtbl -> get_ActualConfidence(This,ActualConfidence)
  15481. #define ISpeechPhraseElement_get_EngineConfidence(This,EngineConfidence) \
  15482. (This)->lpVtbl -> get_EngineConfidence(This,EngineConfidence)
  15483. #endif /* COBJMACROS */
  15484. #endif /* C style interface */
  15485. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioTimeOffset_Proxy(
  15486. ISpeechPhraseElement * This,
  15487. /* [retval][out] */ long *AudioTimeOffset);
  15488. void __RPC_STUB ISpeechPhraseElement_get_AudioTimeOffset_Stub(
  15489. IRpcStubBuffer *This,
  15490. IRpcChannelBuffer *_pRpcChannelBuffer,
  15491. PRPC_MESSAGE _pRpcMessage,
  15492. DWORD *_pdwStubPhase);
  15493. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioSizeTime_Proxy(
  15494. ISpeechPhraseElement * This,
  15495. /* [retval][out] */ long *AudioSizeTime);
  15496. void __RPC_STUB ISpeechPhraseElement_get_AudioSizeTime_Stub(
  15497. IRpcStubBuffer *This,
  15498. IRpcChannelBuffer *_pRpcChannelBuffer,
  15499. PRPC_MESSAGE _pRpcMessage,
  15500. DWORD *_pdwStubPhase);
  15501. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioStreamOffset_Proxy(
  15502. ISpeechPhraseElement * This,
  15503. /* [retval][out] */ long *AudioStreamOffset);
  15504. void __RPC_STUB ISpeechPhraseElement_get_AudioStreamOffset_Stub(
  15505. IRpcStubBuffer *This,
  15506. IRpcChannelBuffer *_pRpcChannelBuffer,
  15507. PRPC_MESSAGE _pRpcMessage,
  15508. DWORD *_pdwStubPhase);
  15509. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_AudioSizeBytes_Proxy(
  15510. ISpeechPhraseElement * This,
  15511. /* [retval][out] */ long *AudioSizeBytes);
  15512. void __RPC_STUB ISpeechPhraseElement_get_AudioSizeBytes_Stub(
  15513. IRpcStubBuffer *This,
  15514. IRpcChannelBuffer *_pRpcChannelBuffer,
  15515. PRPC_MESSAGE _pRpcMessage,
  15516. DWORD *_pdwStubPhase);
  15517. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RetainedStreamOffset_Proxy(
  15518. ISpeechPhraseElement * This,
  15519. /* [retval][out] */ long *RetainedStreamOffset);
  15520. void __RPC_STUB ISpeechPhraseElement_get_RetainedStreamOffset_Stub(
  15521. IRpcStubBuffer *This,
  15522. IRpcChannelBuffer *_pRpcChannelBuffer,
  15523. PRPC_MESSAGE _pRpcMessage,
  15524. DWORD *_pdwStubPhase);
  15525. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RetainedSizeBytes_Proxy(
  15526. ISpeechPhraseElement * This,
  15527. /* [retval][out] */ long *RetainedSizeBytes);
  15528. void __RPC_STUB ISpeechPhraseElement_get_RetainedSizeBytes_Stub(
  15529. IRpcStubBuffer *This,
  15530. IRpcChannelBuffer *_pRpcChannelBuffer,
  15531. PRPC_MESSAGE _pRpcMessage,
  15532. DWORD *_pdwStubPhase);
  15533. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_DisplayText_Proxy(
  15534. ISpeechPhraseElement * This,
  15535. /* [retval][out] */ BSTR *DisplayText);
  15536. void __RPC_STUB ISpeechPhraseElement_get_DisplayText_Stub(
  15537. IRpcStubBuffer *This,
  15538. IRpcChannelBuffer *_pRpcChannelBuffer,
  15539. PRPC_MESSAGE _pRpcMessage,
  15540. DWORD *_pdwStubPhase);
  15541. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_LexicalForm_Proxy(
  15542. ISpeechPhraseElement * This,
  15543. /* [retval][out] */ BSTR *LexicalForm);
  15544. void __RPC_STUB ISpeechPhraseElement_get_LexicalForm_Stub(
  15545. IRpcStubBuffer *This,
  15546. IRpcChannelBuffer *_pRpcChannelBuffer,
  15547. PRPC_MESSAGE _pRpcMessage,
  15548. DWORD *_pdwStubPhase);
  15549. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_Pronunciation_Proxy(
  15550. ISpeechPhraseElement * This,
  15551. /* [retval][out] */ VARIANT *Pronunciation);
  15552. void __RPC_STUB ISpeechPhraseElement_get_Pronunciation_Stub(
  15553. IRpcStubBuffer *This,
  15554. IRpcChannelBuffer *_pRpcChannelBuffer,
  15555. PRPC_MESSAGE _pRpcMessage,
  15556. DWORD *_pdwStubPhase);
  15557. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_DisplayAttributes_Proxy(
  15558. ISpeechPhraseElement * This,
  15559. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15560. void __RPC_STUB ISpeechPhraseElement_get_DisplayAttributes_Stub(
  15561. IRpcStubBuffer *This,
  15562. IRpcChannelBuffer *_pRpcChannelBuffer,
  15563. PRPC_MESSAGE _pRpcMessage,
  15564. DWORD *_pdwStubPhase);
  15565. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_RequiredConfidence_Proxy(
  15566. ISpeechPhraseElement * This,
  15567. /* [retval][out] */ SpeechEngineConfidence *RequiredConfidence);
  15568. void __RPC_STUB ISpeechPhraseElement_get_RequiredConfidence_Stub(
  15569. IRpcStubBuffer *This,
  15570. IRpcChannelBuffer *_pRpcChannelBuffer,
  15571. PRPC_MESSAGE _pRpcMessage,
  15572. DWORD *_pdwStubPhase);
  15573. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_ActualConfidence_Proxy(
  15574. ISpeechPhraseElement * This,
  15575. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  15576. void __RPC_STUB ISpeechPhraseElement_get_ActualConfidence_Stub(
  15577. IRpcStubBuffer *This,
  15578. IRpcChannelBuffer *_pRpcChannelBuffer,
  15579. PRPC_MESSAGE _pRpcMessage,
  15580. DWORD *_pdwStubPhase);
  15581. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElement_get_EngineConfidence_Proxy(
  15582. ISpeechPhraseElement * This,
  15583. /* [retval][out] */ float *EngineConfidence);
  15584. void __RPC_STUB ISpeechPhraseElement_get_EngineConfidence_Stub(
  15585. IRpcStubBuffer *This,
  15586. IRpcChannelBuffer *_pRpcChannelBuffer,
  15587. PRPC_MESSAGE _pRpcMessage,
  15588. DWORD *_pdwStubPhase);
  15589. #endif /* __ISpeechPhraseElement_INTERFACE_DEFINED__ */
  15590. #ifndef __ISpeechPhraseElements_INTERFACE_DEFINED__
  15591. #define __ISpeechPhraseElements_INTERFACE_DEFINED__
  15592. /* interface ISpeechPhraseElements */
  15593. /* [unique][helpstring][dual][uuid][object] */
  15594. EXTERN_C const IID IID_ISpeechPhraseElements;
  15595. #if defined(__cplusplus) && !defined(CINTERFACE)
  15596. MIDL_INTERFACE("0626B328-3478-467d-A0B3-D0853B93DDA3")
  15597. ISpeechPhraseElements : public IDispatch
  15598. {
  15599. public:
  15600. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  15601. /* [retval][out] */ long *Count) = 0;
  15602. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  15603. /* [in] */ long Index,
  15604. /* [retval][out] */ ISpeechPhraseElement **Element) = 0;
  15605. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  15606. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  15607. };
  15608. #else /* C style interface */
  15609. typedef struct ISpeechPhraseElementsVtbl
  15610. {
  15611. BEGIN_INTERFACE
  15612. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15613. ISpeechPhraseElements * This,
  15614. /* [in] */ REFIID riid,
  15615. /* [iid_is][out] */ void **ppvObject);
  15616. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15617. ISpeechPhraseElements * This);
  15618. ULONG ( STDMETHODCALLTYPE *Release )(
  15619. ISpeechPhraseElements * This);
  15620. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15621. ISpeechPhraseElements * This,
  15622. /* [out] */ UINT *pctinfo);
  15623. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15624. ISpeechPhraseElements * This,
  15625. /* [in] */ UINT iTInfo,
  15626. /* [in] */ LCID lcid,
  15627. /* [out] */ ITypeInfo **ppTInfo);
  15628. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15629. ISpeechPhraseElements * This,
  15630. /* [in] */ REFIID riid,
  15631. /* [size_is][in] */ LPOLESTR *rgszNames,
  15632. /* [in] */ UINT cNames,
  15633. /* [in] */ LCID lcid,
  15634. /* [size_is][out] */ DISPID *rgDispId);
  15635. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15636. ISpeechPhraseElements * This,
  15637. /* [in] */ DISPID dispIdMember,
  15638. /* [in] */ REFIID riid,
  15639. /* [in] */ LCID lcid,
  15640. /* [in] */ WORD wFlags,
  15641. /* [out][in] */ DISPPARAMS *pDispParams,
  15642. /* [out] */ VARIANT *pVarResult,
  15643. /* [out] */ EXCEPINFO *pExcepInfo,
  15644. /* [out] */ UINT *puArgErr);
  15645. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  15646. ISpeechPhraseElements * This,
  15647. /* [retval][out] */ long *Count);
  15648. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  15649. ISpeechPhraseElements * This,
  15650. /* [in] */ long Index,
  15651. /* [retval][out] */ ISpeechPhraseElement **Element);
  15652. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  15653. ISpeechPhraseElements * This,
  15654. /* [retval][out] */ IUnknown **EnumVARIANT);
  15655. END_INTERFACE
  15656. } ISpeechPhraseElementsVtbl;
  15657. interface ISpeechPhraseElements
  15658. {
  15659. CONST_VTBL struct ISpeechPhraseElementsVtbl *lpVtbl;
  15660. };
  15661. #ifdef COBJMACROS
  15662. #define ISpeechPhraseElements_QueryInterface(This,riid,ppvObject) \
  15663. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15664. #define ISpeechPhraseElements_AddRef(This) \
  15665. (This)->lpVtbl -> AddRef(This)
  15666. #define ISpeechPhraseElements_Release(This) \
  15667. (This)->lpVtbl -> Release(This)
  15668. #define ISpeechPhraseElements_GetTypeInfoCount(This,pctinfo) \
  15669. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15670. #define ISpeechPhraseElements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15671. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15672. #define ISpeechPhraseElements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15673. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15674. #define ISpeechPhraseElements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15675. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15676. #define ISpeechPhraseElements_get_Count(This,Count) \
  15677. (This)->lpVtbl -> get_Count(This,Count)
  15678. #define ISpeechPhraseElements_Item(This,Index,Element) \
  15679. (This)->lpVtbl -> Item(This,Index,Element)
  15680. #define ISpeechPhraseElements_get__NewEnum(This,EnumVARIANT) \
  15681. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  15682. #endif /* COBJMACROS */
  15683. #endif /* C style interface */
  15684. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_get_Count_Proxy(
  15685. ISpeechPhraseElements * This,
  15686. /* [retval][out] */ long *Count);
  15687. void __RPC_STUB ISpeechPhraseElements_get_Count_Stub(
  15688. IRpcStubBuffer *This,
  15689. IRpcChannelBuffer *_pRpcChannelBuffer,
  15690. PRPC_MESSAGE _pRpcMessage,
  15691. DWORD *_pdwStubPhase);
  15692. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_Item_Proxy(
  15693. ISpeechPhraseElements * This,
  15694. /* [in] */ long Index,
  15695. /* [retval][out] */ ISpeechPhraseElement **Element);
  15696. void __RPC_STUB ISpeechPhraseElements_Item_Stub(
  15697. IRpcStubBuffer *This,
  15698. IRpcChannelBuffer *_pRpcChannelBuffer,
  15699. PRPC_MESSAGE _pRpcMessage,
  15700. DWORD *_pdwStubPhase);
  15701. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseElements_get__NewEnum_Proxy(
  15702. ISpeechPhraseElements * This,
  15703. /* [retval][out] */ IUnknown **EnumVARIANT);
  15704. void __RPC_STUB ISpeechPhraseElements_get__NewEnum_Stub(
  15705. IRpcStubBuffer *This,
  15706. IRpcChannelBuffer *_pRpcChannelBuffer,
  15707. PRPC_MESSAGE _pRpcMessage,
  15708. DWORD *_pdwStubPhase);
  15709. #endif /* __ISpeechPhraseElements_INTERFACE_DEFINED__ */
  15710. #ifndef __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  15711. #define __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  15712. /* interface ISpeechPhraseReplacement */
  15713. /* [unique][helpstring][dual][uuid][object] */
  15714. EXTERN_C const IID IID_ISpeechPhraseReplacement;
  15715. #if defined(__cplusplus) && !defined(CINTERFACE)
  15716. MIDL_INTERFACE("2890A410-53A7-4fb5-94EC-06D4998E3D02")
  15717. ISpeechPhraseReplacement : public IDispatch
  15718. {
  15719. public:
  15720. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  15721. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes) = 0;
  15722. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Text(
  15723. /* [retval][out] */ BSTR *Text) = 0;
  15724. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  15725. /* [retval][out] */ long *FirstElement) = 0;
  15726. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  15727. /* [retval][out] */ long *NumberOfElements) = 0;
  15728. };
  15729. #else /* C style interface */
  15730. typedef struct ISpeechPhraseReplacementVtbl
  15731. {
  15732. BEGIN_INTERFACE
  15733. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15734. ISpeechPhraseReplacement * This,
  15735. /* [in] */ REFIID riid,
  15736. /* [iid_is][out] */ void **ppvObject);
  15737. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15738. ISpeechPhraseReplacement * This);
  15739. ULONG ( STDMETHODCALLTYPE *Release )(
  15740. ISpeechPhraseReplacement * This);
  15741. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15742. ISpeechPhraseReplacement * This,
  15743. /* [out] */ UINT *pctinfo);
  15744. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15745. ISpeechPhraseReplacement * This,
  15746. /* [in] */ UINT iTInfo,
  15747. /* [in] */ LCID lcid,
  15748. /* [out] */ ITypeInfo **ppTInfo);
  15749. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15750. ISpeechPhraseReplacement * This,
  15751. /* [in] */ REFIID riid,
  15752. /* [size_is][in] */ LPOLESTR *rgszNames,
  15753. /* [in] */ UINT cNames,
  15754. /* [in] */ LCID lcid,
  15755. /* [size_is][out] */ DISPID *rgDispId);
  15756. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15757. ISpeechPhraseReplacement * This,
  15758. /* [in] */ DISPID dispIdMember,
  15759. /* [in] */ REFIID riid,
  15760. /* [in] */ LCID lcid,
  15761. /* [in] */ WORD wFlags,
  15762. /* [out][in] */ DISPPARAMS *pDispParams,
  15763. /* [out] */ VARIANT *pVarResult,
  15764. /* [out] */ EXCEPINFO *pExcepInfo,
  15765. /* [out] */ UINT *puArgErr);
  15766. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayAttributes )(
  15767. ISpeechPhraseReplacement * This,
  15768. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15769. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )(
  15770. ISpeechPhraseReplacement * This,
  15771. /* [retval][out] */ BSTR *Text);
  15772. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  15773. ISpeechPhraseReplacement * This,
  15774. /* [retval][out] */ long *FirstElement);
  15775. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  15776. ISpeechPhraseReplacement * This,
  15777. /* [retval][out] */ long *NumberOfElements);
  15778. END_INTERFACE
  15779. } ISpeechPhraseReplacementVtbl;
  15780. interface ISpeechPhraseReplacement
  15781. {
  15782. CONST_VTBL struct ISpeechPhraseReplacementVtbl *lpVtbl;
  15783. };
  15784. #ifdef COBJMACROS
  15785. #define ISpeechPhraseReplacement_QueryInterface(This,riid,ppvObject) \
  15786. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15787. #define ISpeechPhraseReplacement_AddRef(This) \
  15788. (This)->lpVtbl -> AddRef(This)
  15789. #define ISpeechPhraseReplacement_Release(This) \
  15790. (This)->lpVtbl -> Release(This)
  15791. #define ISpeechPhraseReplacement_GetTypeInfoCount(This,pctinfo) \
  15792. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15793. #define ISpeechPhraseReplacement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15794. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15795. #define ISpeechPhraseReplacement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15796. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15797. #define ISpeechPhraseReplacement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15798. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15799. #define ISpeechPhraseReplacement_get_DisplayAttributes(This,DisplayAttributes) \
  15800. (This)->lpVtbl -> get_DisplayAttributes(This,DisplayAttributes)
  15801. #define ISpeechPhraseReplacement_get_Text(This,Text) \
  15802. (This)->lpVtbl -> get_Text(This,Text)
  15803. #define ISpeechPhraseReplacement_get_FirstElement(This,FirstElement) \
  15804. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  15805. #define ISpeechPhraseReplacement_get_NumberOfElements(This,NumberOfElements) \
  15806. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  15807. #endif /* COBJMACROS */
  15808. #endif /* C style interface */
  15809. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_DisplayAttributes_Proxy(
  15810. ISpeechPhraseReplacement * This,
  15811. /* [retval][out] */ SpeechDisplayAttributes *DisplayAttributes);
  15812. void __RPC_STUB ISpeechPhraseReplacement_get_DisplayAttributes_Stub(
  15813. IRpcStubBuffer *This,
  15814. IRpcChannelBuffer *_pRpcChannelBuffer,
  15815. PRPC_MESSAGE _pRpcMessage,
  15816. DWORD *_pdwStubPhase);
  15817. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_Text_Proxy(
  15818. ISpeechPhraseReplacement * This,
  15819. /* [retval][out] */ BSTR *Text);
  15820. void __RPC_STUB ISpeechPhraseReplacement_get_Text_Stub(
  15821. IRpcStubBuffer *This,
  15822. IRpcChannelBuffer *_pRpcChannelBuffer,
  15823. PRPC_MESSAGE _pRpcMessage,
  15824. DWORD *_pdwStubPhase);
  15825. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_FirstElement_Proxy(
  15826. ISpeechPhraseReplacement * This,
  15827. /* [retval][out] */ long *FirstElement);
  15828. void __RPC_STUB ISpeechPhraseReplacement_get_FirstElement_Stub(
  15829. IRpcStubBuffer *This,
  15830. IRpcChannelBuffer *_pRpcChannelBuffer,
  15831. PRPC_MESSAGE _pRpcMessage,
  15832. DWORD *_pdwStubPhase);
  15833. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacement_get_NumberOfElements_Proxy(
  15834. ISpeechPhraseReplacement * This,
  15835. /* [retval][out] */ long *NumberOfElements);
  15836. void __RPC_STUB ISpeechPhraseReplacement_get_NumberOfElements_Stub(
  15837. IRpcStubBuffer *This,
  15838. IRpcChannelBuffer *_pRpcChannelBuffer,
  15839. PRPC_MESSAGE _pRpcMessage,
  15840. DWORD *_pdwStubPhase);
  15841. #endif /* __ISpeechPhraseReplacement_INTERFACE_DEFINED__ */
  15842. #ifndef __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  15843. #define __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  15844. /* interface ISpeechPhraseReplacements */
  15845. /* [unique][helpstring][dual][uuid][object] */
  15846. EXTERN_C const IID IID_ISpeechPhraseReplacements;
  15847. #if defined(__cplusplus) && !defined(CINTERFACE)
  15848. MIDL_INTERFACE("38BC662F-2257-4525-959E-2069D2596C05")
  15849. ISpeechPhraseReplacements : public IDispatch
  15850. {
  15851. public:
  15852. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  15853. /* [retval][out] */ long *Count) = 0;
  15854. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  15855. /* [in] */ long Index,
  15856. /* [retval][out] */ ISpeechPhraseReplacement **Reps) = 0;
  15857. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  15858. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  15859. };
  15860. #else /* C style interface */
  15861. typedef struct ISpeechPhraseReplacementsVtbl
  15862. {
  15863. BEGIN_INTERFACE
  15864. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15865. ISpeechPhraseReplacements * This,
  15866. /* [in] */ REFIID riid,
  15867. /* [iid_is][out] */ void **ppvObject);
  15868. ULONG ( STDMETHODCALLTYPE *AddRef )(
  15869. ISpeechPhraseReplacements * This);
  15870. ULONG ( STDMETHODCALLTYPE *Release )(
  15871. ISpeechPhraseReplacements * This);
  15872. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  15873. ISpeechPhraseReplacements * This,
  15874. /* [out] */ UINT *pctinfo);
  15875. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  15876. ISpeechPhraseReplacements * This,
  15877. /* [in] */ UINT iTInfo,
  15878. /* [in] */ LCID lcid,
  15879. /* [out] */ ITypeInfo **ppTInfo);
  15880. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  15881. ISpeechPhraseReplacements * This,
  15882. /* [in] */ REFIID riid,
  15883. /* [size_is][in] */ LPOLESTR *rgszNames,
  15884. /* [in] */ UINT cNames,
  15885. /* [in] */ LCID lcid,
  15886. /* [size_is][out] */ DISPID *rgDispId);
  15887. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  15888. ISpeechPhraseReplacements * This,
  15889. /* [in] */ DISPID dispIdMember,
  15890. /* [in] */ REFIID riid,
  15891. /* [in] */ LCID lcid,
  15892. /* [in] */ WORD wFlags,
  15893. /* [out][in] */ DISPPARAMS *pDispParams,
  15894. /* [out] */ VARIANT *pVarResult,
  15895. /* [out] */ EXCEPINFO *pExcepInfo,
  15896. /* [out] */ UINT *puArgErr);
  15897. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  15898. ISpeechPhraseReplacements * This,
  15899. /* [retval][out] */ long *Count);
  15900. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  15901. ISpeechPhraseReplacements * This,
  15902. /* [in] */ long Index,
  15903. /* [retval][out] */ ISpeechPhraseReplacement **Reps);
  15904. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  15905. ISpeechPhraseReplacements * This,
  15906. /* [retval][out] */ IUnknown **EnumVARIANT);
  15907. END_INTERFACE
  15908. } ISpeechPhraseReplacementsVtbl;
  15909. interface ISpeechPhraseReplacements
  15910. {
  15911. CONST_VTBL struct ISpeechPhraseReplacementsVtbl *lpVtbl;
  15912. };
  15913. #ifdef COBJMACROS
  15914. #define ISpeechPhraseReplacements_QueryInterface(This,riid,ppvObject) \
  15915. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  15916. #define ISpeechPhraseReplacements_AddRef(This) \
  15917. (This)->lpVtbl -> AddRef(This)
  15918. #define ISpeechPhraseReplacements_Release(This) \
  15919. (This)->lpVtbl -> Release(This)
  15920. #define ISpeechPhraseReplacements_GetTypeInfoCount(This,pctinfo) \
  15921. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  15922. #define ISpeechPhraseReplacements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  15923. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15924. #define ISpeechPhraseReplacements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  15925. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15926. #define ISpeechPhraseReplacements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  15927. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15928. #define ISpeechPhraseReplacements_get_Count(This,Count) \
  15929. (This)->lpVtbl -> get_Count(This,Count)
  15930. #define ISpeechPhraseReplacements_Item(This,Index,Reps) \
  15931. (This)->lpVtbl -> Item(This,Index,Reps)
  15932. #define ISpeechPhraseReplacements_get__NewEnum(This,EnumVARIANT) \
  15933. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  15934. #endif /* COBJMACROS */
  15935. #endif /* C style interface */
  15936. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_get_Count_Proxy(
  15937. ISpeechPhraseReplacements * This,
  15938. /* [retval][out] */ long *Count);
  15939. void __RPC_STUB ISpeechPhraseReplacements_get_Count_Stub(
  15940. IRpcStubBuffer *This,
  15941. IRpcChannelBuffer *_pRpcChannelBuffer,
  15942. PRPC_MESSAGE _pRpcMessage,
  15943. DWORD *_pdwStubPhase);
  15944. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_Item_Proxy(
  15945. ISpeechPhraseReplacements * This,
  15946. /* [in] */ long Index,
  15947. /* [retval][out] */ ISpeechPhraseReplacement **Reps);
  15948. void __RPC_STUB ISpeechPhraseReplacements_Item_Stub(
  15949. IRpcStubBuffer *This,
  15950. IRpcChannelBuffer *_pRpcChannelBuffer,
  15951. PRPC_MESSAGE _pRpcMessage,
  15952. DWORD *_pdwStubPhase);
  15953. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseReplacements_get__NewEnum_Proxy(
  15954. ISpeechPhraseReplacements * This,
  15955. /* [retval][out] */ IUnknown **EnumVARIANT);
  15956. void __RPC_STUB ISpeechPhraseReplacements_get__NewEnum_Stub(
  15957. IRpcStubBuffer *This,
  15958. IRpcChannelBuffer *_pRpcChannelBuffer,
  15959. PRPC_MESSAGE _pRpcMessage,
  15960. DWORD *_pdwStubPhase);
  15961. #endif /* __ISpeechPhraseReplacements_INTERFACE_DEFINED__ */
  15962. #ifndef __ISpeechPhraseProperty_INTERFACE_DEFINED__
  15963. #define __ISpeechPhraseProperty_INTERFACE_DEFINED__
  15964. /* interface ISpeechPhraseProperty */
  15965. /* [unique][helpstring][dual][uuid][object] */
  15966. EXTERN_C const IID IID_ISpeechPhraseProperty;
  15967. #if defined(__cplusplus) && !defined(CINTERFACE)
  15968. MIDL_INTERFACE("CE563D48-961E-4732-A2E1-378A42B430BE")
  15969. ISpeechPhraseProperty : public IDispatch
  15970. {
  15971. public:
  15972. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  15973. /* [retval][out] */ BSTR *Name) = 0;
  15974. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  15975. /* [retval][out] */ long *Id) = 0;
  15976. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Value(
  15977. /* [retval][out] */ VARIANT *Value) = 0;
  15978. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  15979. /* [retval][out] */ long *FirstElement) = 0;
  15980. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  15981. /* [retval][out] */ long *NumberOfElements) = 0;
  15982. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  15983. /* [retval][out] */ float *Confidence) = 0;
  15984. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Confidence(
  15985. /* [retval][out] */ SpeechEngineConfidence *Confidence) = 0;
  15986. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Parent(
  15987. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty) = 0;
  15988. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Children(
  15989. /* [retval][out] */ ISpeechPhraseProperties **Children) = 0;
  15990. };
  15991. #else /* C style interface */
  15992. typedef struct ISpeechPhrasePropertyVtbl
  15993. {
  15994. BEGIN_INTERFACE
  15995. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  15996. ISpeechPhraseProperty * This,
  15997. /* [in] */ REFIID riid,
  15998. /* [iid_is][out] */ void **ppvObject);
  15999. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16000. ISpeechPhraseProperty * This);
  16001. ULONG ( STDMETHODCALLTYPE *Release )(
  16002. ISpeechPhraseProperty * This);
  16003. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16004. ISpeechPhraseProperty * This,
  16005. /* [out] */ UINT *pctinfo);
  16006. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16007. ISpeechPhraseProperty * This,
  16008. /* [in] */ UINT iTInfo,
  16009. /* [in] */ LCID lcid,
  16010. /* [out] */ ITypeInfo **ppTInfo);
  16011. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16012. ISpeechPhraseProperty * This,
  16013. /* [in] */ REFIID riid,
  16014. /* [size_is][in] */ LPOLESTR *rgszNames,
  16015. /* [in] */ UINT cNames,
  16016. /* [in] */ LCID lcid,
  16017. /* [size_is][out] */ DISPID *rgDispId);
  16018. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16019. ISpeechPhraseProperty * This,
  16020. /* [in] */ DISPID dispIdMember,
  16021. /* [in] */ REFIID riid,
  16022. /* [in] */ LCID lcid,
  16023. /* [in] */ WORD wFlags,
  16024. /* [out][in] */ DISPPARAMS *pDispParams,
  16025. /* [out] */ VARIANT *pVarResult,
  16026. /* [out] */ EXCEPINFO *pExcepInfo,
  16027. /* [out] */ UINT *puArgErr);
  16028. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  16029. ISpeechPhraseProperty * This,
  16030. /* [retval][out] */ BSTR *Name);
  16031. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  16032. ISpeechPhraseProperty * This,
  16033. /* [retval][out] */ long *Id);
  16034. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )(
  16035. ISpeechPhraseProperty * This,
  16036. /* [retval][out] */ VARIANT *Value);
  16037. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  16038. ISpeechPhraseProperty * This,
  16039. /* [retval][out] */ long *FirstElement);
  16040. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  16041. ISpeechPhraseProperty * This,
  16042. /* [retval][out] */ long *NumberOfElements);
  16043. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  16044. ISpeechPhraseProperty * This,
  16045. /* [retval][out] */ float *Confidence);
  16046. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Confidence )(
  16047. ISpeechPhraseProperty * This,
  16048. /* [retval][out] */ SpeechEngineConfidence *Confidence);
  16049. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )(
  16050. ISpeechPhraseProperty * This,
  16051. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty);
  16052. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Children )(
  16053. ISpeechPhraseProperty * This,
  16054. /* [retval][out] */ ISpeechPhraseProperties **Children);
  16055. END_INTERFACE
  16056. } ISpeechPhrasePropertyVtbl;
  16057. interface ISpeechPhraseProperty
  16058. {
  16059. CONST_VTBL struct ISpeechPhrasePropertyVtbl *lpVtbl;
  16060. };
  16061. #ifdef COBJMACROS
  16062. #define ISpeechPhraseProperty_QueryInterface(This,riid,ppvObject) \
  16063. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16064. #define ISpeechPhraseProperty_AddRef(This) \
  16065. (This)->lpVtbl -> AddRef(This)
  16066. #define ISpeechPhraseProperty_Release(This) \
  16067. (This)->lpVtbl -> Release(This)
  16068. #define ISpeechPhraseProperty_GetTypeInfoCount(This,pctinfo) \
  16069. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16070. #define ISpeechPhraseProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16071. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16072. #define ISpeechPhraseProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16073. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16074. #define ISpeechPhraseProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16075. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16076. #define ISpeechPhraseProperty_get_Name(This,Name) \
  16077. (This)->lpVtbl -> get_Name(This,Name)
  16078. #define ISpeechPhraseProperty_get_Id(This,Id) \
  16079. (This)->lpVtbl -> get_Id(This,Id)
  16080. #define ISpeechPhraseProperty_get_Value(This,Value) \
  16081. (This)->lpVtbl -> get_Value(This,Value)
  16082. #define ISpeechPhraseProperty_get_FirstElement(This,FirstElement) \
  16083. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  16084. #define ISpeechPhraseProperty_get_NumberOfElements(This,NumberOfElements) \
  16085. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  16086. #define ISpeechPhraseProperty_get_EngineConfidence(This,Confidence) \
  16087. (This)->lpVtbl -> get_EngineConfidence(This,Confidence)
  16088. #define ISpeechPhraseProperty_get_Confidence(This,Confidence) \
  16089. (This)->lpVtbl -> get_Confidence(This,Confidence)
  16090. #define ISpeechPhraseProperty_get_Parent(This,ParentProperty) \
  16091. (This)->lpVtbl -> get_Parent(This,ParentProperty)
  16092. #define ISpeechPhraseProperty_get_Children(This,Children) \
  16093. (This)->lpVtbl -> get_Children(This,Children)
  16094. #endif /* COBJMACROS */
  16095. #endif /* C style interface */
  16096. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Name_Proxy(
  16097. ISpeechPhraseProperty * This,
  16098. /* [retval][out] */ BSTR *Name);
  16099. void __RPC_STUB ISpeechPhraseProperty_get_Name_Stub(
  16100. IRpcStubBuffer *This,
  16101. IRpcChannelBuffer *_pRpcChannelBuffer,
  16102. PRPC_MESSAGE _pRpcMessage,
  16103. DWORD *_pdwStubPhase);
  16104. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Id_Proxy(
  16105. ISpeechPhraseProperty * This,
  16106. /* [retval][out] */ long *Id);
  16107. void __RPC_STUB ISpeechPhraseProperty_get_Id_Stub(
  16108. IRpcStubBuffer *This,
  16109. IRpcChannelBuffer *_pRpcChannelBuffer,
  16110. PRPC_MESSAGE _pRpcMessage,
  16111. DWORD *_pdwStubPhase);
  16112. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Value_Proxy(
  16113. ISpeechPhraseProperty * This,
  16114. /* [retval][out] */ VARIANT *Value);
  16115. void __RPC_STUB ISpeechPhraseProperty_get_Value_Stub(
  16116. IRpcStubBuffer *This,
  16117. IRpcChannelBuffer *_pRpcChannelBuffer,
  16118. PRPC_MESSAGE _pRpcMessage,
  16119. DWORD *_pdwStubPhase);
  16120. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_FirstElement_Proxy(
  16121. ISpeechPhraseProperty * This,
  16122. /* [retval][out] */ long *FirstElement);
  16123. void __RPC_STUB ISpeechPhraseProperty_get_FirstElement_Stub(
  16124. IRpcStubBuffer *This,
  16125. IRpcChannelBuffer *_pRpcChannelBuffer,
  16126. PRPC_MESSAGE _pRpcMessage,
  16127. DWORD *_pdwStubPhase);
  16128. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_NumberOfElements_Proxy(
  16129. ISpeechPhraseProperty * This,
  16130. /* [retval][out] */ long *NumberOfElements);
  16131. void __RPC_STUB ISpeechPhraseProperty_get_NumberOfElements_Stub(
  16132. IRpcStubBuffer *This,
  16133. IRpcChannelBuffer *_pRpcChannelBuffer,
  16134. PRPC_MESSAGE _pRpcMessage,
  16135. DWORD *_pdwStubPhase);
  16136. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_EngineConfidence_Proxy(
  16137. ISpeechPhraseProperty * This,
  16138. /* [retval][out] */ float *Confidence);
  16139. void __RPC_STUB ISpeechPhraseProperty_get_EngineConfidence_Stub(
  16140. IRpcStubBuffer *This,
  16141. IRpcChannelBuffer *_pRpcChannelBuffer,
  16142. PRPC_MESSAGE _pRpcMessage,
  16143. DWORD *_pdwStubPhase);
  16144. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Confidence_Proxy(
  16145. ISpeechPhraseProperty * This,
  16146. /* [retval][out] */ SpeechEngineConfidence *Confidence);
  16147. void __RPC_STUB ISpeechPhraseProperty_get_Confidence_Stub(
  16148. IRpcStubBuffer *This,
  16149. IRpcChannelBuffer *_pRpcChannelBuffer,
  16150. PRPC_MESSAGE _pRpcMessage,
  16151. DWORD *_pdwStubPhase);
  16152. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Parent_Proxy(
  16153. ISpeechPhraseProperty * This,
  16154. /* [retval][out] */ ISpeechPhraseProperty **ParentProperty);
  16155. void __RPC_STUB ISpeechPhraseProperty_get_Parent_Stub(
  16156. IRpcStubBuffer *This,
  16157. IRpcChannelBuffer *_pRpcChannelBuffer,
  16158. PRPC_MESSAGE _pRpcMessage,
  16159. DWORD *_pdwStubPhase);
  16160. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperty_get_Children_Proxy(
  16161. ISpeechPhraseProperty * This,
  16162. /* [retval][out] */ ISpeechPhraseProperties **Children);
  16163. void __RPC_STUB ISpeechPhraseProperty_get_Children_Stub(
  16164. IRpcStubBuffer *This,
  16165. IRpcChannelBuffer *_pRpcChannelBuffer,
  16166. PRPC_MESSAGE _pRpcMessage,
  16167. DWORD *_pdwStubPhase);
  16168. #endif /* __ISpeechPhraseProperty_INTERFACE_DEFINED__ */
  16169. #ifndef __ISpeechPhraseProperties_INTERFACE_DEFINED__
  16170. #define __ISpeechPhraseProperties_INTERFACE_DEFINED__
  16171. /* interface ISpeechPhraseProperties */
  16172. /* [unique][helpstring][dual][uuid][object] */
  16173. EXTERN_C const IID IID_ISpeechPhraseProperties;
  16174. #if defined(__cplusplus) && !defined(CINTERFACE)
  16175. MIDL_INTERFACE("08166B47-102E-4b23-A599-BDB98DBFD1F4")
  16176. ISpeechPhraseProperties : public IDispatch
  16177. {
  16178. public:
  16179. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  16180. /* [retval][out] */ long *Count) = 0;
  16181. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  16182. /* [in] */ long Index,
  16183. /* [retval][out] */ ISpeechPhraseProperty **Property) = 0;
  16184. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16185. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16186. };
  16187. #else /* C style interface */
  16188. typedef struct ISpeechPhrasePropertiesVtbl
  16189. {
  16190. BEGIN_INTERFACE
  16191. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16192. ISpeechPhraseProperties * This,
  16193. /* [in] */ REFIID riid,
  16194. /* [iid_is][out] */ void **ppvObject);
  16195. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16196. ISpeechPhraseProperties * This);
  16197. ULONG ( STDMETHODCALLTYPE *Release )(
  16198. ISpeechPhraseProperties * This);
  16199. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16200. ISpeechPhraseProperties * This,
  16201. /* [out] */ UINT *pctinfo);
  16202. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16203. ISpeechPhraseProperties * This,
  16204. /* [in] */ UINT iTInfo,
  16205. /* [in] */ LCID lcid,
  16206. /* [out] */ ITypeInfo **ppTInfo);
  16207. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16208. ISpeechPhraseProperties * This,
  16209. /* [in] */ REFIID riid,
  16210. /* [size_is][in] */ LPOLESTR *rgszNames,
  16211. /* [in] */ UINT cNames,
  16212. /* [in] */ LCID lcid,
  16213. /* [size_is][out] */ DISPID *rgDispId);
  16214. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16215. ISpeechPhraseProperties * This,
  16216. /* [in] */ DISPID dispIdMember,
  16217. /* [in] */ REFIID riid,
  16218. /* [in] */ LCID lcid,
  16219. /* [in] */ WORD wFlags,
  16220. /* [out][in] */ DISPPARAMS *pDispParams,
  16221. /* [out] */ VARIANT *pVarResult,
  16222. /* [out] */ EXCEPINFO *pExcepInfo,
  16223. /* [out] */ UINT *puArgErr);
  16224. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16225. ISpeechPhraseProperties * This,
  16226. /* [retval][out] */ long *Count);
  16227. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16228. ISpeechPhraseProperties * This,
  16229. /* [in] */ long Index,
  16230. /* [retval][out] */ ISpeechPhraseProperty **Property);
  16231. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16232. ISpeechPhraseProperties * This,
  16233. /* [retval][out] */ IUnknown **EnumVARIANT);
  16234. END_INTERFACE
  16235. } ISpeechPhrasePropertiesVtbl;
  16236. interface ISpeechPhraseProperties
  16237. {
  16238. CONST_VTBL struct ISpeechPhrasePropertiesVtbl *lpVtbl;
  16239. };
  16240. #ifdef COBJMACROS
  16241. #define ISpeechPhraseProperties_QueryInterface(This,riid,ppvObject) \
  16242. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16243. #define ISpeechPhraseProperties_AddRef(This) \
  16244. (This)->lpVtbl -> AddRef(This)
  16245. #define ISpeechPhraseProperties_Release(This) \
  16246. (This)->lpVtbl -> Release(This)
  16247. #define ISpeechPhraseProperties_GetTypeInfoCount(This,pctinfo) \
  16248. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16249. #define ISpeechPhraseProperties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16250. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16251. #define ISpeechPhraseProperties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16252. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16253. #define ISpeechPhraseProperties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16254. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16255. #define ISpeechPhraseProperties_get_Count(This,Count) \
  16256. (This)->lpVtbl -> get_Count(This,Count)
  16257. #define ISpeechPhraseProperties_Item(This,Index,Property) \
  16258. (This)->lpVtbl -> Item(This,Index,Property)
  16259. #define ISpeechPhraseProperties_get__NewEnum(This,EnumVARIANT) \
  16260. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16261. #endif /* COBJMACROS */
  16262. #endif /* C style interface */
  16263. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_get_Count_Proxy(
  16264. ISpeechPhraseProperties * This,
  16265. /* [retval][out] */ long *Count);
  16266. void __RPC_STUB ISpeechPhraseProperties_get_Count_Stub(
  16267. IRpcStubBuffer *This,
  16268. IRpcChannelBuffer *_pRpcChannelBuffer,
  16269. PRPC_MESSAGE _pRpcMessage,
  16270. DWORD *_pdwStubPhase);
  16271. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_Item_Proxy(
  16272. ISpeechPhraseProperties * This,
  16273. /* [in] */ long Index,
  16274. /* [retval][out] */ ISpeechPhraseProperty **Property);
  16275. void __RPC_STUB ISpeechPhraseProperties_Item_Stub(
  16276. IRpcStubBuffer *This,
  16277. IRpcChannelBuffer *_pRpcChannelBuffer,
  16278. PRPC_MESSAGE _pRpcMessage,
  16279. DWORD *_pdwStubPhase);
  16280. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseProperties_get__NewEnum_Proxy(
  16281. ISpeechPhraseProperties * This,
  16282. /* [retval][out] */ IUnknown **EnumVARIANT);
  16283. void __RPC_STUB ISpeechPhraseProperties_get__NewEnum_Stub(
  16284. IRpcStubBuffer *This,
  16285. IRpcChannelBuffer *_pRpcChannelBuffer,
  16286. PRPC_MESSAGE _pRpcMessage,
  16287. DWORD *_pdwStubPhase);
  16288. #endif /* __ISpeechPhraseProperties_INTERFACE_DEFINED__ */
  16289. #ifndef __ISpeechPhraseRule_INTERFACE_DEFINED__
  16290. #define __ISpeechPhraseRule_INTERFACE_DEFINED__
  16291. /* interface ISpeechPhraseRule */
  16292. /* [unique][helpstring][dual][uuid][object] */
  16293. EXTERN_C const IID IID_ISpeechPhraseRule;
  16294. #if defined(__cplusplus) && !defined(CINTERFACE)
  16295. MIDL_INTERFACE("A7BFE112-A4A0-48d9-B602-C313843F6964")
  16296. ISpeechPhraseRule : public IDispatch
  16297. {
  16298. public:
  16299. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Name(
  16300. /* [retval][out] */ BSTR *Name) = 0;
  16301. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Id(
  16302. /* [retval][out] */ long *Id) = 0;
  16303. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FirstElement(
  16304. /* [retval][out] */ long *FirstElement) = 0;
  16305. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  16306. /* [retval][out] */ long *NumberOfElements) = 0;
  16307. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Parent(
  16308. /* [retval][out] */ ISpeechPhraseRule **Parent) = 0;
  16309. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Children(
  16310. /* [retval][out] */ ISpeechPhraseRules **Children) = 0;
  16311. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Confidence(
  16312. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence) = 0;
  16313. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  16314. /* [retval][out] */ float *EngineConfidence) = 0;
  16315. };
  16316. #else /* C style interface */
  16317. typedef struct ISpeechPhraseRuleVtbl
  16318. {
  16319. BEGIN_INTERFACE
  16320. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16321. ISpeechPhraseRule * This,
  16322. /* [in] */ REFIID riid,
  16323. /* [iid_is][out] */ void **ppvObject);
  16324. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16325. ISpeechPhraseRule * This);
  16326. ULONG ( STDMETHODCALLTYPE *Release )(
  16327. ISpeechPhraseRule * This);
  16328. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16329. ISpeechPhraseRule * This,
  16330. /* [out] */ UINT *pctinfo);
  16331. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16332. ISpeechPhraseRule * This,
  16333. /* [in] */ UINT iTInfo,
  16334. /* [in] */ LCID lcid,
  16335. /* [out] */ ITypeInfo **ppTInfo);
  16336. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16337. ISpeechPhraseRule * This,
  16338. /* [in] */ REFIID riid,
  16339. /* [size_is][in] */ LPOLESTR *rgszNames,
  16340. /* [in] */ UINT cNames,
  16341. /* [in] */ LCID lcid,
  16342. /* [size_is][out] */ DISPID *rgDispId);
  16343. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16344. ISpeechPhraseRule * This,
  16345. /* [in] */ DISPID dispIdMember,
  16346. /* [in] */ REFIID riid,
  16347. /* [in] */ LCID lcid,
  16348. /* [in] */ WORD wFlags,
  16349. /* [out][in] */ DISPPARAMS *pDispParams,
  16350. /* [out] */ VARIANT *pVarResult,
  16351. /* [out] */ EXCEPINFO *pExcepInfo,
  16352. /* [out] */ UINT *puArgErr);
  16353. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )(
  16354. ISpeechPhraseRule * This,
  16355. /* [retval][out] */ BSTR *Name);
  16356. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )(
  16357. ISpeechPhraseRule * This,
  16358. /* [retval][out] */ long *Id);
  16359. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstElement )(
  16360. ISpeechPhraseRule * This,
  16361. /* [retval][out] */ long *FirstElement);
  16362. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfElements )(
  16363. ISpeechPhraseRule * This,
  16364. /* [retval][out] */ long *NumberOfElements);
  16365. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )(
  16366. ISpeechPhraseRule * This,
  16367. /* [retval][out] */ ISpeechPhraseRule **Parent);
  16368. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Children )(
  16369. ISpeechPhraseRule * This,
  16370. /* [retval][out] */ ISpeechPhraseRules **Children);
  16371. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Confidence )(
  16372. ISpeechPhraseRule * This,
  16373. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  16374. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EngineConfidence )(
  16375. ISpeechPhraseRule * This,
  16376. /* [retval][out] */ float *EngineConfidence);
  16377. END_INTERFACE
  16378. } ISpeechPhraseRuleVtbl;
  16379. interface ISpeechPhraseRule
  16380. {
  16381. CONST_VTBL struct ISpeechPhraseRuleVtbl *lpVtbl;
  16382. };
  16383. #ifdef COBJMACROS
  16384. #define ISpeechPhraseRule_QueryInterface(This,riid,ppvObject) \
  16385. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16386. #define ISpeechPhraseRule_AddRef(This) \
  16387. (This)->lpVtbl -> AddRef(This)
  16388. #define ISpeechPhraseRule_Release(This) \
  16389. (This)->lpVtbl -> Release(This)
  16390. #define ISpeechPhraseRule_GetTypeInfoCount(This,pctinfo) \
  16391. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16392. #define ISpeechPhraseRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16393. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16394. #define ISpeechPhraseRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16395. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16396. #define ISpeechPhraseRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16397. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16398. #define ISpeechPhraseRule_get_Name(This,Name) \
  16399. (This)->lpVtbl -> get_Name(This,Name)
  16400. #define ISpeechPhraseRule_get_Id(This,Id) \
  16401. (This)->lpVtbl -> get_Id(This,Id)
  16402. #define ISpeechPhraseRule_get_FirstElement(This,FirstElement) \
  16403. (This)->lpVtbl -> get_FirstElement(This,FirstElement)
  16404. #define ISpeechPhraseRule_get_NumberOfElements(This,NumberOfElements) \
  16405. (This)->lpVtbl -> get_NumberOfElements(This,NumberOfElements)
  16406. #define ISpeechPhraseRule_get_Parent(This,Parent) \
  16407. (This)->lpVtbl -> get_Parent(This,Parent)
  16408. #define ISpeechPhraseRule_get_Children(This,Children) \
  16409. (This)->lpVtbl -> get_Children(This,Children)
  16410. #define ISpeechPhraseRule_get_Confidence(This,ActualConfidence) \
  16411. (This)->lpVtbl -> get_Confidence(This,ActualConfidence)
  16412. #define ISpeechPhraseRule_get_EngineConfidence(This,EngineConfidence) \
  16413. (This)->lpVtbl -> get_EngineConfidence(This,EngineConfidence)
  16414. #endif /* COBJMACROS */
  16415. #endif /* C style interface */
  16416. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Name_Proxy(
  16417. ISpeechPhraseRule * This,
  16418. /* [retval][out] */ BSTR *Name);
  16419. void __RPC_STUB ISpeechPhraseRule_get_Name_Stub(
  16420. IRpcStubBuffer *This,
  16421. IRpcChannelBuffer *_pRpcChannelBuffer,
  16422. PRPC_MESSAGE _pRpcMessage,
  16423. DWORD *_pdwStubPhase);
  16424. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Id_Proxy(
  16425. ISpeechPhraseRule * This,
  16426. /* [retval][out] */ long *Id);
  16427. void __RPC_STUB ISpeechPhraseRule_get_Id_Stub(
  16428. IRpcStubBuffer *This,
  16429. IRpcChannelBuffer *_pRpcChannelBuffer,
  16430. PRPC_MESSAGE _pRpcMessage,
  16431. DWORD *_pdwStubPhase);
  16432. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_FirstElement_Proxy(
  16433. ISpeechPhraseRule * This,
  16434. /* [retval][out] */ long *FirstElement);
  16435. void __RPC_STUB ISpeechPhraseRule_get_FirstElement_Stub(
  16436. IRpcStubBuffer *This,
  16437. IRpcChannelBuffer *_pRpcChannelBuffer,
  16438. PRPC_MESSAGE _pRpcMessage,
  16439. DWORD *_pdwStubPhase);
  16440. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_NumberOfElements_Proxy(
  16441. ISpeechPhraseRule * This,
  16442. /* [retval][out] */ long *NumberOfElements);
  16443. void __RPC_STUB ISpeechPhraseRule_get_NumberOfElements_Stub(
  16444. IRpcStubBuffer *This,
  16445. IRpcChannelBuffer *_pRpcChannelBuffer,
  16446. PRPC_MESSAGE _pRpcMessage,
  16447. DWORD *_pdwStubPhase);
  16448. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Parent_Proxy(
  16449. ISpeechPhraseRule * This,
  16450. /* [retval][out] */ ISpeechPhraseRule **Parent);
  16451. void __RPC_STUB ISpeechPhraseRule_get_Parent_Stub(
  16452. IRpcStubBuffer *This,
  16453. IRpcChannelBuffer *_pRpcChannelBuffer,
  16454. PRPC_MESSAGE _pRpcMessage,
  16455. DWORD *_pdwStubPhase);
  16456. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Children_Proxy(
  16457. ISpeechPhraseRule * This,
  16458. /* [retval][out] */ ISpeechPhraseRules **Children);
  16459. void __RPC_STUB ISpeechPhraseRule_get_Children_Stub(
  16460. IRpcStubBuffer *This,
  16461. IRpcChannelBuffer *_pRpcChannelBuffer,
  16462. PRPC_MESSAGE _pRpcMessage,
  16463. DWORD *_pdwStubPhase);
  16464. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_Confidence_Proxy(
  16465. ISpeechPhraseRule * This,
  16466. /* [retval][out] */ SpeechEngineConfidence *ActualConfidence);
  16467. void __RPC_STUB ISpeechPhraseRule_get_Confidence_Stub(
  16468. IRpcStubBuffer *This,
  16469. IRpcChannelBuffer *_pRpcChannelBuffer,
  16470. PRPC_MESSAGE _pRpcMessage,
  16471. DWORD *_pdwStubPhase);
  16472. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRule_get_EngineConfidence_Proxy(
  16473. ISpeechPhraseRule * This,
  16474. /* [retval][out] */ float *EngineConfidence);
  16475. void __RPC_STUB ISpeechPhraseRule_get_EngineConfidence_Stub(
  16476. IRpcStubBuffer *This,
  16477. IRpcChannelBuffer *_pRpcChannelBuffer,
  16478. PRPC_MESSAGE _pRpcMessage,
  16479. DWORD *_pdwStubPhase);
  16480. #endif /* __ISpeechPhraseRule_INTERFACE_DEFINED__ */
  16481. #ifndef __ISpeechPhraseRules_INTERFACE_DEFINED__
  16482. #define __ISpeechPhraseRules_INTERFACE_DEFINED__
  16483. /* interface ISpeechPhraseRules */
  16484. /* [unique][helpstring][dual][uuid][object] */
  16485. EXTERN_C const IID IID_ISpeechPhraseRules;
  16486. #if defined(__cplusplus) && !defined(CINTERFACE)
  16487. MIDL_INTERFACE("9047D593-01DD-4b72-81A3-E4A0CA69F407")
  16488. ISpeechPhraseRules : public IDispatch
  16489. {
  16490. public:
  16491. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
  16492. /* [retval][out] */ long *Count) = 0;
  16493. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE Item(
  16494. /* [in] */ long Index,
  16495. /* [retval][out] */ ISpeechPhraseRule **Rule) = 0;
  16496. virtual /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16497. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16498. };
  16499. #else /* C style interface */
  16500. typedef struct ISpeechPhraseRulesVtbl
  16501. {
  16502. BEGIN_INTERFACE
  16503. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16504. ISpeechPhraseRules * This,
  16505. /* [in] */ REFIID riid,
  16506. /* [iid_is][out] */ void **ppvObject);
  16507. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16508. ISpeechPhraseRules * This);
  16509. ULONG ( STDMETHODCALLTYPE *Release )(
  16510. ISpeechPhraseRules * This);
  16511. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16512. ISpeechPhraseRules * This,
  16513. /* [out] */ UINT *pctinfo);
  16514. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16515. ISpeechPhraseRules * This,
  16516. /* [in] */ UINT iTInfo,
  16517. /* [in] */ LCID lcid,
  16518. /* [out] */ ITypeInfo **ppTInfo);
  16519. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16520. ISpeechPhraseRules * This,
  16521. /* [in] */ REFIID riid,
  16522. /* [size_is][in] */ LPOLESTR *rgszNames,
  16523. /* [in] */ UINT cNames,
  16524. /* [in] */ LCID lcid,
  16525. /* [size_is][out] */ DISPID *rgDispId);
  16526. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16527. ISpeechPhraseRules * This,
  16528. /* [in] */ DISPID dispIdMember,
  16529. /* [in] */ REFIID riid,
  16530. /* [in] */ LCID lcid,
  16531. /* [in] */ WORD wFlags,
  16532. /* [out][in] */ DISPPARAMS *pDispParams,
  16533. /* [out] */ VARIANT *pVarResult,
  16534. /* [out] */ EXCEPINFO *pExcepInfo,
  16535. /* [out] */ UINT *puArgErr);
  16536. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16537. ISpeechPhraseRules * This,
  16538. /* [retval][out] */ long *Count);
  16539. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16540. ISpeechPhraseRules * This,
  16541. /* [in] */ long Index,
  16542. /* [retval][out] */ ISpeechPhraseRule **Rule);
  16543. /* [id][restricted][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16544. ISpeechPhraseRules * This,
  16545. /* [retval][out] */ IUnknown **EnumVARIANT);
  16546. END_INTERFACE
  16547. } ISpeechPhraseRulesVtbl;
  16548. interface ISpeechPhraseRules
  16549. {
  16550. CONST_VTBL struct ISpeechPhraseRulesVtbl *lpVtbl;
  16551. };
  16552. #ifdef COBJMACROS
  16553. #define ISpeechPhraseRules_QueryInterface(This,riid,ppvObject) \
  16554. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16555. #define ISpeechPhraseRules_AddRef(This) \
  16556. (This)->lpVtbl -> AddRef(This)
  16557. #define ISpeechPhraseRules_Release(This) \
  16558. (This)->lpVtbl -> Release(This)
  16559. #define ISpeechPhraseRules_GetTypeInfoCount(This,pctinfo) \
  16560. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16561. #define ISpeechPhraseRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16562. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16563. #define ISpeechPhraseRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16564. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16565. #define ISpeechPhraseRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16566. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16567. #define ISpeechPhraseRules_get_Count(This,Count) \
  16568. (This)->lpVtbl -> get_Count(This,Count)
  16569. #define ISpeechPhraseRules_Item(This,Index,Rule) \
  16570. (This)->lpVtbl -> Item(This,Index,Rule)
  16571. #define ISpeechPhraseRules_get__NewEnum(This,EnumVARIANT) \
  16572. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16573. #endif /* COBJMACROS */
  16574. #endif /* C style interface */
  16575. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_get_Count_Proxy(
  16576. ISpeechPhraseRules * This,
  16577. /* [retval][out] */ long *Count);
  16578. void __RPC_STUB ISpeechPhraseRules_get_Count_Stub(
  16579. IRpcStubBuffer *This,
  16580. IRpcChannelBuffer *_pRpcChannelBuffer,
  16581. PRPC_MESSAGE _pRpcMessage,
  16582. DWORD *_pdwStubPhase);
  16583. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_Item_Proxy(
  16584. ISpeechPhraseRules * This,
  16585. /* [in] */ long Index,
  16586. /* [retval][out] */ ISpeechPhraseRule **Rule);
  16587. void __RPC_STUB ISpeechPhraseRules_Item_Stub(
  16588. IRpcStubBuffer *This,
  16589. IRpcChannelBuffer *_pRpcChannelBuffer,
  16590. PRPC_MESSAGE _pRpcMessage,
  16591. DWORD *_pdwStubPhase);
  16592. /* [id][restricted][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseRules_get__NewEnum_Proxy(
  16593. ISpeechPhraseRules * This,
  16594. /* [retval][out] */ IUnknown **EnumVARIANT);
  16595. void __RPC_STUB ISpeechPhraseRules_get__NewEnum_Stub(
  16596. IRpcStubBuffer *This,
  16597. IRpcChannelBuffer *_pRpcChannelBuffer,
  16598. PRPC_MESSAGE _pRpcMessage,
  16599. DWORD *_pdwStubPhase);
  16600. #endif /* __ISpeechPhraseRules_INTERFACE_DEFINED__ */
  16601. #ifndef __ISpeechLexicon_INTERFACE_DEFINED__
  16602. #define __ISpeechLexicon_INTERFACE_DEFINED__
  16603. /* interface ISpeechLexicon */
  16604. /* [unique][helpstring][dual][uuid][object] */
  16605. EXTERN_C const IID IID_ISpeechLexicon;
  16606. #if defined(__cplusplus) && !defined(CINTERFACE)
  16607. MIDL_INTERFACE("3DA7627A-C7AE-4b23-8708-638C50362C25")
  16608. ISpeechLexicon : public IDispatch
  16609. {
  16610. public:
  16611. virtual /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_GenerationId(
  16612. /* [retval][out] */ long *GenerationId) = 0;
  16613. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetWords(
  16614. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16615. /* [defaultvalue][out] */ long *GenerationID,
  16616. /* [retval][out] */ ISpeechLexiconWords **Words) = 0;
  16617. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE AddPronunciation(
  16618. /* [in] */ BSTR bstrWord,
  16619. /* [in] */ SpeechLanguageId LangId,
  16620. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16621. /* [defaultvalue][in] */ BSTR bstrPronunciation = L"") = 0;
  16622. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE AddPronunciationByPhoneIds(
  16623. /* [in] */ BSTR bstrWord,
  16624. /* [in] */ SpeechLanguageId LangId,
  16625. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16626. /* [defaultvalue][in] */ VARIANT *PhoneIds = 0) = 0;
  16627. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE RemovePronunciation(
  16628. /* [in] */ BSTR bstrWord,
  16629. /* [in] */ SpeechLanguageId LangId,
  16630. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16631. /* [defaultvalue][in] */ BSTR bstrPronunciation = L"") = 0;
  16632. virtual /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE RemovePronunciationByPhoneIds(
  16633. /* [in] */ BSTR bstrWord,
  16634. /* [in] */ SpeechLanguageId LangId,
  16635. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  16636. /* [defaultvalue][in] */ VARIANT *PhoneIds = 0) = 0;
  16637. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE GetPronunciations(
  16638. /* [in] */ BSTR bstrWord,
  16639. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16640. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16641. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations) = 0;
  16642. virtual /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE GetGenerationChange(
  16643. /* [out][in] */ long *GenerationID,
  16644. /* [retval][out] */ ISpeechLexiconWords **ppWords) = 0;
  16645. };
  16646. #else /* C style interface */
  16647. typedef struct ISpeechLexiconVtbl
  16648. {
  16649. BEGIN_INTERFACE
  16650. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16651. ISpeechLexicon * This,
  16652. /* [in] */ REFIID riid,
  16653. /* [iid_is][out] */ void **ppvObject);
  16654. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16655. ISpeechLexicon * This);
  16656. ULONG ( STDMETHODCALLTYPE *Release )(
  16657. ISpeechLexicon * This);
  16658. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16659. ISpeechLexicon * This,
  16660. /* [out] */ UINT *pctinfo);
  16661. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16662. ISpeechLexicon * This,
  16663. /* [in] */ UINT iTInfo,
  16664. /* [in] */ LCID lcid,
  16665. /* [out] */ ITypeInfo **ppTInfo);
  16666. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16667. ISpeechLexicon * This,
  16668. /* [in] */ REFIID riid,
  16669. /* [size_is][in] */ LPOLESTR *rgszNames,
  16670. /* [in] */ UINT cNames,
  16671. /* [in] */ LCID lcid,
  16672. /* [size_is][out] */ DISPID *rgDispId);
  16673. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16674. ISpeechLexicon * This,
  16675. /* [in] */ DISPID dispIdMember,
  16676. /* [in] */ REFIID riid,
  16677. /* [in] */ LCID lcid,
  16678. /* [in] */ WORD wFlags,
  16679. /* [out][in] */ DISPPARAMS *pDispParams,
  16680. /* [out] */ VARIANT *pVarResult,
  16681. /* [out] */ EXCEPINFO *pExcepInfo,
  16682. /* [out] */ UINT *puArgErr);
  16683. /* [hidden][id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerationId )(
  16684. ISpeechLexicon * This,
  16685. /* [retval][out] */ long *GenerationId);
  16686. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetWords )(
  16687. ISpeechLexicon * This,
  16688. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16689. /* [defaultvalue][out] */ long *GenerationID,
  16690. /* [retval][out] */ ISpeechLexiconWords **Words);
  16691. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPronunciation )(
  16692. ISpeechLexicon * This,
  16693. /* [in] */ BSTR bstrWord,
  16694. /* [in] */ SpeechLanguageId LangId,
  16695. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16696. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16697. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPronunciationByPhoneIds )(
  16698. ISpeechLexicon * This,
  16699. /* [in] */ BSTR bstrWord,
  16700. /* [in] */ SpeechLanguageId LangId,
  16701. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16702. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16703. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemovePronunciation )(
  16704. ISpeechLexicon * This,
  16705. /* [in] */ BSTR bstrWord,
  16706. /* [in] */ SpeechLanguageId LangId,
  16707. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16708. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16709. /* [id][hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemovePronunciationByPhoneIds )(
  16710. ISpeechLexicon * This,
  16711. /* [in] */ BSTR bstrWord,
  16712. /* [in] */ SpeechLanguageId LangId,
  16713. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16714. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16715. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPronunciations )(
  16716. ISpeechLexicon * This,
  16717. /* [in] */ BSTR bstrWord,
  16718. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16719. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16720. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations);
  16721. /* [hidden][id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGenerationChange )(
  16722. ISpeechLexicon * This,
  16723. /* [out][in] */ long *GenerationID,
  16724. /* [retval][out] */ ISpeechLexiconWords **ppWords);
  16725. END_INTERFACE
  16726. } ISpeechLexiconVtbl;
  16727. interface ISpeechLexicon
  16728. {
  16729. CONST_VTBL struct ISpeechLexiconVtbl *lpVtbl;
  16730. };
  16731. #ifdef COBJMACROS
  16732. #define ISpeechLexicon_QueryInterface(This,riid,ppvObject) \
  16733. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16734. #define ISpeechLexicon_AddRef(This) \
  16735. (This)->lpVtbl -> AddRef(This)
  16736. #define ISpeechLexicon_Release(This) \
  16737. (This)->lpVtbl -> Release(This)
  16738. #define ISpeechLexicon_GetTypeInfoCount(This,pctinfo) \
  16739. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16740. #define ISpeechLexicon_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16741. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16742. #define ISpeechLexicon_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16743. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16744. #define ISpeechLexicon_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16745. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16746. #define ISpeechLexicon_get_GenerationId(This,GenerationId) \
  16747. (This)->lpVtbl -> get_GenerationId(This,GenerationId)
  16748. #define ISpeechLexicon_GetWords(This,Flags,GenerationID,Words) \
  16749. (This)->lpVtbl -> GetWords(This,Flags,GenerationID,Words)
  16750. #define ISpeechLexicon_AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) \
  16751. (This)->lpVtbl -> AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  16752. #define ISpeechLexicon_AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) \
  16753. (This)->lpVtbl -> AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  16754. #define ISpeechLexicon_RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) \
  16755. (This)->lpVtbl -> RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  16756. #define ISpeechLexicon_RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) \
  16757. (This)->lpVtbl -> RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  16758. #define ISpeechLexicon_GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations) \
  16759. (This)->lpVtbl -> GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations)
  16760. #define ISpeechLexicon_GetGenerationChange(This,GenerationID,ppWords) \
  16761. (This)->lpVtbl -> GetGenerationChange(This,GenerationID,ppWords)
  16762. #endif /* COBJMACROS */
  16763. #endif /* C style interface */
  16764. /* [hidden][id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_get_GenerationId_Proxy(
  16765. ISpeechLexicon * This,
  16766. /* [retval][out] */ long *GenerationId);
  16767. void __RPC_STUB ISpeechLexicon_get_GenerationId_Stub(
  16768. IRpcStubBuffer *This,
  16769. IRpcChannelBuffer *_pRpcChannelBuffer,
  16770. PRPC_MESSAGE _pRpcMessage,
  16771. DWORD *_pdwStubPhase);
  16772. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetWords_Proxy(
  16773. ISpeechLexicon * This,
  16774. /* [defaultvalue][in] */ SpeechLexiconType Flags,
  16775. /* [defaultvalue][out] */ long *GenerationID,
  16776. /* [retval][out] */ ISpeechLexiconWords **Words);
  16777. void __RPC_STUB ISpeechLexicon_GetWords_Stub(
  16778. IRpcStubBuffer *This,
  16779. IRpcChannelBuffer *_pRpcChannelBuffer,
  16780. PRPC_MESSAGE _pRpcMessage,
  16781. DWORD *_pdwStubPhase);
  16782. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_AddPronunciation_Proxy(
  16783. ISpeechLexicon * This,
  16784. /* [in] */ BSTR bstrWord,
  16785. /* [in] */ SpeechLanguageId LangId,
  16786. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16787. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16788. void __RPC_STUB ISpeechLexicon_AddPronunciation_Stub(
  16789. IRpcStubBuffer *This,
  16790. IRpcChannelBuffer *_pRpcChannelBuffer,
  16791. PRPC_MESSAGE _pRpcMessage,
  16792. DWORD *_pdwStubPhase);
  16793. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_AddPronunciationByPhoneIds_Proxy(
  16794. ISpeechLexicon * This,
  16795. /* [in] */ BSTR bstrWord,
  16796. /* [in] */ SpeechLanguageId LangId,
  16797. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16798. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16799. void __RPC_STUB ISpeechLexicon_AddPronunciationByPhoneIds_Stub(
  16800. IRpcStubBuffer *This,
  16801. IRpcChannelBuffer *_pRpcChannelBuffer,
  16802. PRPC_MESSAGE _pRpcMessage,
  16803. DWORD *_pdwStubPhase);
  16804. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_RemovePronunciation_Proxy(
  16805. ISpeechLexicon * This,
  16806. /* [in] */ BSTR bstrWord,
  16807. /* [in] */ SpeechLanguageId LangId,
  16808. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16809. /* [defaultvalue][in] */ BSTR bstrPronunciation);
  16810. void __RPC_STUB ISpeechLexicon_RemovePronunciation_Stub(
  16811. IRpcStubBuffer *This,
  16812. IRpcChannelBuffer *_pRpcChannelBuffer,
  16813. PRPC_MESSAGE _pRpcMessage,
  16814. DWORD *_pdwStubPhase);
  16815. /* [id][hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_RemovePronunciationByPhoneIds_Proxy(
  16816. ISpeechLexicon * This,
  16817. /* [in] */ BSTR bstrWord,
  16818. /* [in] */ SpeechLanguageId LangId,
  16819. /* [defaultvalue][in] */ SpeechPartOfSpeech PartOfSpeech,
  16820. /* [defaultvalue][in] */ VARIANT *PhoneIds);
  16821. void __RPC_STUB ISpeechLexicon_RemovePronunciationByPhoneIds_Stub(
  16822. IRpcStubBuffer *This,
  16823. IRpcChannelBuffer *_pRpcChannelBuffer,
  16824. PRPC_MESSAGE _pRpcMessage,
  16825. DWORD *_pdwStubPhase);
  16826. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetPronunciations_Proxy(
  16827. ISpeechLexicon * This,
  16828. /* [in] */ BSTR bstrWord,
  16829. /* [defaultvalue][in] */ SpeechLanguageId LangId,
  16830. /* [defaultvalue][in] */ SpeechLexiconType TypeFlags,
  16831. /* [retval][out] */ ISpeechLexiconPronunciations **ppPronunciations);
  16832. void __RPC_STUB ISpeechLexicon_GetPronunciations_Stub(
  16833. IRpcStubBuffer *This,
  16834. IRpcChannelBuffer *_pRpcChannelBuffer,
  16835. PRPC_MESSAGE _pRpcMessage,
  16836. DWORD *_pdwStubPhase);
  16837. /* [hidden][id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechLexicon_GetGenerationChange_Proxy(
  16838. ISpeechLexicon * This,
  16839. /* [out][in] */ long *GenerationID,
  16840. /* [retval][out] */ ISpeechLexiconWords **ppWords);
  16841. void __RPC_STUB ISpeechLexicon_GetGenerationChange_Stub(
  16842. IRpcStubBuffer *This,
  16843. IRpcChannelBuffer *_pRpcChannelBuffer,
  16844. PRPC_MESSAGE _pRpcMessage,
  16845. DWORD *_pdwStubPhase);
  16846. #endif /* __ISpeechLexicon_INTERFACE_DEFINED__ */
  16847. #ifndef __ISpeechLexiconWords_INTERFACE_DEFINED__
  16848. #define __ISpeechLexiconWords_INTERFACE_DEFINED__
  16849. /* interface ISpeechLexiconWords */
  16850. /* [unique][helpstring][dual][uuid][object] */
  16851. EXTERN_C const IID IID_ISpeechLexiconWords;
  16852. #if defined(__cplusplus) && !defined(CINTERFACE)
  16853. MIDL_INTERFACE("8D199862-415E-47d5-AC4F-FAA608B424E6")
  16854. ISpeechLexiconWords : public IDispatch
  16855. {
  16856. public:
  16857. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count(
  16858. /* [retval][out] */ long *Count) = 0;
  16859. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  16860. /* [in] */ long Index,
  16861. /* [retval][out] */ ISpeechLexiconWord **Word) = 0;
  16862. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  16863. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  16864. };
  16865. #else /* C style interface */
  16866. typedef struct ISpeechLexiconWordsVtbl
  16867. {
  16868. BEGIN_INTERFACE
  16869. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16870. ISpeechLexiconWords * This,
  16871. /* [in] */ REFIID riid,
  16872. /* [iid_is][out] */ void **ppvObject);
  16873. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16874. ISpeechLexiconWords * This);
  16875. ULONG ( STDMETHODCALLTYPE *Release )(
  16876. ISpeechLexiconWords * This);
  16877. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16878. ISpeechLexiconWords * This,
  16879. /* [out] */ UINT *pctinfo);
  16880. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  16881. ISpeechLexiconWords * This,
  16882. /* [in] */ UINT iTInfo,
  16883. /* [in] */ LCID lcid,
  16884. /* [out] */ ITypeInfo **ppTInfo);
  16885. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  16886. ISpeechLexiconWords * This,
  16887. /* [in] */ REFIID riid,
  16888. /* [size_is][in] */ LPOLESTR *rgszNames,
  16889. /* [in] */ UINT cNames,
  16890. /* [in] */ LCID lcid,
  16891. /* [size_is][out] */ DISPID *rgDispId);
  16892. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  16893. ISpeechLexiconWords * This,
  16894. /* [in] */ DISPID dispIdMember,
  16895. /* [in] */ REFIID riid,
  16896. /* [in] */ LCID lcid,
  16897. /* [in] */ WORD wFlags,
  16898. /* [out][in] */ DISPPARAMS *pDispParams,
  16899. /* [out] */ VARIANT *pVarResult,
  16900. /* [out] */ EXCEPINFO *pExcepInfo,
  16901. /* [out] */ UINT *puArgErr);
  16902. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  16903. ISpeechLexiconWords * This,
  16904. /* [retval][out] */ long *Count);
  16905. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  16906. ISpeechLexiconWords * This,
  16907. /* [in] */ long Index,
  16908. /* [retval][out] */ ISpeechLexiconWord **Word);
  16909. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  16910. ISpeechLexiconWords * This,
  16911. /* [retval][out] */ IUnknown **EnumVARIANT);
  16912. END_INTERFACE
  16913. } ISpeechLexiconWordsVtbl;
  16914. interface ISpeechLexiconWords
  16915. {
  16916. CONST_VTBL struct ISpeechLexiconWordsVtbl *lpVtbl;
  16917. };
  16918. #ifdef COBJMACROS
  16919. #define ISpeechLexiconWords_QueryInterface(This,riid,ppvObject) \
  16920. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  16921. #define ISpeechLexiconWords_AddRef(This) \
  16922. (This)->lpVtbl -> AddRef(This)
  16923. #define ISpeechLexiconWords_Release(This) \
  16924. (This)->lpVtbl -> Release(This)
  16925. #define ISpeechLexiconWords_GetTypeInfoCount(This,pctinfo) \
  16926. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  16927. #define ISpeechLexiconWords_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  16928. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16929. #define ISpeechLexiconWords_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  16930. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16931. #define ISpeechLexiconWords_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  16932. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16933. #define ISpeechLexiconWords_get_Count(This,Count) \
  16934. (This)->lpVtbl -> get_Count(This,Count)
  16935. #define ISpeechLexiconWords_Item(This,Index,Word) \
  16936. (This)->lpVtbl -> Item(This,Index,Word)
  16937. #define ISpeechLexiconWords_get__NewEnum(This,EnumVARIANT) \
  16938. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  16939. #endif /* COBJMACROS */
  16940. #endif /* C style interface */
  16941. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_get_Count_Proxy(
  16942. ISpeechLexiconWords * This,
  16943. /* [retval][out] */ long *Count);
  16944. void __RPC_STUB ISpeechLexiconWords_get_Count_Stub(
  16945. IRpcStubBuffer *This,
  16946. IRpcChannelBuffer *_pRpcChannelBuffer,
  16947. PRPC_MESSAGE _pRpcMessage,
  16948. DWORD *_pdwStubPhase);
  16949. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_Item_Proxy(
  16950. ISpeechLexiconWords * This,
  16951. /* [in] */ long Index,
  16952. /* [retval][out] */ ISpeechLexiconWord **Word);
  16953. void __RPC_STUB ISpeechLexiconWords_Item_Stub(
  16954. IRpcStubBuffer *This,
  16955. IRpcChannelBuffer *_pRpcChannelBuffer,
  16956. PRPC_MESSAGE _pRpcMessage,
  16957. DWORD *_pdwStubPhase);
  16958. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWords_get__NewEnum_Proxy(
  16959. ISpeechLexiconWords * This,
  16960. /* [retval][out] */ IUnknown **EnumVARIANT);
  16961. void __RPC_STUB ISpeechLexiconWords_get__NewEnum_Stub(
  16962. IRpcStubBuffer *This,
  16963. IRpcChannelBuffer *_pRpcChannelBuffer,
  16964. PRPC_MESSAGE _pRpcMessage,
  16965. DWORD *_pdwStubPhase);
  16966. #endif /* __ISpeechLexiconWords_INTERFACE_DEFINED__ */
  16967. #ifndef __ISpeechLexiconWord_INTERFACE_DEFINED__
  16968. #define __ISpeechLexiconWord_INTERFACE_DEFINED__
  16969. /* interface ISpeechLexiconWord */
  16970. /* [unique][helpstring][dual][uuid][object] */
  16971. EXTERN_C const IID IID_ISpeechLexiconWord;
  16972. #if defined(__cplusplus) && !defined(CINTERFACE)
  16973. MIDL_INTERFACE("4E5B933C-C9BE-48ed-8842-1EE51BB1D4FF")
  16974. ISpeechLexiconWord : public IDispatch
  16975. {
  16976. public:
  16977. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LangId(
  16978. /* [retval][out] */ SpeechLanguageId *LangId) = 0;
  16979. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Type(
  16980. /* [retval][out] */ SpeechWordType *WordType) = 0;
  16981. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Word(
  16982. /* [retval][out] */ BSTR *Word) = 0;
  16983. virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Pronunciations(
  16984. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations) = 0;
  16985. };
  16986. #else /* C style interface */
  16987. typedef struct ISpeechLexiconWordVtbl
  16988. {
  16989. BEGIN_INTERFACE
  16990. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  16991. ISpeechLexiconWord * This,
  16992. /* [in] */ REFIID riid,
  16993. /* [iid_is][out] */ void **ppvObject);
  16994. ULONG ( STDMETHODCALLTYPE *AddRef )(
  16995. ISpeechLexiconWord * This);
  16996. ULONG ( STDMETHODCALLTYPE *Release )(
  16997. ISpeechLexiconWord * This);
  16998. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  16999. ISpeechLexiconWord * This,
  17000. /* [out] */ UINT *pctinfo);
  17001. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17002. ISpeechLexiconWord * This,
  17003. /* [in] */ UINT iTInfo,
  17004. /* [in] */ LCID lcid,
  17005. /* [out] */ ITypeInfo **ppTInfo);
  17006. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17007. ISpeechLexiconWord * This,
  17008. /* [in] */ REFIID riid,
  17009. /* [size_is][in] */ LPOLESTR *rgszNames,
  17010. /* [in] */ UINT cNames,
  17011. /* [in] */ LCID lcid,
  17012. /* [size_is][out] */ DISPID *rgDispId);
  17013. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17014. ISpeechLexiconWord * This,
  17015. /* [in] */ DISPID dispIdMember,
  17016. /* [in] */ REFIID riid,
  17017. /* [in] */ LCID lcid,
  17018. /* [in] */ WORD wFlags,
  17019. /* [out][in] */ DISPPARAMS *pDispParams,
  17020. /* [out] */ VARIANT *pVarResult,
  17021. /* [out] */ EXCEPINFO *pExcepInfo,
  17022. /* [out] */ UINT *puArgErr);
  17023. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LangId )(
  17024. ISpeechLexiconWord * This,
  17025. /* [retval][out] */ SpeechLanguageId *LangId);
  17026. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  17027. ISpeechLexiconWord * This,
  17028. /* [retval][out] */ SpeechWordType *WordType);
  17029. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Word )(
  17030. ISpeechLexiconWord * This,
  17031. /* [retval][out] */ BSTR *Word);
  17032. /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Pronunciations )(
  17033. ISpeechLexiconWord * This,
  17034. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations);
  17035. END_INTERFACE
  17036. } ISpeechLexiconWordVtbl;
  17037. interface ISpeechLexiconWord
  17038. {
  17039. CONST_VTBL struct ISpeechLexiconWordVtbl *lpVtbl;
  17040. };
  17041. #ifdef COBJMACROS
  17042. #define ISpeechLexiconWord_QueryInterface(This,riid,ppvObject) \
  17043. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17044. #define ISpeechLexiconWord_AddRef(This) \
  17045. (This)->lpVtbl -> AddRef(This)
  17046. #define ISpeechLexiconWord_Release(This) \
  17047. (This)->lpVtbl -> Release(This)
  17048. #define ISpeechLexiconWord_GetTypeInfoCount(This,pctinfo) \
  17049. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17050. #define ISpeechLexiconWord_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17051. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17052. #define ISpeechLexiconWord_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17053. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17054. #define ISpeechLexiconWord_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17055. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17056. #define ISpeechLexiconWord_get_LangId(This,LangId) \
  17057. (This)->lpVtbl -> get_LangId(This,LangId)
  17058. #define ISpeechLexiconWord_get_Type(This,WordType) \
  17059. (This)->lpVtbl -> get_Type(This,WordType)
  17060. #define ISpeechLexiconWord_get_Word(This,Word) \
  17061. (This)->lpVtbl -> get_Word(This,Word)
  17062. #define ISpeechLexiconWord_get_Pronunciations(This,Pronunciations) \
  17063. (This)->lpVtbl -> get_Pronunciations(This,Pronunciations)
  17064. #endif /* COBJMACROS */
  17065. #endif /* C style interface */
  17066. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_LangId_Proxy(
  17067. ISpeechLexiconWord * This,
  17068. /* [retval][out] */ SpeechLanguageId *LangId);
  17069. void __RPC_STUB ISpeechLexiconWord_get_LangId_Stub(
  17070. IRpcStubBuffer *This,
  17071. IRpcChannelBuffer *_pRpcChannelBuffer,
  17072. PRPC_MESSAGE _pRpcMessage,
  17073. DWORD *_pdwStubPhase);
  17074. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Type_Proxy(
  17075. ISpeechLexiconWord * This,
  17076. /* [retval][out] */ SpeechWordType *WordType);
  17077. void __RPC_STUB ISpeechLexiconWord_get_Type_Stub(
  17078. IRpcStubBuffer *This,
  17079. IRpcChannelBuffer *_pRpcChannelBuffer,
  17080. PRPC_MESSAGE _pRpcMessage,
  17081. DWORD *_pdwStubPhase);
  17082. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Word_Proxy(
  17083. ISpeechLexiconWord * This,
  17084. /* [retval][out] */ BSTR *Word);
  17085. void __RPC_STUB ISpeechLexiconWord_get_Word_Stub(
  17086. IRpcStubBuffer *This,
  17087. IRpcChannelBuffer *_pRpcChannelBuffer,
  17088. PRPC_MESSAGE _pRpcMessage,
  17089. DWORD *_pdwStubPhase);
  17090. /* [propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconWord_get_Pronunciations_Proxy(
  17091. ISpeechLexiconWord * This,
  17092. /* [retval][out] */ ISpeechLexiconPronunciations **Pronunciations);
  17093. void __RPC_STUB ISpeechLexiconWord_get_Pronunciations_Stub(
  17094. IRpcStubBuffer *This,
  17095. IRpcChannelBuffer *_pRpcChannelBuffer,
  17096. PRPC_MESSAGE _pRpcMessage,
  17097. DWORD *_pdwStubPhase);
  17098. #endif /* __ISpeechLexiconWord_INTERFACE_DEFINED__ */
  17099. #ifndef __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  17100. #define __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  17101. /* interface ISpeechLexiconPronunciations */
  17102. /* [unique][helpstring][dual][uuid][object] */
  17103. EXTERN_C const IID IID_ISpeechLexiconPronunciations;
  17104. #if defined(__cplusplus) && !defined(CINTERFACE)
  17105. MIDL_INTERFACE("72829128-5682-4704-A0D4-3E2BB6F2EAD3")
  17106. ISpeechLexiconPronunciations : public IDispatch
  17107. {
  17108. public:
  17109. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count(
  17110. /* [retval][out] */ long *Count) = 0;
  17111. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item(
  17112. /* [in] */ long Index,
  17113. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation) = 0;
  17114. virtual /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum(
  17115. /* [retval][out] */ IUnknown **EnumVARIANT) = 0;
  17116. };
  17117. #else /* C style interface */
  17118. typedef struct ISpeechLexiconPronunciationsVtbl
  17119. {
  17120. BEGIN_INTERFACE
  17121. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17122. ISpeechLexiconPronunciations * This,
  17123. /* [in] */ REFIID riid,
  17124. /* [iid_is][out] */ void **ppvObject);
  17125. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17126. ISpeechLexiconPronunciations * This);
  17127. ULONG ( STDMETHODCALLTYPE *Release )(
  17128. ISpeechLexiconPronunciations * This);
  17129. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17130. ISpeechLexiconPronunciations * This,
  17131. /* [out] */ UINT *pctinfo);
  17132. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17133. ISpeechLexiconPronunciations * This,
  17134. /* [in] */ UINT iTInfo,
  17135. /* [in] */ LCID lcid,
  17136. /* [out] */ ITypeInfo **ppTInfo);
  17137. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17138. ISpeechLexiconPronunciations * This,
  17139. /* [in] */ REFIID riid,
  17140. /* [size_is][in] */ LPOLESTR *rgszNames,
  17141. /* [in] */ UINT cNames,
  17142. /* [in] */ LCID lcid,
  17143. /* [size_is][out] */ DISPID *rgDispId);
  17144. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17145. ISpeechLexiconPronunciations * This,
  17146. /* [in] */ DISPID dispIdMember,
  17147. /* [in] */ REFIID riid,
  17148. /* [in] */ LCID lcid,
  17149. /* [in] */ WORD wFlags,
  17150. /* [out][in] */ DISPPARAMS *pDispParams,
  17151. /* [out] */ VARIANT *pVarResult,
  17152. /* [out] */ EXCEPINFO *pExcepInfo,
  17153. /* [out] */ UINT *puArgErr);
  17154. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )(
  17155. ISpeechLexiconPronunciations * This,
  17156. /* [retval][out] */ long *Count);
  17157. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )(
  17158. ISpeechLexiconPronunciations * This,
  17159. /* [in] */ long Index,
  17160. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation);
  17161. /* [restricted][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )(
  17162. ISpeechLexiconPronunciations * This,
  17163. /* [retval][out] */ IUnknown **EnumVARIANT);
  17164. END_INTERFACE
  17165. } ISpeechLexiconPronunciationsVtbl;
  17166. interface ISpeechLexiconPronunciations
  17167. {
  17168. CONST_VTBL struct ISpeechLexiconPronunciationsVtbl *lpVtbl;
  17169. };
  17170. #ifdef COBJMACROS
  17171. #define ISpeechLexiconPronunciations_QueryInterface(This,riid,ppvObject) \
  17172. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17173. #define ISpeechLexiconPronunciations_AddRef(This) \
  17174. (This)->lpVtbl -> AddRef(This)
  17175. #define ISpeechLexiconPronunciations_Release(This) \
  17176. (This)->lpVtbl -> Release(This)
  17177. #define ISpeechLexiconPronunciations_GetTypeInfoCount(This,pctinfo) \
  17178. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17179. #define ISpeechLexiconPronunciations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17180. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17181. #define ISpeechLexiconPronunciations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17182. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17183. #define ISpeechLexiconPronunciations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17184. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17185. #define ISpeechLexiconPronunciations_get_Count(This,Count) \
  17186. (This)->lpVtbl -> get_Count(This,Count)
  17187. #define ISpeechLexiconPronunciations_Item(This,Index,Pronunciation) \
  17188. (This)->lpVtbl -> Item(This,Index,Pronunciation)
  17189. #define ISpeechLexiconPronunciations_get__NewEnum(This,EnumVARIANT) \
  17190. (This)->lpVtbl -> get__NewEnum(This,EnumVARIANT)
  17191. #endif /* COBJMACROS */
  17192. #endif /* C style interface */
  17193. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_get_Count_Proxy(
  17194. ISpeechLexiconPronunciations * This,
  17195. /* [retval][out] */ long *Count);
  17196. void __RPC_STUB ISpeechLexiconPronunciations_get_Count_Stub(
  17197. IRpcStubBuffer *This,
  17198. IRpcChannelBuffer *_pRpcChannelBuffer,
  17199. PRPC_MESSAGE _pRpcMessage,
  17200. DWORD *_pdwStubPhase);
  17201. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_Item_Proxy(
  17202. ISpeechLexiconPronunciations * This,
  17203. /* [in] */ long Index,
  17204. /* [retval][out] */ ISpeechLexiconPronunciation **Pronunciation);
  17205. void __RPC_STUB ISpeechLexiconPronunciations_Item_Stub(
  17206. IRpcStubBuffer *This,
  17207. IRpcChannelBuffer *_pRpcChannelBuffer,
  17208. PRPC_MESSAGE _pRpcMessage,
  17209. DWORD *_pdwStubPhase);
  17210. /* [restricted][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciations_get__NewEnum_Proxy(
  17211. ISpeechLexiconPronunciations * This,
  17212. /* [retval][out] */ IUnknown **EnumVARIANT);
  17213. void __RPC_STUB ISpeechLexiconPronunciations_get__NewEnum_Stub(
  17214. IRpcStubBuffer *This,
  17215. IRpcChannelBuffer *_pRpcChannelBuffer,
  17216. PRPC_MESSAGE _pRpcMessage,
  17217. DWORD *_pdwStubPhase);
  17218. #endif /* __ISpeechLexiconPronunciations_INTERFACE_DEFINED__ */
  17219. #ifndef __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  17220. #define __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  17221. /* interface ISpeechLexiconPronunciation */
  17222. /* [unique][helpstring][dual][uuid][object] */
  17223. EXTERN_C const IID IID_ISpeechLexiconPronunciation;
  17224. #if defined(__cplusplus) && !defined(CINTERFACE)
  17225. MIDL_INTERFACE("95252C5D-9E43-4f4a-9899-48EE73352F9F")
  17226. ISpeechLexiconPronunciation : public IDispatch
  17227. {
  17228. public:
  17229. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type(
  17230. /* [retval][out] */ SpeechLexiconType *LexiconType) = 0;
  17231. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LangId(
  17232. /* [retval][out] */ SpeechLanguageId *LangId) = 0;
  17233. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_PartOfSpeech(
  17234. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech) = 0;
  17235. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_PhoneIds(
  17236. /* [retval][out] */ VARIANT *PhoneIds) = 0;
  17237. virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Symbolic(
  17238. /* [retval][out] */ BSTR *Symbolic) = 0;
  17239. };
  17240. #else /* C style interface */
  17241. typedef struct ISpeechLexiconPronunciationVtbl
  17242. {
  17243. BEGIN_INTERFACE
  17244. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17245. ISpeechLexiconPronunciation * This,
  17246. /* [in] */ REFIID riid,
  17247. /* [iid_is][out] */ void **ppvObject);
  17248. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17249. ISpeechLexiconPronunciation * This);
  17250. ULONG ( STDMETHODCALLTYPE *Release )(
  17251. ISpeechLexiconPronunciation * This);
  17252. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17253. ISpeechLexiconPronunciation * This,
  17254. /* [out] */ UINT *pctinfo);
  17255. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17256. ISpeechLexiconPronunciation * This,
  17257. /* [in] */ UINT iTInfo,
  17258. /* [in] */ LCID lcid,
  17259. /* [out] */ ITypeInfo **ppTInfo);
  17260. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17261. ISpeechLexiconPronunciation * This,
  17262. /* [in] */ REFIID riid,
  17263. /* [size_is][in] */ LPOLESTR *rgszNames,
  17264. /* [in] */ UINT cNames,
  17265. /* [in] */ LCID lcid,
  17266. /* [size_is][out] */ DISPID *rgDispId);
  17267. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17268. ISpeechLexiconPronunciation * This,
  17269. /* [in] */ DISPID dispIdMember,
  17270. /* [in] */ REFIID riid,
  17271. /* [in] */ LCID lcid,
  17272. /* [in] */ WORD wFlags,
  17273. /* [out][in] */ DISPPARAMS *pDispParams,
  17274. /* [out] */ VARIANT *pVarResult,
  17275. /* [out] */ EXCEPINFO *pExcepInfo,
  17276. /* [out] */ UINT *puArgErr);
  17277. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )(
  17278. ISpeechLexiconPronunciation * This,
  17279. /* [retval][out] */ SpeechLexiconType *LexiconType);
  17280. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LangId )(
  17281. ISpeechLexiconPronunciation * This,
  17282. /* [retval][out] */ SpeechLanguageId *LangId);
  17283. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PartOfSpeech )(
  17284. ISpeechLexiconPronunciation * This,
  17285. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech);
  17286. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PhoneIds )(
  17287. ISpeechLexiconPronunciation * This,
  17288. /* [retval][out] */ VARIANT *PhoneIds);
  17289. /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Symbolic )(
  17290. ISpeechLexiconPronunciation * This,
  17291. /* [retval][out] */ BSTR *Symbolic);
  17292. END_INTERFACE
  17293. } ISpeechLexiconPronunciationVtbl;
  17294. interface ISpeechLexiconPronunciation
  17295. {
  17296. CONST_VTBL struct ISpeechLexiconPronunciationVtbl *lpVtbl;
  17297. };
  17298. #ifdef COBJMACROS
  17299. #define ISpeechLexiconPronunciation_QueryInterface(This,riid,ppvObject) \
  17300. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17301. #define ISpeechLexiconPronunciation_AddRef(This) \
  17302. (This)->lpVtbl -> AddRef(This)
  17303. #define ISpeechLexiconPronunciation_Release(This) \
  17304. (This)->lpVtbl -> Release(This)
  17305. #define ISpeechLexiconPronunciation_GetTypeInfoCount(This,pctinfo) \
  17306. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17307. #define ISpeechLexiconPronunciation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17308. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17309. #define ISpeechLexiconPronunciation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17310. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17311. #define ISpeechLexiconPronunciation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17312. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17313. #define ISpeechLexiconPronunciation_get_Type(This,LexiconType) \
  17314. (This)->lpVtbl -> get_Type(This,LexiconType)
  17315. #define ISpeechLexiconPronunciation_get_LangId(This,LangId) \
  17316. (This)->lpVtbl -> get_LangId(This,LangId)
  17317. #define ISpeechLexiconPronunciation_get_PartOfSpeech(This,PartOfSpeech) \
  17318. (This)->lpVtbl -> get_PartOfSpeech(This,PartOfSpeech)
  17319. #define ISpeechLexiconPronunciation_get_PhoneIds(This,PhoneIds) \
  17320. (This)->lpVtbl -> get_PhoneIds(This,PhoneIds)
  17321. #define ISpeechLexiconPronunciation_get_Symbolic(This,Symbolic) \
  17322. (This)->lpVtbl -> get_Symbolic(This,Symbolic)
  17323. #endif /* COBJMACROS */
  17324. #endif /* C style interface */
  17325. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_Type_Proxy(
  17326. ISpeechLexiconPronunciation * This,
  17327. /* [retval][out] */ SpeechLexiconType *LexiconType);
  17328. void __RPC_STUB ISpeechLexiconPronunciation_get_Type_Stub(
  17329. IRpcStubBuffer *This,
  17330. IRpcChannelBuffer *_pRpcChannelBuffer,
  17331. PRPC_MESSAGE _pRpcMessage,
  17332. DWORD *_pdwStubPhase);
  17333. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_LangId_Proxy(
  17334. ISpeechLexiconPronunciation * This,
  17335. /* [retval][out] */ SpeechLanguageId *LangId);
  17336. void __RPC_STUB ISpeechLexiconPronunciation_get_LangId_Stub(
  17337. IRpcStubBuffer *This,
  17338. IRpcChannelBuffer *_pRpcChannelBuffer,
  17339. PRPC_MESSAGE _pRpcMessage,
  17340. DWORD *_pdwStubPhase);
  17341. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_PartOfSpeech_Proxy(
  17342. ISpeechLexiconPronunciation * This,
  17343. /* [retval][out] */ SpeechPartOfSpeech *PartOfSpeech);
  17344. void __RPC_STUB ISpeechLexiconPronunciation_get_PartOfSpeech_Stub(
  17345. IRpcStubBuffer *This,
  17346. IRpcChannelBuffer *_pRpcChannelBuffer,
  17347. PRPC_MESSAGE _pRpcMessage,
  17348. DWORD *_pdwStubPhase);
  17349. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_PhoneIds_Proxy(
  17350. ISpeechLexiconPronunciation * This,
  17351. /* [retval][out] */ VARIANT *PhoneIds);
  17352. void __RPC_STUB ISpeechLexiconPronunciation_get_PhoneIds_Stub(
  17353. IRpcStubBuffer *This,
  17354. IRpcChannelBuffer *_pRpcChannelBuffer,
  17355. PRPC_MESSAGE _pRpcMessage,
  17356. DWORD *_pdwStubPhase);
  17357. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE ISpeechLexiconPronunciation_get_Symbolic_Proxy(
  17358. ISpeechLexiconPronunciation * This,
  17359. /* [retval][out] */ BSTR *Symbolic);
  17360. void __RPC_STUB ISpeechLexiconPronunciation_get_Symbolic_Stub(
  17361. IRpcStubBuffer *This,
  17362. IRpcChannelBuffer *_pRpcChannelBuffer,
  17363. PRPC_MESSAGE _pRpcMessage,
  17364. DWORD *_pdwStubPhase);
  17365. #endif /* __ISpeechLexiconPronunciation_INTERFACE_DEFINED__ */
  17366. #ifndef __SpeechStringConstants_MODULE_DEFINED__
  17367. #define __SpeechStringConstants_MODULE_DEFINED__
  17368. /* module SpeechStringConstants */
  17369. /* [uuid] */
  17370. const BSTR SpeechRegistryUserRoot = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech";
  17371. const BSTR SpeechRegistryLocalMachineRoot = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech";
  17372. const BSTR SpeechCategoryAudioOut = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AudioOutput";
  17373. const BSTR SpeechCategoryAudioIn = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AudioInput";
  17374. const BSTR SpeechCategoryVoices = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices";
  17375. const BSTR SpeechCategoryRecognizers = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Recognizers";
  17376. const BSTR SpeechCategoryAppLexicons = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\AppLexicons";
  17377. const BSTR SpeechCategoryPhoneConverters = L"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\PhoneConverters";
  17378. const BSTR SpeechCategoryRecoProfiles = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech\RecoProfiles";
  17379. const BSTR SpeechTokenIdUserLexicon = L"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Speech\CurrentUserLexicon";
  17380. const BSTR SpeechTokenValueCLSID = L"CLSID";
  17381. const BSTR SpeechTokenKeyFiles = L"Files";
  17382. const BSTR SpeechTokenKeyUI = L"UI";
  17383. const BSTR SpeechTokenKeyAttributes = L"Attributes";
  17384. const BSTR SpeechVoiceCategoryTTSRate = L"DefaultTTSRate";
  17385. const BSTR SpeechPropertyResourceUsage = L"ResourceUsage";
  17386. const BSTR SpeechPropertyHighConfidenceThreshold = L"HighConfidenceThreshold";
  17387. const BSTR SpeechPropertyNormalConfidenceThreshold = L"NormalConfidenceThreshold";
  17388. const BSTR SpeechPropertyLowConfidenceThreshold = L"LowConfidenceThreshold";
  17389. const BSTR SpeechPropertyResponseSpeed = L"ResponseSpeed";
  17390. const BSTR SpeechPropertyComplexResponseSpeed = L"ComplexResponseSpeed";
  17391. const BSTR SpeechPropertyAdaptationOn = L"AdaptationOn";
  17392. const BSTR SpeechDictationTopicSpelling = L"Spelling";
  17393. const BSTR SpeechGrammarTagWildcard = L"...";
  17394. const BSTR SpeechGrammarTagDictation = L"*";
  17395. const BSTR SpeechGrammarTagUnlimitedDictation = L"*+";
  17396. const BSTR SpeechEngineProperties = L"EngineProperties";
  17397. const BSTR SpeechAddRemoveWord = L"AddRemoveWord";
  17398. const BSTR SpeechUserTraining = L"UserTraining";
  17399. const BSTR SpeechMicTraining = L"MicTraining";
  17400. const BSTR SpeechRecoProfileProperties = L"RecoProfileProperties";
  17401. const BSTR SpeechAudioProperties = L"AudioProperties";
  17402. const BSTR SpeechAudioVolume = L"AudioVolume";
  17403. const BSTR SpeechVoiceSkipTypeSentence = L"Sentence";
  17404. const BSTR SpeechAudioFormatGUIDWave = L"{C31ADBAE-527F-4ff5-A230-F62BB61FF70C}";
  17405. const BSTR SpeechAudioFormatGUIDText = L"{7CEEF9F9-3D13-11d2-9EE7-00C04F797396}";
  17406. #endif /* __SpeechStringConstants_MODULE_DEFINED__ */
  17407. #ifndef __SpeechConstants_MODULE_DEFINED__
  17408. #define __SpeechConstants_MODULE_DEFINED__
  17409. /* module SpeechConstants */
  17410. /* [uuid] */
  17411. const float Speech_Default_Weight = DEFAULT_WEIGHT;
  17412. const LONG Speech_Max_Word_Length = SP_MAX_WORD_LENGTH;
  17413. const LONG Speech_Max_Pron_Length = SP_MAX_PRON_LENGTH;
  17414. const LONG Speech_StreamPos_Asap = SP_STREAMPOS_ASAP;
  17415. const LONG Speech_StreamPos_RealTime = SP_STREAMPOS_REALTIME;
  17416. const LONG SpeechAllElements = SPPR_ALL_ELEMENTS;
  17417. #endif /* __SpeechConstants_MODULE_DEFINED__ */
  17418. #ifndef __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  17419. #define __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  17420. /* interface ISpeechPhraseInfoBuilder */
  17421. /* [unique][helpstring][dual][uuid][object] */
  17422. EXTERN_C const IID IID_ISpeechPhraseInfoBuilder;
  17423. #if defined(__cplusplus) && !defined(CINTERFACE)
  17424. MIDL_INTERFACE("3B151836-DF3A-4E0A-846C-D2ADC9334333")
  17425. ISpeechPhraseInfoBuilder : public IDispatch
  17426. {
  17427. public:
  17428. virtual /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE RestorePhraseFromMemory(
  17429. /* [in] */ VARIANT *PhraseInMemory,
  17430. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo) = 0;
  17431. };
  17432. #else /* C style interface */
  17433. typedef struct ISpeechPhraseInfoBuilderVtbl
  17434. {
  17435. BEGIN_INTERFACE
  17436. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17437. ISpeechPhraseInfoBuilder * This,
  17438. /* [in] */ REFIID riid,
  17439. /* [iid_is][out] */ void **ppvObject);
  17440. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17441. ISpeechPhraseInfoBuilder * This);
  17442. ULONG ( STDMETHODCALLTYPE *Release )(
  17443. ISpeechPhraseInfoBuilder * This);
  17444. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17445. ISpeechPhraseInfoBuilder * This,
  17446. /* [out] */ UINT *pctinfo);
  17447. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17448. ISpeechPhraseInfoBuilder * This,
  17449. /* [in] */ UINT iTInfo,
  17450. /* [in] */ LCID lcid,
  17451. /* [out] */ ITypeInfo **ppTInfo);
  17452. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17453. ISpeechPhraseInfoBuilder * This,
  17454. /* [in] */ REFIID riid,
  17455. /* [size_is][in] */ LPOLESTR *rgszNames,
  17456. /* [in] */ UINT cNames,
  17457. /* [in] */ LCID lcid,
  17458. /* [size_is][out] */ DISPID *rgDispId);
  17459. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17460. ISpeechPhraseInfoBuilder * This,
  17461. /* [in] */ DISPID dispIdMember,
  17462. /* [in] */ REFIID riid,
  17463. /* [in] */ LCID lcid,
  17464. /* [in] */ WORD wFlags,
  17465. /* [out][in] */ DISPPARAMS *pDispParams,
  17466. /* [out] */ VARIANT *pVarResult,
  17467. /* [out] */ EXCEPINFO *pExcepInfo,
  17468. /* [out] */ UINT *puArgErr);
  17469. /* [id][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RestorePhraseFromMemory )(
  17470. ISpeechPhraseInfoBuilder * This,
  17471. /* [in] */ VARIANT *PhraseInMemory,
  17472. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  17473. END_INTERFACE
  17474. } ISpeechPhraseInfoBuilderVtbl;
  17475. interface ISpeechPhraseInfoBuilder
  17476. {
  17477. CONST_VTBL struct ISpeechPhraseInfoBuilderVtbl *lpVtbl;
  17478. };
  17479. #ifdef COBJMACROS
  17480. #define ISpeechPhraseInfoBuilder_QueryInterface(This,riid,ppvObject) \
  17481. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17482. #define ISpeechPhraseInfoBuilder_AddRef(This) \
  17483. (This)->lpVtbl -> AddRef(This)
  17484. #define ISpeechPhraseInfoBuilder_Release(This) \
  17485. (This)->lpVtbl -> Release(This)
  17486. #define ISpeechPhraseInfoBuilder_GetTypeInfoCount(This,pctinfo) \
  17487. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17488. #define ISpeechPhraseInfoBuilder_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17489. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17490. #define ISpeechPhraseInfoBuilder_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17491. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17492. #define ISpeechPhraseInfoBuilder_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17493. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17494. #define ISpeechPhraseInfoBuilder_RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo) \
  17495. (This)->lpVtbl -> RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo)
  17496. #endif /* COBJMACROS */
  17497. #endif /* C style interface */
  17498. /* [id][helpstring] */ HRESULT STDMETHODCALLTYPE ISpeechPhraseInfoBuilder_RestorePhraseFromMemory_Proxy(
  17499. ISpeechPhraseInfoBuilder * This,
  17500. /* [in] */ VARIANT *PhraseInMemory,
  17501. /* [retval][out] */ ISpeechPhraseInfo **PhraseInfo);
  17502. void __RPC_STUB ISpeechPhraseInfoBuilder_RestorePhraseFromMemory_Stub(
  17503. IRpcStubBuffer *This,
  17504. IRpcChannelBuffer *_pRpcChannelBuffer,
  17505. PRPC_MESSAGE _pRpcMessage,
  17506. DWORD *_pdwStubPhase);
  17507. #endif /* __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__ */
  17508. #ifndef __ISpeechPhoneConverter_INTERFACE_DEFINED__
  17509. #define __ISpeechPhoneConverter_INTERFACE_DEFINED__
  17510. /* interface ISpeechPhoneConverter */
  17511. /* [unique][helpstring][dual][uuid][object] */
  17512. EXTERN_C const IID IID_ISpeechPhoneConverter;
  17513. #if defined(__cplusplus) && !defined(CINTERFACE)
  17514. MIDL_INTERFACE("C3E4F353-433F-43d6-89A1-6A62A7054C3D")
  17515. ISpeechPhoneConverter : public IDispatch
  17516. {
  17517. public:
  17518. virtual /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LanguageId(
  17519. /* [retval][out] */ SpeechLanguageId *LanguageId) = 0;
  17520. virtual /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_LanguageId(
  17521. /* [in] */ SpeechLanguageId LanguageId) = 0;
  17522. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PhoneToId(
  17523. /* [in] */ const BSTR Phonemes,
  17524. /* [retval][out] */ VARIANT *IdArray) = 0;
  17525. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IdToPhone(
  17526. /* [in] */ const VARIANT IdArray,
  17527. /* [retval][out] */ BSTR *Phonemes) = 0;
  17528. };
  17529. #else /* C style interface */
  17530. typedef struct ISpeechPhoneConverterVtbl
  17531. {
  17532. BEGIN_INTERFACE
  17533. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  17534. ISpeechPhoneConverter * This,
  17535. /* [in] */ REFIID riid,
  17536. /* [iid_is][out] */ void **ppvObject);
  17537. ULONG ( STDMETHODCALLTYPE *AddRef )(
  17538. ISpeechPhoneConverter * This);
  17539. ULONG ( STDMETHODCALLTYPE *Release )(
  17540. ISpeechPhoneConverter * This);
  17541. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  17542. ISpeechPhoneConverter * This,
  17543. /* [out] */ UINT *pctinfo);
  17544. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  17545. ISpeechPhoneConverter * This,
  17546. /* [in] */ UINT iTInfo,
  17547. /* [in] */ LCID lcid,
  17548. /* [out] */ ITypeInfo **ppTInfo);
  17549. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  17550. ISpeechPhoneConverter * This,
  17551. /* [in] */ REFIID riid,
  17552. /* [size_is][in] */ LPOLESTR *rgszNames,
  17553. /* [in] */ UINT cNames,
  17554. /* [in] */ LCID lcid,
  17555. /* [size_is][out] */ DISPID *rgDispId);
  17556. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  17557. ISpeechPhoneConverter * This,
  17558. /* [in] */ DISPID dispIdMember,
  17559. /* [in] */ REFIID riid,
  17560. /* [in] */ LCID lcid,
  17561. /* [in] */ WORD wFlags,
  17562. /* [out][in] */ DISPPARAMS *pDispParams,
  17563. /* [out] */ VARIANT *pVarResult,
  17564. /* [out] */ EXCEPINFO *pExcepInfo,
  17565. /* [out] */ UINT *puArgErr);
  17566. /* [id][helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LanguageId )(
  17567. ISpeechPhoneConverter * This,
  17568. /* [retval][out] */ SpeechLanguageId *LanguageId);
  17569. /* [id][helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LanguageId )(
  17570. ISpeechPhoneConverter * This,
  17571. /* [in] */ SpeechLanguageId LanguageId);
  17572. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PhoneToId )(
  17573. ISpeechPhoneConverter * This,
  17574. /* [in] */ const BSTR Phonemes,
  17575. /* [retval][out] */ VARIANT *IdArray);
  17576. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IdToPhone )(
  17577. ISpeechPhoneConverter * This,
  17578. /* [in] */ const VARIANT IdArray,
  17579. /* [retval][out] */ BSTR *Phonemes);
  17580. END_INTERFACE
  17581. } ISpeechPhoneConverterVtbl;
  17582. interface ISpeechPhoneConverter
  17583. {
  17584. CONST_VTBL struct ISpeechPhoneConverterVtbl *lpVtbl;
  17585. };
  17586. #ifdef COBJMACROS
  17587. #define ISpeechPhoneConverter_QueryInterface(This,riid,ppvObject) \
  17588. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  17589. #define ISpeechPhoneConverter_AddRef(This) \
  17590. (This)->lpVtbl -> AddRef(This)
  17591. #define ISpeechPhoneConverter_Release(This) \
  17592. (This)->lpVtbl -> Release(This)
  17593. #define ISpeechPhoneConverter_GetTypeInfoCount(This,pctinfo) \
  17594. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  17595. #define ISpeechPhoneConverter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  17596. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17597. #define ISpeechPhoneConverter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  17598. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17599. #define ISpeechPhoneConverter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  17600. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17601. #define ISpeechPhoneConverter_get_LanguageId(This,LanguageId) \
  17602. (This)->lpVtbl -> get_LanguageId(This,LanguageId)
  17603. #define ISpeechPhoneConverter_put_LanguageId(This,LanguageId) \
  17604. (This)->lpVtbl -> put_LanguageId(This,LanguageId)
  17605. #define ISpeechPhoneConverter_PhoneToId(This,Phonemes,IdArray) \
  17606. (This)->lpVtbl -> PhoneToId(This,Phonemes,IdArray)
  17607. #define ISpeechPhoneConverter_IdToPhone(This,IdArray,Phonemes) \
  17608. (This)->lpVtbl -> IdToPhone(This,IdArray,Phonemes)
  17609. #endif /* COBJMACROS */
  17610. #endif /* C style interface */
  17611. /* [id][helpstring][propget] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_get_LanguageId_Proxy(
  17612. ISpeechPhoneConverter * This,
  17613. /* [retval][out] */ SpeechLanguageId *LanguageId);
  17614. void __RPC_STUB ISpeechPhoneConverter_get_LanguageId_Stub(
  17615. IRpcStubBuffer *This,
  17616. IRpcChannelBuffer *_pRpcChannelBuffer,
  17617. PRPC_MESSAGE _pRpcMessage,
  17618. DWORD *_pdwStubPhase);
  17619. /* [id][helpstring][propput] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_put_LanguageId_Proxy(
  17620. ISpeechPhoneConverter * This,
  17621. /* [in] */ SpeechLanguageId LanguageId);
  17622. void __RPC_STUB ISpeechPhoneConverter_put_LanguageId_Stub(
  17623. IRpcStubBuffer *This,
  17624. IRpcChannelBuffer *_pRpcChannelBuffer,
  17625. PRPC_MESSAGE _pRpcMessage,
  17626. DWORD *_pdwStubPhase);
  17627. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_PhoneToId_Proxy(
  17628. ISpeechPhoneConverter * This,
  17629. /* [in] */ const BSTR Phonemes,
  17630. /* [retval][out] */ VARIANT *IdArray);
  17631. void __RPC_STUB ISpeechPhoneConverter_PhoneToId_Stub(
  17632. IRpcStubBuffer *This,
  17633. IRpcChannelBuffer *_pRpcChannelBuffer,
  17634. PRPC_MESSAGE _pRpcMessage,
  17635. DWORD *_pdwStubPhase);
  17636. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ISpeechPhoneConverter_IdToPhone_Proxy(
  17637. ISpeechPhoneConverter * This,
  17638. /* [in] */ const VARIANT IdArray,
  17639. /* [retval][out] */ BSTR *Phonemes);
  17640. void __RPC_STUB ISpeechPhoneConverter_IdToPhone_Stub(
  17641. IRpcStubBuffer *This,
  17642. IRpcChannelBuffer *_pRpcChannelBuffer,
  17643. PRPC_MESSAGE _pRpcMessage,
  17644. DWORD *_pdwStubPhase);
  17645. #endif /* __ISpeechPhoneConverter_INTERFACE_DEFINED__ */
  17646. EXTERN_C const CLSID CLSID_SpNotifyTranslator;
  17647. #ifdef __cplusplus
  17648. class DECLSPEC_UUID("E2AE5372-5D40-11D2-960E-00C04F8EE628")
  17649. SpNotifyTranslator;
  17650. #endif
  17651. EXTERN_C const CLSID CLSID_SpObjectTokenCategory;
  17652. #ifdef __cplusplus
  17653. class DECLSPEC_UUID("A910187F-0C7A-45AC-92CC-59EDAFB77B53")
  17654. SpObjectTokenCategory;
  17655. #endif
  17656. EXTERN_C const CLSID CLSID_SpObjectToken;
  17657. #ifdef __cplusplus
  17658. class DECLSPEC_UUID("EF411752-3736-4CB4-9C8C-8EF4CCB58EFE")
  17659. SpObjectToken;
  17660. #endif
  17661. EXTERN_C const CLSID CLSID_SpResourceManager;
  17662. #ifdef __cplusplus
  17663. class DECLSPEC_UUID("96749373-3391-11D2-9EE3-00C04F797396")
  17664. SpResourceManager;
  17665. #endif
  17666. EXTERN_C const CLSID CLSID_SpStreamFormatConverter;
  17667. #ifdef __cplusplus
  17668. class DECLSPEC_UUID("7013943A-E2EC-11D2-A086-00C04F8EF9B5")
  17669. SpStreamFormatConverter;
  17670. #endif
  17671. EXTERN_C const CLSID CLSID_SpMMAudioEnum;
  17672. #ifdef __cplusplus
  17673. class DECLSPEC_UUID("AB1890A0-E91F-11D2-BB91-00C04F8EE6C0")
  17674. SpMMAudioEnum;
  17675. #endif
  17676. EXTERN_C const CLSID CLSID_SpMMAudioIn;
  17677. #ifdef __cplusplus
  17678. class DECLSPEC_UUID("CF3D2E50-53F2-11D2-960C-00C04F8EE628")
  17679. SpMMAudioIn;
  17680. #endif
  17681. EXTERN_C const CLSID CLSID_SpMMAudioOut;
  17682. #ifdef __cplusplus
  17683. class DECLSPEC_UUID("A8C680EB-3D32-11D2-9EE7-00C04F797396")
  17684. SpMMAudioOut;
  17685. #endif
  17686. EXTERN_C const CLSID CLSID_SpRecPlayAudio;
  17687. #ifdef __cplusplus
  17688. class DECLSPEC_UUID("FEE225FC-7AFD-45E9-95D0-5A318079D911")
  17689. SpRecPlayAudio;
  17690. #endif
  17691. EXTERN_C const CLSID CLSID_SpStream;
  17692. #ifdef __cplusplus
  17693. class DECLSPEC_UUID("715D9C59-4442-11D2-9605-00C04F8EE628")
  17694. SpStream;
  17695. #endif
  17696. EXTERN_C const CLSID CLSID_SpVoice;
  17697. #ifdef __cplusplus
  17698. class DECLSPEC_UUID("96749377-3391-11D2-9EE3-00C04F797396")
  17699. SpVoice;
  17700. #endif
  17701. EXTERN_C const CLSID CLSID_SpSharedRecoContext;
  17702. #ifdef __cplusplus
  17703. class DECLSPEC_UUID("47206204-5ECA-11D2-960F-00C04F8EE628")
  17704. SpSharedRecoContext;
  17705. #endif
  17706. EXTERN_C const CLSID CLSID_SpInprocRecognizer;
  17707. #ifdef __cplusplus
  17708. class DECLSPEC_UUID("41B89B6B-9399-11D2-9623-00C04F8EE628")
  17709. SpInprocRecognizer;
  17710. #endif
  17711. EXTERN_C const CLSID CLSID_SpSharedRecognizer;
  17712. #ifdef __cplusplus
  17713. class DECLSPEC_UUID("3BEE4890-4FE9-4A37-8C1E-5E7E12791C1F")
  17714. SpSharedRecognizer;
  17715. #endif
  17716. EXTERN_C const CLSID CLSID_SpLexicon;
  17717. #ifdef __cplusplus
  17718. class DECLSPEC_UUID("0655E396-25D0-11D3-9C26-00C04F8EF87C")
  17719. SpLexicon;
  17720. #endif
  17721. EXTERN_C const CLSID CLSID_SpUnCompressedLexicon;
  17722. #ifdef __cplusplus
  17723. class DECLSPEC_UUID("C9E37C15-DF92-4727-85D6-72E5EEB6995A")
  17724. SpUnCompressedLexicon;
  17725. #endif
  17726. EXTERN_C const CLSID CLSID_SpCompressedLexicon;
  17727. #ifdef __cplusplus
  17728. class DECLSPEC_UUID("90903716-2F42-11D3-9C26-00C04F8EF87C")
  17729. SpCompressedLexicon;
  17730. #endif
  17731. EXTERN_C const CLSID CLSID_SpPhoneConverter;
  17732. #ifdef __cplusplus
  17733. class DECLSPEC_UUID("9185F743-1143-4C28-86B5-BFF14F20E5C8")
  17734. SpPhoneConverter;
  17735. #endif
  17736. EXTERN_C const CLSID CLSID_SpNullPhoneConverter;
  17737. #ifdef __cplusplus
  17738. class DECLSPEC_UUID("455F24E9-7396-4A16-9715-7C0FDBE3EFE3")
  17739. SpNullPhoneConverter;
  17740. #endif
  17741. EXTERN_C const CLSID CLSID_SpTextSelectionInformation;
  17742. #ifdef __cplusplus
  17743. class DECLSPEC_UUID("0F92030A-CBFD-4AB8-A164-FF5985547FF6")
  17744. SpTextSelectionInformation;
  17745. #endif
  17746. EXTERN_C const CLSID CLSID_SpPhraseInfoBuilder;
  17747. #ifdef __cplusplus
  17748. class DECLSPEC_UUID("C23FC28D-C55F-4720-8B32-91F73C2BD5D1")
  17749. SpPhraseInfoBuilder;
  17750. #endif
  17751. EXTERN_C const CLSID CLSID_SpAudioFormat;
  17752. #ifdef __cplusplus
  17753. class DECLSPEC_UUID("9EF96870-E160-4792-820D-48CF0649E4EC")
  17754. SpAudioFormat;
  17755. #endif
  17756. EXTERN_C const CLSID CLSID_SpWaveFormatEx;
  17757. #ifdef __cplusplus
  17758. class DECLSPEC_UUID("C79A574C-63BE-44b9-801F-283F87F898BE")
  17759. SpWaveFormatEx;
  17760. #endif
  17761. EXTERN_C const CLSID CLSID_SpInProcRecoContext;
  17762. #ifdef __cplusplus
  17763. class DECLSPEC_UUID("73AD6842-ACE0-45E8-A4DD-8795881A2C2A")
  17764. SpInProcRecoContext;
  17765. #endif
  17766. EXTERN_C const CLSID CLSID_SpCustomStream;
  17767. #ifdef __cplusplus
  17768. class DECLSPEC_UUID("8DBEF13F-1948-4aa8-8CF0-048EEBED95D8")
  17769. SpCustomStream;
  17770. #endif
  17771. EXTERN_C const CLSID CLSID_SpFileStream;
  17772. #ifdef __cplusplus
  17773. class DECLSPEC_UUID("947812B3-2AE1-4644-BA86-9E90DED7EC91")
  17774. SpFileStream;
  17775. #endif
  17776. EXTERN_C const CLSID CLSID_SpMemoryStream;
  17777. #ifdef __cplusplus
  17778. class DECLSPEC_UUID("5FB7EF7D-DFF4-468a-B6B7-2FCBD188F994")
  17779. SpMemoryStream;
  17780. #endif
  17781. #endif /* __SpeechLib_LIBRARY_DEFINED__ */
  17782. /* Additional Prototypes for ALL interfaces */
  17783. /* end of Additional Prototypes */
  17784. #ifdef __cplusplus
  17785. }
  17786. #endif
  17787. #endif