msctf: Implement ITfInputProcessorProfiles::Unregister.

This commit is contained in:
Aric Stewart 2009-02-20 08:00:34 -06:00 committed by Alexandre Julliard
parent dd298d56a3
commit 8bd19cc93f
2 changed files with 13 additions and 3 deletions

View file

@ -152,9 +152,19 @@ static HRESULT WINAPI InputProcessorProfiles_Register(
static HRESULT WINAPI InputProcessorProfiles_Unregister(
ITfInputProcessorProfiles *iface, REFCLSID rclsid)
{
WCHAR buf[39];
WCHAR fullkey[68];
InputProcessorProfiles *This = (InputProcessorProfiles*)iface;
FIXME("STUB:(%p)\n",This);
return E_NOTIMPL;
TRACE("(%p) %s\n",This,debugstr_guid(rclsid));
StringFromGUID2(rclsid, buf, 39);
sprintfW(fullkey,szwTipfmt,szwSystemTIPKey,buf);
RegDeleteTreeW(HKEY_LOCAL_MACHINE, fullkey);
RegDeleteTreeW(HKEY_CURRENT_USER, fullkey);
return S_OK;
}
static HRESULT WINAPI InputProcessorProfiles_AddLanguageProfile(

View file

@ -68,7 +68,7 @@ static void test_Unregister(void)
{
HRESULT hr;
hr = ITfInputProcessorProfiles_Unregister(g_ipp, &CLSID_FakeService);
todo_wine ok(SUCCEEDED(hr),"Unable to unregister text service(%x)\n",hr);
ok(SUCCEEDED(hr),"Unable to unregister text service(%x)\n",hr);
}
START_TEST(inputprocessor)