3 * Copyright 1998 Marcus Meissner
4 * Copyright 1998,1999 Lionel Ulmer
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 /* This file contains all the Device specific functions that can be used as stubs
23 by real device implementations.
25 It also contains all the helper functions.
30 #include "wine/debug.h"
31 #include "wine/unicode.h"
36 #include "device_private.h"
38 WINE_DEFAULT_DEBUG_CHANNEL(dinput);
40 /******************************************************************************
41 * Various debugging tools
43 void _dump_cooperativelevel_DI(DWORD dwFlags) {
49 #define FE(x) { x, #x},
53 FE(DISCL_NONEXCLUSIVE)
56 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
57 if (flags[i].mask & dwFlags)
58 DPRINTF("%s ",flags[i].name);
62 void _dump_EnumObjects_flags(DWORD dwFlags) {
68 #define FE(x) { x, #x},
75 FE(DIDFT_FFEFFECTTRIGGER)
76 FE(DIDFT_NOCOLLECTION)
85 if (dwFlags == DIDFT_ALL) {
89 for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
90 if (flags[i].mask & dwFlags)
91 DPRINTF("%s ",flags[i].name);
92 if (dwFlags & DIDFT_INSTANCEMASK)
93 DPRINTF("Instance(%04lx) ", dwFlags >> 8);
96 void _dump_DIPROPHEADER(DIPROPHEADER *diph) {
97 DPRINTF(" - dwObj = 0x%08lx\n", diph->dwObj);
98 DPRINTF(" - dwHow = %s\n",
99 ((diph->dwHow == DIPH_DEVICE) ? "DIPH_DEVICE" :
100 ((diph->dwHow == DIPH_BYOFFSET) ? "DIPH_BYOFFSET" :
101 ((diph->dwHow == DIPH_BYID)) ? "DIPH_BYID" : "unknown")));
104 void _dump_OBJECTINSTANCEA(DIDEVICEOBJECTINSTANCEA *ddoi) {
105 if (TRACE_ON(dinput)) {
106 DPRINTF(" - enumerating : %s - %2ld - 0x%08lx - %s\n",
107 debugstr_guid(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, ddoi->tszName);
111 void _dump_OBJECTINSTANCEW(DIDEVICEOBJECTINSTANCEW *ddoi) {
112 if (TRACE_ON(dinput)) {
113 DPRINTF(" - enumerating : %s - %2ld - 0x%08lx - %s\n",
114 debugstr_guid(&ddoi->guidType), ddoi->dwOfs, ddoi->dwType, debugstr_w(ddoi->tszName));
118 /* Conversion between internal data buffer and external data buffer */
119 void fill_DataFormat(void *out, void *in, DataFormat *df) {
121 char *in_c = (char *) in;
122 char *out_c = (char *) out;
124 if (df->dt == NULL) {
125 /* This means that the app uses Wine's internal data format */
126 memcpy(out, in, df->internal_format_size);
128 for (i = 0; i < df->size; i++) {
129 if (df->dt[i].offset_in >= 0) {
130 switch (df->dt[i].size) {
132 TRACE("Copying (c) to %d from %d (value %d)\n",
133 df->dt[i].offset_out, df->dt[i].offset_in, *((char *) (in_c + df->dt[i].offset_in)));
134 *((char *) (out_c + df->dt[i].offset_out)) = *((char *) (in_c + df->dt[i].offset_in));
138 TRACE("Copying (s) to %d from %d (value %d)\n",
139 df->dt[i].offset_out, df->dt[i].offset_in, *((short *) (in_c + df->dt[i].offset_in)));
140 *((short *) (out_c + df->dt[i].offset_out)) = *((short *) (in_c + df->dt[i].offset_in));
144 TRACE("Copying (i) to %d from %d (value %d)\n",
145 df->dt[i].offset_out, df->dt[i].offset_in, *((int *) (in_c + df->dt[i].offset_in)));
146 *((int *) (out_c + df->dt[i].offset_out)) = *((int *) (in_c + df->dt[i].offset_in));
150 memcpy((out_c + df->dt[i].offset_out), (in_c + df->dt[i].offset_in), df->dt[i].size);
153 switch (df->dt[i].size) {
155 TRACE("Copying (c) to %d default value %d\n",
156 df->dt[i].offset_out, df->dt[i].value);
157 *((char *) (out_c + df->dt[i].offset_out)) = (char) df->dt[i].value;
161 TRACE("Copying (s) to %d default value %d\n",
162 df->dt[i].offset_out, df->dt[i].value);
163 *((short *) (out_c + df->dt[i].offset_out)) = (short) df->dt[i].value;
167 TRACE("Copying (i) to %d default value %d\n",
168 df->dt[i].offset_out, df->dt[i].value);
169 *((int *) (out_c + df->dt[i].offset_out)) = (int) df->dt[i].value;
173 memset((out_c + df->dt[i].offset_out), df->dt[i].size, 0);
180 DataFormat *create_DataFormat(DIDATAFORMAT *wine_format, LPCDIDATAFORMAT asked_format, int *offset) {
188 ret = (DataFormat *) HeapAlloc(GetProcessHeap(), 0, sizeof(DataFormat));
190 done = (int *) HeapAlloc(GetProcessHeap(), 0, sizeof(int) * asked_format->dwNumObjs);
191 memset(done, 0, sizeof(int) * asked_format->dwNumObjs);
193 dt = (DataTransform *) HeapAlloc(GetProcessHeap(), 0, asked_format->dwNumObjs * sizeof(DataTransform));
195 TRACE("Creating DataTransform : \n");
197 for (i = 0; i < wine_format->dwNumObjs; i++) {
200 for (j = 0; j < asked_format->dwNumObjs; j++) {
204 if (((asked_format->rgodf[j].pguid == NULL) || (IsEqualGUID(wine_format->rgodf[i].pguid, asked_format->rgodf[j].pguid)))
206 (wine_format->rgodf[i].dwType & asked_format->rgodf[j].dwType)) {
210 TRACE("Matching : \n");
211 TRACE(" - Asked (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
212 j, debugstr_guid(asked_format->rgodf[j].pguid),
213 asked_format->rgodf[j].dwOfs,
214 DIDFT_GETTYPE(asked_format->rgodf[j].dwType), DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType));
216 TRACE(" - Wine (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
217 j, debugstr_guid(wine_format->rgodf[i].pguid),
218 wine_format->rgodf[i].dwOfs,
219 DIDFT_GETTYPE(wine_format->rgodf[i].dwType), DIDFT_GETINSTANCE(wine_format->rgodf[i].dwType));
221 if (wine_format->rgodf[i].dwType & DIDFT_BUTTON)
222 dt[index].size = sizeof(BYTE);
224 dt[index].size = sizeof(DWORD);
225 dt[index].offset_in = wine_format ->rgodf[i].dwOfs;
226 dt[index].offset_out = asked_format->rgodf[j].dwOfs;
230 if (wine_format->rgodf[i].dwOfs != asked_format->rgodf[j].dwOfs)
233 offset[i] = asked_format->rgodf[j].dwOfs;
238 if (j == asked_format->dwNumObjs)
242 TRACE("Setting to default value :\n");
243 for (j = 0; j < asked_format->dwNumObjs; j++) {
245 TRACE(" - Asked (%d) : %s - Ofs = %3ld - (Type = 0x%02x | Instance = %04x)\n",
246 j, debugstr_guid(asked_format->rgodf[j].pguid),
247 asked_format->rgodf[j].dwOfs,
248 DIDFT_GETTYPE(asked_format->rgodf[j].dwType), DIDFT_GETINSTANCE(asked_format->rgodf[j].dwType));
251 if (asked_format->rgodf[j].dwType & DIDFT_BUTTON)
252 dt[index].size = sizeof(BYTE);
254 dt[index].size = sizeof(DWORD);
255 dt[index].offset_in = -1;
256 dt[index].offset_out = asked_format->rgodf[j].dwOfs;
264 ret->internal_format_size = wine_format->dwDataSize;
268 HeapFree(GetProcessHeap(), 0, dt);
273 HeapFree(GetProcessHeap(), 0, done);
278 BOOL DIEnumDevicesCallbackAtoW(LPCDIDEVICEOBJECTINSTANCEA lpddi, LPVOID lpvRef) {
279 DIDEVICEOBJECTINSTANCEW ddtmp;
280 device_enumobjects_AtoWcb_data* data;
282 data = (device_enumobjects_AtoWcb_data*) lpvRef;
284 memset(&ddtmp, 0, sizeof(DIDEVICEINSTANCEW));
286 ddtmp.dwSize = sizeof(DIDEVICEINSTANCEW);
287 ddtmp.guidType = lpddi->guidType;
288 ddtmp.dwOfs = lpddi->dwOfs;
289 ddtmp.dwType = lpddi->dwType;
290 ddtmp.dwFlags = lpddi->dwFlags;
291 MultiByteToWideChar(CP_ACP, 0, lpddi->tszName, -1, ddtmp.tszName, MAX_PATH);
293 if (lpddi->dwSize == sizeof(DIDEVICEINSTANCEA)) {
295 * if dwSize < sizeof(DIDEVICEINSTANCEA of DInput version >= 5)
296 * force feedback and other newer datas aren't available
298 ddtmp.dwFFMaxForce = lpddi->dwFFMaxForce;
299 ddtmp.dwFFForceResolution = lpddi->dwFFForceResolution;
300 ddtmp.wCollectionNumber = lpddi->wCollectionNumber;
301 ddtmp.wDesignatorIndex = lpddi->wDesignatorIndex;
302 ddtmp.wUsagePage = lpddi->wUsagePage;
303 ddtmp.wUsage = lpddi->wUsage;
304 ddtmp.dwDimension = lpddi->dwDimension;
305 ddtmp.wExponent = lpddi->wExponent;
306 ddtmp.wReserved = lpddi->wReserved;
308 return data->lpCallBack(&ddtmp, data->lpvRef);
311 /******************************************************************************
312 * IDirectInputDeviceA
315 HRESULT WINAPI IDirectInputDevice2AImpl_SetDataFormat(
316 LPDIRECTINPUTDEVICE8A iface,LPCDIDATAFORMAT df
319 ICOM_THIS(IDirectInputDevice2AImpl,iface);
321 TRACE("(this=%p,%p)\n",This,df);
323 TRACE("df.dwSize=%ld\n",df->dwSize);
324 TRACE("(df.dwObjsize=%ld)\n",df->dwObjSize);
325 TRACE("(df.dwFlags=0x%08lx)\n",df->dwFlags);
326 TRACE("(df.dwDataSize=%ld)\n",df->dwDataSize);
327 TRACE("(df.dwNumObjs=%ld)\n",df->dwNumObjs);
329 for (i=0;i<df->dwNumObjs;i++) {
330 TRACE("df.rgodf[%d].guid %s\n",i,debugstr_guid(df->rgodf[i].pguid));
331 TRACE("df.rgodf[%d].dwOfs %ld\n",i,df->rgodf[i].dwOfs);
332 TRACE("dwType 0x%02x,dwInstance %d\n",DIDFT_GETTYPE(df->rgodf[i].dwType),DIDFT_GETINSTANCE(df->rgodf[i].dwType));
333 TRACE("df.rgodf[%d].dwFlags 0x%08lx\n",i,df->rgodf[i].dwFlags);
338 HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
339 LPDIRECTINPUTDEVICE8A iface,HWND hwnd,DWORD dwflags
341 ICOM_THIS(IDirectInputDevice2AImpl,iface);
342 TRACE("(this=%p,0x%08lx,0x%08lx)\n",This,(DWORD)hwnd,dwflags);
343 if (TRACE_ON(dinput)) {
344 TRACE(" cooperative level : ");
345 _dump_cooperativelevel_DI(dwflags);
350 HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(
351 LPDIRECTINPUTDEVICE8A iface,HANDLE hnd
353 ICOM_THIS(IDirectInputDevice2AImpl,iface);
354 FIXME("(this=%p,0x%08lx): stub\n",This,(DWORD)hnd);
358 ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface)
360 ICOM_THIS(IDirectInputDevice2AImpl,iface);
364 HeapFree(GetProcessHeap(),0,This);
368 HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
369 LPDIRECTINPUTDEVICE8A iface,REFIID riid,LPVOID *ppobj
372 ICOM_THIS(IDirectInputDevice2AImpl,iface);
374 TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
375 if (IsEqualGUID(&IID_IUnknown,riid)) {
376 IDirectInputDevice2_AddRef(iface);
380 if (IsEqualGUID(&IID_IDirectInputDeviceA,riid)) {
381 IDirectInputDevice2_AddRef(iface);
385 if (IsEqualGUID(&IID_IDirectInputDevice2A,riid)) {
386 IDirectInputDevice2_AddRef(iface);
390 if (IsEqualGUID(&IID_IDirectInputDevice7A,riid)) {
391 IDirectInputDevice7_AddRef(iface);
395 TRACE("Unsupported interface !\n");
399 HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(
400 LPDIRECTINPUTDEVICE8W iface,REFIID riid,LPVOID *ppobj
403 ICOM_THIS(IDirectInputDevice2AImpl,iface);
405 TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
406 if (IsEqualGUID(&IID_IUnknown,riid)) {
407 IDirectInputDevice2_AddRef(iface);
411 if (IsEqualGUID(&IID_IDirectInputDeviceW,riid)) {
412 IDirectInputDevice2_AddRef(iface);
416 if (IsEqualGUID(&IID_IDirectInputDevice2W,riid)) {
417 IDirectInputDevice2_AddRef(iface);
421 if (IsEqualGUID(&IID_IDirectInputDevice7W,riid)) {
422 IDirectInputDevice7_AddRef(iface);
426 TRACE("Unsupported interface !\n");
430 ULONG WINAPI IDirectInputDevice2AImpl_AddRef(
431 LPDIRECTINPUTDEVICE8A iface)
433 ICOM_THIS(IDirectInputDevice2AImpl,iface);
437 HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(
438 LPDIRECTINPUTDEVICE8A iface,
439 LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback,
443 FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
444 if (TRACE_ON(dinput)) {
445 DPRINTF(" - flags = ");
446 _dump_EnumObjects_flags(dwFlags);
453 HRESULT WINAPI IDirectInputDevice2WImpl_EnumObjects(
454 LPDIRECTINPUTDEVICE8W iface,
455 LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback,
459 FIXME("(this=%p,%p,%p,%08lx): stub!\n", iface, lpCallback, lpvRef, dwFlags);
460 if (TRACE_ON(dinput)) {
461 DPRINTF(" - flags = ");
462 _dump_EnumObjects_flags(dwFlags);
469 HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
470 LPDIRECTINPUTDEVICE8A iface,
472 LPDIPROPHEADER pdiph)
474 FIXME("(this=%p,%s,%p): stub!\n",
475 iface, debugstr_guid(rguid), pdiph);
477 if (TRACE_ON(dinput))
478 _dump_DIPROPHEADER(pdiph);
483 HRESULT WINAPI IDirectInputDevice2AImpl_GetObjectInfo(
484 LPDIRECTINPUTDEVICE8A iface,
485 LPDIDEVICEOBJECTINSTANCEA pdidoi,
489 FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
490 iface, pdidoi, dwObj, dwHow);
495 HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
496 LPDIRECTINPUTDEVICE8W iface,
497 LPDIDEVICEOBJECTINSTANCEW pdidoi,
501 FIXME("(this=%p,%p,%ld,0x%08lx): stub!\n",
502 iface, pdidoi, dwObj, dwHow);
507 HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceInfo(
508 LPDIRECTINPUTDEVICE8A iface,
509 LPDIDEVICEINSTANCEA pdidi)
511 FIXME("(this=%p,%p): stub!\n",
516 HRESULT WINAPI IDirectInputDevice2WImpl_GetDeviceInfo(
517 LPDIRECTINPUTDEVICE8W iface,
518 LPDIDEVICEINSTANCEW pdidi)
520 FIXME("(this=%p,%p): stub!\n",
526 HRESULT WINAPI IDirectInputDevice2AImpl_RunControlPanel(
527 LPDIRECTINPUTDEVICE8A iface,
531 FIXME("(this=%p,%p,0x%08lx): stub!\n",
532 iface, hwndOwner, dwFlags);
537 HRESULT WINAPI IDirectInputDevice2AImpl_Initialize(
538 LPDIRECTINPUTDEVICE8A iface,
543 FIXME("(this=%p,%p,%ld,%s): stub!\n",
544 iface, hinst, dwVersion, debugstr_guid(rguid));
548 /******************************************************************************
549 * IDirectInputDevice2A
552 HRESULT WINAPI IDirectInputDevice2AImpl_CreateEffect(
553 LPDIRECTINPUTDEVICE8A iface,
556 LPDIRECTINPUTEFFECT *ppdef,
559 FIXME("(this=%p,%s,%p,%p,%p): stub!\n",
560 iface, debugstr_guid(rguid), lpeff, ppdef, pUnkOuter);
564 HRESULT WINAPI IDirectInputDevice2AImpl_EnumEffects(
565 LPDIRECTINPUTDEVICE8A iface,
566 LPDIENUMEFFECTSCALLBACKA lpCallback,
570 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
571 iface, lpCallback, lpvRef, dwFlags);
574 lpCallback(NULL, lpvRef);
578 HRESULT WINAPI IDirectInputDevice2WImpl_EnumEffects(
579 LPDIRECTINPUTDEVICE8W iface,
580 LPDIENUMEFFECTSCALLBACKW lpCallback,
584 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
585 iface, lpCallback, lpvRef, dwFlags);
588 lpCallback(NULL, lpvRef);
592 HRESULT WINAPI IDirectInputDevice2AImpl_GetEffectInfo(
593 LPDIRECTINPUTDEVICE8A iface,
594 LPDIEFFECTINFOA lpdei,
597 FIXME("(this=%p,%p,%s): stub!\n",
598 iface, lpdei, debugstr_guid(rguid));
602 HRESULT WINAPI IDirectInputDevice2WImpl_GetEffectInfo(
603 LPDIRECTINPUTDEVICE8W iface,
604 LPDIEFFECTINFOW lpdei,
607 FIXME("(this=%p,%p,%s): stub!\n",
608 iface, lpdei, debugstr_guid(rguid));
612 HRESULT WINAPI IDirectInputDevice2AImpl_GetForceFeedbackState(
613 LPDIRECTINPUTDEVICE8A iface,
616 FIXME("(this=%p,%p): stub!\n",
621 HRESULT WINAPI IDirectInputDevice2AImpl_SendForceFeedbackCommand(
622 LPDIRECTINPUTDEVICE8A iface,
625 FIXME("(this=%p,0x%08lx): stub!\n",
630 HRESULT WINAPI IDirectInputDevice2AImpl_EnumCreatedEffectObjects(
631 LPDIRECTINPUTDEVICE8A iface,
632 LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback,
636 FIXME("(this=%p,%p,%p,0x%08lx): stub!\n",
637 iface, lpCallback, lpvRef, dwFlags);
639 lpCallback(NULL, lpvRef);
643 HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
644 LPDIRECTINPUTDEVICE8A iface,
645 LPDIEFFESCAPE lpDIEEsc)
647 FIXME("(this=%p,%p): stub!\n",
652 HRESULT WINAPI IDirectInputDevice2AImpl_Poll(
653 LPDIRECTINPUTDEVICE8A iface)
655 /* Because wine devices do not need to be polled, just return DI_NOEFFECT */
659 HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData(
660 LPDIRECTINPUTDEVICE8A iface,
662 LPCDIDEVICEOBJECTDATA rgdod,
666 FIXME("(this=%p,0x%08lx,%p,%p,0x%08lx): stub!\n",
667 iface, cbObjectData, rgdod, pdwInOut, dwFlags);
672 HRESULT WINAPI IDirectInputDevice7AImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8A iface,
674 LPDIENUMEFFECTSINFILECALLBACK pec,
678 FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, lpszFileName, pec, pvRef, dwFlags);
683 HRESULT WINAPI IDirectInputDevice7WImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8W iface,
684 LPCWSTR lpszFileName,
685 LPDIENUMEFFECTSINFILECALLBACK pec,
689 FIXME("(%p)->(%s,%p,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), pec, pvRef, dwFlags);
694 HRESULT WINAPI IDirectInputDevice7AImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8A iface,
697 LPDIFILEEFFECT rgDiFileEft,
700 FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, lpszFileName, dwEntries, rgDiFileEft, dwFlags);
705 HRESULT WINAPI IDirectInputDevice7WImpl_WriteEffectToFile(LPDIRECTINPUTDEVICE8W iface,
706 LPCWSTR lpszFileName,
708 LPDIFILEEFFECT rgDiFileEft,
711 FIXME("(%p)->(%s,%08lx,%p,%08lx): stub !\n", iface, debugstr_w(lpszFileName), dwEntries, rgDiFileEft, dwFlags);
716 HRESULT WINAPI IDirectInputDevice8AImpl_BuildActionMap(LPDIRECTINPUTDEVICE8A iface,
717 LPDIACTIONFORMATA lpdiaf,
721 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
726 HRESULT WINAPI IDirectInputDevice8WImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
727 LPDIACTIONFORMATW lpdiaf,
728 LPCWSTR lpszUserName,
731 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
736 HRESULT WINAPI IDirectInputDevice8AImpl_SetActionMap(LPDIRECTINPUTDEVICE8A iface,
737 LPDIACTIONFORMATA lpdiaf,
741 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, lpszUserName, dwFlags);
746 HRESULT WINAPI IDirectInputDevice8WImpl_SetActionMap(LPDIRECTINPUTDEVICE8W iface,
747 LPDIACTIONFORMATW lpdiaf,
748 LPCWSTR lpszUserName,
751 FIXME("(%p)->(%p,%s,%08lx): stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
756 HRESULT WINAPI IDirectInputDevice8AImpl_GetImageInfo(LPDIRECTINPUTDEVICE8A iface,
757 LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader)
759 FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);
764 HRESULT WINAPI IDirectInputDevice8WImpl_GetImageInfo(LPDIRECTINPUTDEVICE8W iface,
765 LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader)
767 FIXME("(%p)->(%p): stub !\n", iface, lpdiDevImageInfoHeader);