ReactOS  0.4.13-dev-242-g611e6d7
txtsrv.c
Go to the documentation of this file.
1 /*
2  * RichEdit - functions and interfaces around CreateTextServices
3  *
4  * Copyright 2005, 2006, Maarten Lankhorst
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #include "config.h"
22 #include "wine/port.h"
23 
24 #define COBJMACROS
25 
26 #include "editor.h"
27 #include "ole2.h"
28 #include "oleauto.h"
29 #include "richole.h"
30 #include "tom.h"
31 #include "imm.h"
32 #include "textserv.h"
33 #include "wine/debug.h"
34 #include "editstr.h"
35 
36 #ifdef __i386__ /* thiscall functions are i386-specific */
37 
38 #define THISCALL(func) (void *) __thiscall_ ## func
39 #ifdef _MSC_VER
40 #define DEFINE_THISCALL_WRAPPER(func,args) \
41  __declspec(naked) HRESULT __thiscall_##func(void) \
42  { \
43  __asm pop eax \
44  __asm push ecx \
45  __asm push eax \
46  __asm jmp func \
47  }
48 #else /* _MSC_VER */
49 #define DEFINE_THISCALL_WRAPPER(func,args) \
50  extern HRESULT __thiscall_ ## func(void); \
51  __ASM_GLOBAL_FUNC(__thiscall_ ## func, \
52  "popl %eax\n\t" \
53  "pushl %ecx\n\t" \
54  "pushl %eax\n\t" \
55  "jmp " __ASM_NAME(#func) __ASM_STDCALL(args) )
56 #endif /* _MSC_VER */
57 
58 #else /* __i386__ */
59 
60 #define THISCALL(func) func
61 #define DEFINE_THISCALL_WRAPPER(func,args) /* nothing */
62 
63 #endif /* __i386__ */
64 
66 
67 typedef struct ITextServicesImpl {
69  ITextServices ITextServices_iface;
72  ITextHost *pMyHost;
75  char spare[256];
77 
79 {
80  return CONTAINING_RECORD(iface, ITextServicesImpl, IUnknown_inner);
81 }
82 
84 {
86 
87  TRACE("(%p)->(%s, %p)\n", iface, debugstr_guid(riid), ppv);
88 
90  *ppv = &This->IUnknown_inner;
91  else if (IsEqualIID(riid, &IID_ITextServices))
92  *ppv = &This->ITextServices_iface;
93  else if (IsEqualIID(riid, &IID_IRichEditOle) || IsEqualIID(riid, &IID_ITextDocument) ||
94  IsEqualIID(riid, &IID_ITextDocument2Old)) {
95  if (!This->editor->reOle)
96  if (!CreateIRichEditOle(This->outer_unk, This->editor, (void **)(&This->editor->reOle)))
97  return E_OUTOFMEMORY;
98  if (IsEqualIID(riid, &IID_ITextDocument) || IsEqualIID(riid, &IID_ITextDocument2Old))
99  ME_GetITextDocument2OldInterface(This->editor->reOle, ppv);
100  else
101  *ppv = This->editor->reOle;
102  } else {
103  *ppv = NULL;
104  FIXME("Unknown interface: %s\n", debugstr_guid(riid));
105  return E_NOINTERFACE;
106  }
107 
108  IUnknown_AddRef((IUnknown*)*ppv);
109  return S_OK;
110 }
111 
113 {
116 
117  TRACE("(%p) ref=%d\n", This, ref);
118 
119  return ref;
120 }
121 
123 {
126 
127  TRACE("(%p) ref=%d\n", This, ref);
128 
129  if (!ref)
130  {
131  ME_DestroyEditor(This->editor);
132  This->csTxtSrv.DebugInfo->Spare[0] = 0;
133  DeleteCriticalSection(&This->csTxtSrv);
135  }
136  return ref;
137 }
138 
139 static const IUnknownVtbl textservices_inner_vtbl =
140 {
144 };
145 
146 static inline ITextServicesImpl *impl_from_ITextServices(ITextServices *iface)
147 {
148  return CONTAINING_RECORD(iface, ITextServicesImpl, ITextServices_iface);
149 }
150 
151 static HRESULT WINAPI fnTextSrv_QueryInterface(ITextServices *iface, REFIID riid, void **ppv)
152 {
154  return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
155 }
156 
157 static ULONG WINAPI fnTextSrv_AddRef(ITextServices *iface)
158 {
160  return IUnknown_AddRef(This->outer_unk);
161 }
162 
163 static ULONG WINAPI fnTextSrv_Release(ITextServices *iface)
164 {
166  return IUnknown_Release(This->outer_unk);
167 }
168 
170  LPARAM lparam, LRESULT *plresult)
171 {
173  HRESULT hresult;
174  LRESULT lresult;
175 
176  lresult = ME_HandleMessage(This->editor, msg, wparam, lparam, TRUE, &hresult);
177  if (plresult) *plresult = lresult;
178  return hresult;
179 }
180 
181 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxDraw(ITextServices *iface, DWORD dwDrawAspect, LONG lindex,
182  void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hdcTargetDev,
183  LPCRECTL lprcBounds, LPCRECTL lprcWBounds, LPRECT lprcUpdate,
184  BOOL (CALLBACK * pfnContinue)(DWORD), DWORD dwContinue,
185  LONG lViewId)
186 {
188 
189  FIXME("%p: STUB\n", This);
190  return E_NOTIMPL;
191 }
192 
193 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetHScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos,
194  LONG *plPage, BOOL *pfEnabled)
195 {
197 
198  if (plMin)
199  *plMin = This->editor->horz_si.nMin;
200  if (plMax)
201  *plMax = This->editor->horz_si.nMax;
202  if (plPos)
203  *plPos = This->editor->horz_si.nPos;
204  if (plPage)
205  *plPage = This->editor->horz_si.nPage;
206  if (pfEnabled)
207  *pfEnabled = (This->editor->styleFlags & WS_HSCROLL) != 0;
208  return S_OK;
209 }
210 
211 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetVScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos,
212  LONG *plPage, BOOL *pfEnabled)
213 {
215 
216  if (plMin)
217  *plMin = This->editor->vert_si.nMin;
218  if (plMax)
219  *plMax = This->editor->vert_si.nMax;
220  if (plPos)
221  *plPos = This->editor->vert_si.nPos;
222  if (plPage)
223  *plPage = This->editor->vert_si.nPage;
224  if (pfEnabled)
225  *pfEnabled = (This->editor->styleFlags & WS_VSCROLL) != 0;
226  return S_OK;
227 }
228 
229 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxSetCursor(ITextServices *iface, DWORD dwDrawAspect, LONG lindex,
230  void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw,
231  HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y)
232 {
234 
235  FIXME("%p: STUB\n", This);
236  return E_NOTIMPL;
237 }
238 
239 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxQueryHitPoint(ITextServices *iface, DWORD dwDrawAspect, LONG lindex,
240  void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw,
241  HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y,
242  DWORD *pHitResult)
243 {
245 
246  FIXME("%p: STUB\n", This);
247  return E_NOTIMPL;
248 }
249 
251 {
253 
254  FIXME("%p: STUB\n", This);
255  return E_NOTIMPL;
256 }
257 
259 {
261 
262  FIXME("%p: STUB\n", This);
263  return E_NOTIMPL;
264 }
265 
267 {
269 
270  FIXME("%p: STUB\n", This);
271  return E_NOTIMPL;
272 }
273 
275 {
277 
278  FIXME("%p: STUB\n", This);
279  return E_NOTIMPL;
280 }
281 
282 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetText(ITextServices *iface, BSTR *pbstrText)
283 {
285  int length;
286 
287  length = ME_GetTextLength(This->editor);
288  if (length)
289  {
291  BSTR bstr;
292  bstr = SysAllocStringByteLen(NULL, length * sizeof(WCHAR));
293  if (bstr == NULL)
294  return E_OUTOFMEMORY;
295 
296  ME_CursorFromCharOfs(This->editor, 0, &start);
297  ME_GetTextW(This->editor, bstr, length, &start, INT_MAX, FALSE, FALSE);
298  *pbstrText = bstr;
299  } else {
300  *pbstrText = NULL;
301  }
302 
303  return S_OK;
304 }
305 
307 {
310 
311  ME_SetCursorToStart(This->editor, &cursor);
313  if(pszText)
314  ME_InsertTextFromCursor(This->editor, 0, pszText, -1, This->editor->pBuffer->pDefaultStyle);
315  ME_SetSelection(This->editor, 0, 0);
316  This->editor->nModifyStep = 0;
318  ME_EmptyUndoStack(This->editor);
319  ME_UpdateRepaint(This->editor, FALSE);
320 
321  return S_OK;
322 }
323 
325 {
327 
328  FIXME("%p: STUB\n", This);
329  return E_NOTIMPL;
330 }
331 
333 {
335 
336  FIXME("%p: STUB\n", This);
337  return E_NOTIMPL;
338 }
339 
340 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetNaturalSize(ITextServices *iface, DWORD dwAspect, HDC hdcDraw,
341  HDC hicTargetDev, DVTARGETDEVICE *ptd, DWORD dwMode,
342  const SIZEL *psizelExtent, LONG *pwidth, LONG *pheight)
343 {
345 
346  FIXME("%p: STUB\n", This);
347  return E_NOTIMPL;
348 }
349 
351 {
353 
354  FIXME("%p: STUB\n", This);
355  return E_NOTIMPL;
356 }
357 
359 {
361 
362  FIXME("%p: STUB\n", This);
363  return E_NOTIMPL;
364 }
365 
366 DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetCachedSize(ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight)
367 {
369 
370  FIXME("%p: STUB\n", This);
371  return E_NOTIMPL;
372 }
373 
392 
393 static const ITextServicesVtbl textservices_vtbl =
394 {
416 };
417 
418 /******************************************************************
419  * CreateTextServices (RICHED20.4)
420  */
421 HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk)
422 {
423  ITextServicesImpl *ITextImpl;
424 
425  TRACE("%p %p --> %p\n", pUnkOuter, pITextHost, ppUnk);
426  if (pITextHost == NULL)
427  return E_POINTER;
428 
429  ITextImpl = CoTaskMemAlloc(sizeof(*ITextImpl));
430  if (ITextImpl == NULL)
431  return E_OUTOFMEMORY;
432  InitializeCriticalSection(&ITextImpl->csTxtSrv);
433  ITextImpl->csTxtSrv.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ITextServicesImpl.csTxtSrv");
434  ITextImpl->ref = 1;
435  ITextHost_AddRef(pITextHost);
436  ITextImpl->pMyHost = pITextHost;
437  ITextImpl->IUnknown_inner.lpVtbl = &textservices_inner_vtbl;
438  ITextImpl->ITextServices_iface.lpVtbl = &textservices_vtbl;
439  ITextImpl->editor = ME_MakeEditor(pITextHost, FALSE);
440 
441  if (pUnkOuter)
442  ITextImpl->outer_unk = pUnkOuter;
443  else
444  ITextImpl->outer_unk = &ITextImpl->IUnknown_inner;
445 
446  *ppUnk = &ITextImpl->IUnknown_inner;
447  return S_OK;
448 }
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxSetCursor(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y)
Definition: txtsrv.c:229
#define REFIID
Definition: guiddef.h:113
#define TRUE
Definition: types.h:120
static const IUnknownVtbl textservices_inner_vtbl
Definition: txtsrv.c:139
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxUIDeactivate(ITextServices *iface)
Definition: txtsrv.c:274
#define E_NOINTERFACE
Definition: winerror.h:2364
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxQueryHitPoint(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hicTargetDev, LPCRECT lprcClient, INT x, INT y, DWORD *pHitResult)
Definition: txtsrv.c:239
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:422
void ME_CursorFromCharOfs(ME_TextEditor *editor, int nCharOfs, ME_Cursor *pCursor) DECLSPEC_HIDDEN
Definition: run.c:171
#define DWORD_PTR
Definition: treelist.c:76
#define INT_MAX
Definition: limits.h:40
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxSetText(ITextServices *iface, LPCWSTR pszText)
Definition: txtsrv.c:306
REFIID riid
Definition: precomp.h:44
void ME_GetITextDocument2OldInterface(IRichEditOle *iface, LPVOID *ppvObj) DECLSPEC_HIDDEN
Definition: richole.c:5936
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxInplaceDeactivate(ITextServices *iface)
Definition: txtsrv.c:258
ITextServices ITextServices_iface
Definition: txtsrv.c:69
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:27
REFIID LPVOID * ppv
Definition: atlbase.h:39
void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor, const WCHAR *str, int len, ME_Style *style)
Definition: caret.c:536
WINE_DEFAULT_DEBUG_CHANNEL(richedit)
static HRESULT WINAPI fnTextSrv_QueryInterface(ITextServices *iface, REFIID riid, void **ppv)
Definition: txtsrv.c:151
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxDraw(ITextServices *iface, DWORD dwDrawAspect, LONG lindex, void *pvAspect, DVTARGETDEVICE *ptd, HDC hdcDraw, HDC hdcTargetDev, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, LPRECT lprcUpdate, BOOL(CALLBACK *pfnContinue)(DWORD), DWORD dwContinue, LONG lViewId)
Definition: txtsrv.c:181
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetCachedSize(ITextServices *iface, DWORD *pdwWidth, DWORD *pdwHeight)
Definition: txtsrv.c:366
UINT_PTR WPARAM
Definition: windef.h:207
OLECHAR * BSTR
Definition: compat.h:1934
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetBaseLinePos(ITextServices *iface, LONG *x)
Definition: txtsrv.c:332
CRITICAL_SECTION csTxtSrv
Definition: txtsrv.c:73
int32_t INT
Definition: typedefs.h:56
Definition: send.c:47
static ULONG WINAPI ITextServicesImpl_AddRef(IUnknown *iface)
Definition: txtsrv.c:112
LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode, HRESULT *phresult)
Definition: editor.c:3549
int ME_SetSelection(ME_TextEditor *editor, int from, int to)
Definition: caret.c:126
int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int buflen, const ME_Cursor *start, int srcChars, BOOL bCRLF, BOOL bEOP)
Definition: editor.c:5117
void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now) DECLSPEC_HIDDEN
Definition: paint.c:116
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
GLenum GLint ref
Definition: glext.h:6028
#define FIXME(fmt,...)
Definition: debug.h:110
void ME_DestroyEditor(ME_TextEditor *editor)
Definition: editor.c:3188
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:697
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetText(ITextServices *iface, BSTR *pbstrText)
Definition: txtsrv.c:282
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define debugstr_guid
Definition: kernel32.h:35
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
static ITextServicesImpl * impl_from_ITextServices(ITextServices *iface)
Definition: txtsrv.c:146
void ME_SetCursorToStart(ME_TextEditor *editor, ME_Cursor *cursor)
Definition: caret.c:27
BSTR WINAPI DECLSPEC_HOTPATCH SysAllocStringByteLen(LPCSTR str, UINT len)
Definition: oleaut.c:431
static ULONG WINAPI fnTextSrv_AddRef(ITextServices *iface)
Definition: txtsrv.c:157
static ULONG WINAPI ITextServicesImpl_Release(IUnknown *iface)
Definition: txtsrv.c:122
BOOL ME_InternalDeleteText(ME_TextEditor *editor, ME_Cursor *start, int nChars, BOOL bForce)
Definition: caret.c:301
#define TRACE(s)
Definition: solgame.cpp:4
ME_TextEditor * editor
Definition: txtsrv.c:74
ME_TextEditor * ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
Definition: editor.c:3052
__wchar_t WCHAR
Definition: xmlstorage.h:180
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
LONG HRESULT
Definition: typedefs.h:77
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
LRESULT CreateIRichEditOle(IUnknown *outer_unk, ME_TextEditor *editor, LPVOID *ppvObj) DECLSPEC_HIDDEN
Definition: richole.c:5693
const GUID IID_IUnknown
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetDropTarget(ITextServices *iface, IDropTarget **ppDropTarget)
Definition: txtsrv.c:350
#define WINAPI
Definition: msvc.h:8
#define THISCALL(func)
Definition: txtsrv.c:60
unsigned long DWORD
Definition: ntddk_ex.h:95
static ITextServicesImpl * impl_from_IUnknown(IUnknown *iface)
Definition: txtsrv.c:78
PCRITICAL_SECTION_DEBUG DebugInfo
Definition: winbase.h:859
#define WS_HSCROLL
Definition: pedump.c:628
IUnknown IUnknown_inner
Definition: txtsrv.c:68
#define InterlockedDecrement
Definition: armddk.h:52
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetVScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos, LONG *plPage, BOOL *pfEnabled)
Definition: txtsrv.c:211
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxInplaceActivate(ITextServices *iface, LPCRECT prcClient)
Definition: txtsrv.c:250
IUnknown * outer_unk
Definition: txtsrv.c:70
#define DEFINE_THISCALL_WRAPPER(func, args)
Definition: txtsrv.c:61
#define S_OK
Definition: intsafe.h:59
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxPropertyBitsChange(ITextServices *iface, DWORD dwMask, DWORD dwBits)
Definition: txtsrv.c:358
char spare[256]
Definition: txtsrv.c:75
#define InterlockedIncrement
Definition: armddk.h:53
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
const char cursor[]
Definition: icontest.c:13
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetNaturalSize(ITextServices *iface, DWORD dwAspect, HDC hdcDraw, HDC hicTargetDev, DVTARGETDEVICE *ptd, DWORD dwMode, const SIZEL *psizelExtent, LONG *pwidth, LONG *pheight)
Definition: txtsrv.c:340
GLuint start
Definition: gl.h:1545
#define E_NOTIMPL
Definition: ddrawi.h:99
unsigned int UINT
Definition: ndis.h:50
#define WS_VSCROLL
Definition: pedump.c:627
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
struct ITextServicesImpl ITextServicesImpl
#define msg(x)
Definition: auth_time.c:54
HRESULT WINAPI CreateTextServices(IUnknown *pUnkOuter, ITextHost *pITextHost, IUnknown **ppUnk)
Definition: txtsrv.c:421
unsigned int ULONG
Definition: retypes.h:1
#define const
Definition: zconf.h:230
static HRESULT WINAPI ITextServicesImpl_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)
Definition: txtsrv.c:83
static const ITextServicesVtbl textservices_vtbl
Definition: txtsrv.c:393
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetHScroll(ITextServices *iface, LONG *plMin, LONG *plMax, LONG *plPos, LONG *plPage, BOOL *pfEnabled)
Definition: txtsrv.c:193
HRESULT WINAPI OleFlushClipboard(void)
Definition: clipboard.c:2293
LONG_PTR LRESULT
Definition: windef.h:209
#define E_POINTER
Definition: winerror.h:2365
ITextHost * pMyHost
Definition: txtsrv.c:72
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxSendMessage(ITextServices *iface, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plresult)
Definition: txtsrv.c:169
void ME_EmptyUndoStack(ME_TextEditor *editor) DECLSPEC_HIDDEN
Definition: undo.c:53
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
Definition: ifs.c:406
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:90
int ME_GetTextLength(ME_TextEditor *editor)
Definition: caret.c:83
static ULONG WINAPI fnTextSrv_Release(ITextServices *iface)
Definition: txtsrv.c:163
static UINT WPARAM wparam
Definition: combo.c:716
DWORD_PTR Spare[8/sizeof(DWORD_PTR)]
Definition: winbase.h:852
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_OnTxUIActivate(ITextServices *iface)
Definition: txtsrv.c:266
DECLSPEC_HIDDEN HRESULT WINAPI fnTextSrv_TxGetCurTargetX(ITextServices *iface, LONG *x)
Definition: txtsrv.c:324