inputscope.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. /*** Autogenerated by WIDL 7.7 from include/inputscope.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __inputscope_h__
  14. #define __inputscope_h__
  15. /* Forward declarations */
  16. #ifndef __ITfInputScope_FWD_DEFINED__
  17. #define __ITfInputScope_FWD_DEFINED__
  18. typedef interface ITfInputScope ITfInputScope;
  19. #ifdef __cplusplus
  20. interface ITfInputScope;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __ITfInputScope2_FWD_DEFINED__
  24. #define __ITfInputScope2_FWD_DEFINED__
  25. typedef interface ITfInputScope2 ITfInputScope2;
  26. #ifdef __cplusplus
  27. interface ITfInputScope2;
  28. #endif /* __cplusplus */
  29. #endif
  30. /* Headers for imported files */
  31. #include <oaidl.h>
  32. #include <ocidl.h>
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. #include <winapifamily.h>
  37. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  38. typedef enum __WIDL_inputscope_generated_name_00000020 {
  39. IS_DEFAULT = 0,
  40. IS_URL = 1,
  41. IS_FILE_FULLFILEPATH = 2,
  42. IS_FILE_FILENAME = 3,
  43. IS_EMAIL_USERNAME = 4,
  44. IS_EMAIL_SMTPEMAILADDRESS = 5,
  45. IS_LOGINNAME = 6,
  46. IS_PERSONALNAME_FULLNAME = 7,
  47. IS_PERSONALNAME_PREFIX = 8,
  48. IS_PERSONALNAME_GIVENNAME = 9,
  49. IS_PERSONALNAME_MIDDLENAME = 10,
  50. IS_PERSONALNAME_SURNAME = 11,
  51. IS_PERSONALNAME_SUFFIX = 12,
  52. IS_ADDRESS_FULLPOSTALADDRESS = 13,
  53. IS_ADDRESS_POSTALCODE = 14,
  54. IS_ADDRESS_STREET = 15,
  55. IS_ADDRESS_STATEORPROVINCE = 16,
  56. IS_ADDRESS_CITY = 17,
  57. IS_ADDRESS_COUNTRYNAME = 18,
  58. IS_ADDRESS_COUNTRYSHORTNAME = 19,
  59. IS_CURRENCY_AMOUNTANDSYMBOL = 20,
  60. IS_CURRENCY_AMOUNT = 21,
  61. IS_DATE_FULLDATE = 22,
  62. IS_DATE_MONTH = 23,
  63. IS_DATE_DAY = 24,
  64. IS_DATE_YEAR = 25,
  65. IS_DATE_MONTHNAME = 26,
  66. IS_DATE_DAYNAME = 27,
  67. IS_DIGITS = 28,
  68. IS_NUMBER = 29,
  69. IS_ONECHAR = 30,
  70. IS_PASSWORD = 31,
  71. IS_TELEPHONE_FULLTELEPHONENUMBER = 32,
  72. IS_TELEPHONE_COUNTRYCODE = 33,
  73. IS_TELEPHONE_AREACODE = 34,
  74. IS_TELEPHONE_LOCALNUMBER = 35,
  75. IS_TIME_FULLTIME = 36,
  76. IS_TIME_HOUR = 37,
  77. IS_TIME_MINORSEC = 38,
  78. IS_NUMBER_FULLWIDTH = 39,
  79. IS_ALPHANUMERIC_HALFWIDTH = 40,
  80. IS_ALPHANUMERIC_FULLWIDTH = 41,
  81. IS_CURRENCY_CHINESE = 42,
  82. IS_BOPOMOFO = 43,
  83. IS_HIRAGANA = 44,
  84. IS_KATAKANA_HALFWIDTH = 45,
  85. IS_KATAKANA_FULLWIDTH = 46,
  86. IS_HANJA = 47,
  87. IS_HANGUL_HALFWIDTH = 48,
  88. IS_HANGUL_FULLWIDTH = 49,
  89. IS_SEARCH = 50,
  90. IS_FORMULA = 51,
  91. IS_SEARCH_INCREMENTAL = 52,
  92. IS_CHINESE_HALFWIDTH = 53,
  93. IS_CHINESE_FULLWIDTH = 54,
  94. IS_NATIVE_SCRIPT = 55,
  95. IS_YOMI = 56,
  96. IS_TEXT = 57,
  97. IS_CHAT = 58,
  98. IS_NAME_OR_PHONENUMBER = 59,
  99. IS_EMAILNAME_OR_ADDRESS = 60,
  100. IS_PRIVATE = 61,
  101. IS_MAPS = 62,
  102. IS_NUMERIC_PASSWORD = 63,
  103. IS_NUMERIC_PIN = 64,
  104. IS_ALPHANUMERIC_PIN = 65,
  105. IS_ALPHANUMERIC_PIN_SET = 66,
  106. IS_FORMULA_NUMBER = 67,
  107. IS_CHAT_WITHOUT_EMOJI = 68,
  108. IS_PHRASELIST = -1,
  109. IS_REGULAREXPRESSION = -2,
  110. IS_SRGS = -3,
  111. IS_XML = -4,
  112. IS_ENUMSTRING = -5
  113. } InputScope;
  114. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
  115. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  116. HRESULT WINAPI SetInputScope(HWND hwnd,InputScope inputscope);
  117. HRESULT WINAPI SetInputScopes(HWND hwnd,const InputScope *pInputScopes,UINT cInputScopes,WCHAR **ppszPhraseList,UINT cPhrases,WCHAR *pszRegExp,WCHAR *pszSRGS);
  118. HRESULT WINAPI SetInputScopes2(HWND hwnd,const InputScope *pInputScopes,UINT cInputScopes,IEnumString *pEnumString,PWSTR pszRegExp,PWSTR pszSRGS);
  119. HRESULT WINAPI SetInputScopeXML(HWND hwnd,WCHAR *pszXML);
  120. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
  121. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  122. DEFINE_GUID(GUID_PROP_INPUTSCOPE,0x1713dd5a,0x68e7,0x4a5b,0x9a,0xf6,0x59,0x2a,0x59,0x5c,0x77,0x8d);
  123. /*****************************************************************************
  124. * ITfInputScope interface
  125. */
  126. #ifndef __ITfInputScope_INTERFACE_DEFINED__
  127. #define __ITfInputScope_INTERFACE_DEFINED__
  128. DEFINE_GUID(IID_ITfInputScope, 0xfde1eaee, 0x6924, 0x4cdf, 0x91,0xe7, 0xda,0x38,0xcf,0xf5,0x55,0x9d);
  129. #if defined(__cplusplus) && !defined(CINTERFACE)
  130. MIDL_INTERFACE("fde1eaee-6924-4cdf-91e7-da38cff5559d")
  131. ITfInputScope : public IUnknown
  132. {
  133. virtual HRESULT STDMETHODCALLTYPE GetInputScopes(
  134. InputScope **pprgInputScopes,
  135. UINT *pcCount) = 0;
  136. virtual HRESULT STDMETHODCALLTYPE GetPhrase(
  137. BSTR **ppbstrPhrases,
  138. UINT *pcCount) = 0;
  139. virtual HRESULT STDMETHODCALLTYPE GetRegularExpression(
  140. BSTR *pbstrRegExp) = 0;
  141. virtual HRESULT STDMETHODCALLTYPE GetSRGS(
  142. BSTR *pbstrSRGS) = 0;
  143. virtual HRESULT STDMETHODCALLTYPE GetXML(
  144. BSTR *pbstrXML) = 0;
  145. };
  146. #ifdef __CRT_UUID_DECL
  147. __CRT_UUID_DECL(ITfInputScope, 0xfde1eaee, 0x6924, 0x4cdf, 0x91,0xe7, 0xda,0x38,0xcf,0xf5,0x55,0x9d)
  148. #endif
  149. #else
  150. typedef struct ITfInputScopeVtbl {
  151. BEGIN_INTERFACE
  152. /*** IUnknown methods ***/
  153. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  154. ITfInputScope *This,
  155. REFIID riid,
  156. void **ppvObject);
  157. ULONG (STDMETHODCALLTYPE *AddRef)(
  158. ITfInputScope *This);
  159. ULONG (STDMETHODCALLTYPE *Release)(
  160. ITfInputScope *This);
  161. /*** ITfInputScope methods ***/
  162. HRESULT (STDMETHODCALLTYPE *GetInputScopes)(
  163. ITfInputScope *This,
  164. InputScope **pprgInputScopes,
  165. UINT *pcCount);
  166. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  167. ITfInputScope *This,
  168. BSTR **ppbstrPhrases,
  169. UINT *pcCount);
  170. HRESULT (STDMETHODCALLTYPE *GetRegularExpression)(
  171. ITfInputScope *This,
  172. BSTR *pbstrRegExp);
  173. HRESULT (STDMETHODCALLTYPE *GetSRGS)(
  174. ITfInputScope *This,
  175. BSTR *pbstrSRGS);
  176. HRESULT (STDMETHODCALLTYPE *GetXML)(
  177. ITfInputScope *This,
  178. BSTR *pbstrXML);
  179. END_INTERFACE
  180. } ITfInputScopeVtbl;
  181. interface ITfInputScope {
  182. CONST_VTBL ITfInputScopeVtbl* lpVtbl;
  183. };
  184. #ifdef COBJMACROS
  185. #ifndef WIDL_C_INLINE_WRAPPERS
  186. /*** IUnknown methods ***/
  187. #define ITfInputScope_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  188. #define ITfInputScope_AddRef(This) (This)->lpVtbl->AddRef(This)
  189. #define ITfInputScope_Release(This) (This)->lpVtbl->Release(This)
  190. /*** ITfInputScope methods ***/
  191. #define ITfInputScope_GetInputScopes(This,pprgInputScopes,pcCount) (This)->lpVtbl->GetInputScopes(This,pprgInputScopes,pcCount)
  192. #define ITfInputScope_GetPhrase(This,ppbstrPhrases,pcCount) (This)->lpVtbl->GetPhrase(This,ppbstrPhrases,pcCount)
  193. #define ITfInputScope_GetRegularExpression(This,pbstrRegExp) (This)->lpVtbl->GetRegularExpression(This,pbstrRegExp)
  194. #define ITfInputScope_GetSRGS(This,pbstrSRGS) (This)->lpVtbl->GetSRGS(This,pbstrSRGS)
  195. #define ITfInputScope_GetXML(This,pbstrXML) (This)->lpVtbl->GetXML(This,pbstrXML)
  196. #else
  197. /*** IUnknown methods ***/
  198. static FORCEINLINE HRESULT ITfInputScope_QueryInterface(ITfInputScope* This,REFIID riid,void **ppvObject) {
  199. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  200. }
  201. static FORCEINLINE ULONG ITfInputScope_AddRef(ITfInputScope* This) {
  202. return This->lpVtbl->AddRef(This);
  203. }
  204. static FORCEINLINE ULONG ITfInputScope_Release(ITfInputScope* This) {
  205. return This->lpVtbl->Release(This);
  206. }
  207. /*** ITfInputScope methods ***/
  208. static FORCEINLINE HRESULT ITfInputScope_GetInputScopes(ITfInputScope* This,InputScope **pprgInputScopes,UINT *pcCount) {
  209. return This->lpVtbl->GetInputScopes(This,pprgInputScopes,pcCount);
  210. }
  211. static FORCEINLINE HRESULT ITfInputScope_GetPhrase(ITfInputScope* This,BSTR **ppbstrPhrases,UINT *pcCount) {
  212. return This->lpVtbl->GetPhrase(This,ppbstrPhrases,pcCount);
  213. }
  214. static FORCEINLINE HRESULT ITfInputScope_GetRegularExpression(ITfInputScope* This,BSTR *pbstrRegExp) {
  215. return This->lpVtbl->GetRegularExpression(This,pbstrRegExp);
  216. }
  217. static FORCEINLINE HRESULT ITfInputScope_GetSRGS(ITfInputScope* This,BSTR *pbstrSRGS) {
  218. return This->lpVtbl->GetSRGS(This,pbstrSRGS);
  219. }
  220. static FORCEINLINE HRESULT ITfInputScope_GetXML(ITfInputScope* This,BSTR *pbstrXML) {
  221. return This->lpVtbl->GetXML(This,pbstrXML);
  222. }
  223. #endif
  224. #endif
  225. #endif
  226. #endif /* __ITfInputScope_INTERFACE_DEFINED__ */
  227. /*****************************************************************************
  228. * ITfInputScope2 interface
  229. */
  230. #ifndef __ITfInputScope2_INTERFACE_DEFINED__
  231. #define __ITfInputScope2_INTERFACE_DEFINED__
  232. DEFINE_GUID(IID_ITfInputScope2, 0x5731eaa0, 0x6bc2, 0x4681, 0xa5,0x32, 0x92,0xfb,0xb7,0x4d,0x7c,0x41);
  233. #if defined(__cplusplus) && !defined(CINTERFACE)
  234. MIDL_INTERFACE("5731eaa0-6bc2-4681-a532-92fbb74d7c41")
  235. ITfInputScope2 : public ITfInputScope
  236. {
  237. virtual HRESULT STDMETHODCALLTYPE EnumWordList(
  238. IEnumString **ppEnumString) = 0;
  239. };
  240. #ifdef __CRT_UUID_DECL
  241. __CRT_UUID_DECL(ITfInputScope2, 0x5731eaa0, 0x6bc2, 0x4681, 0xa5,0x32, 0x92,0xfb,0xb7,0x4d,0x7c,0x41)
  242. #endif
  243. #else
  244. typedef struct ITfInputScope2Vtbl {
  245. BEGIN_INTERFACE
  246. /*** IUnknown methods ***/
  247. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  248. ITfInputScope2 *This,
  249. REFIID riid,
  250. void **ppvObject);
  251. ULONG (STDMETHODCALLTYPE *AddRef)(
  252. ITfInputScope2 *This);
  253. ULONG (STDMETHODCALLTYPE *Release)(
  254. ITfInputScope2 *This);
  255. /*** ITfInputScope methods ***/
  256. HRESULT (STDMETHODCALLTYPE *GetInputScopes)(
  257. ITfInputScope2 *This,
  258. InputScope **pprgInputScopes,
  259. UINT *pcCount);
  260. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  261. ITfInputScope2 *This,
  262. BSTR **ppbstrPhrases,
  263. UINT *pcCount);
  264. HRESULT (STDMETHODCALLTYPE *GetRegularExpression)(
  265. ITfInputScope2 *This,
  266. BSTR *pbstrRegExp);
  267. HRESULT (STDMETHODCALLTYPE *GetSRGS)(
  268. ITfInputScope2 *This,
  269. BSTR *pbstrSRGS);
  270. HRESULT (STDMETHODCALLTYPE *GetXML)(
  271. ITfInputScope2 *This,
  272. BSTR *pbstrXML);
  273. /*** ITfInputScope2 methods ***/
  274. HRESULT (STDMETHODCALLTYPE *EnumWordList)(
  275. ITfInputScope2 *This,
  276. IEnumString **ppEnumString);
  277. END_INTERFACE
  278. } ITfInputScope2Vtbl;
  279. interface ITfInputScope2 {
  280. CONST_VTBL ITfInputScope2Vtbl* lpVtbl;
  281. };
  282. #ifdef COBJMACROS
  283. #ifndef WIDL_C_INLINE_WRAPPERS
  284. /*** IUnknown methods ***/
  285. #define ITfInputScope2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  286. #define ITfInputScope2_AddRef(This) (This)->lpVtbl->AddRef(This)
  287. #define ITfInputScope2_Release(This) (This)->lpVtbl->Release(This)
  288. /*** ITfInputScope methods ***/
  289. #define ITfInputScope2_GetInputScopes(This,pprgInputScopes,pcCount) (This)->lpVtbl->GetInputScopes(This,pprgInputScopes,pcCount)
  290. #define ITfInputScope2_GetPhrase(This,ppbstrPhrases,pcCount) (This)->lpVtbl->GetPhrase(This,ppbstrPhrases,pcCount)
  291. #define ITfInputScope2_GetRegularExpression(This,pbstrRegExp) (This)->lpVtbl->GetRegularExpression(This,pbstrRegExp)
  292. #define ITfInputScope2_GetSRGS(This,pbstrSRGS) (This)->lpVtbl->GetSRGS(This,pbstrSRGS)
  293. #define ITfInputScope2_GetXML(This,pbstrXML) (This)->lpVtbl->GetXML(This,pbstrXML)
  294. /*** ITfInputScope2 methods ***/
  295. #define ITfInputScope2_EnumWordList(This,ppEnumString) (This)->lpVtbl->EnumWordList(This,ppEnumString)
  296. #else
  297. /*** IUnknown methods ***/
  298. static FORCEINLINE HRESULT ITfInputScope2_QueryInterface(ITfInputScope2* This,REFIID riid,void **ppvObject) {
  299. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  300. }
  301. static FORCEINLINE ULONG ITfInputScope2_AddRef(ITfInputScope2* This) {
  302. return This->lpVtbl->AddRef(This);
  303. }
  304. static FORCEINLINE ULONG ITfInputScope2_Release(ITfInputScope2* This) {
  305. return This->lpVtbl->Release(This);
  306. }
  307. /*** ITfInputScope methods ***/
  308. static FORCEINLINE HRESULT ITfInputScope2_GetInputScopes(ITfInputScope2* This,InputScope **pprgInputScopes,UINT *pcCount) {
  309. return This->lpVtbl->GetInputScopes(This,pprgInputScopes,pcCount);
  310. }
  311. static FORCEINLINE HRESULT ITfInputScope2_GetPhrase(ITfInputScope2* This,BSTR **ppbstrPhrases,UINT *pcCount) {
  312. return This->lpVtbl->GetPhrase(This,ppbstrPhrases,pcCount);
  313. }
  314. static FORCEINLINE HRESULT ITfInputScope2_GetRegularExpression(ITfInputScope2* This,BSTR *pbstrRegExp) {
  315. return This->lpVtbl->GetRegularExpression(This,pbstrRegExp);
  316. }
  317. static FORCEINLINE HRESULT ITfInputScope2_GetSRGS(ITfInputScope2* This,BSTR *pbstrSRGS) {
  318. return This->lpVtbl->GetSRGS(This,pbstrSRGS);
  319. }
  320. static FORCEINLINE HRESULT ITfInputScope2_GetXML(ITfInputScope2* This,BSTR *pbstrXML) {
  321. return This->lpVtbl->GetXML(This,pbstrXML);
  322. }
  323. /*** ITfInputScope2 methods ***/
  324. static FORCEINLINE HRESULT ITfInputScope2_EnumWordList(ITfInputScope2* This,IEnumString **ppEnumString) {
  325. return This->lpVtbl->EnumWordList(This,ppEnumString);
  326. }
  327. #endif
  328. #endif
  329. #endif
  330. #endif /* __ITfInputScope2_INTERFACE_DEFINED__ */
  331. #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
  332. /* Begin additional prototypes for all interfaces */
  333. ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
  334. unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
  335. unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
  336. void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
  337. /* End additional prototypes */
  338. #ifdef __cplusplus
  339. }
  340. #endif
  341. #endif /* __inputscope_h__ */