msi: Fix buffer length value returned by MSI_RecordGetStringW on null and empty strings.
[wine/hacks.git] / dlls / inkobj / inkcollector.c
blobcf68e4dbcd750c6a16399b4f78cb96aa52807eff
1 /* Copyright (C) 2007 C John Klehm
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #include "inkobj_internal.h"
20 WINE_DEFAULT_DEBUG_CHANNEL(inkobj);
23 typedef struct tagInkCollector
25 IInkCollectorVtbl* lpVtbl;
27 ULONG refCount;
28 } InkCollector;
30 static HRESULT WINAPI InkCollector_QueryInterface(
31 IInkCollector* This, REFIID riid, void** ppvObject)
33 FIXME("stub!\n");
34 return E_NOINTERFACE;
37 static ULONG WINAPI InkCollector_AddRef(
38 IInkCollector* This)
40 FIXME("stub!\n");
41 return 0;
44 static ULONG WINAPI InkCollector_Release(
45 IInkCollector* This)
47 FIXME("stub!\n");
48 return 0;
51 static HRESULT WINAPI InkCollector_GetTypeInfoCount(
52 IInkCollector* This, UINT* pctinfo)
54 FIXME("stub!\n");
55 return E_NOTIMPL;
58 static HRESULT WINAPI InkCollector_GetTypeInfo(
59 IInkCollector* This, UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo)
61 FIXME("stub!\n");
62 return E_NOTIMPL;
65 static HRESULT WINAPI InkCollector_GetIDsOfNames(
66 IInkCollector* This, REFIID riid, LPOLESTR* rgszNames, UINT cNames,
67 LCID lcid, DISPID* rgDispId)
69 FIXME("stub!\n");
70 return E_NOTIMPL;
73 static HRESULT WINAPI InkCollector_Invoke(
74 IInkCollector* This, DISPID dispIdMember, REFIID riid, LCID lcid,
75 WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult,
76 EXCEPINFO* pExcepInfo, UINT* puArgErr)
78 FIXME("stub!\n");
79 return E_NOTIMPL;
82 static HRESULT WINAPI InkCollector_get_hWnd(
83 IInkCollector* This, LONG* CurrentWindow)
85 FIXME("stub!\n");
86 return E_NOTIMPL;
89 static HRESULT WINAPI InkCollector_put_hWnd(
90 IInkCollector* This, LONG CurrentWindow)
92 FIXME("stub!\n");
93 return E_NOTIMPL;
96 static HRESULT WINAPI InkCollector_get_Enabled(
97 IInkCollector* This, VARIANT_BOOL* Collecting)
99 FIXME("stub!\n");
100 return E_NOTIMPL;
103 static HRESULT WINAPI InkCollector_put_Enabled(
104 IInkCollector* This, VARIANT_BOOL Collecting)
106 FIXME("stub!\n");
107 return E_NOTIMPL;
110 static HRESULT WINAPI InkCollector_get_DefaultDrawingAttributes(
111 IInkCollector* This, IInkDrawingAttributes** CurrentAttributes)
113 FIXME("stub!\n");
114 return E_NOTIMPL;
117 static HRESULT WINAPI InkCollector_putref_DefaultDrawingAttributes(
118 IInkCollector* This, IInkDrawingAttributes* CurrentAttributes)
120 FIXME("stub!\n");
121 return E_NOTIMPL;
124 static HRESULT WINAPI InkCollector_get_Renderer(
125 IInkCollector* This, IInkRenderer** CurrentInkRenderer)
127 FIXME("stub!\n");
128 return E_NOTIMPL;
131 static HRESULT WINAPI InkCollector_putref_Renderer(
132 IInkCollector* This, IInkRenderer* CurrentInkRenderer)
134 FIXME("stub!\n");
135 return E_NOTIMPL;
138 static HRESULT WINAPI InkCollector_get_Ink(
139 IInkCollector* This, IInkDisp** Ink)
141 FIXME("stub!\n");
142 return E_NOTIMPL;
145 static HRESULT WINAPI InkCollector_putref_Ink(
146 IInkCollector* This, IInkDisp* Ink)
148 FIXME("stub!\n");
149 return E_NOTIMPL;
152 static HRESULT WINAPI InkCollector_get_AutoRedraw(
153 IInkCollector* This, VARIANT_BOOL* AutoRedraw)
155 FIXME("stub!\n");
156 return E_NOTIMPL;
159 static HRESULT WINAPI InkCollector_put_AutoRedraw(
160 IInkCollector* This, VARIANT_BOOL AutoRedraw)
162 FIXME("stub!\n");
163 return E_NOTIMPL;
166 static HRESULT WINAPI InkCollector_get_CollectingInk(
167 IInkCollector* This, VARIANT_BOOL* Collecting)
169 FIXME("stub!\n");
170 return E_NOTIMPL;
173 static HRESULT WINAPI InkCollector_get_CollectionMode(
174 IInkCollector* This, InkCollectionMode* Mode)
176 FIXME("stub!\n");
177 return E_NOTIMPL;
180 static HRESULT WINAPI InkCollector_put_CollectionMode(
181 IInkCollector* This, InkCollectionMode Mode)
183 FIXME("stub!\n");
184 return E_NOTIMPL;
187 static HRESULT WINAPI InkCollector_get_DynamicRendering(
188 IInkCollector* This, VARIANT_BOOL* Enabled)
190 FIXME("stub!\n");
191 return E_NOTIMPL;
194 static HRESULT WINAPI InkCollector_put_DynamicRendering(
195 IInkCollector* This, VARIANT_BOOL Enabled)
197 FIXME("stub!\n");
198 return E_NOTIMPL;
201 static HRESULT WINAPI InkCollector_get_DesiredPacketDescription(
202 IInkCollector* This, VARIANT* PacketGuids)
204 FIXME("stub!\n");
205 return E_NOTIMPL;
208 static HRESULT WINAPI InkCollector_put_DesiredPacketDescription(
209 IInkCollector* This, VARIANT PacketGuids)
211 FIXME("stub!\n");
212 return E_NOTIMPL;
215 static HRESULT WINAPI InkCollector_get_MouseIcon(
216 IInkCollector* This, IPictureDisp** MouseIcon)
218 FIXME("stub!\n");
219 return E_NOTIMPL;
222 static HRESULT WINAPI InkCollector_put_MouseIcon(
223 IInkCollector* This, IPictureDisp* MouseIcon)
225 FIXME("stub!\n");
226 return E_NOTIMPL;
229 static HRESULT WINAPI InkCollector_putref_MouseIcon(
230 IInkCollector* This, IPictureDisp* MouseIcon)
232 FIXME("stub!\n");
233 return E_NOTIMPL;
236 static HRESULT WINAPI InkCollector_get_MousePointer(
237 IInkCollector* This, InkMousePointer* MousePointer)
239 FIXME("stub!\n");
240 return E_NOTIMPL;
243 static HRESULT WINAPI InkCollector_put_MousePointer(
244 IInkCollector* This, InkMousePointer MousePointer)
246 FIXME("stub!\n");
247 return E_NOTIMPL;
250 static HRESULT WINAPI InkCollector_get_Cursors(
251 IInkCollector* This, IInkCursors** Cursors)
253 FIXME("stub!\n");
254 return E_NOTIMPL;
257 static HRESULT WINAPI InkCollector_get_MarginX(
258 IInkCollector* This, LONG* MarginX)
260 FIXME("stub!\n");
261 return E_NOTIMPL;
264 static HRESULT WINAPI InkCollector_put_MarginX(
265 IInkCollector* This, LONG MarginX)
267 FIXME("stub!\n");
268 return E_NOTIMPL;
271 static HRESULT WINAPI InkCollector_get_MarginY(
272 IInkCollector* This, LONG* MarginY)
274 FIXME("stub!\n");
275 return E_NOTIMPL;
278 static HRESULT WINAPI InkCollector_put_MarginY(
279 IInkCollector* This, LONG MarginY)
281 FIXME("stub!\n");
282 return E_NOTIMPL;
285 static HRESULT WINAPI InkCollector_get_Tablet(
286 IInkCollector* This, IInkTablet** SingleTablet)
288 FIXME("stub!\n");
289 return E_NOTIMPL;
292 static HRESULT WINAPI InkCollector_get_SupportHighContrastInk(
293 IInkCollector* This, VARIANT_BOOL* Support)
295 FIXME("stub!\n");
296 return E_NOTIMPL;
299 static HRESULT WINAPI InkCollector_put_SupportHighContrastInk(
300 IInkCollector* This, VARIANT_BOOL Support)
302 FIXME("stub!\n");
303 return E_NOTIMPL;
306 static HRESULT WINAPI InkCollector_SetGestureStatus(
307 IInkCollector* This, InkApplicationGesture Gesture, VARIANT_BOOL Listen)
309 FIXME("stub!\n");
310 return E_NOTIMPL;
313 static HRESULT WINAPI InkCollector_GetGestureStatus(
314 IInkCollector* This, InkApplicationGesture Gesture, VARIANT_BOOL* Listen)
316 FIXME("stub!\n");
317 return E_NOTIMPL;
320 static HRESULT WINAPI InkCollector_GetWindowInputRectangle(
321 IInkCollector* This, IInkRectangle** WindowInputRectangle)
323 FIXME("stub!\n");
324 return E_NOTIMPL;
327 static HRESULT WINAPI InkCollector_SetWindowInputRectangle(
328 IInkCollector* This, IInkRectangle* WindowInputRectangle)
330 FIXME("stub!\n");
331 return E_NOTIMPL;
334 static HRESULT WINAPI InkCollector_SetAllTabletsMode(
335 IInkCollector* This, VARIANT_BOOL UseMouseForInput)
337 FIXME("stub!\n");
338 return E_NOTIMPL;
341 static HRESULT WINAPI InkCollector_SetSingleTabletIntegratedMode(
342 IInkCollector* This, IInkTablet* Tablet)
344 FIXME("stub!\n");
345 return E_NOTIMPL;
348 static HRESULT WINAPI InkCollector_GetEventInterest(
349 IInkCollector* This, InkCollectorEventInterest EventId,
350 VARIANT_BOOL* Listen)
352 FIXME("stub!\n");
353 return E_NOTIMPL;
356 static HRESULT WINAPI InkCollector_SetEventInterest(
357 IInkCollector* This, InkCollectorEventInterest EventId,
358 VARIANT_BOOL Listen)
360 FIXME("stub!\n");
361 return E_NOTIMPL;
364 static const IInkCollectorVtbl InkCollectorVtbl =
366 InkCollector_QueryInterface,
367 InkCollector_AddRef,
368 InkCollector_Release,
369 InkCollector_GetTypeInfoCount,
370 InkCollector_GetTypeInfo,
371 InkCollector_GetIDsOfNames,
372 InkCollector_Invoke,
373 InkCollector_get_hWnd,
374 InkCollector_put_hWnd,
375 InkCollector_get_Enabled,
376 InkCollector_put_Enabled,
377 InkCollector_get_DefaultDrawingAttributes,
378 InkCollector_putref_DefaultDrawingAttributes,
379 InkCollector_get_Renderer,
380 InkCollector_putref_Renderer,
381 InkCollector_get_Ink,
382 InkCollector_putref_Ink,
383 InkCollector_get_AutoRedraw,
384 InkCollector_put_AutoRedraw,
385 InkCollector_get_CollectingInk,
386 InkCollector_get_CollectionMode,
387 InkCollector_put_CollectionMode,
388 InkCollector_get_DynamicRendering,
389 InkCollector_put_DynamicRendering,
390 InkCollector_get_DesiredPacketDescription,
391 InkCollector_put_DesiredPacketDescription,
392 InkCollector_get_MouseIcon,
393 InkCollector_put_MouseIcon,
394 InkCollector_putref_MouseIcon,
395 InkCollector_get_MousePointer,
396 InkCollector_put_MousePointer,
397 InkCollector_get_Cursors,
398 InkCollector_get_MarginX,
399 InkCollector_put_MarginX,
400 InkCollector_get_MarginY,
401 InkCollector_put_MarginY,
402 InkCollector_get_Tablet,
403 InkCollector_get_SupportHighContrastInk,
404 InkCollector_put_SupportHighContrastInk,
405 InkCollector_SetGestureStatus,
406 InkCollector_GetGestureStatus,
407 InkCollector_GetWindowInputRectangle,
408 InkCollector_SetWindowInputRectangle,
409 InkCollector_SetAllTabletsMode,
410 InkCollector_SetSingleTabletIntegratedMode,
411 InkCollector_GetEventInterest,
412 InkCollector_SetEventInterest