Definition at line 198 of file inputprocessor.cpp.
◆ CEnumTfLanguageProfiles()
CEnumTfLanguageProfiles::CEnumTfLanguageProfiles |
( |
LANGID |
langid | ) |
|
◆ ~CEnumTfLanguageProfiles()
CEnumTfLanguageProfiles::~CEnumTfLanguageProfiles |
( |
| ) |
|
|
virtual |
Definition at line 1044 of file inputprocessor.cpp.
1045{
1046 TRACE(
"destroying %p\n",
this);
1051}
#define RegCloseKey(hKey)
ITfCategoryMgr * m_catmgr
◆ Clone()
Definition at line 1228 of file inputprocessor.cpp.
1229{
1230 TRACE(
"(%p)\n",
this);
1231
1232 if (!ppEnum)
1234
1236
1241
1244
1246 {
1251 }
1252
1255}
WCHAR m_szwCurrentClsid[39]
static HRESULT CreateInstance(LANGID langid, CEnumTfLanguageProfiles **out)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
◆ CreateInstance()
Definition at line 1053 of file inputprocessor.cpp.
1054{
1059
1062 {
1065 }
1066
1069 {
1072 }
1073
1077}
EXTERN_C HRESULT CategoryMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
#define HKEY_LOCAL_MACHINE
Referenced by Clone(), and CInputProcessorProfiles::EnumLanguageProfiles().
◆ Next()
Definition at line 1158 of file inputprocessor.cpp.
1162{
1164
1165 TRACE(
"(%p)\n",
this);
1166
1167 if (!pProfile)
1169
1171 {
1172 while (fetched < ulCount)
1173 {
1178
1182 break;
1183
1185
1188 continue;
1189
1190 while (fetched < ulCount)
1191 {
1194 {
1195 ++fetched;
1196 ++pProfile;
1197 }
1199 {
1200 break;
1201 }
1202 }
1203 }
1204 }
1205
1206 if (pcFetch)
1207 *pcFetch = fetched;
1209}
INT next_LanguageProfile(CLSID clsid, TF_LANGUAGEPROFILE *tflp)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
LONG WINAPI RegEnumKeyExW(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPWSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPWSTR lpClass, _Inout_opt_ LPDWORD lpcbClass, _Out_opt_ PFILETIME lpftLastWriteTime)
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
◆ next_LanguageProfile()
Definition at line 1109 of file inputprocessor.cpp.
1110{
1111 WCHAR fullkey[168], profileid[39];
1115
1117 {
1122 {
1124 return -1;
1125 }
1127 }
1128
1131 {
1134 return -1;
1135 }
1137
1138 if (tflp)
1139 {
1145 return 0;
1146
1153 }
1154
1155 return 1;
1156}
HRESULT FindClosestCategory([in] REFGUID rguid, [out] GUID *pcatid, [in, size_is(ulCount)] const GUID **ppcatidList, [in] ULONG ulCount)
EXTERN_C BOOL get_active_textservice(REFCLSID rclsid, TF_LANGUAGEPROFILE *profile)
EXTERN_C const GUID GUID_TFCAT_TIP_KEYBOARD
EXTERN_C const GUID GUID_TFCAT_TIP_SPEECH
EXTERN_C const GUID GUID_TFCAT_TIP_HANDWRITING
Referenced by Next().
◆ QueryInterface()
Definition at line 1079 of file inputprocessor.cpp.
1080{
1082
1083 if (iid ==
IID_IUnknown || iid == IID_IEnumTfLanguageProfiles)
1085
1086 if (*ppvObj)
1087 {
1090 }
1091
1094}
◆ Reset()
◆ Skip()
◆ STDMETHODIMP_() [1/2]
CEnumTfLanguageProfiles::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
override |
◆ STDMETHODIMP_() [2/2]
CEnumTfLanguageProfiles::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
override |
◆ m_catmgr
◆ m_cRefs
LONG CEnumTfLanguageProfiles::m_cRefs |
|
protected |
◆ m_lang_index
DWORD CEnumTfLanguageProfiles::m_lang_index |
|
protected |
◆ m_langid
LANGID CEnumTfLanguageProfiles::m_langid |
|
protected |
◆ m_langkey
HKEY CEnumTfLanguageProfiles::m_langkey |
|
protected |
◆ m_szwCurrentClsid
WCHAR CEnumTfLanguageProfiles::m_szwCurrentClsid[39] |
|
protected |
◆ m_tip_index
DWORD CEnumTfLanguageProfiles::m_tip_index |
|
protected |
◆ m_tipkey
HKEY CEnumTfLanguageProfiles::m_tipkey |
|
protected |
The documentation for this class was generated from the following file: