InputScope.h 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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 inputscope.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext, robust
  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__ 475
  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 __inputscope_h__
  27. #define __inputscope_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __ITfInputScope_FWD_DEFINED__
  33. #define __ITfInputScope_FWD_DEFINED__
  34. typedef interface ITfInputScope ITfInputScope;
  35. #endif /* __ITfInputScope_FWD_DEFINED__ */
  36. /* header files for imported files */
  37. #include "oaidl.h"
  38. #include "ocidl.h"
  39. #ifdef __cplusplus
  40. extern "C"{
  41. #endif
  42. void * __RPC_USER MIDL_user_allocate(size_t);
  43. void __RPC_USER MIDL_user_free( void * );
  44. /* interface __MIDL_itf_inputscope_0000 */
  45. /* [local] */
  46. //=--------------------------------------------------------------------------=
  47. // InputScope.h
  48. // InputScope declarations.
  49. //=--------------------------------------------------------------------------=
  50. // (C) Copyright 1995-2003 Microsoft Corporation. All Rights Reserved.
  51. //
  52. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  53. // ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO
  54. // THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  55. // PARTICULAR PURPOSE.
  56. //=--------------------------------------------------------------------------=
  57. #ifndef INPUTSCOPE_DEFINED
  58. #define INPUTSCOPE_DEFINED
  59. #include <windows.h>
  60. #ifdef __cplusplus
  61. extern "C" {
  62. #endif /* __cplusplus */
  63. typedef /* [public][public] */
  64. enum __MIDL___MIDL_itf_inputscope_0000_0001
  65. { IS_DEFAULT = 0,
  66. IS_URL = 1,
  67. IS_FILE_FULLFILEPATH = 2,
  68. IS_FILE_FILENAME = 3,
  69. IS_EMAIL_USERNAME = 4,
  70. IS_EMAIL_SMTPEMAILADDRESS = 5,
  71. IS_LOGINNAME = 6,
  72. IS_PERSONALNAME_FULLNAME = 7,
  73. IS_PERSONALNAME_PREFIX = 8,
  74. IS_PERSONALNAME_GIVENNAME = 9,
  75. IS_PERSONALNAME_MIDDLENAME = 10,
  76. IS_PERSONALNAME_SURNAME = 11,
  77. IS_PERSONALNAME_SUFFIX = 12,
  78. IS_ADDRESS_FULLPOSTALADDRESS = 13,
  79. IS_ADDRESS_POSTALCODE = 14,
  80. IS_ADDRESS_STREET = 15,
  81. IS_ADDRESS_STATEORPROVINCE = 16,
  82. IS_ADDRESS_CITY = 17,
  83. IS_ADDRESS_COUNTRYNAME = 18,
  84. IS_ADDRESS_COUNTRYSHORTNAME = 19,
  85. IS_CURRENCY_AMOUNTANDSYMBOL = 20,
  86. IS_CURRENCY_AMOUNT = 21,
  87. IS_DATE_FULLDATE = 22,
  88. IS_DATE_MONTH = 23,
  89. IS_DATE_DAY = 24,
  90. IS_DATE_YEAR = 25,
  91. IS_DATE_MONTHNAME = 26,
  92. IS_DATE_DAYNAME = 27,
  93. IS_DIGITS = 28,
  94. IS_NUMBER = 29,
  95. IS_ONECHAR = 30,
  96. IS_PASSWORD = 31,
  97. IS_TELEPHONE_FULLTELEPHONENUMBER = 32,
  98. IS_TELEPHONE_COUNTRYCODE = 33,
  99. IS_TELEPHONE_AREACODE = 34,
  100. IS_TELEPHONE_LOCALNUMBER = 35,
  101. IS_TIME_FULLTIME = 36,
  102. IS_TIME_HOUR = 37,
  103. IS_TIME_MINORSEC = 38,
  104. IS_NUMBER_FULLWIDTH = 39,
  105. IS_ALPHANUMERIC_HALFWIDTH = 40,
  106. IS_ALPHANUMERIC_FULLWIDTH = 41,
  107. IS_CURRENCY_CHINESE = 42,
  108. IS_BOPOMOFO = 43,
  109. IS_HIRAGANA = 44,
  110. IS_KATAKANA_HALFWIDTH = 45,
  111. IS_KATAKANA_FULLWIDTH = 46,
  112. IS_HANJA = 47,
  113. IS_PHRASELIST = -1,
  114. IS_REGULAREXPRESSION = -2,
  115. IS_SRGS = -3,
  116. IS_XML = -4
  117. } InputScope;
  118. HRESULT WINAPI SetInputScope(HWND hwnd, InputScope inputscope);
  119. HRESULT WINAPI SetInputScopes(HWND hwnd, const InputScope *pInputScopes, UINT cInputScopes, WCHAR **ppszPhraseList, UINT cPhrases, WCHAR *pszRegExp, WCHAR *pszSRGS);
  120. HRESULT WINAPI SetInputScopeXML(HWND hwnd, WCHAR *pszXML);
  121. DEFINE_GUID(IID_ITfInputScope, 0xfde1eaee, 0x6924, 0x4cdf, 0x91, 0xe7, 0xda, 0x38, 0xcf, 0xf5, 0x55, 0x9d);
  122. DEFINE_GUID(GUID_PROP_INPUTSCOPE, 0x1713dd5a, 0x68e7, 0x4a5b, 0x9a, 0xf6, 0x59, 0x2a, 0x59, 0x5c, 0x77, 0x8d);
  123. #ifdef __cplusplus
  124. }
  125. #endif /* __cplusplus */
  126. extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_v0_0_c_ifspec;
  127. extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_v0_0_s_ifspec;
  128. #ifndef __ITfInputScope_INTERFACE_DEFINED__
  129. #define __ITfInputScope_INTERFACE_DEFINED__
  130. /* interface ITfInputScope */
  131. /* [unique][uuid][object] */
  132. EXTERN_C const IID IID_ITfInputScope;
  133. #if defined(__cplusplus) && !defined(CINTERFACE)
  134. MIDL_INTERFACE("fde1eaee-6924-4cdf-91e7-da38cff5559d")
  135. ITfInputScope : public IUnknown
  136. {
  137. public:
  138. virtual HRESULT STDMETHODCALLTYPE GetInputScopes(
  139. /* [out] */ InputScope **pprgInputScopes,
  140. /* [out] */ UINT *pcCount) = 0;
  141. virtual HRESULT STDMETHODCALLTYPE GetPhrase(
  142. /* [out] */ BSTR **ppbstrPhrases,
  143. /* [out] */ UINT *pcCount) = 0;
  144. virtual HRESULT STDMETHODCALLTYPE GetRegularExpression(
  145. /* [out] */ BSTR *pbstrRegExp) = 0;
  146. virtual HRESULT STDMETHODCALLTYPE GetSRGS(
  147. /* [out] */ BSTR *pbstrSRGS) = 0;
  148. virtual HRESULT STDMETHODCALLTYPE GetXML(
  149. /* [out] */ BSTR *pbstrXML) = 0;
  150. };
  151. #else /* C style interface */
  152. typedef struct ITfInputScopeVtbl
  153. {
  154. BEGIN_INTERFACE
  155. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  156. ITfInputScope * This,
  157. /* [in] */ REFIID riid,
  158. /* [iid_is][out] */ void **ppvObject);
  159. ULONG ( STDMETHODCALLTYPE *AddRef )(
  160. ITfInputScope * This);
  161. ULONG ( STDMETHODCALLTYPE *Release )(
  162. ITfInputScope * This);
  163. HRESULT ( STDMETHODCALLTYPE *GetInputScopes )(
  164. ITfInputScope * This,
  165. /* [out] */ InputScope **pprgInputScopes,
  166. /* [out] */ UINT *pcCount);
  167. HRESULT ( STDMETHODCALLTYPE *GetPhrase )(
  168. ITfInputScope * This,
  169. /* [out] */ BSTR **ppbstrPhrases,
  170. /* [out] */ UINT *pcCount);
  171. HRESULT ( STDMETHODCALLTYPE *GetRegularExpression )(
  172. ITfInputScope * This,
  173. /* [out] */ BSTR *pbstrRegExp);
  174. HRESULT ( STDMETHODCALLTYPE *GetSRGS )(
  175. ITfInputScope * This,
  176. /* [out] */ BSTR *pbstrSRGS);
  177. HRESULT ( STDMETHODCALLTYPE *GetXML )(
  178. ITfInputScope * This,
  179. /* [out] */ BSTR *pbstrXML);
  180. END_INTERFACE
  181. } ITfInputScopeVtbl;
  182. interface ITfInputScope
  183. {
  184. CONST_VTBL struct ITfInputScopeVtbl *lpVtbl;
  185. };
  186. #ifdef COBJMACROS
  187. #define ITfInputScope_QueryInterface(This,riid,ppvObject) \
  188. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  189. #define ITfInputScope_AddRef(This) \
  190. (This)->lpVtbl -> AddRef(This)
  191. #define ITfInputScope_Release(This) \
  192. (This)->lpVtbl -> Release(This)
  193. #define ITfInputScope_GetInputScopes(This,pprgInputScopes,pcCount) \
  194. (This)->lpVtbl -> GetInputScopes(This,pprgInputScopes,pcCount)
  195. #define ITfInputScope_GetPhrase(This,ppbstrPhrases,pcCount) \
  196. (This)->lpVtbl -> GetPhrase(This,ppbstrPhrases,pcCount)
  197. #define ITfInputScope_GetRegularExpression(This,pbstrRegExp) \
  198. (This)->lpVtbl -> GetRegularExpression(This,pbstrRegExp)
  199. #define ITfInputScope_GetSRGS(This,pbstrSRGS) \
  200. (This)->lpVtbl -> GetSRGS(This,pbstrSRGS)
  201. #define ITfInputScope_GetXML(This,pbstrXML) \
  202. (This)->lpVtbl -> GetXML(This,pbstrXML)
  203. #endif /* COBJMACROS */
  204. #endif /* C style interface */
  205. HRESULT STDMETHODCALLTYPE ITfInputScope_GetInputScopes_Proxy(
  206. ITfInputScope * This,
  207. /* [out] */ InputScope **pprgInputScopes,
  208. /* [out] */ UINT *pcCount);
  209. void __RPC_STUB ITfInputScope_GetInputScopes_Stub(
  210. IRpcStubBuffer *This,
  211. IRpcChannelBuffer *_pRpcChannelBuffer,
  212. PRPC_MESSAGE _pRpcMessage,
  213. DWORD *_pdwStubPhase);
  214. HRESULT STDMETHODCALLTYPE ITfInputScope_GetPhrase_Proxy(
  215. ITfInputScope * This,
  216. /* [out] */ BSTR **ppbstrPhrases,
  217. /* [out] */ UINT *pcCount);
  218. void __RPC_STUB ITfInputScope_GetPhrase_Stub(
  219. IRpcStubBuffer *This,
  220. IRpcChannelBuffer *_pRpcChannelBuffer,
  221. PRPC_MESSAGE _pRpcMessage,
  222. DWORD *_pdwStubPhase);
  223. HRESULT STDMETHODCALLTYPE ITfInputScope_GetRegularExpression_Proxy(
  224. ITfInputScope * This,
  225. /* [out] */ BSTR *pbstrRegExp);
  226. void __RPC_STUB ITfInputScope_GetRegularExpression_Stub(
  227. IRpcStubBuffer *This,
  228. IRpcChannelBuffer *_pRpcChannelBuffer,
  229. PRPC_MESSAGE _pRpcMessage,
  230. DWORD *_pdwStubPhase);
  231. HRESULT STDMETHODCALLTYPE ITfInputScope_GetSRGS_Proxy(
  232. ITfInputScope * This,
  233. /* [out] */ BSTR *pbstrSRGS);
  234. void __RPC_STUB ITfInputScope_GetSRGS_Stub(
  235. IRpcStubBuffer *This,
  236. IRpcChannelBuffer *_pRpcChannelBuffer,
  237. PRPC_MESSAGE _pRpcMessage,
  238. DWORD *_pdwStubPhase);
  239. HRESULT STDMETHODCALLTYPE ITfInputScope_GetXML_Proxy(
  240. ITfInputScope * This,
  241. /* [out] */ BSTR *pbstrXML);
  242. void __RPC_STUB ITfInputScope_GetXML_Stub(
  243. IRpcStubBuffer *This,
  244. IRpcChannelBuffer *_pRpcChannelBuffer,
  245. PRPC_MESSAGE _pRpcMessage,
  246. DWORD *_pdwStubPhase);
  247. #endif /* __ITfInputScope_INTERFACE_DEFINED__ */
  248. /* interface __MIDL_itf_inputscope_0257 */
  249. /* [local] */
  250. #endif // INPUTSCOPE_DEFINED
  251. extern RPC_IF_HANDLE __MIDL_itf_inputscope_0257_v0_0_c_ifspec;
  252. extern RPC_IF_HANDLE __MIDL_itf_inputscope_0257_v0_0_s_ifspec;
  253. /* Additional Prototypes for ALL interfaces */
  254. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  255. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  256. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  257. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  258. /* end of Additional Prototypes */
  259. #ifdef __cplusplus
  260. }
  261. #endif
  262. #endif