Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6bbd65d0
Commit
6bbd65d0
authored
May 01, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
May 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfCategoryMgr::UnregisterCategory.
parent
545b40ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
categorymgr.c
dlls/msctf/categorymgr.c
+30
-2
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+2
-2
No files found.
dlls/msctf/categorymgr.c
View file @
6bbd65d0
...
...
@@ -144,9 +144,37 @@ static HRESULT WINAPI CategoryMgr_RegisterCategory ( ITfCategoryMgr *iface,
static
HRESULT
WINAPI
CategoryMgr_UnregisterCategory
(
ITfCategoryMgr
*
iface
,
REFCLSID
rclsid
,
REFGUID
rcatid
,
REFGUID
rguid
)
{
WCHAR
fullkey
[
110
];
WCHAR
buf
[
39
];
WCHAR
buf2
[
39
];
HKEY
tipkey
;
CategoryMgr
*
This
=
(
CategoryMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
static
const
WCHAR
ctg
[]
=
{
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'y'
,
0
};
static
const
WCHAR
itm
[]
=
{
'I'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
static
const
WCHAR
fmt2
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
TRACE
(
"(%p) %s %s %s
\n
"
,
This
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
rcatid
),
debugstr_guid
(
rguid
));
StringFromGUID2
(
rclsid
,
buf
,
39
);
sprintfW
(
fullkey
,
fmt
,
szwSystemTIPKey
,
buf
);
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
fullkey
,
0
,
KEY_READ
|
KEY_WRITE
,
&
tipkey
)
!=
ERROR_SUCCESS
)
return
E_FAIL
;
StringFromGUID2
(
rcatid
,
buf
,
39
);
StringFromGUID2
(
rguid
,
buf2
,
39
);
sprintfW
(
fullkey
,
fmt2
,
ctg
,
ctg
,
buf
,
buf2
);
sprintfW
(
fullkey
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
RegDeleteTreeW
(
tipkey
,
fullkey
);
sprintfW
(
fullkey
,
fmt2
,
ctg
,
itm
,
buf2
,
buf
);
RegDeleteTreeW
(
tipkey
,
fullkey
);
RegCloseKey
(
tipkey
);
return
S_OK
;
}
static
HRESULT
WINAPI
CategoryMgr_EnumCategoriesInItem
(
ITfCategoryMgr
*
iface
,
...
...
dlls/msctf/tests/inputprocessor.c
View file @
6bbd65d0
...
...
@@ -177,9 +177,9 @@ static void test_UnregisterCategory(void)
{
HRESULT
hr
;
hr
=
ITfCategoryMgr_UnregisterCategory
(
g_cm
,
&
CLSID_FakeService
,
&
GUID_TFCAT_TIP_KEYBOARD
,
&
CLSID_FakeService
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfCategoryMgr_UnregisterCategory failed
\n
"
);
ok
(
SUCCEEDED
(
hr
),
"ITfCategoryMgr_UnregisterCategory failed
\n
"
);
hr
=
ITfCategoryMgr_UnregisterCategory
(
g_cm
,
&
CLSID_FakeService
,
&
GUID_TFCAT_DISPLAYATTRIBUTEPROVIDER
,
&
CLSID_FakeService
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfCategoryMgr_UnregisterCategory failed
\n
"
);
ok
(
SUCCEEDED
(
hr
),
"ITfCategoryMgr_UnregisterCategory failed
\n
"
);
}
static
void
test_FindClosestCategory
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment