Commit 649d12b1 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

msctf: Implement ITfInputProcessorProfiles::Register.

parent fd92f871
...@@ -97,8 +97,23 @@ static HRESULT WINAPI InputProcessorProfiles_Register( ...@@ -97,8 +97,23 @@ static HRESULT WINAPI InputProcessorProfiles_Register(
ITfInputProcessorProfiles *iface, REFCLSID rclsid) ITfInputProcessorProfiles *iface, REFCLSID rclsid)
{ {
InputProcessorProfiles *This = (InputProcessorProfiles*)iface; InputProcessorProfiles *This = (InputProcessorProfiles*)iface;
FIXME("STUB:(%p)\n",This); HKEY tipkey;
return E_NOTIMPL; WCHAR buf[39];
static const WCHAR fmt[] = {'%','s','\\','%','s',0};
WCHAR fullkey[68];
TRACE("(%p) %s\n",This,debugstr_guid(rclsid));
StringFromGUID2(rclsid, buf, 39);
sprintfW(fullkey,fmt,szwSystemTIPKey,buf);
if (RegCreateKeyExW(HKEY_LOCAL_MACHINE,fullkey, 0, NULL, 0,
KEY_READ | KEY_WRITE, NULL, &tipkey, NULL) != ERROR_SUCCESS)
return E_FAIL;
RegCloseKey(tipkey);
return S_OK;
} }
static HRESULT WINAPI InputProcessorProfiles_Unregister( static HRESULT WINAPI InputProcessorProfiles_Unregister(
......
...@@ -45,6 +45,8 @@ static HINSTANCE MSCTF_hinstance; ...@@ -45,6 +45,8 @@ static HINSTANCE MSCTF_hinstance;
DWORD tlsIndex = 0; DWORD tlsIndex = 0;
const WCHAR szwSystemTIPKey[] = {'S','O','F','T','W','A','R','E','\\','M','i','c','r','o','s','o','f','t','\\','C','T','F','\\','T','I','P',0};
typedef HRESULT (*LPFNCONSTRUCTOR)(IUnknown *pUnkOuter, IUnknown **ppvOut); typedef HRESULT (*LPFNCONSTRUCTOR)(IUnknown *pUnkOuter, IUnknown **ppvOut);
static const struct { static const struct {
......
...@@ -27,4 +27,5 @@ extern HRESULT DocumentMgr_Constructor(ITfDocumentMgr **ppOut); ...@@ -27,4 +27,5 @@ extern HRESULT DocumentMgr_Constructor(ITfDocumentMgr **ppOut);
extern HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfContext **ppOut, TfEditCookie *pecTextStore); extern HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfContext **ppOut, TfEditCookie *pecTextStore);
extern HRESULT InputProcessorProfiles_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut); extern HRESULT InputProcessorProfiles_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut);
extern const WCHAR szwSystemTIPKey[];
#endif /* __WINE_MSCTF_I_H */ #endif /* __WINE_MSCTF_I_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment