ReactOS 0.4.16-dev-1588-g6ad06fc
inputprocessor.cpp File Reference
#include "precomp.h"
#include <wine/debug.h>
Include dependency graph for inputprocessor.cpp:

Go to the source code of this file.

Classes

class  CInputProcessorProfiles
 
class  CProfilesEnumGuid
 
class  CEnumTfLanguageProfiles
 
class  CEnumTfInputProcessorProfiles
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctf)
 
static void add_userkey (_In_ REFCLSID rclsid, _In_ LANGID langid, _In_ REFGUID guidProfile)
 
 STDMETHODIMP_ (ULONG) CInputProcessorProfiles
 
EXTERN_C HRESULT InputProcessorProfiles_Constructor (IUnknown *pUnkOuter, IUnknown **ppOut)
 

Function Documentation

◆ add_userkey()

static void add_userkey ( _In_ REFCLSID  rclsid,
_In_ LANGID  langid,
_In_ REFGUID  guidProfile 
)
static

Definition at line 264 of file inputprocessor.cpp.

265{
266 HKEY key;
267 WCHAR buf[39], buf2[39], fullkey[168];
268 DWORD disposition = 0;
270
271 TRACE("\n");
272
273 StringFromGUID2(rclsid, buf, _countof(buf));
275 StringCchPrintfW(fullkey, _countof(fullkey), L"%s\\%s\\%s\\0x%08x\\%s",
276 szwSystemTIPKey, buf, L"LanguageProfile", langid, buf2);
277
279 KEY_READ | KEY_WRITE, NULL, &key, &disposition);
280
281 if (error == ERROR_SUCCESS && disposition == REG_CREATED_NEW_KEY)
282 {
283 DWORD zero = 0;
284 RegSetValueExW(key, L"Enable", 0, REG_DWORD, (PBYTE)&zero, sizeof(DWORD));
285 }
286
287 if (error == ERROR_SUCCESS)
289}
#define szwSystemTIPKey
Definition: precomp.h:105
#define RegCloseKey(hKey)
Definition: registry.h:49
#define ERROR_SUCCESS
Definition: deptool.c:10
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
#define NULL
Definition: types.h:112
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)
Definition: reg.c:1096
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
Definition: reg.c:4882
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
Definition: compobj.c:2434
#define L(x)
Definition: resources.c:13
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define error(str)
Definition: mkdosfs.c:1605
GUID guidProfile
Definition: msctf.idl:628
LANGID langid
Definition: msctf.idl:626
#define KEY_READ
Definition: nt_native.h:1023
#define REG_CREATED_NEW_KEY
Definition: nt_native.h:1084
#define KEY_WRITE
Definition: nt_native.h:1031
BYTE * PBYTE
Definition: pedump.c:66
#define REG_DWORD
Definition: sdbapi.c:598
int zero
Definition: sehframes.cpp:29
#define _countof(array)
Definition: sndvol32.h:70
#define TRACE(s)
Definition: solgame.cpp:4
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:530
Definition: copy.c:22
#define HKEY_CURRENT_USER
Definition: winreg.h:11
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CInputProcessorProfiles::AddLanguageProfile().

◆ InputProcessorProfiles_Constructor()

EXTERN_C HRESULT InputProcessorProfiles_Constructor ( IUnknown pUnkOuter,
IUnknown **  ppOut 
)

Definition at line 1332 of file inputprocessor.cpp.

1333{
1335}
static HRESULT CreateInstance(IUnknown *pUnkOuter, CInputProcessorProfiles **ppOut)

Referenced by TF_CreateInputProcessorProfiles().

◆ STDMETHODIMP_()

STDMETHODIMP_ ( ULONG  )

Definition at line 327 of file inputprocessor.cpp.

328{
329 return ::InterlockedIncrement(&m_cRefs);
330}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )