ReactOS 0.4.15-dev-7897-g78dc504
langbarmgr.c File Reference
#include "wine/debug.h"
#include "winbase.h"
#include "winreg.h"
#include "shlwapi.h"
#include "msctf.h"
#include "msctf_internal.h"
Include dependency graph for langbarmgr.c:

Go to the source code of this file.

Classes

struct  tagLangBarMgr
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct tagLangBarMgr LangBarMgr
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msctf)
 
static LangBarMgrimpl_from_ITfLangBarMgr (ITfLangBarMgr *iface)
 
static void LangBarMgr_Destructor (LangBarMgr *This)
 
static HRESULT WINAPI LangBarMgr_QueryInterface (ITfLangBarMgr *iface, REFIID iid, LPVOID *ppvOut)
 
static ULONG WINAPI LangBarMgr_AddRef (ITfLangBarMgr *iface)
 
static ULONG WINAPI LangBarMgr_Release (ITfLangBarMgr *iface)
 
static HRESULT WINAPI LangBarMgr_AdviseEventSink (ITfLangBarMgr *iface, ITfLangBarEventSink *pSink, HWND hwnd, DWORD dwflags, DWORD *pdwCookie)
 
static HRESULT WINAPI LangBarMgr_UnAdviseEventSink (ITfLangBarMgr *iface, DWORD dwCookie)
 
static HRESULT WINAPI LangBarMgr_GetThreadMarshalInterface (ITfLangBarMgr *iface, DWORD dwThreadId, DWORD dwType, REFIID riid, IUnknown **ppunk)
 
static HRESULT WINAPI LangBarMgr_GetThreadLangBarItemMgr (ITfLangBarMgr *iface, DWORD dwThreadId, ITfLangBarItemMgr **pplbi, DWORD *pdwThreadid)
 
static HRESULT WINAPI LangBarMgr_GetInputProcessorProfiles (ITfLangBarMgr *iface, DWORD dwThreadId, ITfInputProcessorProfiles **ppaip, DWORD *pdwThreadid)
 
static HRESULT WINAPI LangBarMgr_RestoreLastFocus (ITfLangBarMgr *iface, DWORD *dwThreadId, BOOL fPrev)
 
static HRESULT WINAPI LangBarMgr_SetModalInput (ITfLangBarMgr *iface, ITfLangBarEventSink *pSink, DWORD dwThreadId, DWORD dwFlags)
 
static HRESULT WINAPI LangBarMgr_ShowFloating (ITfLangBarMgr *iface, DWORD dwFlags)
 
static HRESULT WINAPI LangBarMgr_GetShowFloatingStatus (ITfLangBarMgr *iface, DWORD *pdwFlags)
 
HRESULT LangBarMgr_Constructor (IUnknown *pUnkOuter, IUnknown **ppOut)
 

Variables

static const ITfLangBarMgrVtbl LangBarMgr_LangBarMgrVtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file langbarmgr.c.

Typedef Documentation

◆ LangBarMgr

Function Documentation

◆ impl_from_ITfLangBarMgr()

◆ LangBarMgr_AddRef()

static ULONG WINAPI LangBarMgr_AddRef ( ITfLangBarMgr iface)
static

Definition at line 72 of file langbarmgr.c.

73{
75 return InterlockedIncrement(&This->refCount);
76}
#define InterlockedIncrement
Definition: armddk.h:53
static LangBarMgr * impl_from_ITfLangBarMgr(ITfLangBarMgr *iface)
Definition: langbarmgr.c:40

◆ LangBarMgr_AdviseEventSink()

static HRESULT WINAPI LangBarMgr_AdviseEventSink ( ITfLangBarMgr iface,
ITfLangBarEventSink pSink,
HWND  hwnd,
DWORD  dwflags,
DWORD pdwCookie 
)
static

Definition at line 93 of file langbarmgr.c.

94{
96
97 FIXME("STUB:(%p)\n",This);
98 return E_NOTIMPL;
99}
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ LangBarMgr_Constructor()

HRESULT LangBarMgr_Constructor ( IUnknown pUnkOuter,
IUnknown **  ppOut 
)

Definition at line 182 of file langbarmgr.c.

