Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7cd3e776
Commit
7cd3e776
authored
Jun 26, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfInputProcessorProfiles::SetDefaultLanguageProfile.
parent
6e7145d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
inputprocessor.c
dlls/msctf/inputprocessor.c
+43
-2
No files found.
dlls/msctf/inputprocessor.c
View file @
7cd3e776
...
@@ -358,9 +358,50 @@ static HRESULT WINAPI InputProcessorProfiles_SetDefaultLanguageProfile(
...
@@ -358,9 +358,50 @@ static HRESULT WINAPI InputProcessorProfiles_SetDefaultLanguageProfile(
ITfInputProcessorProfiles
*
iface
,
LANGID
langid
,
REFCLSID
rclsid
,
ITfInputProcessorProfiles
*
iface
,
LANGID
langid
,
REFCLSID
rclsid
,
REFGUID
guidProfiles
)
REFGUID
guidProfiles
)
{
{
WCHAR
fullkey
[
168
];
WCHAR
buf
[
39
];
HKEY
hkey
;
GUID
catid
;
HRESULT
hr
;
ITfCategoryMgr
*
catmgr
;
InputProcessorProfiles
*
This
=
(
InputProcessorProfiles
*
)
iface
;
InputProcessorProfiles
*
This
=
(
InputProcessorProfiles
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
static
const
GUID
*
tipcats
[
3
]
=
{
&
GUID_TFCAT_TIP_KEYBOARD
,
return
E_NOTIMPL
;
&
GUID_TFCAT_TIP_SPEECH
,
&
GUID_TFCAT_TIP_HANDWRITING
};
TRACE
(
"%p) %x %s %s
\n
"
,
This
,
langid
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
guidProfiles
));
if
(
!
rclsid
||
!
guidProfiles
)
return
E_INVALIDARG
;
hr
=
CategoryMgr_Constructor
(
NULL
,(
IUnknown
**
)
&
catmgr
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
ITfCategoryMgr_FindClosestCategory
(
catmgr
,
rclsid
,
&
catid
,
tipcats
,
3
)
!=
S_OK
)
hr
=
ITfCategoryMgr_FindClosestCategory
(
catmgr
,
rclsid
,
&
catid
,
NULL
,
0
);
ITfCategoryMgr_Release
(
catmgr
);
if
(
FAILED
(
hr
))
return
E_FAIL
;
StringFromGUID2
(
&
catid
,
buf
,
39
);
sprintfW
(
fullkey
,
szwDefaultFmt
,
szwSystemCTFKey
,
szwAssemblies
,
langid
,
buf
);
if
(
RegCreateKeyExW
(
HKEY_CURRENT_USER
,
fullkey
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
hkey
,
NULL
)
!=
ERROR_SUCCESS
)
return
E_FAIL
;
StringFromGUID2
(
rclsid
,
buf
,
39
);
RegSetValueExW
(
hkey
,
szwDefault
,
0
,
REG_SZ
,
(
LPBYTE
)
buf
,
sizeof
(
buf
));
StringFromGUID2
(
guidProfiles
,
buf
,
39
);
RegSetValueExW
(
hkey
,
szwProfile
,
0
,
REG_SZ
,
(
LPBYTE
)
buf
,
sizeof
(
buf
));
RegCloseKey
(
hkey
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
InputProcessorProfiles_ActivateLanguageProfile
(
static
HRESULT
WINAPI
InputProcessorProfiles_ActivateLanguageProfile
(
...
...
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