Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
3.0 KiB

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  4. <META NAME="Generator" CONTENT="Microsoft Word 97">
  5. <TITLE>MOUSER</TITLE>
  6. <META NAME="Template" CONTENT="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
  7. </HEAD>
  8. <BODY TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff" leftmargin="8">
  9. <FONT FACE="Verdana"><H2><A NAME="MYSAMPLE">MOUSER</A> </H2>
  10. <span style="color:#FF0000">[This is preliminary documentation and subject to change.]</span>
  11. <H3>SUMMARY</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  12. This serial mouse driver, which is compliant with Plug and Play, supports dynamic detection (via serenum) and removal (either hotplug or via the device manager). The code serves as a sample for any serial-enumerable device. The behavior of the various routines is documented in the source code files.<P>
  13. The code works on Microsoft&#174; Windows&#174; 2000 or later platforms. This code will not work on previous versions of Windows NT&#174; due to issues with support for Plug and Play, Power Management, and the new class drivers.<P>
  14. The driver also supports Power Management; the mouse is powered down in low power state and is reset when powered up again. The driver works on both x86 and Alpha platforms.
  15. <H3>BUILDING THE SAMPLE</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  16. The files necessary to build the sample include those in the directory and KbdMou.h, Ntddmou.h, Ntddser.h, wmistr.h. Once built, the sample produces one binary: Sermouse.sys. Both checked and free builds are available. <b>NOTE:</b> Wmilib.sys must be present on the target machine for the binary to load properly.
  17. <H3>RESOURCES</H3></FONT><FONT FACE="Verdana" SIZE=2><P>
  18. For the serial enumeration spec, read <A HREF="http://www.microsoft.com/hwdev/download/respec/pnpcom.rtf">http://www.microsoft.com/hwdev/download/respec/pnpcom.rtf</A>.
  19. <H3>CODE TOUR</H3>
  20. <H4>File Manifest</H4>
  21. </FONT><U><PRE>File&#9;&#9; Description
  22. </U>
  23. Mouser.htm&#9; The documentation for this sample (this file).
  24. Sources&#9; The generic file for building this code sample.
  25. Cseries.c&#9; Detection code for CSeries type mice
  26. Cseries.h&#9; Definitions for cseries.c
  27. Debug.h&#9; Debug definitions
  28. Detect.c&#9; Dynamic removal
  29. Io.c&#9; Read IRP loop and initialization routines
  30. Mouser.h&#9; Main header file
  31. Mouser.rc&#9; Resources
  32. Mseries.c&#9; Detection code for MSeries type mice
  33. Mseries.h&#9; Definitions for mseries.c
  34. Pnp.c&#9; Plug and Play and Power routines
  35. Sermcmn.c&#9; Create and Close dispatch functions
  36. Sermdep.c&#9; Misc initialization code, DriverEntry
  37. Sermlog.mc&#9; Error definition file
  38. Wmi.c&#9; System Control dispatch handler
  39. Wrapper.c&#9; Wraps all IOCTL based queries
  40. </FONT><P ALIGN="CENTER"><A HREF="#top"><FONT FACE="Verdana" SIZE=2>Top of page</FONT></A><FONT FACE="Verdana" SIZE=2> </P></FONT>
  41. <TABLE CELLSPACING=0 BORDER=0 WIDTH=624>
  42. <TR><TD VALIGN="MIDDLE" BGCOLOR="#00ffff" HEIGHT=2>
  43. <P></TD>
  44. </TR>
  45. </TABLE>
  46. <FONT FACE="MS Sans Serif" SIZE=1><P>&copy; 1999 Microsoft Corporation</FONT><FONT FACE="Verdana" SIZE=2> </P></FONT></BODY>
  47. </HTML>