183{
185 if (pUnkOuter)
187
189 if (This == NULL)
190 return E_OUTOFMEMORY;
191
192 This->ITfLangBarMgr_iface.lpVtbl = &LangBarMgr_LangBarMgrVtbl;
193 This->refCount = 1;
194
195 *ppOut = (IUnknown *)&This->ITfLangBarMgr_iface;
196 TRACE("returning %p\n", *ppOut);
197 return S_OK;
198}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define S_OK
Definition: intsafe.h:52
static const ITfLangBarMgrVtbl LangBarMgr_LangBarMgrVtbl
Definition: langbarmgr.c:165
#define TRACE(s)
Definition: solgame.cpp:4
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662

Referenced by TF_CreateLangBarMgr().

◆ LangBarMgr_Destructor()

static void LangBarMgr_Destructor ( LangBarMgr This)
static

Definition at line 45 of file langbarmgr.c.

46{
47 TRACE("destroying %p\n", This);
48
50}
#define HeapFree(x, y, z)
Definition: compat.h:735

Referenced by LangBarMgr_Release().

◆ LangBarMgr_GetInputProcessorProfiles()

static HRESULT WINAPI LangBarMgr_GetInputProcessorProfiles ( ITfLangBarMgr iface,
DWORD  dwThreadId,
ITfInputProcessorProfiles **  ppaip,
DWORD pdwThreadid 
)
static

Definition at line 125 of file langbarmgr.c.

126{
128
129 FIXME("STUB:(%p)\n",This);
130 return E_NOTIMPL;
131}

◆ LangBarMgr_GetShowFloatingStatus()

static HRESULT WINAPI LangBarMgr_GetShowFloatingStatus ( ITfLangBarMgr iface,
DWORD pdwFlags 
)
static

Definition at line 157 of file langbarmgr.c.

158{
160
161 FIXME("STUB:(%p)\n",This);
162 return E_NOTIMPL;
163}

◆ LangBarMgr_GetThreadLangBarItemMgr()

static HRESULT WINAPI LangBarMgr_GetThreadLangBarItemMgr ( ITfLangBarMgr iface,
DWORD  dwThreadId,
ITfLangBarItemMgr **  pplbi,
DWORD pdwThreadid 
)
static

Definition at line 117 of file langbarmgr.c.

118{
120
121 FIXME("STUB:(%p)\n",This);
122 return E_NOTIMPL;
123}

◆ LangBarMgr_GetThreadMarshalInterface()

static HRESULT WINAPI LangBarMgr_GetThreadMarshalInterface ( ITfLangBarMgr iface,
DWORD  dwThreadId,
DWORD  dwType,
REFIID  riid,
IUnknown **  ppunk 
)
static

Definition at line 109 of file langbarmgr.c.

110{
112
113 FIXME("STUB:(%p)\n",This);
114 return E_NOTIMPL;
115}

◆ LangBarMgr_QueryInterface()

static HRESULT WINAPI LangBarMgr_QueryInterface ( ITfLangBarMgr iface,
REFIID  iid,
LPVOID ppvOut 
)
static

Definition at line 52 of file langbarmgr.c.

53{
55 *ppvOut = NULL;
56
57 if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_ITfLangBarMgr))
58 {
59 *ppvOut = &This->ITfLangBarMgr_iface;
60 }
61
62 if (*ppvOut)
63 {
64 ITfLangBarMgr_AddRef(iface);
65 return S_OK;
66 }
67
68 WARN("unsupported interface: %s\n", debugstr_guid(iid));
69 return E_NOINTERFACE;
70}
const GUID IID_IUnknown
#define WARN(fmt,...)
Definition: debug.h:112
#define debugstr_guid
Definition: kernel32.h:35
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ LangBarMgr_Release()

static ULONG WINAPI LangBarMgr_Release ( ITfLangBarMgr iface)
static

Definition at line 78 of file langbarmgr.c.

79{
81 ULONG ret;
82
83 ret = InterlockedDecrement(&This->refCount);
84 if (ret == 0)
86 return ret;
87}
#define InterlockedDecrement
Definition: armddk.h:52
static void LangBarMgr_Destructor(LangBarMgr *This)
Definition: langbarmgr.c:45
uint32_t ULONG
Definition: typedefs.h:59
int ret

◆ LangBarMgr_RestoreLastFocus()

static HRESULT WINAPI LangBarMgr_RestoreLastFocus ( ITfLangBarMgr iface,
DWORD dwThreadId,
BOOL  fPrev 
)
static

Definition at line 133 of file langbarmgr.c.

134{
136
137 FIXME("STUB:(%p)\n",This);
138 return E_NOTIMPL;
139}

◆ LangBarMgr_SetModalInput()

static HRESULT WINAPI LangBarMgr_SetModalInput ( ITfLangBarMgr iface,
ITfLangBarEventSink pSink,
DWORD  dwThreadId,
DWORD  dwFlags 
)
static

Definition at line 141 of file langbarmgr.c.

142{
144
145 FIXME("STUB:(%p)\n",This);
146 return E_NOTIMPL;
147}

◆ LangBarMgr_ShowFloating()

static HRESULT WINAPI LangBarMgr_ShowFloating ( ITfLangBarMgr iface,
DWORD  dwFlags 
)
static

Definition at line 149 of file langbarmgr.c.

150{
152
153 FIXME("STUB:(%p)\n",This);
154 return E_NOTIMPL;
155}

◆ LangBarMgr_UnAdviseEventSink()

static HRESULT WINAPI LangBarMgr_UnAdviseEventSink ( ITfLangBarMgr iface,
DWORD  dwCookie 
)
static

Definition at line 101 of file langbarmgr.c.

102{
104
105 FIXME("STUB:(%p)\n",This);
106 return E_NOTIMPL;
107}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msctf  )

Variable Documentation

◆ LangBarMgr_LangBarMgrVtbl

const ITfLangBarMgrVtbl LangBarMgr_LangBarMgrVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI LangBarMgr_GetThreadLangBarItemMgr(ITfLangBarMgr *iface, DWORD dwThreadId, ITfLangBarItemMgr **pplbi, DWORD *pdwThreadid)
Definition: langbarmgr.c:117
static ULONG WINAPI LangBarMgr_Release(ITfLangBarMgr *iface)
Definition: langbarmgr.c:78
static HRESULT WINAPI LangBarMgr_RestoreLastFocus(ITfLangBarMgr *iface, DWORD *dwThreadId, BOOL fPrev)
Definition: langbarmgr.c:133
static HRESULT WINAPI LangBarMgr_SetModalInput(ITfLangBarMgr *iface, ITfLangBarEventSink *pSink, DWORD dwThreadId, DWORD dwFlags)
Definition: langbarmgr.c:141
static HRESULT WINAPI LangBarMgr_GetThreadMarshalInterface(ITfLangBarMgr *iface, DWORD dwThreadId, DWORD dwType, REFIID riid, IUnknown **ppunk)
Definition: langbarmgr.c:109
static HRESULT WINAPI LangBarMgr_GetShowFloatingStatus(ITfLangBarMgr *iface, DWORD *pdwFlags)
Definition: langbarmgr.c:157
static HRESULT WINAPI LangBarMgr_UnAdviseEventSink(ITfLangBarMgr *iface, DWORD dwCookie)
Definition: langbarmgr.c:101
static HRESULT WINAPI LangBarMgr_ShowFloating(ITfLangBarMgr *iface, DWORD dwFlags)
Definition: langbarmgr.c:149
static HRESULT WINAPI LangBarMgr_QueryInterface(ITfLangBarMgr *iface, REFIID iid, LPVOID *ppvOut)
Definition: langbarmgr.c:52
static HRESULT WINAPI LangBarMgr_GetInputProcessorProfiles(ITfLangBarMgr *iface, DWORD dwThreadId, ITfInputProcessorProfiles **ppaip, DWORD *pdwThreadid)
Definition: langbarmgr.c:125
static ULONG WINAPI LangBarMgr_AddRef(ITfLangBarMgr *iface)
Definition: langbarmgr.c:72
static HRESULT WINAPI LangBarMgr_AdviseEventSink(ITfLangBarMgr *iface, ITfLangBarEventSink *pSink, HWND hwnd, DWORD dwflags, DWORD *pdwCookie)
Definition: langbarmgr.c:93

Definition at line 165 of file langbarmgr.c.

Referenced by LangBarMgr_Constructor().