4 * Copyright 2002 Patrik Stridvall
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.
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.
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
28 #include "wine/windef16.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wintab
);
33 /**********************************************************************/
35 #define DECLARE_HANDLE16(a) \
36 typedef HANDLE16 a##16; \
37 typedef a##16 *P##a##16; \
38 typedef a##16 *NP##a##16; \
39 typedef a##16 *LP##a##16
41 DECLARE_HANDLE16(HMGR
); /* manager handle */
42 DECLARE_HANDLE16(HCTX
); /* context handle */
43 DECLARE_HANDLE16(HWTHOOK
); /* hook handle */
45 /**********************************************************************/
47 typedef struct tagLOGCONTEXT16
{
48 char lcName
[LCNAMELEN
];
82 } LOGCONTEXT16
, *PLOGCONTEXT16
, *NPLOGCONTEXT16
, *LPLOGCONTEXT16
;
84 /**********************************************************************/
86 typedef BOOL16 (WINAPI
* WTENUMPROC16
)(HCTX16
, LPARAM
); /* changed CALLBACK->WINAPI, 1.1 */
87 typedef BOOL16 (WINAPI
* WTCONFIGPROC16
)(HCTX16
, HWND16
);
88 typedef LRESULT (WINAPI
* WTHOOKPROC16
)(INT16
, WPARAM16
, LPARAM
);
89 typedef WTHOOKPROC16
*LPWTHOOKPROC16
;
91 /***********************************************************************
94 UINT16 WINAPI
WTInfo16(UINT16 wCategory
, UINT16 nIndex
, LPVOID lpOutput
)
96 FIXME("(%hu, %hu, %p): stub\n", wCategory
, nIndex
, lpOutput
);
101 /***********************************************************************
104 HCTX16 WINAPI
WTOpen16(HWND16 hWnd
, LPLOGCONTEXT16 lpLogCtx
, BOOL16 fEnable
)
106 FIXME("(0x%04hx, %p, %hu): stub\n", hWnd
, lpLogCtx
, fEnable
);
111 /***********************************************************************
112 * WTClose (WINTAB.22)
114 BOOL16 WINAPI
WTClose16(HCTX16 hCtx
)
116 FIXME("(0x%04hx): stub\n", hCtx
);
121 /***********************************************************************
122 * WTPacketsGet (WINTAB.23)
124 INT16 WINAPI
WTPacketsGet16(HCTX16 hCtx
, INT16 cMaxPkts
, LPVOID lpPkts
)
126 FIXME("(0x%04hx, %hd, %p): stub\n", hCtx
, cMaxPkts
, lpPkts
);
131 /***********************************************************************
132 * WTPacket (WINTAB.24)
134 BOOL16 WINAPI
WTPacket16(HCTX16 hCtx
, UINT16 wSerial
, LPVOID lpPkt
)
136 FIXME("(0x%04hx, %hd, %p): stub\n", hCtx
, wSerial
, lpPkt
);
141 /***********************************************************************
142 * WTEnable (WINTAB.40)
144 BOOL16 WINAPI
WTEnable16(HCTX16 hCtx
, BOOL16 fEnable
)
146 FIXME("(0x%04hx, %hu): stub\n", hCtx
, fEnable
);
151 /***********************************************************************
152 * WTOverlap (WINTAB.41)
154 BOOL16 WINAPI
WTOverlap16(HCTX16 hCtx
, BOOL16 fToTop
)
156 FIXME("(0x%04hx, %hu): stub\n", hCtx
, fToTop
);
161 /***********************************************************************
162 * WTConfig (WINTAB.60)
164 BOOL16 WINAPI
WTConfig16(HCTX16 hCtx
, HWND16 hWnd
)
166 FIXME("(0x%04hx, 0x%04hx): stub\n", hCtx
, hWnd
);
171 /***********************************************************************
174 BOOL16 WINAPI
WTGet16(HCTX16 hCtx
, LPLOGCONTEXT16 lpLogCtx
)
176 FIXME("(0x%04hx, %p): stub\n", hCtx
, lpLogCtx
);
181 /***********************************************************************
184 BOOL16 WINAPI
WTSet16(HCTX16 hCtx
, LPLOGCONTEXT16 lpLogCtx
)
186 FIXME("(0x%04hx, %p): stub\n", hCtx
, lpLogCtx
);
191 /***********************************************************************
192 * WTExtGet (WINTAB.63)
194 BOOL16 WINAPI
WTExtGet16(HCTX16 hCtx
, UINT16 wExt
, LPVOID lpData
)
196 FIXME("(0x%04hx, %hu, %p): stub\n", hCtx
, wExt
, lpData
);
201 /***********************************************************************
202 * WTExtSet (WINTAB.64)
204 BOOL16 WINAPI
WTExtSet16(HCTX16 hCtx
, UINT16 wExt
, LPVOID lpData
)
206 FIXME("(0x%04hx, %hu, %p): stub\n", hCtx
, wExt
, lpData
);
211 /***********************************************************************
214 BOOL16 WINAPI
WTSave16(HCTX16 hCtx
, LPVOID lpSaveInfo
)
216 FIXME("(0x%04hx, %p): stub\n", hCtx
, lpSaveInfo
);
221 /***********************************************************************
222 * WTRestore (WINTAB.66)
224 HCTX16 WINAPI
WTRestore16(HWND16 hWnd
, LPVOID lpSaveInfo
, BOOL16 fEnable
)
226 FIXME("(0x%04hx, %p, %hu): stub\n", hWnd
, lpSaveInfo
, fEnable
);
231 /***********************************************************************
232 * WTPacketsPeek (WINTAB.80)
234 INT16 WINAPI
WTPacketsPeek16(HCTX16 hCtx
, INT16 cMaxPkts
, LPVOID lpPkts
)
236 FIXME("(0x%04hx, %hd, %p): stub\n", hCtx
, cMaxPkts
, lpPkts
);
241 /***********************************************************************
242 * WTDataGet (WINTAB.81)
244 INT16 WINAPI
WTDataGet16(HCTX16 hCtx
, UINT16 wBegin
, UINT16 wEnd
,
245 INT16 cMaxPkts
, LPVOID lpPkts
, LPINT16 lpNPkts
)
247 FIXME("(0x%04hx, %hu, %hu, %hd, %p, %p): stub\n",
248 hCtx
, wBegin
, wEnd
, cMaxPkts
, lpPkts
, lpNPkts
);
253 /***********************************************************************
254 * WTDataPeek (WINTAB.82)
256 INT16 WINAPI
WTDataPeek16(HCTX16 hCtx
, UINT16 wBegin
, UINT16 wEnd
,
257 INT16 cMaxPkts
, LPVOID lpPkts
, LPINT16 lpNPkts
)
259 FIXME("(0x%04hx, %hu, %hu, %hd, %p, %p): stub\n",
260 hCtx
, wBegin
, wEnd
, cMaxPkts
, lpPkts
, lpNPkts
);
265 /***********************************************************************
266 * WTQueuePackets (WINTAB.83)
270 DWORD WINAPI
WTQueuePackets16(HCTX16 hCtx
)
272 FIXME("(0x%04hx): stub\n", hCtx
);
277 /***********************************************************************
278 * WTQueuePacketsEx (WINTAB.200)
280 BOOL16 WINAPI
WTQueuePacketsEx16(HCTX16 hCtx
, UINT16
*lpOld
, UINT16
*lpNew
)
282 FIXME("(0x%04hx, %p, %p): stub\n", hCtx
, lpOld
, lpNew
);
287 /***********************************************************************
288 * WTQueueSizeGet (WINTAB.84)
290 INT16 WINAPI
WTQueueSizeGet16(HCTX16 hCtx
)
292 FIXME("(0x%04hx): stub\n", hCtx
);
297 /***********************************************************************
298 * WTQueueSizeSet (WINTAB.85)
300 BOOL16 WINAPI
WTQueueSizeSet16(HCTX16 hCtx
, INT16 nPkts
)
302 FIXME("(0x%04hx, %hd): stub\n", hCtx
, nPkts
);
307 /***********************************************************************
308 * WTMgrOpen (WINTAB.100)
310 HMGR16 WINAPI
WTMgrOpen16(HWND16 hWnd
, UINT16 wMsgBase
)
312 FIXME("(0x%04hx, %hu): stub\n", hWnd
, wMsgBase
);
317 /***********************************************************************
318 * WTMgrClose (WINTAB.101)
320 BOOL16 WINAPI
WTMgrClose16(HMGR16 hMgr
)
322 FIXME("(0x%04hx): stub\n", hMgr
);
327 /***********************************************************************
328 * WTMgrContextEnum (WINTAB.120)
330 BOOL16 WINAPI
WTMgrContextEnum16(HMGR16 hMgr
, WTENUMPROC16 lpEnumFunc
, LPARAM lParam
)
332 FIXME("(0x%04hx, %p, %ld): stub\n", hMgr
, lpEnumFunc
, lParam
);
337 /***********************************************************************
338 * WTMgrContextOwner (WINTAB.121)
340 HWND16 WINAPI
WTMgrContextOwner16(HMGR16 hMgr
, HCTX16 hCtx
)
342 FIXME("(0x%04hx, 0x%04hx): stub\n", hMgr
, hCtx
);
347 /***********************************************************************
348 * WTMgrDefContext (WINTAB.122)
350 HCTX16 WINAPI
WTMgrDefContext16(HMGR16 hMgr
, BOOL16 fSystem
)
352 FIXME("(0x%04hx, %hu): stub\n", hMgr
, fSystem
);
357 /***********************************************************************
358 * WTMgrDefContextEx (WINTAB.206)
362 HCTX16 WINAPI
WTMgrDefContextEx16(HMGR16 hMgr
, UINT16 wDevice
, BOOL16 fSystem
)
364 FIXME("(0x%04hx, %hu, %hu): stub\n", hMgr
, wDevice
, fSystem
);
369 /***********************************************************************
370 * WTMgrDeviceConfig (WINTAB.140)
372 UINT16 WINAPI
WTMgrDeviceConfig16(HMGR16 hMgr
, UINT16 wDevice
, HWND16 hWnd
)
374 FIXME("(0x%04hx, %hu, 0x%04hx): stub\n", hMgr
, wDevice
, hWnd
);
379 /***********************************************************************
380 * WTMgrConfigReplace (WINTAB.141)
384 BOOL16 WINAPI
WTMgrConfigReplace16(HMGR16 hMgr
, BOOL16 fInstall
,
385 WTCONFIGPROC16 lpConfigProc
)
387 FIXME("(0x%04hx, %hu, %p): stub\n", hMgr
, fInstall
, lpConfigProc
);
392 /***********************************************************************
393 * WTMgrConfigReplaceEx (WINTAB.202)
395 BOOL16 WINAPI
WTMgrConfigReplaceEx16(HMGR16 hMgr
, BOOL16 fInstall
,
396 LPSTR lpszModule
, LPSTR lpszCfgProc
)
398 FIXME("(0x%04hx, %hu, %s, %s): stub\n", hMgr
, fInstall
,
399 debugstr_a(lpszModule
), debugstr_a(lpszCfgProc
));
404 /***********************************************************************
405 * WTMgrPacketHook (WINTAB.160)
409 WTHOOKPROC16 WINAPI
WTMgrPacketHook16(HMGR16 hMgr
, BOOL16 fInstall
,
410 INT16 nType
, WTHOOKPROC16 lpFunc
)
412 FIXME("(0x%04hx, %hu, %hd, %p): stub\n", hMgr
, fInstall
, nType
, lpFunc
);
417 /***********************************************************************
418 * WTMgrPacketHookEx (WINTAB.203)
420 HWTHOOK16 WINAPI
WTMgrPacketHookEx16(HMGR16 hMgr
, INT16 nType
,
421 LPSTR lpszModule
, LPSTR lpszHookProc
)
423 FIXME("(0x%04hx, %hd, %s, %s): stub\n", hMgr
, nType
,
424 debugstr_a(lpszModule
), debugstr_a(lpszHookProc
));
429 /***********************************************************************
430 * WTMgrPacketUnhook (WINTAB.204)
432 BOOL16 WINAPI
WTMgrPacketUnhook16(HWTHOOK16 hHook
)
434 FIXME("(0x%04hx): stub\n", hHook
);
439 /***********************************************************************
440 * WTMgrPacketHookDefProc (WINTAB.161)
444 LRESULT WINAPI
WTMgrPacketHookDefProc16(INT16 nCode
, WPARAM16 wParam
,
445 LPARAM lParam
, LPWTHOOKPROC16 lplpFunc
)
447 FIXME("(%hd, %hu, %lu, %p): stub\n", nCode
, wParam
, lParam
, lplpFunc
);
452 /***********************************************************************
453 * WTMgrPacketHookNext (WINTAB.205)
455 LRESULT WINAPI
WTMgrPacketHookNext16(HWTHOOK16 hHook
, INT16 nCode
,
456 WPARAM16 wParam
, LPARAM lParam
)
458 FIXME("(0x%04hx, %hd, %hu, %lu): stub\n", hHook
, nCode
, wParam
, lParam
);
464 /***********************************************************************
465 * WTMgrExt (WINTAB.180)
467 BOOL16 WINAPI
WTMgrExt16(HMGR16 hMgr
, UINT16 wExt
, LPVOID lpData
)
469 FIXME("(0x%04hx, %hu, %p): stub\n", hMgr
, wExt
, lpData
);
474 /***********************************************************************
475 * WTMgrCsrEnable (WINTAB.181)
477 BOOL16 WINAPI
WTMgrCsrEnable16(HMGR16 hMgr
, UINT16 wCursor
, BOOL16 fEnable
)
479 FIXME("(0x%04hx, %hu, %hu): stub\n", hMgr
, wCursor
, fEnable
);
484 /***********************************************************************
485 * WTMgrCsrButtonMap (WINTAB.182)
487 BOOL16 WINAPI
WTMgrCsrButtonMap16(HMGR16 hMgr
, UINT16 wCursor
,
488 LPBYTE lpLogBtns
, LPBYTE lpSysBtns
)
490 FIXME("(0x%04hx, %hu, %p, %p): stub\n", hMgr
, wCursor
, lpLogBtns
, lpSysBtns
);
495 /***********************************************************************
496 * WTMgrCsrPressureBtnMarks (WINTAB.183)
498 * OBSOLETE IN WIN32! (But only according to documentation)
500 BOOL16 WINAPI
WTMgrCsrPressureBtnMarks16(HMGR16 hMgr
, UINT16 wCsr
,
501 DWORD dwNMarks
, DWORD dwTMarks
)
503 FIXME("(0x%04hx, %hu, %u, %u): stub\n", hMgr
, wCsr
, dwNMarks
, dwTMarks
);
508 /***********************************************************************
509 * WTMgrCsrPressureBtnMarksEx (WINTAB.201)
511 BOOL16 WINAPI
WTMgrCsrPressureBtnMarksEx16(HMGR16 hMgr
, UINT16 wCsr
,
512 UINT16
*lpNMarks
, UINT16
*lpTMarks
)
514 FIXME("(0x%04hx, %hu, %p, %p): stub\n", hMgr
, wCsr
, lpNMarks
, lpTMarks
);
519 /***********************************************************************
520 * WTMgrCsrPressureResponse (WINTAB.184)
522 BOOL16 WINAPI
WTMgrCsrPressureResponse16(HMGR16 hMgr
, UINT16 wCsr
,
523 UINT16
*lpNResp
, UINT16
*lpTResp
)
525 FIXME("(0x%04hx, %hu, %p, %p): stub\n", hMgr
, wCsr
, lpNResp
, lpTResp
);
530 /***********************************************************************
531 * WTMgrCsrExt (WINTAB.185)
533 BOOL16 WINAPI
WTMgrCsrExt16(HMGR16 hMgr
, UINT16 wCsr
, UINT16 wExt
, LPVOID lpData
)
535 FIXME("(0x%04hx, %hu, %hu, %p): stub\n", hMgr
, wCsr
, wExt
, lpData
);