Release 20030408.
[wine/gsoc-2012-control.git] / dlls / wintab32 / context.c
blobf4fc1673bd75d284d33e835669a63db9e6a780a0
1 /*
2 * Tablet Context
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
27 #include "wintab.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wintab32);
33 /***********************************************************************
34 * WTInfoA (WINTAB32.20)
36 UINT WINAPI WTInfoA(UINT wCategory, UINT nIndex, LPVOID lpOutput)
38 FIXME("(%u, %u, %p): stub\n", wCategory, nIndex, lpOutput);
40 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
42 return 0;
45 /***********************************************************************
46 * WTInfoW (WINTAB32.1020)
48 UINT WINAPI WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
50 FIXME("(%u, %u, %p): stub\n", wCategory, nIndex, lpOutput);
52 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
54 return 0;
57 /***********************************************************************
58 * WTOpenA (WINTAB32.21)
60 HCTX WINAPI WTOpenA(HWND hWnd, LPLOGCONTEXTA lpLogCtx, BOOL fEnable)
62 FIXME("(%p, %p, %u): stub\n", hWnd, lpLogCtx, fEnable);
64 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
66 return NULL;
69 /***********************************************************************
70 * WTOpenW (WINTAB32.1021)
72 HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
74 FIXME("(%p, %p, %u): stub\n", hWnd, lpLogCtx, fEnable);
76 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
78 return NULL;
81 /***********************************************************************
82 * WTClose (WINTAB32.22)
84 BOOL WINAPI WTClose(HCTX hCtx)
86 FIXME("(%p): stub\n", hCtx);
88 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
90 return TRUE;
93 /***********************************************************************
94 * WTPacketsGet (WINTAB32.23)
96 int WINAPI WTPacketsGet(HCTX hCtx, int cMaxPkts, LPVOID lpPkts)
98 FIXME("(%p, %d, %p): stub\n", hCtx, cMaxPkts, lpPkts);
100 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
102 return 0;
105 /***********************************************************************
106 * WTPacket (WINTAB32.24)
108 BOOL WINAPI WTPacket(HCTX hCtx, UINT wSerial, LPVOID lpPkt)
110 FIXME("(%p, %d, %p): stub\n", hCtx, wSerial, lpPkt);
112 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
114 return FALSE;
117 /***********************************************************************
118 * WTEnable (WINTAB32.40)
120 BOOL WINAPI WTEnable(HCTX hCtx, BOOL fEnable)
122 FIXME("(%p, %u): stub\n", hCtx, fEnable);
124 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
126 return FALSE;
129 /***********************************************************************
130 * WTOverlap (WINTAB32.41)
132 BOOL WINAPI WTOverlap(HCTX hCtx, BOOL fToTop)
134 FIXME("(%p, %u): stub\n", hCtx, fToTop);
136 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
138 return FALSE;
141 /***********************************************************************
142 * WTConfig (WINTAB32.61)
144 BOOL WINAPI WTConfig(HCTX hCtx, HWND hWnd)
146 FIXME("(%p, %p): stub\n", hCtx, hWnd);
148 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
150 return FALSE;
153 /***********************************************************************
154 * WTGetA (WINTAB32.61)
156 BOOL WINAPI WTGetA(HCTX hCtx, LPLOGCONTEXTA lpLogCtx)
158 FIXME("(%p, %p): stub\n", hCtx, lpLogCtx);
160 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
162 return FALSE;
165 /***********************************************************************
166 * WTGetW (WINTAB32.1061)
168 BOOL WINAPI WTGetW(HCTX hCtx, LPLOGCONTEXTW lpLogCtx)
170 FIXME("(%p, %p): stub\n", hCtx, lpLogCtx);
172 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
174 return FALSE;
177 /***********************************************************************
178 * WTSetA (WINTAB32.62)
180 BOOL WINAPI WTSetA(HCTX hCtx, LPLOGCONTEXTA lpLogCtx)
182 FIXME("(%p, %p): stub\n", hCtx, lpLogCtx);
184 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
186 return FALSE;
189 /***********************************************************************
190 * WTSetW (WINTAB32.1062)
192 BOOL WINAPI WTSetW(HCTX hCtx, LPLOGCONTEXTW lpLogCtx)
194 FIXME("(%p, %p): stub\n", hCtx, lpLogCtx);
196 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
198 return FALSE;
201 /***********************************************************************
202 * WTExtGet (WINTAB32.63)
204 BOOL WINAPI WTExtGet(HCTX hCtx, UINT wExt, LPVOID lpData)
206 FIXME("(%p, %u, %p): stub\n", hCtx, wExt, lpData);
208 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
210 return FALSE;
213 /***********************************************************************
214 * WTExtSet (WINTAB32.64)
216 BOOL WINAPI WTExtSet(HCTX hCtx, UINT wExt, LPVOID lpData)
218 FIXME("(%p, %u, %p): stub\n", hCtx, wExt, lpData);
220 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
222 return FALSE;
225 /***********************************************************************
226 * WTSave (WINTAB32.65)
228 BOOL WINAPI WTSave(HCTX hCtx, LPVOID lpSaveInfo)
230 FIXME("(%p, %p): stub\n", hCtx, lpSaveInfo);
232 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
234 return FALSE;
237 /***********************************************************************
238 * WTRestore (WINTAB32.66)
240 HCTX WINAPI WTRestore(HWND hWnd, LPVOID lpSaveInfo, BOOL fEnable)
242 FIXME("(%p, %p, %u): stub\n", hWnd, lpSaveInfo, fEnable);
244 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
246 return 0;
249 /***********************************************************************
250 * WTPacketsPeek (WINTAB32.80)
252 int WINAPI WTPacketsPeek(HCTX hCtx, int cMaxPkts, LPVOID lpPkts)
254 FIXME("(%p, %d, %p): stub\n", hCtx, cMaxPkts, lpPkts);
256 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
258 return 0;
261 /***********************************************************************
262 * WTDataGet (WINTAB32.81)
264 int WINAPI WTDataGet(HCTX hCtx, UINT wBegin, UINT wEnd,
265 int cMaxPkts, LPVOID lpPkts, LPINT lpNPkts)
267 FIXME("(%p, %u, %u, %d, %p, %p): stub\n",
268 hCtx, wBegin, wEnd, cMaxPkts, lpPkts, lpNPkts);
270 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
272 return 0;
275 /***********************************************************************
276 * WTDataPeek (WINTAB32.82)
278 int WINAPI WTDataPeek(HCTX hCtx, UINT wBegin, UINT wEnd,
279 int cMaxPkts, LPVOID lpPkts, LPINT lpNPkts)
281 FIXME("(%p, %u, %u, %d, %p, %p): stub\n",
282 hCtx, wBegin, wEnd, cMaxPkts, lpPkts, lpNPkts);
284 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
286 return 0;
289 /***********************************************************************
290 * WTQueuePacketsEx (WINTAB32.200)
292 BOOL WINAPI WTQueuePacketsEx(HCTX hCtx, UINT *lpOld, UINT *lpNew)
294 FIXME("(%p, %p, %p): stub\n", hCtx, lpOld, lpNew);
296 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
298 return TRUE;
301 /***********************************************************************
302 * WTQueueSizeGet (WINTAB32.84)
304 int WINAPI WTQueueSizeGet(HCTX hCtx)
306 FIXME("(%p): stub\n", hCtx);
308 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
310 return 0;
313 /***********************************************************************
314 * WTQueueSizeSet (WINTAB32.85)
316 BOOL WINAPI WTQueueSizeSet(HCTX hCtx, int nPkts)
318 FIXME("(%p, %d): stub\n", hCtx, nPkts);
320 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
322 return 0;