dsound: Avoid signed-unsigned integer comparisons.
[wine] / dlls / wintab32 / manager.c
1 /*
2  * Tablet Manager
3  *
4  * Copyright 2002 Patrik Stridvall
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
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winerror.h"
28
29 #include "wintab.h"
30
31 #include "wine/debug.h"
32
33 WINE_DEFAULT_DEBUG_CHANNEL(wintab32);
34
35 /***********************************************************************
36  *              WTMgrOpen (WINTAB32.100)
37  */
38 HMGR WINAPI WTMgrOpen(HWND hWnd, UINT wMsgBase)
39 {
40     FIXME("(%p, %u): stub\n", hWnd, wMsgBase);
41
42     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
43
44     return NULL;
45 }
46
47 /***********************************************************************
48  *              WTMgrClose (WINTAB32.101)
49  */
50 BOOL WINAPI WTMgrClose(HMGR hMgr)
51 {
52     FIXME("(%p): stub\n", hMgr);
53
54     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
55
56     return FALSE;
57 }
58
59 /***********************************************************************
60  *              WTMgrContextEnum (WINTAB32.120)
61  */
62 BOOL WINAPI WTMgrContextEnum(HMGR hMgr, WTENUMPROC lpEnumFunc, LPARAM lParam)
63 {
64     FIXME("(%p, %p, %ld): stub\n", hMgr, lpEnumFunc, lParam);
65
66     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67
68     return FALSE;
69 }
70
71 /***********************************************************************
72  *              WTMgrContextOwner (WINTAB32.121)
73  */
74 HWND WINAPI WTMgrContextOwner(HMGR hMgr, HCTX hCtx)
75 {
76     FIXME("(%p, %p): stub\n", hMgr, hCtx);
77
78     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79
80     return NULL;
81 }
82
83 /***********************************************************************
84  *              WTMgrDefContext (WINTAB32.122)
85  */
86 HCTX WINAPI WTMgrDefContext(HMGR hMgr, BOOL fSystem)
87 {
88     FIXME("(%p, %u): stub\n", hMgr, fSystem);
89
90     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
91
92     return NULL;
93 }
94
95 /***********************************************************************
96  *              WTMgrDefContextEx (WINTAB32.206)
97  *
98  * 1.1
99  */
100 HCTX WINAPI WTMgrDefContextEx(HMGR hMgr, UINT wDevice, BOOL fSystem)
101 {
102     FIXME("(%p, %u, %u): stub\n", hMgr, wDevice, fSystem);
103
104     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
105
106     return NULL;
107 }
108
109 /***********************************************************************
110  *              WTMgrDeviceConfig (WINTAB32.140)
111  */
112 UINT WINAPI WTMgrDeviceConfig(HMGR hMgr, UINT wDevice, HWND hWnd)
113 {
114     FIXME("(%p, %u, %p): stub\n", hMgr, wDevice, hWnd);
115
116     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
117
118     return 0;
119 }
120
121 /***********************************************************************
122  *              WTMgrConfigReplaceExA (WINTAB32.202)
123  */
124 BOOL WINAPI WTMgrConfigReplaceExA(HMGR hMgr, BOOL fInstall,
125                                   LPSTR lpszModule, LPSTR lpszCfgProc)
126 {
127     FIXME("(%p, %u, %s, %s): stub\n", hMgr, fInstall,
128           debugstr_a(lpszModule), debugstr_a(lpszCfgProc));
129
130     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
131
132     return FALSE;
133 }
134
135 /***********************************************************************
136  *              WTMgrConfigReplaceExW (WINTAB32.1202)
137  */
138 BOOL WINAPI WTMgrConfigReplaceExW(HMGR hMgr, BOOL fInstall,
139                                   LPWSTR lpszModule, LPSTR lpszCfgProc)
140 {
141     FIXME("(%p, %u, %s, %s): stub\n", hMgr, fInstall,
142           debugstr_w(lpszModule), debugstr_a(lpszCfgProc));
143
144     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
145
146     return FALSE;
147 }
148
149 /***********************************************************************
150  *              WTMgrPacketHookExA (WINTAB32.203)
151  */
152 HWTHOOK WINAPI WTMgrPacketHookExA(HMGR hMgr, int nType,
153                                   LPSTR lpszModule, LPSTR lpszHookProc)
154 {
155     FIXME("(%p, %d, %s, %s): stub\n", hMgr, nType,
156           debugstr_a(lpszModule), debugstr_a(lpszHookProc));
157
158     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
159
160     return NULL;
161 }
162
163 /***********************************************************************
164  *              WTMgrPacketHookExW (WINTAB32.1203)
165  */
166 HWTHOOK WINAPI WTMgrPacketHookExW(HMGR hMgr, int nType,
167                                   LPWSTR lpszModule, LPSTR lpszHookProc)
168 {
169     FIXME("(%p, %d, %s, %s): stub\n", hMgr, nType,
170           debugstr_w(lpszModule), debugstr_a(lpszHookProc));
171
172     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
173
174     return NULL;
175 }
176
177 /***********************************************************************
178  *              WTMgrPacketUnhook (WINTAB32.204)
179  */
180 BOOL WINAPI WTMgrPacketUnhook(HWTHOOK hHook)
181 {
182     FIXME("(%p): stub\n", hHook);
183
184     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
185
186     return FALSE;
187 }
188
189 /***********************************************************************
190  *              WTMgrPacketHookNext (WINTAB32.205)
191  */
192 LRESULT WINAPI WTMgrPacketHookNext(HWTHOOK hHook, int nCode,
193                                    WPARAM wParam, LPARAM lParam)
194 {
195     FIXME("(%p, %d, %lu, %lu): stub\n", hHook, nCode, wParam, lParam);
196
197     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
198
199     return 0;
200 }
201
202
203 /***********************************************************************
204  *              WTMgrExt (WINTAB32.180)
205  */
206 BOOL WINAPI WTMgrExt(HMGR hMgr, UINT wExt, LPVOID lpData)
207 {
208     FIXME("(%p, %u, %p): stub\n", hMgr, wExt, lpData);
209
210     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
211
212     return FALSE;
213 }
214
215 /***********************************************************************
216  *              WTMgrCsrEnable (WINTAB32.181)
217  */
218 BOOL WINAPI WTMgrCsrEnable(HMGR hMgr, UINT wCursor, BOOL fEnable)
219 {
220     FIXME("(%p, %u, %u): stub\n", hMgr, wCursor, fEnable);
221
222     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
223
224     return FALSE;
225 }
226
227 /***********************************************************************
228  *              WTMgrCsrButtonMap (WINTAB32.182)
229  */
230 BOOL WINAPI WTMgrCsrButtonMap(HMGR hMgr, UINT wCursor,
231                               LPBYTE lpLogBtns, LPBYTE lpSysBtns)
232 {
233     FIXME("(%p, %u, %p, %p): stub\n", hMgr, wCursor, lpLogBtns, lpSysBtns);
234
235     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
236
237     return FALSE;
238 }
239
240 /***********************************************************************
241  *              WTMgrCsrPressureBtnMarks (WINTAB32.183)
242  *
243  * OBSOLETE IN WIN32! (But only according to documentation)
244  */
245 BOOL WINAPI WTMgrCsrPressureBtnMarks(HMGR hMgr, UINT wCsr,
246                                      DWORD dwNMarks, DWORD dwTMarks)
247 {
248     FIXME("(%p, %u, %u, %u): stub\n", hMgr, wCsr, dwNMarks, dwTMarks);
249
250     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
251
252     return FALSE;
253 }
254
255 /***********************************************************************
256  *              WTMgrCsrPressureBtnMarksEx (WINTAB32.201)
257  */
258 BOOL WINAPI WTMgrCsrPressureBtnMarksEx(HMGR hMgr, UINT wCsr,
259                                        UINT *lpNMarks, UINT *lpTMarks)
260 {
261     FIXME("(%p, %u, %p, %p): stub\n", hMgr, wCsr, lpNMarks, lpTMarks);
262
263     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
264
265     return FALSE;
266 }
267
268 /***********************************************************************
269  *              WTMgrCsrPressureResponse (WINTAB32.184)
270  */
271 BOOL WINAPI WTMgrCsrPressureResponse(HMGR hMgr, UINT wCsr,
272                                      UINT *lpNResp, UINT *lpTResp)
273 {
274     FIXME("(%p, %u, %p, %p): stub\n", hMgr, wCsr, lpNResp, lpTResp);
275
276     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
277
278     return FALSE;
279 }
280
281 /***********************************************************************
282  *              WTMgrCsrExt (WINTAB32.185)
283  */
284 BOOL WINAPI WTMgrCsrExt(HMGR hMgr, UINT wCsr, UINT wExt, LPVOID lpData)
285 {
286     FIXME("(%p, %u, %u, %p): stub\n", hMgr, wCsr, wExt, lpData);
287
288     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
289
290     return FALSE;
291 }