158{
159
161
163 {
164
165 case 0x00:
166 {
168
170 {
171
174 break;
175 }
176
178 {
180
181
183 }
184 else
185 {
186
188 {
189
192 break;
193 }
194
196
197
199 }
200
202 {
203
206 break;
207 }
208
209
212 break;
213 }
214
215
216 case 0x05:
217 {
218
219 }
220
221
222 case 0x01:
223 {
225
228
229 if (Answer == 0xFE)
230 {
231
234 break;
235 }
237 {
238
241 break;
242 }
243
246
247
250 break;
251 }
252
253
254 case 0x02:
255 {
256 UCHAR SampleRate = 0;
257
259 {
260 case 0x00: SampleRate = 10; break;
261 case 0x01: SampleRate = 20; break;
262 case 0x02: SampleRate = 40; break;
263 case 0x03: SampleRate = 60; break;
264 case 0x04: SampleRate = 80; break;
265 case 0x05: SampleRate = 100; break;
266 case 0x06: SampleRate = 200; break;
267 default: SampleRate = 0;
268 }
269
270 if (SampleRate == 0)
271 {
272
275 break;
276 }
277
280 {
281
284 break;
285 }
286
289 {
290
293 break;
294 }
295
296
299 break;
300 }
301
302
303 case 0x03:
304 {
306
307
308
309
310
311
312
314 {
315
318 break;
319 }
320
323 {
324
327 break;
328 }
329
332 {
333
336 break;
337 }
338
339
342 break;
343 }
344
345
346 case 0x04:
347 {
350 {
351
354 break;
355 }
356
358
359
362 break;
363 }
364
365
366 case 0x06:
367 {
369
371 {
372
373 case 0x00:
374 {
377 {
378
381 break;
382 }
383
387
388
391 break;
392 }
393
394
395 case 0x01:
396
397 case 0x02:
398 {
401 {
402
405 break;
406 }
407
408
411 break;
412 }
413
414 default:
415 {
416
419 break;
420 }
421 }
422
423 break;
424 }
425
426
427 case 0x07:
428 {
429
431
432
435 break;
436 }
437
438
439 case 0x08:
440 {
443 {
444
447 break;
448 }
449
450
453 break;
454 }
455
456
457 case 0x09:
458 {
462
463
466 break;
467 }
468
469 default:
470 {
471 DPRINT1(
"INT 15h, AH = C2h, AL = %02Xh NOT IMPLEMENTED\n",
473
474
477 }
478 }
479
480
482}
static VOID BiosMouseEnable(VOID)
static VOID DisableMouseInt(VOID)
static ULONG DeviceHandler
static VOID SendMouseCommand(UCHAR Command)
static VOID EnableMouseInt(VOID)
static UCHAR ReadMouseData(VOID)
static VOID BiosMouseDisable(VOID)
USHORT WINAPI getBX(VOID)
USHORT WINAPI getES(VOID)
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack